@pnpm/exe 11.0.0-beta.2 → 11.0.0-beta.3

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 (79) hide show
  1. package/dist/node_modules/@gar/promise-retry/LICENSE +1 -0
  2. package/dist/node_modules/@gar/promise-retry/lib/index.js +43 -9
  3. package/dist/node_modules/@gar/promise-retry/lib/retry.js +109 -0
  4. package/dist/node_modules/@gar/promise-retry/package.json +1 -4
  5. package/dist/node_modules/@npmcli/redact/LICENSE +21 -0
  6. package/dist/node_modules/@npmcli/redact/lib/deep-map.js +71 -0
  7. package/dist/node_modules/@npmcli/redact/lib/error.js +28 -0
  8. package/dist/node_modules/@npmcli/redact/lib/index.js +44 -0
  9. package/dist/node_modules/@npmcli/redact/lib/matchers.js +88 -0
  10. package/dist/node_modules/@npmcli/redact/lib/server.js +59 -0
  11. package/dist/node_modules/@npmcli/redact/lib/utils.js +202 -0
  12. package/dist/node_modules/{unique-slug → @npmcli/redact}/package.json +21 -18
  13. package/dist/node_modules/brace-expansion/dist/commonjs/index.js +3 -1
  14. package/dist/node_modules/brace-expansion/dist/esm/index.js +3 -1
  15. package/dist/node_modules/brace-expansion/package.json +1 -1
  16. package/dist/node_modules/cacache/lib/content/write.js +2 -2
  17. package/dist/node_modules/cacache/lib/entry-index.js +2 -2
  18. package/dist/node_modules/cacache/lib/util/tmp.js +6 -0
  19. package/dist/node_modules/cacache/package.json +4 -5
  20. package/dist/node_modules/make-fetch-happen/lib/remote.js +4 -2
  21. package/dist/node_modules/make-fetch-happen/package.json +2 -1
  22. package/dist/node_modules/picomatch/lib/constants.js +4 -0
  23. package/dist/node_modules/picomatch/lib/parse.js +301 -0
  24. package/dist/node_modules/picomatch/lib/picomatch.js +11 -3
  25. package/dist/node_modules/picomatch/package.json +2 -3
  26. package/dist/node_modules/tar/dist/commonjs/create.js +3 -4
  27. package/dist/node_modules/tar/dist/commonjs/get-write-flag.js +7 -4
  28. package/dist/node_modules/tar/dist/commonjs/header.js +14 -27
  29. package/dist/node_modules/tar/dist/commonjs/index.min.js +3 -3
  30. package/dist/node_modules/tar/dist/commonjs/list.js +2 -7
  31. package/dist/node_modules/tar/dist/commonjs/make-command.js +3 -12
  32. package/dist/node_modules/tar/dist/commonjs/mkdir.js +5 -6
  33. package/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +1 -1
  34. package/dist/node_modules/tar/dist/commonjs/pack.js +3 -8
  35. package/dist/node_modules/tar/dist/commonjs/parse.js +12 -22
  36. package/dist/node_modules/tar/dist/commonjs/path-reservations.js +2 -2
  37. package/dist/node_modules/tar/dist/commonjs/read-entry.js +2 -6
  38. package/dist/node_modules/tar/dist/commonjs/replace.js +5 -10
  39. package/dist/node_modules/tar/dist/commonjs/unpack.js +38 -63
  40. package/dist/node_modules/tar/dist/commonjs/winchars.js +1 -1
  41. package/dist/node_modules/tar/dist/commonjs/write-entry.js +12 -13
  42. package/dist/node_modules/tar/dist/esm/create.js +3 -4
  43. package/dist/node_modules/tar/dist/esm/get-write-flag.js +7 -4
  44. package/dist/node_modules/tar/dist/esm/header.js +14 -27
  45. package/dist/node_modules/tar/dist/esm/index.min.js +3 -3
  46. package/dist/node_modules/tar/dist/esm/list.js +2 -7
  47. package/dist/node_modules/tar/dist/esm/make-command.js +3 -12
  48. package/dist/node_modules/tar/dist/esm/mkdir.js +5 -6
  49. package/dist/node_modules/tar/dist/esm/normalize-windows-path.js +1 -1
  50. package/dist/node_modules/tar/dist/esm/pack.js +4 -9
  51. package/dist/node_modules/tar/dist/esm/parse.js +13 -23
  52. package/dist/node_modules/tar/dist/esm/path-reservations.js +2 -2
  53. package/dist/node_modules/tar/dist/esm/read-entry.js +2 -6
  54. package/dist/node_modules/tar/dist/esm/replace.js +6 -11
  55. package/dist/node_modules/tar/dist/esm/unpack.js +38 -63
  56. package/dist/node_modules/tar/dist/esm/winchars.js +1 -1
  57. package/dist/node_modules/tar/dist/esm/write-entry.js +14 -15
  58. package/dist/node_modules/tar/package.json +9 -4
  59. package/dist/pnpm.mjs +7586 -6579
  60. package/dist/worker.js +140 -50
  61. package/package.json +12 -9
  62. package/pn +1 -0
  63. package/pnpx +1 -0
  64. package/pnx +1 -0
  65. package/prepare.js +12 -3
  66. package/setup.js +28 -1
  67. package/dist/node_modules/imurmurhash/imurmurhash.js +0 -138
  68. package/dist/node_modules/imurmurhash/imurmurhash.min.js +0 -12
  69. package/dist/node_modules/imurmurhash/package.json +0 -40
  70. package/dist/node_modules/retry/License +0 -21
  71. package/dist/node_modules/retry/index.js +0 -1
  72. package/dist/node_modules/retry/lib/retry.js +0 -100
  73. package/dist/node_modules/retry/lib/retry_operation.js +0 -162
  74. package/dist/node_modules/retry/package.json +0 -36
  75. package/dist/node_modules/unique-filename/LICENSE +0 -5
  76. package/dist/node_modules/unique-filename/lib/index.js +0 -7
  77. package/dist/node_modules/unique-filename/package.json +0 -53
  78. package/dist/node_modules/unique-slug/LICENSE +0 -15
  79. package/dist/node_modules/unique-slug/lib/index.js +0 -11
@@ -1,21 +0,0 @@
1
- Copyright (c) 2011:
2
- Tim Koschützki (tim@debuggable.com)
3
- Felix Geisendörfer (felix@debuggable.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1 +0,0 @@
1
- module.exports = require('./lib/retry');
@@ -1,100 +0,0 @@
1
- var RetryOperation = require('./retry_operation');
2
-
3
- exports.operation = function(options) {
4
- var timeouts = exports.timeouts(options);
5
- return new RetryOperation(timeouts, {
6
- forever: options && (options.forever || options.retries === Infinity),
7
- unref: options && options.unref,
8
- maxRetryTime: options && options.maxRetryTime
9
- });
10
- };
11
-
12
- exports.timeouts = function(options) {
13
- if (options instanceof Array) {
14
- return [].concat(options);
15
- }
16
-
17
- var opts = {
18
- retries: 10,
19
- factor: 2,
20
- minTimeout: 1 * 1000,
21
- maxTimeout: Infinity,
22
- randomize: false
23
- };
24
- for (var key in options) {
25
- opts[key] = options[key];
26
- }
27
-
28
- if (opts.minTimeout > opts.maxTimeout) {
29
- throw new Error('minTimeout is greater than maxTimeout');
30
- }
31
-
32
- var timeouts = [];
33
- for (var i = 0; i < opts.retries; i++) {
34
- timeouts.push(this.createTimeout(i, opts));
35
- }
36
-
37
- if (options && options.forever && !timeouts.length) {
38
- timeouts.push(this.createTimeout(i, opts));
39
- }
40
-
41
- // sort the array numerically ascending
42
- timeouts.sort(function(a,b) {
43
- return a - b;
44
- });
45
-
46
- return timeouts;
47
- };
48
-
49
- exports.createTimeout = function(attempt, opts) {
50
- var random = (opts.randomize)
51
- ? (Math.random() + 1)
52
- : 1;
53
-
54
- var timeout = Math.round(random * Math.max(opts.minTimeout, 1) * Math.pow(opts.factor, attempt));
55
- timeout = Math.min(timeout, opts.maxTimeout);
56
-
57
- return timeout;
58
- };
59
-
60
- exports.wrap = function(obj, options, methods) {
61
- if (options instanceof Array) {
62
- methods = options;
63
- options = null;
64
- }
65
-
66
- if (!methods) {
67
- methods = [];
68
- for (var key in obj) {
69
- if (typeof obj[key] === 'function') {
70
- methods.push(key);
71
- }
72
- }
73
- }
74
-
75
- for (var i = 0; i < methods.length; i++) {
76
- var method = methods[i];
77
- var original = obj[method];
78
-
79
- obj[method] = function retryWrapper(original) {
80
- var op = exports.operation(options);
81
- var args = Array.prototype.slice.call(arguments, 1);
82
- var callback = args.pop();
83
-
84
- args.push(function(err) {
85
- if (op.retry(err)) {
86
- return;
87
- }
88
- if (err) {
89
- arguments[0] = op.mainError();
90
- }
91
- callback.apply(this, arguments);
92
- });
93
-
94
- op.attempt(function() {
95
- original.apply(obj, args);
96
- });
97
- }.bind(obj, original);
98
- obj[method].options = options;
99
- }
100
- };
@@ -1,162 +0,0 @@
1
- function RetryOperation(timeouts, options) {
2
- // Compatibility for the old (timeouts, retryForever) signature
3
- if (typeof options === 'boolean') {
4
- options = { forever: options };
5
- }
6
-
7
- this._originalTimeouts = JSON.parse(JSON.stringify(timeouts));
8
- this._timeouts = timeouts;
9
- this._options = options || {};
10
- this._maxRetryTime = options && options.maxRetryTime || Infinity;
11
- this._fn = null;
12
- this._errors = [];
13
- this._attempts = 1;
14
- this._operationTimeout = null;
15
- this._operationTimeoutCb = null;
16
- this._timeout = null;
17
- this._operationStart = null;
18
- this._timer = null;
19
-
20
- if (this._options.forever) {
21
- this._cachedTimeouts = this._timeouts.slice(0);
22
- }
23
- }
24
- module.exports = RetryOperation;
25
-
26
- RetryOperation.prototype.reset = function() {
27
- this._attempts = 1;
28
- this._timeouts = this._originalTimeouts.slice(0);
29
- }
30
-
31
- RetryOperation.prototype.stop = function() {
32
- if (this._timeout) {
33
- clearTimeout(this._timeout);
34
- }
35
- if (this._timer) {
36
- clearTimeout(this._timer);
37
- }
38
-
39
- this._timeouts = [];
40
- this._cachedTimeouts = null;
41
- };
42
-
43
- RetryOperation.prototype.retry = function(err) {
44
- if (this._timeout) {
45
- clearTimeout(this._timeout);
46
- }
47
-
48
- if (!err) {
49
- return false;
50
- }
51
- var currentTime = new Date().getTime();
52
- if (err && currentTime - this._operationStart >= this._maxRetryTime) {
53
- this._errors.push(err);
54
- this._errors.unshift(new Error('RetryOperation timeout occurred'));
55
- return false;
56
- }
57
-
58
- this._errors.push(err);
59
-
60
- var timeout = this._timeouts.shift();
61
- if (timeout === undefined) {
62
- if (this._cachedTimeouts) {
63
- // retry forever, only keep last error
64
- this._errors.splice(0, this._errors.length - 1);
65
- timeout = this._cachedTimeouts.slice(-1);
66
- } else {
67
- return false;
68
- }
69
- }
70
-
71
- var self = this;
72
- this._timer = setTimeout(function() {
73
- self._attempts++;
74
-
75
- if (self._operationTimeoutCb) {
76
- self._timeout = setTimeout(function() {
77
- self._operationTimeoutCb(self._attempts);
78
- }, self._operationTimeout);
79
-
80
- if (self._options.unref) {
81
- self._timeout.unref();
82
- }
83
- }
84
-
85
- self._fn(self._attempts);
86
- }, timeout);
87
-
88
- if (this._options.unref) {
89
- this._timer.unref();
90
- }
91
-
92
- return true;
93
- };
94
-
95
- RetryOperation.prototype.attempt = function(fn, timeoutOps) {
96
- this._fn = fn;
97
-
98
- if (timeoutOps) {
99
- if (timeoutOps.timeout) {
100
- this._operationTimeout = timeoutOps.timeout;
101
- }
102
- if (timeoutOps.cb) {
103
- this._operationTimeoutCb = timeoutOps.cb;
104
- }
105
- }
106
-
107
- var self = this;
108
- if (this._operationTimeoutCb) {
109
- this._timeout = setTimeout(function() {
110
- self._operationTimeoutCb();
111
- }, self._operationTimeout);
112
- }
113
-
114
- this._operationStart = new Date().getTime();
115
-
116
- this._fn(this._attempts);
117
- };
118
-
119
- RetryOperation.prototype.try = function(fn) {
120
- console.log('Using RetryOperation.try() is deprecated');
121
- this.attempt(fn);
122
- };
123
-
124
- RetryOperation.prototype.start = function(fn) {
125
- console.log('Using RetryOperation.start() is deprecated');
126
- this.attempt(fn);
127
- };
128
-
129
- RetryOperation.prototype.start = RetryOperation.prototype.try;
130
-
131
- RetryOperation.prototype.errors = function() {
132
- return this._errors;
133
- };
134
-
135
- RetryOperation.prototype.attempts = function() {
136
- return this._attempts;
137
- };
138
-
139
- RetryOperation.prototype.mainError = function() {
140
- if (this._errors.length === 0) {
141
- return null;
142
- }
143
-
144
- var counts = {};
145
- var mainError = null;
146
- var mainErrorCount = 0;
147
-
148
- for (var i = 0; i < this._errors.length; i++) {
149
- var error = this._errors[i];
150
- var message = error.message;
151
- var count = (counts[message] || 0) + 1;
152
-
153
- counts[message] = count;
154
-
155
- if (count >= mainErrorCount) {
156
- mainError = error;
157
- mainErrorCount = count;
158
- }
159
- }
160
-
161
- return mainError;
162
- };
@@ -1,36 +0,0 @@
1
- {
2
- "author": "Tim Koschützki <tim@debuggable.com> (http://debuggable.com/)",
3
- "name": "retry",
4
- "description": "Abstraction for exponential and custom retry strategies for failed operations.",
5
- "license": "MIT",
6
- "version": "0.13.1",
7
- "homepage": "https://github.com/tim-kos/node-retry",
8
- "repository": {
9
- "type": "git",
10
- "url": "git://github.com/tim-kos/node-retry.git"
11
- },
12
- "files": [
13
- "lib",
14
- "example"
15
- ],
16
- "directories": {
17
- "lib": "./lib"
18
- },
19
- "main": "index.js",
20
- "engines": {
21
- "node": ">= 4"
22
- },
23
- "dependencies": {},
24
- "devDependencies": {
25
- "fake": "0.2.0",
26
- "istanbul": "^0.4.5",
27
- "tape": "^4.8.0"
28
- },
29
- "scripts": {
30
- "test": "./node_modules/.bin/istanbul cover ./node_modules/tape/bin/tape ./test/integration/*.js",
31
- "release:major": "env SEMANTIC=major npm run release",
32
- "release:minor": "env SEMANTIC=minor npm run release",
33
- "release:patch": "env SEMANTIC=patch npm run release",
34
- "release": "npm version ${SEMANTIC:-patch} -m \"Release %s\" && git push && git push --tags && npm publish"
35
- }
36
- }
@@ -1,5 +0,0 @@
1
- Copyright npm, Inc
2
-
3
- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
4
-
5
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -1,7 +0,0 @@
1
- var path = require('path')
2
-
3
- var uniqueSlug = require('unique-slug')
4
-
5
- module.exports = function (filepath, prefix, uniq) {
6
- return path.join(filepath, (prefix ? prefix + '-' : '') + uniqueSlug(uniq))
7
- }
@@ -1,53 +0,0 @@
1
- {
2
- "name": "unique-filename",
3
- "version": "5.0.0",
4
- "description": "Generate a unique filename for use in temporary directories or caches.",
5
- "main": "lib/index.js",
6
- "scripts": {
7
- "test": "tap",
8
- "lint": "npm run eslint",
9
- "postlint": "template-oss-check",
10
- "template-oss-apply": "template-oss-apply --force",
11
- "lintfix": "npm run eslint -- --fix",
12
- "snap": "tap",
13
- "posttest": "npm run lint",
14
- "eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "git+https://github.com/npm/unique-filename.git"
19
- },
20
- "keywords": [],
21
- "author": "GitHub Inc.",
22
- "license": "ISC",
23
- "bugs": {
24
- "url": "https://github.com/iarna/unique-filename/issues"
25
- },
26
- "homepage": "https://github.com/iarna/unique-filename",
27
- "devDependencies": {
28
- "@npmcli/eslint-config": "^5.0.0",
29
- "@npmcli/template-oss": "4.27.1",
30
- "tap": "^16.3.0"
31
- },
32
- "dependencies": {
33
- "unique-slug": "^6.0.0"
34
- },
35
- "files": [
36
- "bin/",
37
- "lib/"
38
- ],
39
- "engines": {
40
- "node": "^20.17.0 || >=22.9.0"
41
- },
42
- "templateOSS": {
43
- "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
44
- "version": "4.27.1",
45
- "publish": true
46
- },
47
- "tap": {
48
- "nyc-arg": [
49
- "--exclude",
50
- "tap-snapshots/**"
51
- ]
52
- }
53
- }
@@ -1,15 +0,0 @@
1
- The ISC License
2
-
3
- Copyright npm, Inc
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.
@@ -1,11 +0,0 @@
1
- 'use strict'
2
- var MurmurHash3 = require('imurmurhash')
3
-
4
- module.exports = function (uniq) {
5
- if (uniq) {
6
- var hash = new MurmurHash3(uniq)
7
- return ('00000000' + hash.result().toString(16)).slice(-8)
8
- } else {
9
- return (Math.random().toString(16) + '0000000').slice(2, 10)
10
- }
11
- }