From 6d7c094fe23e976288d0521f7dcf5338296e5163 Mon Sep 17 00:00:00 2001 From: nadhifikbarw Date: Mon, 23 Dec 2024 07:44:53 +0700 Subject: [PATCH] rename to -ofetch, -fetch taken --- build.config.ts | 2 +- package.json | 4 ++-- tests/airtable.test.ts | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.config.ts b/build.config.ts index 5cf88f8..7767515 100644 --- a/build.config.ts +++ b/build.config.ts @@ -1,5 +1,5 @@ import { defineBuildConfig } from "unbuild"; export default defineBuildConfig([ - { name: "airtable-fetch", declaration: true, clean: true }, + { name: "airtable-ofetch", declaration: true, clean: true }, ]); diff --git a/package.json b/package.json index 781fb00..14773dc 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "airtable-fetch", + "name": "airtable-ofetch", "version": "0.1.0-rc.1", "description": "JS Client for Airtable Web API built on top @unjs/ofetch", - "repository": "nadhifikbarw/airtable-fetch", + "repository": "nadhifikbarw/airtable-ofetch", "license": "MIT", "type": "module", "exports": { diff --git a/tests/airtable.test.ts b/tests/airtable.test.ts index 9f6dcdb..9887036 100644 --- a/tests/airtable.test.ts +++ b/tests/airtable.test.ts @@ -48,7 +48,7 @@ describe("Airtable", function () { test("create new instance with resolved custom headers", function () { const headers = { - "user-agent": `airtable-fetch/${packageJson.version}`, + "user-agent": `airtable-ofetch/${packageJson.version}`, "cache-control": "no-cache", }; @@ -64,14 +64,14 @@ describe("Airtable", function () { test("create new instance with replaced custom headers", function () { const airtable = new Airtable({ - customHeaders: { "user-agent": `airtable-fetch/${packageJson.version}` }, + customHeaders: { "user-agent": `airtable-ofetch/${packageJson.version}` }, }); const newAirtable = airtable.create( - { customHeaders: { "user-agent": "airtable-fetch" } }, + { customHeaders: { "user-agent": "airtable-ofetch" } }, { headers: "replace" } ); expect(newAirtable.customHeaders).toEqual({ - "user-agent": "airtable-fetch", + "user-agent": "airtable-pfetch", }); });