Skip to content

Commit

Permalink
fix node 16 fetch missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvatore Previti committed Feb 29, 2024
1 parent bacf4f9 commit d82f48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/node-pre-gyp-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async function startPublishAssets() {
auth: getGithubKey(),
headers: { "user-agent": packageJson.name },
request: {
fetch: fetch || require("node-fetch"),
fetch: typeof fetch !== "undefined" ? fetch : require("node-fetch"),
},
});

Expand Down

0 comments on commit d82f48e

Please sign in to comment.