Skip to content

Commit fd15a92

Browse files
karlhorkyhoobdeebla
andauthoredSep 14, 2020
security(gatsby-admin): switch isomorphic-fetch to cross-fetch
* Remove unused isomorphic-fetch package * fix(gatsby-recipes): switch from isomorphic-fetch to cross-fetch Original commit: 694f9e6 * Upgrade cross-fetch to 3.0.6 Co-authored-by: Adam Schay <adamschay@gmail.com>
1 parent 0bc63fe commit fd15a92

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed
 

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

+1-1
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

+1-1
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.6",
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.20",

‎yarn.lock

+15-10
Original file line numberDiff line numberDiff line change
@@ -7666,6 +7666,13 @@ cross-fetch@3.0.5:
76667666
dependencies:
76677667
node-fetch "2.6.0"
76687668

7669+
cross-fetch@^3.0.6:
7670+
version "3.0.6"
7671+
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.0.6.tgz#3a4040bc8941e653e0e9cf17f29ebcd177d3365c"
7672+
integrity sha512-KBPUbqgFjzWlVcURG+Svp9TlhA5uliYtiNx/0r8nv0pdypeQCRJ9IaSIc3q/x3q8t3F75cHuwxVql1HFGHCNJQ==
7673+
dependencies:
7674+
node-fetch "2.6.1"
7675+
76697676
cross-spawn@5.1.0, cross-spawn@^5.0.1, cross-spawn@^5.1.0:
76707677
version "5.1.0"
76717678
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
@@ -13582,14 +13589,6 @@ isobject@^4.0.0:
1358213589
resolved "https://registry.yarnpkg.com/isobject/-/isobject-4.0.0.tgz#3f1c9155e73b192022a80819bacd0343711697b0"
1358313590
integrity sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==
1358413591

13585-
isomorphic-fetch@^2.1.0:
13586-
version "2.2.1"
13587-
resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9"
13588-
integrity sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=
13589-
dependencies:
13590-
node-fetch "^1.0.1"
13591-
whatwg-fetch ">=0.10.0"
13592-
1359313592
isstream@~0.1.2:
1359413593
version "0.1.2"
1359513594
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
@@ -16857,9 +16856,15 @@ node-fetch@2.6.0, node-fetch@^2.3.0, node-fetch@^2.5.0, node-fetch@^2.6.0:
1685716856
version "2.6.0"
1685816857
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd"
1685916858

16860-
node-fetch@^1.0.1, node-fetch@^1.7.3:
16859+
node-fetch@2.6.1:
16860+
version "2.6.1"
16861+
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
16862+
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
16863+
16864+
node-fetch@^1.7.3:
1686116865
version "1.7.3"
1686216866
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef"
16867+
integrity sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==
1686316868
dependencies:
1686416869
encoding "^0.1.11"
1686516870
is-stream "^1.0.1"
@@ -25341,7 +25346,7 @@ whatwg-fetch@2.0.4:
2534125346
version "2.0.4"
2534225347
resolved "http://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f"
2534325348

25344-
whatwg-fetch@>=0.10.0, whatwg-fetch@^3.4.0:
25349+
whatwg-fetch@^3.4.0:
2534525350
version "3.4.0"
2534625351
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.4.0.tgz#e11de14f4878f773fbebcde8871b2c0699af8b30"
2534725352
integrity sha512-rsum2ulz2iuZH08mJkT0Yi6JnKhwdw4oeyMjokgxd+mmqYSd9cPpOQf01TIWgjxG/U4+QR+AwKq6lSbXVxkyoQ==

0 commit comments

Comments
 (0)
Please sign in to comment.