Skip to content

Commit bca5ca9

Browse files
committed
refactor: update repository
1 parent e3162ae commit bca5ca9

13 files changed

+114
-195
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
dist
22
node_modules
3+
lib/empty.mjs
4+
coverage

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": [
3-
"@nuxtjs/eslint-config-typescript"
3+
"eslint-config-unjs"
44
]
55
}

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 - UnJS
3+
Copyright (c) Pooya Parsa <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

build.config.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineBuildConfig } from 'unbuild'
1+
import { defineBuildConfig } from "unbuild";
22

33
export default defineBuildConfig({
44
declaration: false,
@@ -7,8 +7,8 @@ export default defineBuildConfig({
77
inlineDependencies: true
88
},
99
entries: [
10-
'src/index',
11-
'src/native',
12-
'src/polyfill'
10+
"src/index",
11+
"src/native",
12+
"src/polyfill"
1313
]
14-
})
14+
});

lib/index.cjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
const nodeFetch = require('../dist/index.cjs')
1+
const nodeFetch = require("../dist/index.cjs");
22

33
function fetch (input, options) {
4-
return nodeFetch.fetch(input, options)
4+
return nodeFetch.fetch(input, options);
55
}
66

77
for (const key in nodeFetch) {
8-
fetch[key] = nodeFetch[key]
8+
fetch[key] = nodeFetch[key];
99
}
1010

11-
module.exports = fetch
11+
module.exports = fetch;

lib/index.d.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
export declare const fetch: typeof globalThis.fetch
2-
export declare const Blob: typeof globalThis.Blob
3-
export declare const File: typeof globalThis.File
4-
export declare const FormData: typeof globalThis.FormData
5-
export declare const Headers: typeof globalThis.Headers
6-
export declare const Request: typeof globalThis.Request
7-
export declare const Response: typeof globalThis.Response
8-
export declare const AbortController: typeof globalThis.AbortController
1+
export declare const fetch: typeof globalThis.fetch;
2+
export declare const Blob: typeof globalThis.Blob;
3+
export declare const File: typeof globalThis.File;
4+
export declare const FormData: typeof globalThis.FormData;
5+
export declare const Headers: typeof globalThis.Headers;
6+
export declare const Request: typeof globalThis.Request;
7+
export declare const Response: typeof globalThis.Response;
8+
export declare const AbortController: typeof globalThis.AbortController;
99

10-
export default fetch
10+
export default fetch;

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
"test": "pnpm lint && pnpm build && vitest run --coverage"
4040
},
4141
"devDependencies": {
42-
"@nuxtjs/eslint-config-typescript": "^11.0.0",
43-
"@vitest/coverage-c8": "^0.25.1",
42+
"@vitest/coverage-c8": "^0.25.2",
4443
"abort-controller": "^3.0.0",
4544
"eslint": "^8.27.0",
45+
"eslint-config-unjs": "^0.0.2",
4646
"node-fetch": "^3.3.0",
4747
"standard-version": "^9.5.0",
4848
"typescript": "^4.8.4",
4949
"unbuild": "^0.9.4",
50-
"vitest": "^0.25.1"
50+
"vitest": "^0.25.2"
5151
},
5252
"packageManager": "[email protected]"
5353
}

pnpm-lock.yaml

+36-119
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renovate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": [
3-
"@nuxtjs"
3+
"github>unjs/renovate-config"
44
]
55
}

0 commit comments

Comments
 (0)