From ebe2deffec474da1d460f037a496d38791dfdbae Mon Sep 17 00:00:00 2001 From: Taken Date: Thu, 26 Sep 2024 14:53:57 +0200 Subject: [PATCH] Added patches for deps using old punycode --- package.json | 8 +++++++- patches/tr46@0.0.3.patch | 15 +++++++++++++++ patches/whatwg-url@5.0.0.patch | 11 +++++++++++ pnpm-lock.yaml | 16 ++++++++++++---- 4 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 patches/tr46@0.0.3.patch create mode 100644 patches/whatwg-url@5.0.0.patch diff --git a/package.json b/package.json index 82efae1..2348f82 100644 --- a/package.json +++ b/package.json @@ -67,5 +67,11 @@ "tsx": "^4.19.1", "typescript": "^5.6.2" }, - "packageManager": "pnpm@9.11.0+sha256.1c0e33f70e5df9eede84a357bdfa0b1f9dba6e58194628d48a1055756f553754" + "packageManager": "pnpm@9.11.0+sha256.1c0e33f70e5df9eede84a357bdfa0b1f9dba6e58194628d48a1055756f553754", + "pnpm": { + "patchedDependencies": { + "whatwg-url@5.0.0": "patches/whatwg-url@5.0.0.patch", + "tr46@0.0.3": "patches/tr46@0.0.3.patch" + } + } } diff --git a/patches/tr46@0.0.3.patch b/patches/tr46@0.0.3.patch new file mode 100644 index 0000000..f5eaad2 --- /dev/null +++ b/patches/tr46@0.0.3.patch @@ -0,0 +1,15 @@ +diff --git a/.npmignore b/.npmignore +deleted file mode 100644 +index 96e9161fde31e9906718f689d5cc135e507a51e1..0000000000000000000000000000000000000000 +diff --git a/index.js b/index.js +index 9ce12ca2d026fa202f7a0d32e0a7c8526660ed78..7c3b5d7ff1624d2bfbb5b83f69a9b460e38dbeab 100644 +--- a/index.js ++++ b/index.js +@@ -1,6 +1,6 @@ + "use strict"; + +-var punycode = require("punycode"); ++var punycode = require("punycode/"); + var mappingTable = require("./lib/mappingTable.json"); + + var PROCESSING_OPTIONS = { diff --git a/patches/whatwg-url@5.0.0.patch b/patches/whatwg-url@5.0.0.patch new file mode 100644 index 0000000..c62ace6 --- /dev/null +++ b/patches/whatwg-url@5.0.0.patch @@ -0,0 +1,11 @@ +diff --git a/lib/url-state-machine.js b/lib/url-state-machine.js +index c25dbc2c486289fbd7446baed24dc6343f0226f6..e1681d27501013c5e6aa9b720b32338c177b692c 100644 +--- a/lib/url-state-machine.js ++++ b/lib/url-state-machine.js +@@ -1,5 +1,5 @@ + "use strict"; +-const punycode = require("punycode"); ++const punycode = require("punycode/"); + const tr46 = require("tr46"); + + const specialSchemes = { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1753b39..6d87e95 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,14 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +patchedDependencies: + tr46@0.0.3: + hash: bpj6gcw6zugqpvk6vn5cnxkdsq + path: patches/tr46@0.0.3.patch + whatwg-url@5.0.0: + hash: qm5bqxbojl4aucv5lfj4d2vjuu + path: patches/whatwg-url@5.0.0.patch + importers: .: @@ -3926,7 +3934,7 @@ snapshots: node-fetch@2.7.0(encoding@0.1.13): dependencies: - whatwg-url: 5.0.0 + whatwg-url: 5.0.0(patch_hash=qm5bqxbojl4aucv5lfj4d2vjuu) optionalDependencies: encoding: 0.1.13 @@ -4448,7 +4456,7 @@ snapshots: toposort-class@1.0.1: {} - tr46@0.0.3: {} + tr46@0.0.3(patch_hash=bpj6gcw6zugqpvk6vn5cnxkdsq): {} tr46@4.1.1: dependencies: @@ -4526,9 +4534,9 @@ snapshots: tr46: 4.1.1 webidl-conversions: 7.0.0 - whatwg-url@5.0.0: + whatwg-url@5.0.0(patch_hash=qm5bqxbojl4aucv5lfj4d2vjuu): dependencies: - tr46: 0.0.3 + tr46: 0.0.3(patch_hash=bpj6gcw6zugqpvk6vn5cnxkdsq) webidl-conversions: 3.0.1 which@1.3.1: