Skip to content

Commit

Permalink
fix: add node-fetch v2 for script automation and keep node-fetch v3 (a…
Browse files Browse the repository at this point in the history
…syncapi#3038)

Co-authored-by: Ansh Goyal <[email protected]>%0ACo-authored-by: asyncapi-bot <[email protected]>
  • Loading branch information
jerensl and asyncapi-bot authored Jul 17, 2024
1 parent e4befc6 commit 62afd39
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"next": "14.1.1",
"next-mdx-remote": "^4.4.1",
"node-fetch": "^3.3.2",
"node-fetch-2": "npm:node-fetch@^2.7.0",
"postcss": "^8.4.35",
"prettier": "^3.3.0",
"react": "^18",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-newsroom-videos.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { writeFileSync } = require('fs');
const { resolve } = require('path');
const fetch = require('node-fetch')
const fetch = require('node-fetch-2')
async function buildNewsroomVideos() {

try {
Expand Down

0 comments on commit 62afd39

Please sign in to comment.