Added patches for deps using old punycode

This commit is contained in:
2024-09-26 14:53:57 +02:00
parent aaaf7240e7
commit ebe2deffec
4 changed files with 45 additions and 5 deletions

View File

@@ -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"
}
}
}

15
patches/tr46@0.0.3.patch Normal file
View File

@@ -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 = {

View File

@@ -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 = {

16
pnpm-lock.yaml generated
View File

@@ -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: