Skip to content

Commit 908aadb

Browse files
authored
Merge pull request #1 from supabase/fix/remove-encoding
fix: remove dependency on encoding
2 parents 8bc3a7c + 5e40eb3 commit 908aadb

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

package.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"name": "node-fetch",
2+
"name": "@supabase/node-fetch",
3+
"publishConfig": { "access": "public" },
34
"version": "2.6.7",
45
"description": "A light-weight module that brings window.fetch to node.js",
56
"main": "lib/index.js",
@@ -23,7 +24,7 @@
2324
},
2425
"repository": {
2526
"type": "git",
26-
"url": "https://github.com/bitinn/node-fetch.git"
27+
"url": "https://github.com/supabase/node-fetch.git"
2728
},
2829
"keywords": [
2930
"fetch",
@@ -33,20 +34,12 @@
3334
"author": "David Frank",
3435
"license": "MIT",
3536
"bugs": {
36-
"url": "https://github.com/bitinn/node-fetch/issues"
37+
"url": "https://github.com/supabase/node-fetch/issues"
3738
},
38-
"homepage": "https://github.com/bitinn/node-fetch",
39+
"homepage": "https://github.com/supabase/node-fetch",
3940
"dependencies": {
4041
"whatwg-url": "^5.0.0"
4142
},
42-
"peerDependencies": {
43-
"encoding": "^0.1.0"
44-
},
45-
"peerDependenciesMeta": {
46-
"encoding": {
47-
"optional": true
48-
}
49-
},
5043
"devDependencies": {
5144
"@ungap/url-search-params": "^0.1.2",
5245
"abort-controller": "^1.1.0",

src/body.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import Blob, { BUFFER } from './blob.js';
1111
import FetchError from './fetch-error.js';
1212

1313
let convert;
14-
try { convert = require('encoding').convert; } catch(e) {}
1514

1615
const INTERNALS = Symbol('Body internals');
1716

0 commit comments

Comments
 (0)