Skip to content

Commit

Permalink
fix: node-fetch issue when checking for updates
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Mar 15, 2022
1 parent b3caf80 commit 05aaaf1
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 56 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"electron-store": "^8.0.1",
"i18next": "^21.6.14",
"i18next-node-fs-backend": "^2.1.3",
"node-fetch": "^3.2.3",
"node-fetch": "^2.6.7",
"sass": "^1.49.9",
"stylus": "^0.56.0",
"svelte-select": "^4.4.7",
Expand Down
2 changes: 1 addition & 1 deletion src/util/getReleases.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
const fetch = require('node-fetch');

const getReleases = async () => {
try {
Expand Down
86 changes: 32 additions & 54 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ __metadata:
electron-store: ^8.0.1
i18next: ^21.6.14
i18next-node-fs-backend: ^2.1.3
node-fetch: ^3.2.3
node-fetch: ^2.6.7
rollup: ^2.70.1
rollup-plugin-css-only: ^3.1.0
rollup-plugin-livereload: ^2.0.5
Expand Down Expand Up @@ -1438,13 +1438,6 @@ __metadata:
languageName: node
linkType: hard

"data-uri-to-buffer@npm:^4.0.0":
version: 4.0.0
resolution: "data-uri-to-buffer@npm:4.0.0"
checksum: 51e8ba73a4a01a71e7df0c6fc60c85b281211642a1d888c6a9bfefc598769f484630697ccb1d977ff825f80848d9736445c666c8bf933e2eb6bddf164b55f38b
languageName: node
linkType: hard

"date-fns@npm:^2.16.1":
version: 2.19.0
resolution: "date-fns@npm:2.19.0"
Expand Down Expand Up @@ -2044,25 +2037,6 @@ __metadata:
languageName: node
linkType: hard

"fetch-blob@npm:^3.1.2":
version: 3.1.3
resolution: "fetch-blob@npm:3.1.3"
dependencies:
web-streams-polyfill: ^3.0.3
checksum: bf603a4c9ad0fc3dd0c560d1009840b465a396b39fcc31354c7ece5756b1cc6173e565ba23820e08ce8c52b302ea0a37ca93de00eea0257084cfd73e859792ee
languageName: node
linkType: hard

"fetch-blob@npm:^3.1.4":
version: 3.1.4
resolution: "fetch-blob@npm:3.1.4"
dependencies:
node-domexception: ^1.0.0
web-streams-polyfill: ^3.0.3
checksum: 69e1d5ac9c893d7e65654bca8979efe7a6f5024e2e3d461a68a968f5ba6934254302eaa1c7606de10a55a388149b8647b40e1b47fb27e4296ecb02c8b78b254d
languageName: node
linkType: hard

"filelist@npm:^1.0.1":
version: 1.0.1
resolution: "filelist@npm:1.0.1"
Expand Down Expand Up @@ -2119,15 +2093,6 @@ __metadata:
languageName: node
linkType: hard

"formdata-polyfill@npm:^4.0.10":
version: 4.0.10
resolution: "formdata-polyfill@npm:4.0.10"
dependencies:
fetch-blob: ^3.1.2
checksum: 525e045498be835665b7721f8a4b5b0fee10dc221247de977e89c20e4a91df8637f917d299bc30bd4b1dc2ff26e9d61f0aad75d1e7cb40e24eb9388e2c1fe903
languageName: node
linkType: hard

"fs-extra@npm:^10.0.0":
version: 10.0.0
resolution: "fs-extra@npm:10.0.0"
Expand Down Expand Up @@ -3294,21 +3259,17 @@ fsevents@~2.3.2:
languageName: node
linkType: hard

"node-domexception@npm:^1.0.0":
version: 1.0.0
resolution: "node-domexception@npm:1.0.0"
checksum: b014e8200542bfa2a811d6bea6f7766b9c64884e8f219369986af1a5726abfc76186e72e612cd606df4040b298781a454fea1c7152d2c7515c37f388c8a5d67e
languageName: node
linkType: hard

"node-fetch@npm:^3.2.3":
version: 3.2.3
resolution: "node-fetch@npm:3.2.3"
"node-fetch@npm:^2.6.7":
version: 2.6.7
resolution: "node-fetch@npm:2.6.7"
dependencies:
data-uri-to-buffer: ^4.0.0
fetch-blob: ^3.1.4
formdata-polyfill: ^4.0.10
checksum: f1312e63fc3fc075a4381e8fb8b6449b534b6f59a5f60f5f163be20173cb8fa3bf073e17492ead7bf73986588ace926d7e38b4423b648f93683e72fa9838190b
whatwg-url: ^5.0.0
peerDependencies:
encoding: ^0.1.0
peerDependenciesMeta:
encoding:
optional: true
checksum: 9eef3f9934c690719ece12c1a7e97109bbdbb90a63bbcca57da93a7ee1aa03723ee3d2fffbbea937d7c1ec6e2ba9beb659ab232a9ae6acc42f1a646e0284c136
languageName: node
linkType: hard

Expand Down Expand Up @@ -4714,6 +4675,13 @@ fsevents@~2.3.2:
languageName: node
linkType: hard

"tr46@npm:~0.0.3":
version: 0.0.3
resolution: "tr46@npm:0.0.3"
checksum: 37bdfff7c5b5f8feeb0d06d3fda1d8474d8b08a9f0bf453fd339eb0dc13939ed5a2b24d29d9a308674d6a7267a3a4f3a95e91538b87d0e76c14d83c33899a29f
languageName: node
linkType: hard

"tree-kill@npm:^1.2.2":
version: 1.2.2
resolution: "tree-kill@npm:1.2.2"
Expand Down Expand Up @@ -4976,10 +4944,20 @@ typescript@^4.3.5:
languageName: node
linkType: hard

"web-streams-polyfill@npm:^3.0.3":
version: 3.2.0
resolution: "web-streams-polyfill@npm:3.2.0"
checksum: f9b77f282b573bd100edcb70a3bdd53ff5a7bf18a2b99c1951d35246cfb8195f5697f90571bf1d1f6e7a1b0c2dd0d9c39ab93f3ba59750a80eaa31b0439f43a5
"webidl-conversions@npm:^3.0.0":
version: 3.0.1
resolution: "webidl-conversions@npm:3.0.1"
checksum: 25ef547ff199f5a942f367f86c92b79bad77c27ad9baa51ed994de4ee91834d6246a120e24c4d6f2c6aba6b940238a5f6a0ed5f5ab0f24f6a863a2be75dd7644
languageName: node
linkType: hard

"whatwg-url@npm:^5.0.0":
version: 5.0.0
resolution: "whatwg-url@npm:5.0.0"
dependencies:
tr46: ~0.0.3
webidl-conversions: ^3.0.0
checksum: 55eca009f57013000f73721611e14cf7215bf2f19e9950b06f3214cfbd29f06eeea759748fa09016a05dca72a2213e49333ef4cbc911ba236a427a0b0060f415
languageName: node
linkType: hard

Expand Down

0 comments on commit 05aaaf1

Please sign in to comment.