Skip to content

Commit

Permalink
fix: change fetch polyfill (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo authored Sep 28, 2020
1 parent 68e26e7 commit 7a35c11
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
22 changes: 8 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"docs:json": "typedoc --json docs/spec.json --mode modules --includeDeclarations --excludeExternals"
},
"dependencies": {
"isomorphic-unfetch": "^3.0.0"
"cross-fetch": "^3.0.6"
},
"devDependencies": {
"@types/jest": "^26.0.13",
Expand Down
2 changes: 1 addition & 1 deletion src/builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fetch from 'isomorphic-unfetch'
import fetch from 'cross-fetch'

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

0 comments on commit 7a35c11

Please sign in to comment.