Skip to content

Commit 7a35c11

Browse files
authored
fix: change fetch polyfill (#109)
1 parent 68e26e7 commit 7a35c11

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

package-lock.json

Lines changed: 8 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"docs:json": "typedoc --json docs/spec.json --mode modules --includeDeclarations --excludeExternals"
2929
},
3030
"dependencies": {
31-
"isomorphic-unfetch": "^3.0.0"
31+
"cross-fetch": "^3.0.6"
3232
},
3333
"devDependencies": {
3434
"@types/jest": "^26.0.13",

src/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fetch from 'isomorphic-unfetch'
1+
import fetch from 'cross-fetch'
22

33
// https://postgrest.org/en/stable/api.html?highlight=options#errors-and-http-status-codes
44
interface PostgrestError {

0 commit comments

Comments
 (0)