Skip to content

Commit

Permalink
gitpod: bump node-fetch version in extensions
Browse files Browse the repository at this point in the history
Related to gitpod-io/gitpod#7360

Currently, When the server has a root cert cross-signed by the
expired `DST ROOT CA X3`. There's a possiblity of the client having
an older version of `electron` in their code that causes the cert
expiry failure.

While, asking users to update their vs code should be our first
suggestion, In some cases using the latest version of `node-fetch`
also fixed the issue (not exactly sure why). This PR bumps the
`node-fetch` dependency to the one that the `code-server` uses.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
  • Loading branch information
Pothulapati authored and filiptronicek committed Mar 30, 2022
1 parent d4ea071 commit 6659f86
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion extensions/gitpod-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
},
"dependencies": {
"gitpod-shared": "0.0.1",
"node-fetch": "^2.6.5",
"node-fetch": "2.6.7",
"uuid": "8.1.0",
"vscode-jsonrpc": "^5.0.1",
"vscode-nls": "^5.0.0",
Expand Down
4 changes: 2 additions & 2 deletions extensions/gitpod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "%displayName%",
"description": "%description%",
"publisher": "gitpod",
"version": "0.0.28",
"version": "0.0.29",
"license": "MIT",
"preview": true,
"icon": "resources/gitpod.png",
Expand Down Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@gitpod/local-app-api-grpcweb": "main",
"@improbable-eng/grpc-web-node-http-transport": "^0.14.0",
"node-fetch": "^2.6.1",
"node-fetch": "2.6.7",
"tmp": "^0.2.1",
"vscode-nls": "^5.0.0"
},
Expand Down
15 changes: 4 additions & 11 deletions extensions/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -688,17 +688,10 @@ node-addon-api@^3.2.1:
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.2.1.tgz#81325e0a2117789c0128dab65e7e38f07ceba161"
integrity sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==

node-fetch@^2.6.1:
version "2.6.6"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.6.tgz#1751a7c01834e8e1697758732e9efb6eeadfaf89"
integrity sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==
dependencies:
whatwg-url "^5.0.0"

node-fetch@^2.6.5:
version "2.6.5"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.5.tgz#42735537d7f080a7e5f78b6c549b7146be1742fd"
integrity sha512-mmlIVHJEu5rnIxgEgez6b9GgWXbkZj5YZ7fx+2r94a2E+Uirsp6HsPTPlomfdHtpt/B0cdKviwkoaM6pyvUOpQ==
node-fetch@2.6.7:
version "2.6.7"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
dependencies:
whatwg-url "^5.0.0"

Expand Down

0 comments on commit 6659f86

Please sign in to comment.