pnpm 7.9.1 → 7.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +22 -7
  2. package/bin/pnpm.cjs +3 -0
  3. package/bin/pnpx.cjs +1 -15
  4. package/dist/node_modules/.modules.yaml +3 -3
  5. package/dist/node_modules/.pnpm/lock.yaml +76 -42
  6. package/dist/node_modules/@npmcli/fs/lib/common/owner-sync.js +96 -0
  7. package/dist/node_modules/@npmcli/fs/lib/common/owner.js +8 -4
  8. package/dist/node_modules/@npmcli/fs/lib/copy-file.js +3 -9
  9. package/dist/node_modules/@npmcli/fs/lib/fs.js +9 -3
  10. package/dist/node_modules/@npmcli/fs/lib/index.js +3 -1
  11. package/dist/node_modules/@npmcli/fs/lib/mkdir.js +19 -0
  12. package/dist/node_modules/@npmcli/fs/lib/mkdtemp.js +3 -8
  13. package/dist/node_modules/@npmcli/fs/lib/with-owner-sync.js +21 -0
  14. package/dist/node_modules/@npmcli/fs/lib/with-owner.js +21 -0
  15. package/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +4 -2
  16. package/dist/node_modules/@npmcli/fs/lib/write-file.js +3 -8
  17. package/dist/node_modules/@npmcli/fs/package.json +21 -9
  18. package/dist/node_modules/@npmcli/move-file/{index.js → lib/index.js} +50 -27
  19. package/dist/node_modules/@npmcli/move-file/package.json +20 -7
  20. package/dist/node_modules/@tootallnate/once/LICENSE +21 -0
  21. package/dist/node_modules/@tootallnate/once/dist/index.js +21 -36
  22. package/dist/node_modules/@tootallnate/once/dist/index.js.map +1 -1
  23. package/dist/node_modules/@tootallnate/once/dist/overloaded-parameters.js +3 -0
  24. package/dist/node_modules/@tootallnate/once/dist/overloaded-parameters.js.map +1 -0
  25. package/dist/node_modules/@tootallnate/once/dist/types.js +3 -0
  26. package/dist/node_modules/@tootallnate/once/dist/types.js.map +1 -0
  27. package/dist/node_modules/@tootallnate/once/package.json +22 -15
  28. package/dist/node_modules/cacache/lib/content/read.js +99 -102
  29. package/dist/node_modules/cacache/lib/content/rm.js +9 -8
  30. package/dist/node_modules/cacache/lib/content/write.js +67 -67
  31. package/dist/node_modules/cacache/lib/entry-index.js +128 -118
  32. package/dist/node_modules/cacache/{get.js → lib/get.js} +88 -100
  33. package/dist/node_modules/cacache/{index.js → lib/index.js} +5 -6
  34. package/dist/node_modules/cacache/lib/memoization.js +10 -11
  35. package/dist/node_modules/cacache/{put.js → lib/put.js} +23 -26
  36. package/dist/node_modules/cacache/{rm.js → lib/rm.js} +3 -3
  37. package/dist/node_modules/cacache/lib/util/fix-owner.js +41 -38
  38. package/dist/node_modules/cacache/lib/util/move-file.js +36 -47
  39. package/dist/node_modules/cacache/lib/util/tmp.js +5 -7
  40. package/dist/node_modules/cacache/lib/verify.js +160 -190
  41. package/dist/node_modules/cacache/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
  42. package/dist/node_modules/cacache/node_modules/brace-expansion/LICENSE +21 -0
  43. package/dist/node_modules/cacache/node_modules/brace-expansion/index.js +203 -0
  44. package/dist/node_modules/cacache/node_modules/brace-expansion/package.json +46 -0
  45. package/dist/node_modules/cacache/node_modules/glob/LICENSE +15 -0
  46. package/dist/node_modules/cacache/node_modules/glob/common.js +240 -0
  47. package/dist/node_modules/cacache/node_modules/glob/glob.js +790 -0
  48. package/dist/node_modules/cacache/node_modules/glob/package.json +55 -0
  49. package/dist/node_modules/cacache/node_modules/glob/sync.js +486 -0
  50. package/dist/node_modules/cacache/node_modules/minimatch/LICENSE +15 -0
  51. package/dist/node_modules/cacache/node_modules/minimatch/lib/path.js +4 -0
  52. package/dist/node_modules/cacache/node_modules/minimatch/minimatch.js +906 -0
  53. package/dist/node_modules/cacache/node_modules/minimatch/package.json +32 -0
  54. package/dist/node_modules/cacache/package.json +34 -30
  55. package/dist/node_modules/http-proxy-agent/dist/agent.js +3 -3
  56. package/dist/node_modules/http-proxy-agent/dist/agent.js.map +1 -1
  57. package/dist/node_modules/http-proxy-agent/package.json +4 -4
  58. package/dist/node_modules/lru-cache/LICENSE +1 -1
  59. package/dist/node_modules/lru-cache/index.js +921 -247
  60. package/dist/node_modules/lru-cache/package.json +49 -9
  61. package/dist/node_modules/make-fetch-happen/LICENSE +1 -1
  62. package/dist/node_modules/make-fetch-happen/lib/agent.js +34 -14
  63. package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +90 -106
  64. package/dist/node_modules/make-fetch-happen/lib/cache/errors.js +1 -0
  65. package/dist/node_modules/make-fetch-happen/lib/cache/index.js +10 -6
  66. package/dist/node_modules/make-fetch-happen/lib/cache/policy.js +21 -21
  67. package/dist/node_modules/make-fetch-happen/lib/dns.js +49 -0
  68. package/dist/node_modules/make-fetch-happen/lib/fetch.js +40 -22
  69. package/dist/node_modules/make-fetch-happen/lib/index.js +4 -3
  70. package/dist/node_modules/make-fetch-happen/lib/options.js +17 -9
  71. package/dist/node_modules/make-fetch-happen/lib/pipeline.js +41 -0
  72. package/dist/node_modules/make-fetch-happen/lib/remote.js +28 -9
  73. package/dist/node_modules/make-fetch-happen/package.json +36 -33
  74. package/dist/node_modules/minipass-fetch/lib/blob.js +4 -4
  75. package/dist/node_modules/minipass-fetch/lib/body.js +63 -49
  76. package/dist/node_modules/minipass-fetch/lib/fetch-error.js +2 -1
  77. package/dist/node_modules/minipass-fetch/lib/headers.js +38 -21
  78. package/dist/node_modules/minipass-fetch/lib/index.js +130 -106
  79. package/dist/node_modules/minipass-fetch/lib/request.js +46 -28
  80. package/dist/node_modules/minipass-fetch/lib/response.js +3 -2
  81. package/dist/node_modules/minipass-fetch/package.json +27 -14
  82. package/dist/node_modules/node-gyp/.github/workflows/release-please.yml +1 -1
  83. package/dist/node_modules/node-gyp/.github/workflows/tests.yml +16 -9
  84. package/dist/node_modules/node-gyp/.github/workflows/visual-studio.yml +16 -8
  85. package/dist/node_modules/node-gyp/lib/build.js +7 -0
  86. package/dist/node_modules/node-gyp/lib/configure.js +26 -1
  87. package/dist/node_modules/node-gyp/lib/create-config-gypi.js +2 -1
  88. package/dist/node_modules/node-gyp/lib/find-visualstudio.js +9 -8
  89. package/dist/node_modules/node-gyp/lib/node-gyp.js +4 -0
  90. package/dist/node_modules/node-gyp/package.json +4 -4
  91. package/dist/node_modules/semver/node_modules/lru-cache/LICENSE +15 -0
  92. package/dist/node_modules/semver/node_modules/lru-cache/index.js +334 -0
  93. package/dist/node_modules/semver/node_modules/lru-cache/package.json +34 -0
  94. package/dist/node_modules/socks-proxy-agent/dist/index.js +3 -3
  95. package/dist/node_modules/socks-proxy-agent/dist/index.js.map +1 -1
  96. package/dist/node_modules/socks-proxy-agent/package.json +2 -2
  97. package/dist/node_modules/ssri/{index.js → lib/index.js} +78 -24
  98. package/dist/node_modules/ssri/package.json +27 -16
  99. package/dist/pnpm.cjs +67042 -65886
  100. package/package.json +6 -6
  101. package/dist/node_modules/@npmcli/fs/lib/common/file-url-to-path/index.js +0 -17
  102. package/dist/node_modules/@npmcli/fs/lib/common/file-url-to-path/polyfill.js +0 -121
  103. package/dist/node_modules/@npmcli/fs/lib/mkdir/index.js +0 -32
  104. package/dist/node_modules/@npmcli/fs/lib/mkdir/polyfill.js +0 -81
  105. package/dist/node_modules/cacache/lib/util/disposer.js +0 -30
  106. package/dist/node_modules/cacache/ls.js +0 -6
  107. package/dist/node_modules/cacache/verify.js +0 -3
  108. package/dist/node_modules/minipass-fetch/index.js +0 -1
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "brace-expansion",
3
+ "description": "Brace expansion as known from sh/bash",
4
+ "version": "2.0.1",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git://github.com/juliangruber/brace-expansion.git"
8
+ },
9
+ "homepage": "https://github.com/juliangruber/brace-expansion",
10
+ "main": "index.js",
11
+ "scripts": {
12
+ "test": "tape test/*.js",
13
+ "gentest": "bash test/generate.sh",
14
+ "bench": "matcha test/perf/bench.js"
15
+ },
16
+ "dependencies": {
17
+ "balanced-match": "^1.0.0"
18
+ },
19
+ "devDependencies": {
20
+ "@c4312/matcha": "^1.3.1",
21
+ "tape": "^4.6.0"
22
+ },
23
+ "keywords": [],
24
+ "author": {
25
+ "name": "Julian Gruber",
26
+ "email": "mail@juliangruber.com",
27
+ "url": "http://juliangruber.com"
28
+ },
29
+ "license": "MIT",
30
+ "testling": {
31
+ "files": "test/*.js",
32
+ "browsers": [
33
+ "ie/8..latest",
34
+ "firefox/20..latest",
35
+ "firefox/nightly",
36
+ "chrome/25..latest",
37
+ "chrome/canary",
38
+ "opera/12..latest",
39
+ "opera/next",
40
+ "safari/5.1..latest",
41
+ "ipad/6.0..latest",
42
+ "iphone/6.0..latest",
43
+ "android-browser/4.2..latest"
44
+ ]
45
+ }
46
+ }
@@ -0,0 +1,15 @@
1
+ The ISC License
2
+
3
+ Copyright (c) 2009-2022 Isaac Z. Schlueter and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,240 @@
1
+ exports.setopts = setopts
2
+ exports.ownProp = ownProp
3
+ exports.makeAbs = makeAbs
4
+ exports.finish = finish
5
+ exports.mark = mark
6
+ exports.isIgnored = isIgnored
7
+ exports.childrenIgnored = childrenIgnored
8
+
9
+ function ownProp (obj, field) {
10
+ return Object.prototype.hasOwnProperty.call(obj, field)
11
+ }
12
+
13
+ var fs = require("fs")
14
+ var path = require("path")
15
+ var minimatch = require("minimatch")
16
+ var isAbsolute = require("path").isAbsolute
17
+ var Minimatch = minimatch.Minimatch
18
+
19
+ function alphasort (a, b) {
20
+ return a.localeCompare(b, 'en')
21
+ }
22
+
23
+ function setupIgnores (self, options) {
24
+ self.ignore = options.ignore || []
25
+
26
+ if (!Array.isArray(self.ignore))
27
+ self.ignore = [self.ignore]
28
+
29
+ if (self.ignore.length) {
30
+ self.ignore = self.ignore.map(ignoreMap)
31
+ }
32
+ }
33
+
34
+ // ignore patterns are always in dot:true mode.
35
+ function ignoreMap (pattern) {
36
+ var gmatcher = null
37
+ if (pattern.slice(-3) === '/**') {
38
+ var gpattern = pattern.replace(/(\/\*\*)+$/, '')
39
+ gmatcher = new Minimatch(gpattern, { dot: true })
40
+ }
41
+
42
+ return {
43
+ matcher: new Minimatch(pattern, { dot: true }),
44
+ gmatcher: gmatcher
45
+ }
46
+ }
47
+
48
+ function setopts (self, pattern, options) {
49
+ if (!options)
50
+ options = {}
51
+
52
+ // base-matching: just use globstar for that.
53
+ if (options.matchBase && -1 === pattern.indexOf("/")) {
54
+ if (options.noglobstar) {
55
+ throw new Error("base matching requires globstar")
56
+ }
57
+ pattern = "**/" + pattern
58
+ }
59
+
60
+ self.silent = !!options.silent
61
+ self.pattern = pattern
62
+ self.strict = options.strict !== false
63
+ self.realpath = !!options.realpath
64
+ self.realpathCache = options.realpathCache || Object.create(null)
65
+ self.follow = !!options.follow
66
+ self.dot = !!options.dot
67
+ self.mark = !!options.mark
68
+ self.nodir = !!options.nodir
69
+ if (self.nodir)
70
+ self.mark = true
71
+ self.sync = !!options.sync
72
+ self.nounique = !!options.nounique
73
+ self.nonull = !!options.nonull
74
+ self.nosort = !!options.nosort
75
+ self.nocase = !!options.nocase
76
+ self.stat = !!options.stat
77
+ self.noprocess = !!options.noprocess
78
+ self.absolute = !!options.absolute
79
+ self.fs = options.fs || fs
80
+
81
+ self.maxLength = options.maxLength || Infinity
82
+ self.cache = options.cache || Object.create(null)
83
+ self.statCache = options.statCache || Object.create(null)
84
+ self.symlinks = options.symlinks || Object.create(null)
85
+
86
+ setupIgnores(self, options)
87
+
88
+ self.changedCwd = false
89
+ var cwd = process.cwd()
90
+ if (!ownProp(options, "cwd"))
91
+ self.cwd = path.resolve(cwd)
92
+ else {
93
+ self.cwd = path.resolve(options.cwd)
94
+ self.changedCwd = self.cwd !== cwd
95
+ }
96
+
97
+ self.root = options.root || path.resolve(self.cwd, "/")
98
+ self.root = path.resolve(self.root)
99
+
100
+ // TODO: is an absolute `cwd` supposed to be resolved against `root`?
101
+ // e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test')
102
+ self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd)
103
+ self.nomount = !!options.nomount
104
+
105
+ if (process.platform === "win32") {
106
+ self.root = self.root.replace(/\\/g, "/")
107
+ self.cwd = self.cwd.replace(/\\/g, "/")
108
+ self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")
109
+ }
110
+
111
+ // disable comments and negation in Minimatch.
112
+ // Note that they are not supported in Glob itself anyway.
113
+ options.nonegate = true
114
+ options.nocomment = true
115
+ // always treat \ in patterns as escapes, not path separators
116
+ options.allowWindowsEscape = true
117
+
118
+ self.minimatch = new Minimatch(pattern, options)
119
+ self.options = self.minimatch.options
120
+ }
121
+
122
+ function finish (self) {
123
+ var nou = self.nounique
124
+ var all = nou ? [] : Object.create(null)
125
+
126
+ for (var i = 0, l = self.matches.length; i < l; i ++) {
127
+ var matches = self.matches[i]
128
+ if (!matches || Object.keys(matches).length === 0) {
129
+ if (self.nonull) {
130
+ // do like the shell, and spit out the literal glob
131
+ var literal = self.minimatch.globSet[i]
132
+ if (nou)
133
+ all.push(literal)
134
+ else
135
+ all[literal] = true
136
+ }
137
+ } else {
138
+ // had matches
139
+ var m = Object.keys(matches)
140
+ if (nou)
141
+ all.push.apply(all, m)
142
+ else
143
+ m.forEach(function (m) {
144
+ all[m] = true
145
+ })
146
+ }
147
+ }
148
+
149
+ if (!nou)
150
+ all = Object.keys(all)
151
+
152
+ if (!self.nosort)
153
+ all = all.sort(alphasort)
154
+
155
+ // at *some* point we statted all of these
156
+ if (self.mark) {
157
+ for (var i = 0; i < all.length; i++) {
158
+ all[i] = self._mark(all[i])
159
+ }
160
+ if (self.nodir) {
161
+ all = all.filter(function (e) {
162
+ var notDir = !(/\/$/.test(e))
163
+ var c = self.cache[e] || self.cache[makeAbs(self, e)]
164
+ if (notDir && c)
165
+ notDir = c !== 'DIR' && !Array.isArray(c)
166
+ return notDir
167
+ })
168
+ }
169
+ }
170
+
171
+ if (self.ignore.length)
172
+ all = all.filter(function(m) {
173
+ return !isIgnored(self, m)
174
+ })
175
+
176
+ self.found = all
177
+ }
178
+
179
+ function mark (self, p) {
180
+ var abs = makeAbs(self, p)
181
+ var c = self.cache[abs]
182
+ var m = p
183
+ if (c) {
184
+ var isDir = c === 'DIR' || Array.isArray(c)
185
+ var slash = p.slice(-1) === '/'
186
+
187
+ if (isDir && !slash)
188
+ m += '/'
189
+ else if (!isDir && slash)
190
+ m = m.slice(0, -1)
191
+
192
+ if (m !== p) {
193
+ var mabs = makeAbs(self, m)
194
+ self.statCache[mabs] = self.statCache[abs]
195
+ self.cache[mabs] = self.cache[abs]
196
+ }
197
+ }
198
+
199
+ return m
200
+ }
201
+
202
+ // lotta situps...
203
+ function makeAbs (self, f) {
204
+ var abs = f
205
+ if (f.charAt(0) === '/') {
206
+ abs = path.join(self.root, f)
207
+ } else if (isAbsolute(f) || f === '') {
208
+ abs = f
209
+ } else if (self.changedCwd) {
210
+ abs = path.resolve(self.cwd, f)
211
+ } else {
212
+ abs = path.resolve(f)
213
+ }
214
+
215
+ if (process.platform === 'win32')
216
+ abs = abs.replace(/\\/g, '/')
217
+
218
+ return abs
219
+ }
220
+
221
+
222
+ // Return true, if pattern ends with globstar '**', for the accompanying parent directory.
223
+ // Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents
224
+ function isIgnored (self, path) {
225
+ if (!self.ignore.length)
226
+ return false
227
+
228
+ return self.ignore.some(function(item) {
229
+ return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))
230
+ })
231
+ }
232
+
233
+ function childrenIgnored (self, path) {
234
+ if (!self.ignore.length)
235
+ return false
236
+
237
+ return self.ignore.some(function(item) {
238
+ return !!(item.gmatcher && item.gmatcher.match(path))
239
+ })
240
+ }