Skip to content

Commit

Permalink
rename to -ofetch, -fetch taken
Browse files Browse the repository at this point in the history
  • Loading branch information
nadhifikbarw committed Dec 23, 2024
1 parent 8ad13da commit 6d7c094
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
@@ -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 },
]);
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions tests/airtable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};

Expand All @@ -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",
});
});

Expand Down

0 comments on commit 6d7c094

Please # to comment.