Skip to content

Commit 694f9e6

Browse files
committed
fix(gatsby-recipes): switch from isomorphic-fetch to cross-fetch
1 parent 13e875e commit 694f9e6

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

packages/gatsby-admin/src/components/recipes-gui/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { createUrqlClient } from "../../urql-client"
1010
import { useMutation, useSubscription } from "urql"
1111

1212
import lodash from "lodash"
13-
import fetch from "isomorphic-fetch"
13+
import fetch from "cross-fetch"
1414

1515
import { Button, Heading } from "gatsby-interface"
1616
import { StepRenderer } from "gatsby-recipes/components"

packages/gatsby-recipes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"concurrently": "^5.0.0",
3434
"contentful-management": "^5.26.3",
3535
"cors": "^2.8.5",
36+
"cross-fetch": "^3.0.5",
3637
"debug": "^4.1.1",
3738
"detect-port": "^1.3.0",
3839
"dotenv": "^8.2.0",
@@ -55,7 +56,6 @@
5556
"ink-box": "^1.0.0",
5657
"is-binary-path": "^2.1.0",
5758
"is-url": "^1.2.4",
58-
"isomorphic-fetch": "^2.1.0",
5959
"jest-diff": "^25.5.0",
6060
"lock": "^1.0.0",
6161
"lodash": "^4.17.15",

yarn.lock

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7710,7 +7710,7 @@ [email protected]:
77107710
node-fetch "2.1.2"
77117711
whatwg-fetch "2.0.4"
77127712

7713-
7713+
[email protected], cross-fetch@^3.0.5:
77147714
version "3.0.5"
77157715
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.0.5.tgz#2739d2981892e7ab488a7ad03b92df2816e03f4c"
77167716
integrity sha512-FFLcLtraisj5eteosnX1gf01qYDCOc4fDy0+euOt8Kn9YBY2NtXL/pCoYPavw24NIQkQqm5ZOLsGD5Zzj0gyew==
@@ -13418,7 +13418,7 @@ is-ssh@^1.3.0:
1341813418
dependencies:
1341913419
protocols "^1.1.0"
1342013420

13421-
[email protected], is-stream@^1.0.0, is-stream@^1.0.1, is-stream@^1.1.0:
13421+
[email protected], is-stream@^1.0.0, is-stream@^1.1.0:
1342213422
version "1.1.0"
1342313423
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
1342413424

@@ -13560,14 +13560,6 @@ isobject@^4.0.0:
1356013560
resolved "https://registry.yarnpkg.com/isobject/-/isobject-4.0.0.tgz#3f1c9155e73b192022a80819bacd0343711697b0"
1356113561
integrity sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==
1356213562

13563-
isomorphic-fetch@^2.1.0:
13564-
version "2.2.1"
13565-
resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9"
13566-
integrity sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=
13567-
dependencies:
13568-
node-fetch "^1.0.1"
13569-
whatwg-fetch ">=0.10.0"
13570-
1357113563
isstream@~0.1.2:
1357213564
version "0.1.2"
1357313565
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
@@ -16786,14 +16778,6 @@ [email protected], node-fetch@^2.3.0, node-fetch@^2.5.0, node-fetch@^2.6.0:
1678616778
version "2.6.0"
1678716779
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd"
1678816780

16789-
node-fetch@^1.0.1:
16790-
version "1.7.3"
16791-
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef"
16792-
integrity sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==
16793-
dependencies:
16794-
encoding "^0.1.11"
16795-
is-stream "^1.0.1"
16796-
1679716781
1679816782
version "0.9.0"
1679916783
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.9.0.tgz#d624050edbb44874adca12bb9a52ec63cb782579"
@@ -25259,7 +25243,7 @@ [email protected]:
2525925243
version "2.0.4"
2526025244
resolved "http://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f"
2526125245

25262-
whatwg-fetch@>=0.10.0, whatwg-fetch@^3.4.0:
25246+
whatwg-fetch@^3.4.0:
2526325247
version "3.4.0"
2526425248
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.4.0.tgz#e11de14f4878f773fbebcde8871b2c0699af8b30"
2526525249
integrity sha512-rsum2ulz2iuZH08mJkT0Yi6JnKhwdw4oeyMjokgxd+mmqYSd9cPpOQf01TIWgjxG/U4+QR+AwKq6lSbXVxkyoQ==

0 commit comments

Comments
 (0)