[packages/npm] Up to 11.17.0

arekm arekm at pld-linux.org
Wed Jun 17 19:41:46 CEST 2026


commit 1dbbf4f344a6b9a72c48b4141f088943c9545375
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Jun 17 19:41:16 2026 +0200

    Up to 11.17.0

 link-globalPaths.patch | 23 ++++++++++++-----------
 npm.spec               |  4 ++--
 2 files changed, 14 insertions(+), 13 deletions(-)
---
diff --git a/npm.spec b/npm.spec
index 0d0a816..b8046c3 100644
--- a/npm.spec
+++ b/npm.spec
@@ -9,12 +9,12 @@
 Summary:	A package manager for node.js
 Summary(pl.UTF-8):	Zarządca pakietów dla node.js
 Name:		npm
-Version:	11.13.0
+Version:	11.17.0
 Release:	1
 License:	Artistic v2.0
 Group:		Development/Tools
 Source0:	https://registry.npmjs.org/npm/-/%{name}-%{version}.tgz
-# Source0-md5:	80dcfe8e132bf36ab61e864482db3a53
+# Source0-md5:	1e56587d299cf81a1d695e0017e1af3e
 Patch0:		link-globalPaths.patch
 Patch1:		global-config-path.patch
 URL:		https://www.npmjs.com/
diff --git a/link-globalPaths.patch b/link-globalPaths.patch
index ef4021c..fdc4666 100644
--- a/link-globalPaths.patch
+++ b/link-globalPaths.patch
@@ -1,23 +1,25 @@
---- npm-10.9.3/lib/commands/link.js.orig	1985-10-26 09:15:00.000000000 +0100
-+++ npm-10.9.3/lib/commands/link.js	2025-07-10 12:55:55.539989772 +0200
-@@ -1,9 +1,10 @@
+--- npm-11.17.0/lib/commands/link.js.orig	1985-10-26 09:15:00.000000000 +0100
++++ npm-11.17.0/lib/commands/link.js	2026-06-17 12:00:00.000000000 +0200
+@@ -1,4 +1,4 @@
 -const { readdir } = require('node:fs/promises')
 +const { readdir, stat } = require('node:fs/promises')
  const { resolve } = require('node:path')
  const npa = require('npm-package-arg')
  const pkgJson = require('@npmcli/package-json')
- const semver = require('semver')
+@@ -6,6 +6,7 @@
  const reifyFinish = require('../utils/reify-finish.js')
+ const resolveAllowScripts = require('../utils/resolve-allow-scripts.js')
  const ArboristWorkspaceCmd = require('../arborist-cmd.js')
 +const globalPaths = require("module").globalPaths
  
  class Link extends ArboristWorkspaceCmd {
    static description = 'Symlink a package folder'
-@@ -79,9 +80,31 @@
+@@ -83,8 +84,30 @@
          !node.isRoot || args.some(a => npa(a).name === kid),
      })
  
-+    const missing = this.missingArgsFromTree(globals, args)
+-    // any extra arg that is missing from the current global space should be reified there first
+     const missing = this.missingArgsFromTree(globals, args)
 +    const names = []
 +    const globalArgs = [...args]
 +
@@ -40,12 +42,11 @@
 +      }
 +    }
 +
-     // any extra arg that is missing from the current global space should be reified there first
--    const missing = this.missingArgsFromTree(globals, args)
++    // any extra arg that is missing from the current global space should be reified there first
      if (missing.length) {
        await globalArb.reify({
          ...globalOpts,
-@@ -90,14 +113,13 @@
+@@ -93,14 +116,13 @@
      }
  
      // get a list of module names that should be linked in the local prefix
@@ -63,7 +64,7 @@
        }
      }
  
-@@ -124,7 +146,7 @@
+@@ -128,7 +150,7 @@
        ...this.npm.flatOptions,
        prune: false,
        path: this.npm.prefix,
@@ -71,4 +72,4 @@
 +      add: names.map(l => `file:${resolve(l.path, l.name)}`),
        save,
        workspaces: this.workspaceNames,
-     })
+       allowScripts: allowScriptsPolicy,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/npm.git/commitdiff/1dbbf4f344a6b9a72c48b4141f088943c9545375



More information about the pld-cvs-commit mailing list