diff --git a/.yarn/cache/data-uri-to-buffer-npm-3.0.1-830646f9ee-c59c300968.zip b/.yarn/cache/data-uri-to-buffer-npm-3.0.1-830646f9ee-c59c300968.zip deleted file mode 100644 index 7ce295f5..00000000 Binary files a/.yarn/cache/data-uri-to-buffer-npm-3.0.1-830646f9ee-c59c300968.zip and /dev/null differ diff --git a/.yarn/cache/fetch-blob-npm-3.1.2-6076d01b9c-3e3717cf30.zip b/.yarn/cache/fetch-blob-npm-3.1.2-6076d01b9c-3e3717cf30.zip deleted file mode 100644 index d3f1588d..00000000 Binary files a/.yarn/cache/fetch-blob-npm-3.1.2-6076d01b9c-3e3717cf30.zip and /dev/null differ diff --git a/.yarn/cache/node-fetch-npm-2.6.6-056db6b778-ee8290626b.zip b/.yarn/cache/node-fetch-npm-2.6.6-056db6b778-ee8290626b.zip new file mode 100644 index 00000000..946bc498 Binary files /dev/null and b/.yarn/cache/node-fetch-npm-2.6.6-056db6b778-ee8290626b.zip differ diff --git a/.yarn/cache/node-fetch-npm-3.0.0-6aa31e95cd-50224bf682.zip b/.yarn/cache/node-fetch-npm-3.0.0-6aa31e95cd-50224bf682.zip deleted file mode 100644 index 750acd3f..00000000 Binary files a/.yarn/cache/node-fetch-npm-3.0.0-6aa31e95cd-50224bf682.zip and /dev/null differ diff --git a/.yarn/cache/tr46-npm-0.0.3-de53018915-726321c5ea.zip b/.yarn/cache/tr46-npm-0.0.3-de53018915-726321c5ea.zip new file mode 100644 index 00000000..2e6949bc Binary files /dev/null and b/.yarn/cache/tr46-npm-0.0.3-de53018915-726321c5ea.zip differ diff --git a/.yarn/cache/web-streams-polyfill-npm-3.1.1-ba7b0e5b2d-dac85f0a99.zip b/.yarn/cache/web-streams-polyfill-npm-3.1.1-ba7b0e5b2d-dac85f0a99.zip deleted file mode 100644 index 895bfcfc..00000000 Binary files a/.yarn/cache/web-streams-polyfill-npm-3.1.1-ba7b0e5b2d-dac85f0a99.zip and /dev/null differ diff --git a/.yarn/cache/webidl-conversions-npm-3.0.1-60310f6a2b-c92a0a6ab9.zip b/.yarn/cache/webidl-conversions-npm-3.0.1-60310f6a2b-c92a0a6ab9.zip new file mode 100644 index 00000000..96867a65 Binary files /dev/null and b/.yarn/cache/webidl-conversions-npm-3.0.1-60310f6a2b-c92a0a6ab9.zip differ diff --git a/.yarn/cache/whatwg-url-npm-5.0.0-374fb45e60-b8daed4ad3.zip b/.yarn/cache/whatwg-url-npm-5.0.0-374fb45e60-b8daed4ad3.zip new file mode 100644 index 00000000..5deef333 Binary files /dev/null and b/.yarn/cache/whatwg-url-npm-5.0.0-374fb45e60-b8daed4ad3.zip differ diff --git a/packages/preview-proxy/package.json b/packages/preview-proxy/package.json index 852a0a8e..84b2d954 100644 --- a/packages/preview-proxy/package.json +++ b/packages/preview-proxy/package.json @@ -5,7 +5,7 @@ "license": "MIT", "type": "module", "dependencies": { - "node-fetch": "^3.0.0" + "node-fetch": "^2.6.0" }, "scripts": { "start": "yarn node src/index.js", diff --git a/packages/react-chat-example/webpack.config.js b/packages/react-chat-example/webpack.config.js index e4a4585b..7a439987 100644 --- a/packages/react-chat-example/webpack.config.js +++ b/packages/react-chat-example/webpack.config.js @@ -22,7 +22,7 @@ module.exports = env => { buffer: require.resolve('buffer/'), crypto: require.resolve('crypto-browserify'), stream: require.resolve('stream-browserify'), - assert: require.resolve('assert'), + assert: require.resolve('assert/'), http: require.resolve('stream-http'), https: require.resolve('https-browserify'), zlib: require.resolve('browserify-zlib') diff --git a/yarn.lock b/yarn.lock index b5f42b7d..c7c77882 100644 --- a/yarn.lock +++ b/yarn.lock @@ -213,7 +213,7 @@ __metadata: version: 0.0.0-use.local resolution: "@dappconnect/preview-proxy@workspace:packages/preview-proxy" dependencies: - node-fetch: ^3.0.0 + node-fetch: ^2.6.0 languageName: unknown linkType: soft @@ -3245,13 +3245,6 @@ __metadata: languageName: node linkType: hard -"data-uri-to-buffer@npm:^3.0.1": - version: 3.0.1 - resolution: "data-uri-to-buffer@npm:3.0.1" - checksum: c59c3009686a78c071806b72f4810856ec28222f0f4e252aa495ec027ed9732298ceea99c50328cf59b151dd34cbc3ad6150bbb43e41fc56fa19f48c99e9fc30 - languageName: node - linkType: hard - "data-urls@npm:^2.0.0": version: 2.0.0 resolution: "data-urls@npm:2.0.0" @@ -4588,15 +4581,6 @@ __metadata: languageName: node linkType: hard -"fetch-blob@npm:^3.1.2": - version: 3.1.2 - resolution: "fetch-blob@npm:3.1.2" - dependencies: - web-streams-polyfill: ^3.0.3 - checksum: 3e3717cf30da9f204aee83dded63f1a9f9c8bda7a0dc59648f89eeb1e88ee592231f4d922e1f119e1390383520768594dd3a1fe5e844f2f2f014d17ce04213a5 - languageName: node - linkType: hard - "file-entry-cache@npm:^6.0.1": version: 6.0.1 resolution: "file-entry-cache@npm:6.0.1" @@ -7979,13 +7963,12 @@ fsevents@~2.3.2: languageName: node linkType: hard -"node-fetch@npm:^3.0.0": - version: 3.0.0 - resolution: "node-fetch@npm:3.0.0" +"node-fetch@npm:^2.6.0": + version: 2.6.6 + resolution: "node-fetch@npm:2.6.6" dependencies: - data-uri-to-buffer: ^3.0.1 - fetch-blob: ^3.1.2 - checksum: 50224bf682a0bc3d44faee0f38df6269d8ae646de343595ef37f9d94b4322d3763a49819fb7b2df9330fcae16e0a20e5fb129dfed8725cf0e8f720277db7611c + whatwg-url: ^5.0.0 + checksum: ee8290626bdb73629c59722b75dcf4b9b6a67c1ed7eb9102e368479c4a13b56a48c2bb3ad71571e378e98c8b2c64c820e11f9cd39e4b8557dd138ad571ef9a42 languageName: node linkType: hard @@ -11219,6 +11202,13 @@ resolve@^2.0.0-next.3: languageName: node linkType: hard +"tr46@npm:~0.0.3": + version: 0.0.3 + resolution: "tr46@npm:0.0.3" + checksum: 726321c5eaf41b5002e17ffbd1fb7245999a073e8979085dacd47c4b4e8068ff5777142fc6726d6ca1fd2ff16921b48788b87225cbc57c72636f6efa8efbffe3 + languageName: node + linkType: hard + "truncate-utf8-bytes@npm:^1.0.0": version: 1.0.2 resolution: "truncate-utf8-bytes@npm:1.0.2" @@ -11799,10 +11789,10 @@ resolve@^2.0.0-next.3: languageName: node linkType: hard -"web-streams-polyfill@npm:^3.0.3": - version: 3.1.1 - resolution: "web-streams-polyfill@npm:3.1.1" - checksum: dac85f0a990fb1ddcd15e2eda8ce4696bc9bc567e34cfdaeb9e740e26417d8649a6f466468907f50fd6e09967c25e0cf1f296c30aef9650ab7b118d5f69fb176 +"webidl-conversions@npm:^3.0.0": + version: 3.0.1 + resolution: "webidl-conversions@npm:3.0.1" + checksum: c92a0a6ab95314bde9c32e1d0a6dfac83b578f8fa5f21e675bc2706ed6981bc26b7eb7e6a1fab158e5ce4adf9caa4a0aee49a52505d4d13c7be545f15021b17c languageName: node linkType: hard @@ -12025,6 +12015,16 @@ resolve@^2.0.0-next.3: 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: b8daed4ad3356cc4899048a15b2c143a9aed0dfae1f611ebd55073310c7b910f522ad75d727346ad64203d7e6c79ef25eafd465f4d12775ca44b90fa82ed9e2c + languageName: node + linkType: hard + "whatwg-url@npm:^8.0.0, whatwg-url@npm:^8.5.0": version: 8.7.0 resolution: "whatwg-url@npm:8.7.0"