mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-24 07:38:12 -05:00
fix: bump normalize-package-data to 7.0.1 (#9784)
* fix: bump `normalize-package-data` to 7.0.1 * fix: polyfill `URL.canParse` if not available * chore: update lockfile
This commit is contained in:
5
.changeset/tame-nights-try.md
Normal file
5
.changeset/tame-nights-try.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/read-package-json": patch
|
||||
---
|
||||
|
||||
Bump `normalize-package-data` to 7.0.1 to solve `url.parse` warning
|
||||
21
__patches__/normalize-package-data@7.0.1.patch
Normal file
21
__patches__/normalize-package-data@7.0.1.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff --git a/lib/fixer.js b/lib/fixer.js
|
||||
index 49b97f5e322e7acbd040806e04627cd1f1321915..c747f7cdea7afe2ac753514e3b37724a19e48cb4 100644
|
||||
--- a/lib/fixer.js
|
||||
+++ b/lib/fixer.js
|
||||
@@ -10,6 +10,16 @@ var typos = require('./typos.json')
|
||||
|
||||
var isEmail = str => str.includes('@') && (str.indexOf('@') < str.lastIndexOf('.'))
|
||||
|
||||
+// polyfill until support for node <18.17.0 is dropped
|
||||
+URL.canParse ??= (input, base) => {
|
||||
+ try {
|
||||
+ new URL(input, base);
|
||||
+ return true;
|
||||
+ } catch {
|
||||
+ return false;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
module.exports = {
|
||||
// default warning function
|
||||
warn: function () {},
|
||||
28
pnpm-lock.yaml
generated
28
pnpm-lock.yaml
generated
@@ -430,8 +430,8 @@ catalogs:
|
||||
specifier: 3.0.0
|
||||
version: 3.0.0
|
||||
normalize-package-data:
|
||||
specifier: ^5.0.0
|
||||
version: 5.0.0
|
||||
specifier: ^7.0.1
|
||||
version: 7.0.1
|
||||
normalize-path:
|
||||
specifier: ^3.0.0
|
||||
version: 3.0.0
|
||||
@@ -701,6 +701,9 @@ patchedDependencies:
|
||||
mdast-util-to-string@2.0.0:
|
||||
hash: 78bd3240806e30c963b9f930251eb10b9940e506f7cc8910fb3d17d7867956a2
|
||||
path: __patches__/mdast-util-to-string@2.0.0.patch
|
||||
normalize-package-data@7.0.1:
|
||||
hash: af60eac3676a4332c8fa7d590432a962fe77991523e608340cd80eb2a8a035db
|
||||
path: __patches__/normalize-package-data@7.0.1.patch
|
||||
|
||||
importers:
|
||||
|
||||
@@ -5977,7 +5980,7 @@ importers:
|
||||
version: 6.2.0
|
||||
normalize-package-data:
|
||||
specifier: 'catalog:'
|
||||
version: 5.0.0
|
||||
version: 7.0.1(patch_hash=af60eac3676a4332c8fa7d590432a962fe77991523e608340cd80eb2a8a035db)
|
||||
devDependencies:
|
||||
'@pnpm/read-package-json':
|
||||
specifier: workspace:*
|
||||
@@ -12388,6 +12391,10 @@ packages:
|
||||
resolution: {integrity: sha512-HVJyzUrLIL1c0QmviVh5E8VGyUS7xCFPS6yydaVd1UegW+ibV/CohqTH9MkOLDp5o+rb82DMo77PTuc9F/8GKw==}
|
||||
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
|
||||
|
||||
hosted-git-info@8.1.0:
|
||||
resolution: {integrity: sha512-Rw/B2DNQaPBICNXEm8balFz9a6WpZrkCGpcWFpy7nCj+NyhSdqXipmfvtmWt9xGfp0wZnBxB+iVpLmQMYt47Tw==}
|
||||
engines: {node: ^18.17.0 || >=20.5.0}
|
||||
|
||||
html-escaper@2.0.2:
|
||||
resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==}
|
||||
|
||||
@@ -13603,6 +13610,10 @@ packages:
|
||||
resolution: {integrity: sha512-h9iPVIfrVZ9wVYQnxFgtw1ugSvGEMOlyPWWtm8BMJhnwyEL/FLbYbTY3V3PpjI/BUK67n9PEWDu6eHzu1fB15Q==}
|
||||
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
|
||||
|
||||
normalize-package-data@7.0.1:
|
||||
resolution: {integrity: sha512-linxNAT6M0ebEYZOx2tO6vBEFsVgnPpv+AVjk0wJHfaUIbq31Jm3T6vvZaarnOeWDh8ShnwXuaAyM7WT3RzErA==}
|
||||
engines: {node: ^18.17.0 || >=20.5.0}
|
||||
|
||||
normalize-path@2.1.1:
|
||||
resolution: {integrity: sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
@@ -15238,6 +15249,7 @@ packages:
|
||||
verdaccio@5.20.1:
|
||||
resolution: {integrity: sha512-zKQXYubQOfl2w09gO9BR7U9ZZkFPPby8tvV+na86/2vGZnY79kNSVnSbK8CM1bpJHTCQ80AGsmIGovg2FgXhdQ==}
|
||||
engines: {node: '>=12.18'}
|
||||
deprecated: this version is deprecated, please migrate to 6.x versions
|
||||
hasBin: true
|
||||
|
||||
verror@1.10.0:
|
||||
@@ -20618,6 +20630,10 @@ snapshots:
|
||||
dependencies:
|
||||
lru-cache: 7.18.3
|
||||
|
||||
hosted-git-info@8.1.0:
|
||||
dependencies:
|
||||
lru-cache: 10.4.3
|
||||
|
||||
html-escaper@2.0.2: {}
|
||||
|
||||
http-cache-semantics@4.2.0: {}
|
||||
@@ -22037,6 +22053,12 @@ snapshots:
|
||||
semver: 7.7.2
|
||||
validate-npm-package-license: 3.0.4
|
||||
|
||||
normalize-package-data@7.0.1(patch_hash=af60eac3676a4332c8fa7d590432a962fe77991523e608340cd80eb2a8a035db):
|
||||
dependencies:
|
||||
hosted-git-info: 8.1.0
|
||||
semver: 7.7.2
|
||||
validate-npm-package-license: 3.0.4
|
||||
|
||||
normalize-path@2.1.1:
|
||||
dependencies:
|
||||
remove-trailing-separator: 1.1.0
|
||||
|
||||
@@ -189,7 +189,7 @@ catalog:
|
||||
node-fetch: npm:@pnpm/node-fetch@1.0.0
|
||||
node-gyp: ^11.0.0
|
||||
normalize-newline: 3.0.0
|
||||
normalize-package-data: ^5.0.0
|
||||
normalize-package-data: ^7.0.1
|
||||
normalize-path: ^3.0.0
|
||||
normalize-registry-url: 2.0.0
|
||||
npm-packlist: 5.1.3
|
||||
@@ -340,6 +340,7 @@ patchedDependencies:
|
||||
'@yao-pkg/pkg': __patches__/pkg.patch
|
||||
graceful-fs@4.2.11: __patches__/graceful-fs@4.2.11.patch
|
||||
mdast-util-to-string@2.0.0: __patches__/mdast-util-to-string@2.0.0.patch
|
||||
normalize-package-data@7.0.1: __patches__/normalize-package-data@7.0.1.patch
|
||||
|
||||
patchesDir: __patches__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user