pnpm 6.22.1 → 6.23.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.
- package/dist/node_modules/ansi-regex/index.js +8 -2
- package/dist/node_modules/ansi-regex/license +4 -16
- package/dist/node_modules/ansi-regex/package.json +53 -62
- package/dist/node_modules/aproba/index.js +33 -33
- package/dist/node_modules/aproba/package.json +5 -4
- package/dist/node_modules/are-we-there-yet/{index.js → lib/index.js} +0 -0
- package/dist/node_modules/are-we-there-yet/{tracker-base.js → lib/tracker-base.js} +0 -0
- package/dist/node_modules/are-we-there-yet/{tracker-group.js → lib/tracker-group.js} +14 -5
- package/dist/node_modules/are-we-there-yet/{tracker-stream.js → lib/tracker-stream.js} +0 -0
- package/dist/node_modules/are-we-there-yet/{tracker.js → lib/tracker.js} +3 -1
- package/dist/node_modules/are-we-there-yet/package.json +35 -17
- package/dist/node_modules/{npmlog → color-support}/LICENSE +0 -0
- package/dist/node_modules/color-support/bin.js +3 -0
- package/dist/node_modules/color-support/browser.js +14 -0
- package/dist/node_modules/color-support/index.js +134 -0
- package/dist/node_modules/color-support/package.json +36 -0
- package/dist/node_modules/gauge/{base-theme.js → lib/base-theme.js} +7 -3
- package/dist/node_modules/gauge/lib/demo.js +45 -0
- package/dist/node_modules/gauge/{error.js → lib/error.js} +0 -0
- package/dist/node_modules/gauge/lib/has-color.js +4 -0
- package/dist/node_modules/gauge/{index.js → lib/index.js} +90 -33
- package/dist/node_modules/gauge/{plumbing.js → lib/plumbing.js} +3 -1
- package/dist/node_modules/gauge/{process.js → lib/process.js} +0 -0
- package/dist/node_modules/gauge/{progress-bar.js → lib/progress-bar.js} +12 -6
- package/dist/node_modules/gauge/{render-template.js → lib/render-template.js} +69 -28
- package/dist/node_modules/gauge/{set-immediate.js → lib/set-immediate.js} +0 -0
- package/dist/node_modules/gauge/{set-interval.js → lib/set-interval.js} +0 -0
- package/dist/node_modules/gauge/{spin.js → lib/spin.js} +0 -0
- package/dist/node_modules/gauge/{template-item.js → lib/template-item.js} +21 -7
- package/dist/node_modules/gauge/{theme-set.js → lib/theme-set.js} +31 -24
- package/dist/node_modules/gauge/lib/themes.js +56 -0
- package/dist/node_modules/gauge/{wide-truncate.js → lib/wide-truncate.js} +9 -3
- package/dist/node_modules/gauge/package.json +39 -40
- package/dist/node_modules/is-fullwidth-code-point/index.js +40 -36
- package/dist/node_modules/is-fullwidth-code-point/license +4 -16
- package/dist/node_modules/is-fullwidth-code-point/package.json +40 -43
- package/dist/node_modules/node-gyp/package.json +2 -2
- package/dist/node_modules/npmlog/{log.js → lib/log.js} +148 -54
- package/dist/node_modules/npmlog/package.json +30 -12
- package/dist/node_modules/readable-stream/errors-browser.js +127 -0
- package/dist/node_modules/readable-stream/errors.js +116 -0
- package/dist/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/dist/node_modules/readable-stream/lib/_stream_duplex.js +52 -44
- package/dist/node_modules/readable-stream/lib/_stream_passthrough.js +1 -9
- package/dist/node_modules/readable-stream/lib/_stream_readable.js +446 -341
- package/dist/node_modules/readable-stream/lib/_stream_transform.js +29 -42
- package/dist/node_modules/readable-stream/lib/_stream_writable.js +200 -190
- package/dist/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/destroy.js +48 -17
- package/dist/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
- package/dist/node_modules/readable-stream/package.json +35 -19
- package/dist/node_modules/readable-stream/readable-browser.js +2 -0
- package/dist/node_modules/readable-stream/readable.js +5 -8
- package/dist/node_modules/safe-buffer/index.js +3 -0
- package/dist/node_modules/safe-buffer/package.json +18 -4
- package/dist/node_modules/signal-exit/index.js +30 -8
- package/dist/node_modules/signal-exit/package.json +7 -5
- package/dist/node_modules/socks-proxy-agent/package.json +2 -2
- package/dist/node_modules/string-width/index.js +29 -19
- package/dist/node_modules/string-width/license +4 -16
- package/dist/node_modules/string-width/package.json +54 -54
- package/dist/node_modules/string_decoder/package.json +5 -2
- package/dist/node_modules/strip-ansi/index.js +2 -4
- package/dist/node_modules/strip-ansi/license +4 -16
- package/dist/node_modules/strip-ansi/package.json +52 -55
- package/dist/pnpm.cjs +746 -667
- package/package.json +18 -18
- package/dist/node_modules/are-we-there-yet/LICENSE +0 -5
- package/dist/node_modules/code-point-at/index.js +0 -32
- package/dist/node_modules/code-point-at/license +0 -21
- package/dist/node_modules/code-point-at/package.json +0 -38
- package/dist/node_modules/core-util-is/LICENSE +0 -19
- package/dist/node_modules/core-util-is/lib/util.js +0 -107
- package/dist/node_modules/core-util-is/package.json +0 -38
- package/dist/node_modules/gauge/LICENSE +0 -13
- package/dist/node_modules/gauge/has-color.js +0 -12
- package/dist/node_modules/gauge/themes.js +0 -54
- package/dist/node_modules/isarray/component.json +0 -19
- package/dist/node_modules/isarray/index.js +0 -5
- package/dist/node_modules/isarray/package.json +0 -45
- package/dist/node_modules/isarray/test.js +0 -20
- package/dist/node_modules/number-is-nan/index.js +0 -4
- package/dist/node_modules/number-is-nan/license +0 -21
- package/dist/node_modules/number-is-nan/package.json +0 -35
- package/dist/node_modules/object-assign/index.js +0 -90
- package/dist/node_modules/object-assign/license +0 -21
- package/dist/node_modules/object-assign/package.json +0 -42
- package/dist/node_modules/process-nextick-args/index.js +0 -45
- package/dist/node_modules/process-nextick-args/package.json +0 -25
- package/dist/node_modules/readable-stream/duplex-browser.js +0 -1
- package/dist/node_modules/readable-stream/duplex.js +0 -1
- package/dist/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
- package/dist/node_modules/readable-stream/passthrough.js +0 -1
- package/dist/node_modules/readable-stream/transform.js +0 -1
- package/dist/node_modules/readable-stream/writable-browser.js +0 -1
- package/dist/node_modules/readable-stream/writable.js +0 -8
- package/dist/node_modules/wide-align/node_modules/ansi-regex/index.js +0 -10
- package/dist/node_modules/wide-align/node_modules/ansi-regex/license +0 -9
- package/dist/node_modules/wide-align/node_modules/ansi-regex/package.json +0 -55
- package/dist/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/dist/node_modules/wide-align/node_modules/is-fullwidth-code-point/license +0 -9
- package/dist/node_modules/wide-align/node_modules/is-fullwidth-code-point/package.json +0 -42
- package/dist/node_modules/wide-align/node_modules/string-width/index.js +0 -47
- package/dist/node_modules/wide-align/node_modules/string-width/license +0 -9
- package/dist/node_modules/wide-align/node_modules/string-width/package.json +0 -56
- package/dist/node_modules/wide-align/node_modules/strip-ansi/index.js +0 -4
- package/dist/node_modules/wide-align/node_modules/strip-ansi/license +0 -9
- package/dist/node_modules/wide-align/node_modules/strip-ansi/package.json +0 -54
package/dist/pnpm.cjs
CHANGED
|
@@ -47,56 +47,56 @@ var require_polyfills = __commonJS({
|
|
|
47
47
|
}
|
|
48
48
|
var chdir;
|
|
49
49
|
module2.exports = patch;
|
|
50
|
-
function patch(
|
|
50
|
+
function patch(fs2) {
|
|
51
51
|
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
52
|
-
patchLchmod(
|
|
53
|
-
}
|
|
54
|
-
if (!
|
|
55
|
-
patchLutimes(
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if (!
|
|
76
|
-
|
|
52
|
+
patchLchmod(fs2);
|
|
53
|
+
}
|
|
54
|
+
if (!fs2.lutimes) {
|
|
55
|
+
patchLutimes(fs2);
|
|
56
|
+
}
|
|
57
|
+
fs2.chown = chownFix(fs2.chown);
|
|
58
|
+
fs2.fchown = chownFix(fs2.fchown);
|
|
59
|
+
fs2.lchown = chownFix(fs2.lchown);
|
|
60
|
+
fs2.chmod = chmodFix(fs2.chmod);
|
|
61
|
+
fs2.fchmod = chmodFix(fs2.fchmod);
|
|
62
|
+
fs2.lchmod = chmodFix(fs2.lchmod);
|
|
63
|
+
fs2.chownSync = chownFixSync(fs2.chownSync);
|
|
64
|
+
fs2.fchownSync = chownFixSync(fs2.fchownSync);
|
|
65
|
+
fs2.lchownSync = chownFixSync(fs2.lchownSync);
|
|
66
|
+
fs2.chmodSync = chmodFixSync(fs2.chmodSync);
|
|
67
|
+
fs2.fchmodSync = chmodFixSync(fs2.fchmodSync);
|
|
68
|
+
fs2.lchmodSync = chmodFixSync(fs2.lchmodSync);
|
|
69
|
+
fs2.stat = statFix(fs2.stat);
|
|
70
|
+
fs2.fstat = statFix(fs2.fstat);
|
|
71
|
+
fs2.lstat = statFix(fs2.lstat);
|
|
72
|
+
fs2.statSync = statFixSync(fs2.statSync);
|
|
73
|
+
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
74
|
+
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
75
|
+
if (!fs2.lchmod) {
|
|
76
|
+
fs2.lchmod = function(path, mode, cb) {
|
|
77
77
|
if (cb)
|
|
78
78
|
process.nextTick(cb);
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
fs2.lchmodSync = function() {
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
if (!
|
|
84
|
-
|
|
83
|
+
if (!fs2.lchown) {
|
|
84
|
+
fs2.lchown = function(path, uid, gid, cb) {
|
|
85
85
|
if (cb)
|
|
86
86
|
process.nextTick(cb);
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
fs2.lchownSync = function() {
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
if (platform === "win32") {
|
|
92
|
-
|
|
92
|
+
fs2.rename = function(fs$rename) {
|
|
93
93
|
return function(from, to, cb) {
|
|
94
94
|
var start = Date.now();
|
|
95
95
|
var backoff = 0;
|
|
96
96
|
fs$rename(from, to, function CB(er) {
|
|
97
97
|
if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
|
|
98
98
|
setTimeout(function() {
|
|
99
|
-
|
|
99
|
+
fs2.stat(to, function(stater, st) {
|
|
100
100
|
if (stater && stater.code === "ENOENT")
|
|
101
101
|
fs$rename(from, to, CB);
|
|
102
102
|
else
|
|
@@ -111,9 +111,9 @@ var require_polyfills = __commonJS({
|
|
|
111
111
|
cb(er);
|
|
112
112
|
});
|
|
113
113
|
};
|
|
114
|
-
}(
|
|
114
|
+
}(fs2.rename);
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
fs2.read = function(fs$read) {
|
|
117
117
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
118
118
|
var callback;
|
|
119
119
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -121,23 +121,23 @@ var require_polyfills = __commonJS({
|
|
|
121
121
|
callback = function(er, _, __) {
|
|
122
122
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
123
123
|
eagCounter++;
|
|
124
|
-
return fs$read.call(
|
|
124
|
+
return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
|
|
125
125
|
}
|
|
126
126
|
callback_.apply(this, arguments);
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
return fs$read.call(
|
|
129
|
+
return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
|
|
130
130
|
}
|
|
131
131
|
if (Object.setPrototypeOf)
|
|
132
132
|
Object.setPrototypeOf(read, fs$read);
|
|
133
133
|
return read;
|
|
134
|
-
}(
|
|
135
|
-
|
|
134
|
+
}(fs2.read);
|
|
135
|
+
fs2.readSync = function(fs$readSync) {
|
|
136
136
|
return function(fd, buffer, offset, length, position) {
|
|
137
137
|
var eagCounter = 0;
|
|
138
138
|
while (true) {
|
|
139
139
|
try {
|
|
140
|
-
return fs$readSync.call(
|
|
140
|
+
return fs$readSync.call(fs2, fd, buffer, offset, length, position);
|
|
141
141
|
} catch (er) {
|
|
142
142
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
143
143
|
eagCounter++;
|
|
@@ -147,85 +147,85 @@ var require_polyfills = __commonJS({
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
|
-
}(
|
|
151
|
-
function patchLchmod(
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
}(fs2.readSync);
|
|
151
|
+
function patchLchmod(fs3) {
|
|
152
|
+
fs3.lchmod = function(path, mode, callback) {
|
|
153
|
+
fs3.open(path, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
|
|
154
154
|
if (err) {
|
|
155
155
|
if (callback)
|
|
156
156
|
callback(err);
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
fs3.fchmod(fd, mode, function(err2) {
|
|
160
|
+
fs3.close(fd, function(err22) {
|
|
161
161
|
if (callback)
|
|
162
162
|
callback(err2 || err22);
|
|
163
163
|
});
|
|
164
164
|
});
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
|
-
|
|
168
|
-
var fd =
|
|
167
|
+
fs3.lchmodSync = function(path, mode) {
|
|
168
|
+
var fd = fs3.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
169
169
|
var threw = true;
|
|
170
170
|
var ret;
|
|
171
171
|
try {
|
|
172
|
-
ret =
|
|
172
|
+
ret = fs3.fchmodSync(fd, mode);
|
|
173
173
|
threw = false;
|
|
174
174
|
} finally {
|
|
175
175
|
if (threw) {
|
|
176
176
|
try {
|
|
177
|
-
|
|
177
|
+
fs3.closeSync(fd);
|
|
178
178
|
} catch (er) {
|
|
179
179
|
}
|
|
180
180
|
} else {
|
|
181
|
-
|
|
181
|
+
fs3.closeSync(fd);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
return ret;
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
function patchLutimes(
|
|
187
|
+
function patchLutimes(fs3) {
|
|
188
188
|
if (constants.hasOwnProperty("O_SYMLINK")) {
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
fs3.lutimes = function(path, at, mt, cb) {
|
|
190
|
+
fs3.open(path, constants.O_SYMLINK, function(er, fd) {
|
|
191
191
|
if (er) {
|
|
192
192
|
if (cb)
|
|
193
193
|
cb(er);
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
fs3.futimes(fd, at, mt, function(er2) {
|
|
197
|
+
fs3.close(fd, function(er22) {
|
|
198
198
|
if (cb)
|
|
199
199
|
cb(er2 || er22);
|
|
200
200
|
});
|
|
201
201
|
});
|
|
202
202
|
});
|
|
203
203
|
};
|
|
204
|
-
|
|
205
|
-
var fd =
|
|
204
|
+
fs3.lutimesSync = function(path, at, mt) {
|
|
205
|
+
var fd = fs3.openSync(path, constants.O_SYMLINK);
|
|
206
206
|
var ret;
|
|
207
207
|
var threw = true;
|
|
208
208
|
try {
|
|
209
|
-
ret =
|
|
209
|
+
ret = fs3.futimesSync(fd, at, mt);
|
|
210
210
|
threw = false;
|
|
211
211
|
} finally {
|
|
212
212
|
if (threw) {
|
|
213
213
|
try {
|
|
214
|
-
|
|
214
|
+
fs3.closeSync(fd);
|
|
215
215
|
} catch (er) {
|
|
216
216
|
}
|
|
217
217
|
} else {
|
|
218
|
-
|
|
218
|
+
fs3.closeSync(fd);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
return ret;
|
|
222
222
|
};
|
|
223
223
|
} else {
|
|
224
|
-
|
|
224
|
+
fs3.lutimes = function(_a, _b, _c, cb) {
|
|
225
225
|
if (cb)
|
|
226
226
|
process.nextTick(cb);
|
|
227
227
|
};
|
|
228
|
-
|
|
228
|
+
fs3.lutimesSync = function() {
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
231
|
}
|
|
@@ -233,7 +233,7 @@ var require_polyfills = __commonJS({
|
|
|
233
233
|
if (!orig)
|
|
234
234
|
return orig;
|
|
235
235
|
return function(target, mode, cb) {
|
|
236
|
-
return orig.call(
|
|
236
|
+
return orig.call(fs2, target, mode, function(er) {
|
|
237
237
|
if (chownErOk(er))
|
|
238
238
|
er = null;
|
|
239
239
|
if (cb)
|
|
@@ -246,7 +246,7 @@ var require_polyfills = __commonJS({
|
|
|
246
246
|
return orig;
|
|
247
247
|
return function(target, mode) {
|
|
248
248
|
try {
|
|
249
|
-
return orig.call(
|
|
249
|
+
return orig.call(fs2, target, mode);
|
|
250
250
|
} catch (er) {
|
|
251
251
|
if (!chownErOk(er))
|
|
252
252
|
throw er;
|
|
@@ -257,7 +257,7 @@ var require_polyfills = __commonJS({
|
|
|
257
257
|
if (!orig)
|
|
258
258
|
return orig;
|
|
259
259
|
return function(target, uid, gid, cb) {
|
|
260
|
-
return orig.call(
|
|
260
|
+
return orig.call(fs2, target, uid, gid, function(er) {
|
|
261
261
|
if (chownErOk(er))
|
|
262
262
|
er = null;
|
|
263
263
|
if (cb)
|
|
@@ -270,7 +270,7 @@ var require_polyfills = __commonJS({
|
|
|
270
270
|
return orig;
|
|
271
271
|
return function(target, uid, gid) {
|
|
272
272
|
try {
|
|
273
|
-
return orig.call(
|
|
273
|
+
return orig.call(fs2, target, uid, gid);
|
|
274
274
|
} catch (er) {
|
|
275
275
|
if (!chownErOk(er))
|
|
276
276
|
throw er;
|
|
@@ -295,14 +295,14 @@ var require_polyfills = __commonJS({
|
|
|
295
295
|
if (cb)
|
|
296
296
|
cb.apply(this, arguments);
|
|
297
297
|
}
|
|
298
|
-
return options ? orig.call(
|
|
298
|
+
return options ? orig.call(fs2, target, options, callback) : orig.call(fs2, target, callback);
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
function statFixSync(orig) {
|
|
302
302
|
if (!orig)
|
|
303
303
|
return orig;
|
|
304
304
|
return function(target, options) {
|
|
305
|
-
var stats = options ? orig.call(
|
|
305
|
+
var stats = options ? orig.call(fs2, target, options) : orig.call(fs2, target);
|
|
306
306
|
if (stats.uid < 0)
|
|
307
307
|
stats.uid += 4294967296;
|
|
308
308
|
if (stats.gid < 0)
|
|
@@ -331,7 +331,7 @@ var require_legacy_streams = __commonJS({
|
|
|
331
331
|
"../../node_modules/.pnpm/graceful-fs@4.2.8/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
|
|
332
332
|
var Stream = require("stream").Stream;
|
|
333
333
|
module2.exports = legacy;
|
|
334
|
-
function legacy(
|
|
334
|
+
function legacy(fs2) {
|
|
335
335
|
return {
|
|
336
336
|
ReadStream,
|
|
337
337
|
WriteStream
|
|
@@ -376,7 +376,7 @@ var require_legacy_streams = __commonJS({
|
|
|
376
376
|
});
|
|
377
377
|
return;
|
|
378
378
|
}
|
|
379
|
-
|
|
379
|
+
fs2.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
380
380
|
if (err) {
|
|
381
381
|
self2.emit("error", err);
|
|
382
382
|
self2.readable = false;
|
|
@@ -416,7 +416,7 @@ var require_legacy_streams = __commonJS({
|
|
|
416
416
|
this.busy = false;
|
|
417
417
|
this._queue = [];
|
|
418
418
|
if (this.fd === null) {
|
|
419
|
-
this._open =
|
|
419
|
+
this._open = fs2.open;
|
|
420
420
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
421
421
|
this.flush();
|
|
422
422
|
}
|
|
@@ -451,7 +451,7 @@ var require_clone = __commonJS({
|
|
|
451
451
|
// ../../node_modules/.pnpm/graceful-fs@4.2.8/node_modules/graceful-fs/graceful-fs.js
|
|
452
452
|
var require_graceful_fs = __commonJS({
|
|
453
453
|
"../../node_modules/.pnpm/graceful-fs@4.2.8/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
454
|
-
var
|
|
454
|
+
var fs2 = require("fs");
|
|
455
455
|
var polyfills = require_polyfills();
|
|
456
456
|
var legacy = require_legacy_streams();
|
|
457
457
|
var clone = require_clone();
|
|
@@ -483,12 +483,12 @@ var require_graceful_fs = __commonJS({
|
|
|
483
483
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
484
484
|
console.error(m);
|
|
485
485
|
};
|
|
486
|
-
if (!
|
|
486
|
+
if (!fs2[gracefulQueue]) {
|
|
487
487
|
queue = global[gracefulQueue] || [];
|
|
488
|
-
publishQueue(
|
|
489
|
-
|
|
488
|
+
publishQueue(fs2, queue);
|
|
489
|
+
fs2.close = function(fs$close) {
|
|
490
490
|
function close(fd, cb) {
|
|
491
|
-
return fs$close.call(
|
|
491
|
+
return fs$close.call(fs2, fd, function(err) {
|
|
492
492
|
if (!err) {
|
|
493
493
|
resetQueue();
|
|
494
494
|
}
|
|
@@ -500,40 +500,40 @@ var require_graceful_fs = __commonJS({
|
|
|
500
500
|
value: fs$close
|
|
501
501
|
});
|
|
502
502
|
return close;
|
|
503
|
-
}(
|
|
504
|
-
|
|
503
|
+
}(fs2.close);
|
|
504
|
+
fs2.closeSync = function(fs$closeSync) {
|
|
505
505
|
function closeSync(fd) {
|
|
506
|
-
fs$closeSync.apply(
|
|
506
|
+
fs$closeSync.apply(fs2, arguments);
|
|
507
507
|
resetQueue();
|
|
508
508
|
}
|
|
509
509
|
Object.defineProperty(closeSync, previousSymbol, {
|
|
510
510
|
value: fs$closeSync
|
|
511
511
|
});
|
|
512
512
|
return closeSync;
|
|
513
|
-
}(
|
|
513
|
+
}(fs2.closeSync);
|
|
514
514
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
515
515
|
process.on("exit", function() {
|
|
516
|
-
debug(
|
|
517
|
-
require("assert").equal(
|
|
516
|
+
debug(fs2[gracefulQueue]);
|
|
517
|
+
require("assert").equal(fs2[gracefulQueue].length, 0);
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
var queue;
|
|
522
522
|
if (!global[gracefulQueue]) {
|
|
523
|
-
publishQueue(global,
|
|
524
|
-
}
|
|
525
|
-
module2.exports = patch(clone(
|
|
526
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
527
|
-
module2.exports = patch(
|
|
528
|
-
|
|
529
|
-
}
|
|
530
|
-
function patch(
|
|
531
|
-
polyfills(
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
var fs$readFile =
|
|
536
|
-
|
|
523
|
+
publishQueue(global, fs2[gracefulQueue]);
|
|
524
|
+
}
|
|
525
|
+
module2.exports = patch(clone(fs2));
|
|
526
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs2.__patched) {
|
|
527
|
+
module2.exports = patch(fs2);
|
|
528
|
+
fs2.__patched = true;
|
|
529
|
+
}
|
|
530
|
+
function patch(fs3) {
|
|
531
|
+
polyfills(fs3);
|
|
532
|
+
fs3.gracefulify = patch;
|
|
533
|
+
fs3.createReadStream = createReadStream;
|
|
534
|
+
fs3.createWriteStream = createWriteStream;
|
|
535
|
+
var fs$readFile = fs3.readFile;
|
|
536
|
+
fs3.readFile = readFile;
|
|
537
537
|
function readFile(path, options, cb) {
|
|
538
538
|
if (typeof options === "function")
|
|
539
539
|
cb = options, options = null;
|
|
@@ -549,8 +549,8 @@ var require_graceful_fs = __commonJS({
|
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
var fs$writeFile =
|
|
553
|
-
|
|
552
|
+
var fs$writeFile = fs3.writeFile;
|
|
553
|
+
fs3.writeFile = writeFile;
|
|
554
554
|
function writeFile(path, data, options, cb) {
|
|
555
555
|
if (typeof options === "function")
|
|
556
556
|
cb = options, options = null;
|
|
@@ -566,9 +566,9 @@ var require_graceful_fs = __commonJS({
|
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
var fs$appendFile =
|
|
569
|
+
var fs$appendFile = fs3.appendFile;
|
|
570
570
|
if (fs$appendFile)
|
|
571
|
-
|
|
571
|
+
fs3.appendFile = appendFile;
|
|
572
572
|
function appendFile(path, data, options, cb) {
|
|
573
573
|
if (typeof options === "function")
|
|
574
574
|
cb = options, options = null;
|
|
@@ -584,9 +584,9 @@ var require_graceful_fs = __commonJS({
|
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
var fs$copyFile =
|
|
587
|
+
var fs$copyFile = fs3.copyFile;
|
|
588
588
|
if (fs$copyFile)
|
|
589
|
-
|
|
589
|
+
fs3.copyFile = copyFile;
|
|
590
590
|
function copyFile(src, dest, flags, cb) {
|
|
591
591
|
if (typeof flags === "function") {
|
|
592
592
|
cb = flags;
|
|
@@ -604,8 +604,8 @@ var require_graceful_fs = __commonJS({
|
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
var fs$readdir =
|
|
608
|
-
|
|
607
|
+
var fs$readdir = fs3.readdir;
|
|
608
|
+
fs3.readdir = readdir;
|
|
609
609
|
function readdir(path, options, cb) {
|
|
610
610
|
if (typeof options === "function")
|
|
611
611
|
cb = options, options = null;
|
|
@@ -624,21 +624,21 @@ var require_graceful_fs = __commonJS({
|
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
626
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
627
|
-
var legStreams = legacy(
|
|
627
|
+
var legStreams = legacy(fs3);
|
|
628
628
|
ReadStream = legStreams.ReadStream;
|
|
629
629
|
WriteStream = legStreams.WriteStream;
|
|
630
630
|
}
|
|
631
|
-
var fs$ReadStream =
|
|
631
|
+
var fs$ReadStream = fs3.ReadStream;
|
|
632
632
|
if (fs$ReadStream) {
|
|
633
633
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
634
634
|
ReadStream.prototype.open = ReadStream$open;
|
|
635
635
|
}
|
|
636
|
-
var fs$WriteStream =
|
|
636
|
+
var fs$WriteStream = fs3.WriteStream;
|
|
637
637
|
if (fs$WriteStream) {
|
|
638
638
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
639
639
|
WriteStream.prototype.open = WriteStream$open;
|
|
640
640
|
}
|
|
641
|
-
Object.defineProperty(
|
|
641
|
+
Object.defineProperty(fs3, "ReadStream", {
|
|
642
642
|
get: function() {
|
|
643
643
|
return ReadStream;
|
|
644
644
|
},
|
|
@@ -648,7 +648,7 @@ var require_graceful_fs = __commonJS({
|
|
|
648
648
|
enumerable: true,
|
|
649
649
|
configurable: true
|
|
650
650
|
});
|
|
651
|
-
Object.defineProperty(
|
|
651
|
+
Object.defineProperty(fs3, "WriteStream", {
|
|
652
652
|
get: function() {
|
|
653
653
|
return WriteStream;
|
|
654
654
|
},
|
|
@@ -659,7 +659,7 @@ var require_graceful_fs = __commonJS({
|
|
|
659
659
|
configurable: true
|
|
660
660
|
});
|
|
661
661
|
var FileReadStream = ReadStream;
|
|
662
|
-
Object.defineProperty(
|
|
662
|
+
Object.defineProperty(fs3, "FileReadStream", {
|
|
663
663
|
get: function() {
|
|
664
664
|
return FileReadStream;
|
|
665
665
|
},
|
|
@@ -670,7 +670,7 @@ var require_graceful_fs = __commonJS({
|
|
|
670
670
|
configurable: true
|
|
671
671
|
});
|
|
672
672
|
var FileWriteStream = WriteStream;
|
|
673
|
-
Object.defineProperty(
|
|
673
|
+
Object.defineProperty(fs3, "FileWriteStream", {
|
|
674
674
|
get: function() {
|
|
675
675
|
return FileWriteStream;
|
|
676
676
|
},
|
|
@@ -719,13 +719,13 @@ var require_graceful_fs = __commonJS({
|
|
|
719
719
|
});
|
|
720
720
|
}
|
|
721
721
|
function createReadStream(path, options) {
|
|
722
|
-
return new
|
|
722
|
+
return new fs3.ReadStream(path, options);
|
|
723
723
|
}
|
|
724
724
|
function createWriteStream(path, options) {
|
|
725
|
-
return new
|
|
725
|
+
return new fs3.WriteStream(path, options);
|
|
726
726
|
}
|
|
727
|
-
var fs$open =
|
|
728
|
-
|
|
727
|
+
var fs$open = fs3.open;
|
|
728
|
+
fs3.open = open;
|
|
729
729
|
function open(path, flags, mode, cb) {
|
|
730
730
|
if (typeof mode === "function")
|
|
731
731
|
cb = mode, mode = null;
|
|
@@ -741,20 +741,20 @@ var require_graceful_fs = __commonJS({
|
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
|
-
return
|
|
744
|
+
return fs3;
|
|
745
745
|
}
|
|
746
746
|
function enqueue(elem) {
|
|
747
747
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
748
|
-
|
|
748
|
+
fs2[gracefulQueue].push(elem);
|
|
749
749
|
retry();
|
|
750
750
|
}
|
|
751
751
|
var retryTimer;
|
|
752
752
|
function resetQueue() {
|
|
753
753
|
var now = Date.now();
|
|
754
|
-
for (var i = 0; i <
|
|
755
|
-
if (
|
|
756
|
-
|
|
757
|
-
|
|
754
|
+
for (var i = 0; i < fs2[gracefulQueue].length; ++i) {
|
|
755
|
+
if (fs2[gracefulQueue][i].length > 2) {
|
|
756
|
+
fs2[gracefulQueue][i][3] = now;
|
|
757
|
+
fs2[gracefulQueue][i][4] = now;
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
760
|
retry();
|
|
@@ -762,9 +762,9 @@ var require_graceful_fs = __commonJS({
|
|
|
762
762
|
function retry() {
|
|
763
763
|
clearTimeout(retryTimer);
|
|
764
764
|
retryTimer = void 0;
|
|
765
|
-
if (
|
|
765
|
+
if (fs2[gracefulQueue].length === 0)
|
|
766
766
|
return;
|
|
767
|
-
var elem =
|
|
767
|
+
var elem = fs2[gracefulQueue].shift();
|
|
768
768
|
var fn2 = elem[0];
|
|
769
769
|
var args2 = elem[1];
|
|
770
770
|
var err = elem[2];
|
|
@@ -786,7 +786,7 @@ var require_graceful_fs = __commonJS({
|
|
|
786
786
|
debug("RETRY", fn2.name, args2);
|
|
787
787
|
fn2.apply(null, args2.concat([startTime]));
|
|
788
788
|
} else {
|
|
789
|
-
|
|
789
|
+
fs2[gracefulQueue].push(elem);
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
if (retryTimer === void 0) {
|
|
@@ -1026,10 +1026,12 @@ var require_json_parse_even_better_errors = __commonJS({
|
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
1028
|
|
|
1029
|
-
// ../../node_modules/.pnpm/lines-and-columns@1.
|
|
1030
|
-
var
|
|
1031
|
-
"../../node_modules/.pnpm/lines-and-columns@1.
|
|
1029
|
+
// ../../node_modules/.pnpm/lines-and-columns@1.2.4/node_modules/lines-and-columns/build/index.js
|
|
1030
|
+
var require_build = __commonJS({
|
|
1031
|
+
"../../node_modules/.pnpm/lines-and-columns@1.2.4/node_modules/lines-and-columns/build/index.js"(exports2) {
|
|
1032
1032
|
"use strict";
|
|
1033
|
+
exports2.__esModule = true;
|
|
1034
|
+
exports2.LinesAndColumns = void 0;
|
|
1033
1035
|
var LF = "\n";
|
|
1034
1036
|
var CR = "\r";
|
|
1035
1037
|
var LinesAndColumns = function() {
|
|
@@ -1085,7 +1087,7 @@ var require_dist = __commonJS({
|
|
|
1085
1087
|
};
|
|
1086
1088
|
return LinesAndColumns2;
|
|
1087
1089
|
}();
|
|
1088
|
-
exports2.
|
|
1090
|
+
exports2.LinesAndColumns = LinesAndColumns;
|
|
1089
1091
|
exports2["default"] = LinesAndColumns;
|
|
1090
1092
|
}
|
|
1091
1093
|
});
|
|
@@ -3092,7 +3094,7 @@ var require_parse_json = __commonJS({
|
|
|
3092
3094
|
"use strict";
|
|
3093
3095
|
var errorEx = require_error_ex();
|
|
3094
3096
|
var fallback = require_json_parse_even_better_errors();
|
|
3095
|
-
var { default: LinesAndColumns } =
|
|
3097
|
+
var { default: LinesAndColumns } = require_build();
|
|
3096
3098
|
var { codeFrameColumns } = require_lib3();
|
|
3097
3099
|
var JSONError = errorEx("JSONError", {
|
|
3098
3100
|
fileName: errorEx.append("in %s"),
|
|
@@ -3138,7 +3140,7 @@ var require_load_json_file = __commonJS({
|
|
|
3138
3140
|
"use strict";
|
|
3139
3141
|
var path = require("path");
|
|
3140
3142
|
var { promisify } = require("util");
|
|
3141
|
-
var
|
|
3143
|
+
var fs2 = require_graceful_fs();
|
|
3142
3144
|
var stripBom = require_strip_bom();
|
|
3143
3145
|
var parseJson = require_parse_json();
|
|
3144
3146
|
var parse = (data, filePath, options = {}) => {
|
|
@@ -3148,8 +3150,8 @@ var require_load_json_file = __commonJS({
|
|
|
3148
3150
|
}
|
|
3149
3151
|
return parseJson(data, options.reviver, path.relative(process.cwd(), filePath));
|
|
3150
3152
|
};
|
|
3151
|
-
module2.exports = async (filePath, options) => parse(await promisify(
|
|
3152
|
-
module2.exports.sync = (filePath, options) => parse(
|
|
3153
|
+
module2.exports = async (filePath, options) => parse(await promisify(fs2.readFile)(filePath, "utf8"), filePath, options);
|
|
3154
|
+
module2.exports.sync = (filePath, options) => parse(fs2.readFileSync(filePath, "utf8"), filePath, options);
|
|
3153
3155
|
}
|
|
3154
3156
|
});
|
|
3155
3157
|
|
|
@@ -3165,7 +3167,7 @@ var require_lib4 = __commonJS({
|
|
|
3165
3167
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
3166
3168
|
var defaultManifest = {
|
|
3167
3169
|
name: "pnpm" != null && true ? "pnpm" : "pnpm",
|
|
3168
|
-
version: "6.
|
|
3170
|
+
version: "6.23.2" != null && true ? "6.23.2" : "0.0.0"
|
|
3169
3171
|
};
|
|
3170
3172
|
var pkgJson;
|
|
3171
3173
|
if (require.main == null) {
|
|
@@ -8316,13 +8318,13 @@ var require_src = __commonJS({
|
|
|
8316
8318
|
// ../../node_modules/.pnpm/@pnpm+tabtab@0.1.2/node_modules/@pnpm/tabtab/lib/utils/tabtabDebug.js
|
|
8317
8319
|
var require_tabtabDebug = __commonJS({
|
|
8318
8320
|
"../../node_modules/.pnpm/@pnpm+tabtab@0.1.2/node_modules/@pnpm/tabtab/lib/utils/tabtabDebug.js"(exports2, module2) {
|
|
8319
|
-
var
|
|
8321
|
+
var fs2 = require("fs");
|
|
8320
8322
|
var util = require("util");
|
|
8321
8323
|
var tabtabDebug = (name) => {
|
|
8322
8324
|
let debug = require_src()(name);
|
|
8323
8325
|
if (process.env.TABTAB_DEBUG) {
|
|
8324
8326
|
const file = process.env.TABTAB_DEBUG;
|
|
8325
|
-
const stream =
|
|
8327
|
+
const stream = fs2.createWriteStream(file, {
|
|
8326
8328
|
flags: "a+"
|
|
8327
8329
|
});
|
|
8328
8330
|
const log2 = (...args2) => {
|
|
@@ -8422,10 +8424,10 @@ var require_systemShell = __commonJS({
|
|
|
8422
8424
|
// ../../node_modules/.pnpm/@pnpm+tabtab@0.1.2/node_modules/@pnpm/tabtab/lib/utils/exists.js
|
|
8423
8425
|
var require_exists = __commonJS({
|
|
8424
8426
|
"../../node_modules/.pnpm/@pnpm+tabtab@0.1.2/node_modules/@pnpm/tabtab/lib/utils/exists.js"(exports2, module2) {
|
|
8425
|
-
var
|
|
8427
|
+
var fs2 = require("fs");
|
|
8426
8428
|
var untildify = require_untildify();
|
|
8427
8429
|
var { promisify } = require("util");
|
|
8428
|
-
var readFile = promisify(
|
|
8430
|
+
var readFile = promisify(fs2.readFile);
|
|
8429
8431
|
module2.exports = async (file) => {
|
|
8430
8432
|
let fileExists;
|
|
8431
8433
|
try {
|
|
@@ -8456,16 +8458,16 @@ var require_utils2 = __commonJS({
|
|
|
8456
8458
|
// ../../node_modules/.pnpm/@pnpm+tabtab@0.1.2/node_modules/@pnpm/tabtab/lib/installer.js
|
|
8457
8459
|
var require_installer = __commonJS({
|
|
8458
8460
|
"../../node_modules/.pnpm/@pnpm+tabtab@0.1.2/node_modules/@pnpm/tabtab/lib/installer.js"(exports2, module2) {
|
|
8459
|
-
var
|
|
8461
|
+
var fs2 = require("fs");
|
|
8460
8462
|
var path = require("path");
|
|
8461
8463
|
var untildify = require_untildify();
|
|
8462
8464
|
var { promisify } = require("util");
|
|
8463
8465
|
var { tabtabDebug, systemShell, exists } = require_utils2();
|
|
8464
8466
|
var debug = tabtabDebug("tabtab:installer");
|
|
8465
|
-
var readFile = promisify(
|
|
8466
|
-
var writeFile = promisify(
|
|
8467
|
-
var unlink = promisify(
|
|
8468
|
-
var mkdir = promisify(
|
|
8467
|
+
var readFile = promisify(fs2.readFile);
|
|
8468
|
+
var writeFile = promisify(fs2.writeFile);
|
|
8469
|
+
var unlink = promisify(fs2.unlink);
|
|
8470
|
+
var mkdir = promisify(fs2.mkdir);
|
|
8469
8471
|
var {
|
|
8470
8472
|
BASH_LOCATION,
|
|
8471
8473
|
FISH_LOCATION,
|
|
@@ -8524,7 +8526,7 @@ var require_installer = __commonJS({
|
|
|
8524
8526
|
const filepath = untildify(filename);
|
|
8525
8527
|
debug("Creating directory for %s file", filepath);
|
|
8526
8528
|
mkdir(path.dirname(filepath), { recursive: true }).then(() => {
|
|
8527
|
-
const stream =
|
|
8529
|
+
const stream = fs2.createWriteStream(filepath, { flags: "a" });
|
|
8528
8530
|
stream.on("error", reject);
|
|
8529
8531
|
stream.on("finish", () => resolve());
|
|
8530
8532
|
debug("Writing to shell configuration file (%s)", filename);
|
|
@@ -12444,9 +12446,9 @@ var require_err = __commonJS({
|
|
|
12444
12446
|
}
|
|
12445
12447
|
});
|
|
12446
12448
|
|
|
12447
|
-
// ../../node_modules/.pnpm/signal-exit@3.0.
|
|
12449
|
+
// ../../node_modules/.pnpm/signal-exit@3.0.6/node_modules/signal-exit/signals.js
|
|
12448
12450
|
var require_signals = __commonJS({
|
|
12449
|
-
"../../node_modules/.pnpm/signal-exit@3.0.
|
|
12451
|
+
"../../node_modules/.pnpm/signal-exit@3.0.6/node_modules/signal-exit/signals.js"(exports2, module2) {
|
|
12450
12452
|
module2.exports = [
|
|
12451
12453
|
"SIGABRT",
|
|
12452
12454
|
"SIGALRM",
|
|
@@ -12463,11 +12465,14 @@ var require_signals = __commonJS({
|
|
|
12463
12465
|
}
|
|
12464
12466
|
});
|
|
12465
12467
|
|
|
12466
|
-
// ../../node_modules/.pnpm/signal-exit@3.0.
|
|
12468
|
+
// ../../node_modules/.pnpm/signal-exit@3.0.6/node_modules/signal-exit/index.js
|
|
12467
12469
|
var require_signal_exit = __commonJS({
|
|
12468
|
-
"../../node_modules/.pnpm/signal-exit@3.0.
|
|
12470
|
+
"../../node_modules/.pnpm/signal-exit@3.0.6/node_modules/signal-exit/index.js"(exports2, module2) {
|
|
12469
12471
|
var process2 = global.process;
|
|
12470
|
-
|
|
12472
|
+
var processOk = function(process3) {
|
|
12473
|
+
return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
|
|
12474
|
+
};
|
|
12475
|
+
if (!processOk(process2)) {
|
|
12471
12476
|
module2.exports = function() {
|
|
12472
12477
|
};
|
|
12473
12478
|
} else {
|
|
@@ -12490,7 +12495,7 @@ var require_signal_exit = __commonJS({
|
|
|
12490
12495
|
emitter.infinite = true;
|
|
12491
12496
|
}
|
|
12492
12497
|
module2.exports = function(cb, opts) {
|
|
12493
|
-
if (global.process
|
|
12498
|
+
if (!processOk(global.process)) {
|
|
12494
12499
|
return;
|
|
12495
12500
|
}
|
|
12496
12501
|
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
@@ -12511,7 +12516,7 @@ var require_signal_exit = __commonJS({
|
|
|
12511
12516
|
return remove;
|
|
12512
12517
|
};
|
|
12513
12518
|
unload = function unload2() {
|
|
12514
|
-
if (!loaded || global.process
|
|
12519
|
+
if (!loaded || !processOk(global.process)) {
|
|
12515
12520
|
return;
|
|
12516
12521
|
}
|
|
12517
12522
|
loaded = false;
|
|
@@ -12536,7 +12541,7 @@ var require_signal_exit = __commonJS({
|
|
|
12536
12541
|
sigListeners = {};
|
|
12537
12542
|
signals.forEach(function(sig) {
|
|
12538
12543
|
sigListeners[sig] = function listener() {
|
|
12539
|
-
if (
|
|
12544
|
+
if (!processOk(global.process)) {
|
|
12540
12545
|
return;
|
|
12541
12546
|
}
|
|
12542
12547
|
var listeners = process2.listeners(sig);
|
|
@@ -12556,7 +12561,7 @@ var require_signal_exit = __commonJS({
|
|
|
12556
12561
|
};
|
|
12557
12562
|
loaded = false;
|
|
12558
12563
|
load = function load2() {
|
|
12559
|
-
if (loaded ||
|
|
12564
|
+
if (loaded || !processOk(global.process)) {
|
|
12560
12565
|
return;
|
|
12561
12566
|
}
|
|
12562
12567
|
loaded = true;
|
|
@@ -12575,7 +12580,7 @@ var require_signal_exit = __commonJS({
|
|
|
12575
12580
|
module2.exports.load = load;
|
|
12576
12581
|
originalProcessReallyExit = process2.reallyExit;
|
|
12577
12582
|
processReallyExit = function processReallyExit2(code) {
|
|
12578
|
-
if (
|
|
12583
|
+
if (!processOk(global.process)) {
|
|
12579
12584
|
return;
|
|
12580
12585
|
}
|
|
12581
12586
|
process2.exitCode = code || 0;
|
|
@@ -12585,7 +12590,7 @@ var require_signal_exit = __commonJS({
|
|
|
12585
12590
|
};
|
|
12586
12591
|
originalProcessEmit = process2.emit;
|
|
12587
12592
|
processEmit = function processEmit2(ev, arg) {
|
|
12588
|
-
if (ev === "exit" &&
|
|
12593
|
+
if (ev === "exit" && processOk(global.process)) {
|
|
12589
12594
|
if (arg !== void 0) {
|
|
12590
12595
|
process2.exitCode = arg;
|
|
12591
12596
|
}
|
|
@@ -12820,11 +12825,11 @@ var require_can_write_to_dir = __commonJS({
|
|
|
12820
12825
|
var defaultFS = require("fs");
|
|
12821
12826
|
var pathTemp = require_path_temp();
|
|
12822
12827
|
module2.exports = async (dir, customFS) => {
|
|
12823
|
-
const
|
|
12828
|
+
const fs2 = customFS || defaultFS;
|
|
12824
12829
|
const tempFile = pathTemp(dir);
|
|
12825
12830
|
try {
|
|
12826
|
-
await
|
|
12827
|
-
|
|
12831
|
+
await fs2.promises.writeFile(tempFile, "", "utf8");
|
|
12832
|
+
fs2.promises.unlink(tempFile).catch(() => {
|
|
12828
12833
|
});
|
|
12829
12834
|
return true;
|
|
12830
12835
|
} catch (err) {
|
|
@@ -12835,11 +12840,11 @@ var require_can_write_to_dir = __commonJS({
|
|
|
12835
12840
|
}
|
|
12836
12841
|
};
|
|
12837
12842
|
module2.exports.sync = (dir, customFS) => {
|
|
12838
|
-
const
|
|
12843
|
+
const fs2 = customFS || defaultFS;
|
|
12839
12844
|
const tempFile = pathTemp(dir);
|
|
12840
12845
|
try {
|
|
12841
|
-
|
|
12842
|
-
|
|
12846
|
+
fs2.writeFileSync(tempFile, "", "utf8");
|
|
12847
|
+
fs2.unlinkSync(tempFile);
|
|
12843
12848
|
return true;
|
|
12844
12849
|
} catch (err) {
|
|
12845
12850
|
if (err.code === "EACCES" || err.code === "EPERM" || err.code === "EROFS") {
|
|
@@ -15066,23 +15071,31 @@ var require_lib11 = __commonJS({
|
|
|
15066
15071
|
}
|
|
15067
15072
|
});
|
|
15068
15073
|
|
|
15069
|
-
// ../../node_modules/.pnpm/camelcase@6.2.
|
|
15074
|
+
// ../../node_modules/.pnpm/camelcase@6.2.1/node_modules/camelcase/index.js
|
|
15070
15075
|
var require_camelcase = __commonJS({
|
|
15071
|
-
"../../node_modules/.pnpm/camelcase@6.2.
|
|
15072
|
-
"use strict";
|
|
15076
|
+
"../../node_modules/.pnpm/camelcase@6.2.1/node_modules/camelcase/index.js"(exports2, module2) {
|
|
15077
|
+
"use strict";
|
|
15078
|
+
var UPPERCASE = /[\p{Lu}]/u;
|
|
15079
|
+
var LOWERCASE = /[\p{Ll}]/u;
|
|
15080
|
+
var LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
|
|
15081
|
+
var IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u;
|
|
15082
|
+
var SEPARATORS = /[_.\- ]+/;
|
|
15083
|
+
var LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source);
|
|
15084
|
+
var SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
|
|
15085
|
+
var NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
|
|
15073
15086
|
var preserveCamelCase = (string, locale) => {
|
|
15074
15087
|
let isLastCharLower = false;
|
|
15075
15088
|
let isLastCharUpper = false;
|
|
15076
15089
|
let isLastLastCharUpper = false;
|
|
15077
15090
|
for (let i = 0; i < string.length; i++) {
|
|
15078
15091
|
const character = string[i];
|
|
15079
|
-
if (isLastCharLower &&
|
|
15092
|
+
if (isLastCharLower && UPPERCASE.test(character)) {
|
|
15080
15093
|
string = string.slice(0, i) + "-" + string.slice(i);
|
|
15081
15094
|
isLastCharLower = false;
|
|
15082
15095
|
isLastLastCharUpper = isLastCharUpper;
|
|
15083
15096
|
isLastCharUpper = true;
|
|
15084
15097
|
i++;
|
|
15085
|
-
} else if (isLastCharUpper && isLastLastCharUpper &&
|
|
15098
|
+
} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) {
|
|
15086
15099
|
string = string.slice(0, i - 1) + "-" + string.slice(i - 1);
|
|
15087
15100
|
isLastLastCharUpper = isLastCharUpper;
|
|
15088
15101
|
isLastCharUpper = false;
|
|
@@ -15096,10 +15109,13 @@ var require_camelcase = __commonJS({
|
|
|
15096
15109
|
return string;
|
|
15097
15110
|
};
|
|
15098
15111
|
var preserveConsecutiveUppercase = (input) => {
|
|
15099
|
-
|
|
15112
|
+
LEADING_CAPITAL.lastIndex = 0;
|
|
15113
|
+
return input.replace(LEADING_CAPITAL, (m1) => m1.toLowerCase());
|
|
15100
15114
|
};
|
|
15101
15115
|
var postProcess = (input, options) => {
|
|
15102
|
-
|
|
15116
|
+
SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
|
|
15117
|
+
NUMBERS_AND_IDENTIFIER.lastIndex = 0;
|
|
15118
|
+
return input.replace(SEPARATORS_AND_IDENTIFIER, (_, identifier) => identifier.toLocaleUpperCase(options.locale)).replace(NUMBERS_AND_IDENTIFIER, (m) => m.toLocaleUpperCase(options.locale));
|
|
15103
15119
|
};
|
|
15104
15120
|
var camelCase = (input, options) => {
|
|
15105
15121
|
if (!(typeof input === "string" || Array.isArray(input))) {
|
|
@@ -15125,7 +15141,7 @@ var require_camelcase = __commonJS({
|
|
|
15125
15141
|
if (hasUpperCase) {
|
|
15126
15142
|
input = preserveCamelCase(input, options.locale);
|
|
15127
15143
|
}
|
|
15128
|
-
input = input.replace(
|
|
15144
|
+
input = input.replace(LEADING_SEPARATORS, "");
|
|
15129
15145
|
if (options.preserveConsecutiveUppercase) {
|
|
15130
15146
|
input = preserveConsecutiveUppercase(input);
|
|
15131
15147
|
} else {
|
|
@@ -15408,7 +15424,7 @@ var require_config_chain = __commonJS({
|
|
|
15408
15424
|
"../../node_modules/.pnpm/config-chain@1.1.13/node_modules/config-chain/index.js"(exports2, module2) {
|
|
15409
15425
|
var ProtoList = require_proto_list();
|
|
15410
15426
|
var path = require("path");
|
|
15411
|
-
var
|
|
15427
|
+
var fs2 = require("fs");
|
|
15412
15428
|
var ini = require_ini();
|
|
15413
15429
|
var EE = require("events").EventEmitter;
|
|
15414
15430
|
var url = require("url");
|
|
@@ -15427,7 +15443,7 @@ var require_config_chain = __commonJS({
|
|
|
15427
15443
|
function find2(start, rel2) {
|
|
15428
15444
|
var file = path.join(start, rel2);
|
|
15429
15445
|
try {
|
|
15430
|
-
|
|
15446
|
+
fs2.statSync(file);
|
|
15431
15447
|
return file;
|
|
15432
15448
|
} catch (err) {
|
|
15433
15449
|
if (path.dirname(start) !== start)
|
|
@@ -15465,7 +15481,7 @@ var require_config_chain = __commonJS({
|
|
|
15465
15481
|
var file = path.join.apply(null, args2);
|
|
15466
15482
|
var content;
|
|
15467
15483
|
try {
|
|
15468
|
-
content =
|
|
15484
|
+
content = fs2.readFileSync(file, "utf-8");
|
|
15469
15485
|
} catch (err) {
|
|
15470
15486
|
return;
|
|
15471
15487
|
}
|
|
@@ -15561,7 +15577,7 @@ var require_config_chain = __commonJS({
|
|
|
15561
15577
|
data = ini.stringify(data);
|
|
15562
15578
|
}
|
|
15563
15579
|
this._saving++;
|
|
15564
|
-
|
|
15580
|
+
fs2.writeFile(target.path, data, "utf8", function(er) {
|
|
15565
15581
|
this._saving--;
|
|
15566
15582
|
if (er) {
|
|
15567
15583
|
if (cb)
|
|
@@ -15583,7 +15599,7 @@ var require_config_chain = __commonJS({
|
|
|
15583
15599
|
this.sources[name] = { path: file, type };
|
|
15584
15600
|
this.push(marker);
|
|
15585
15601
|
this._await();
|
|
15586
|
-
|
|
15602
|
+
fs2.readFile(file, "utf8", function(er, data) {
|
|
15587
15603
|
if (er)
|
|
15588
15604
|
this.emit("error", er);
|
|
15589
15605
|
this.addString(data, file, type, marker);
|
|
@@ -15684,7 +15700,7 @@ var require_envKeyToSetting = __commonJS({
|
|
|
15684
15700
|
var require_util2 = __commonJS({
|
|
15685
15701
|
"../../node_modules/.pnpm/@zkochan+npm-conf@2.0.2/node_modules/@zkochan/npm-conf/lib/util.js"(exports2) {
|
|
15686
15702
|
"use strict";
|
|
15687
|
-
var
|
|
15703
|
+
var fs2 = require("fs");
|
|
15688
15704
|
var path = require("path");
|
|
15689
15705
|
var envReplace = (str) => {
|
|
15690
15706
|
if (typeof str !== "string" || !str) {
|
|
@@ -15765,7 +15781,7 @@ var require_util2 = __commonJS({
|
|
|
15765
15781
|
return original;
|
|
15766
15782
|
}
|
|
15767
15783
|
try {
|
|
15768
|
-
const files =
|
|
15784
|
+
const files = fs2.readdirSync(name2);
|
|
15769
15785
|
if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml")) {
|
|
15770
15786
|
return name2;
|
|
15771
15787
|
}
|
|
@@ -15931,7 +15947,7 @@ var require_types2 = __commonJS({
|
|
|
15931
15947
|
var require_conf = __commonJS({
|
|
15932
15948
|
"../../node_modules/.pnpm/@zkochan+npm-conf@2.0.2/node_modules/@zkochan/npm-conf/lib/conf.js"(exports2, module2) {
|
|
15933
15949
|
"use strict";
|
|
15934
|
-
var
|
|
15950
|
+
var fs2 = require("fs");
|
|
15935
15951
|
var path = require("path");
|
|
15936
15952
|
var { ConfigChain } = require_config_chain();
|
|
15937
15953
|
var envKeyToSetting = require_envKeyToSetting();
|
|
@@ -15959,7 +15975,7 @@ var require_conf = __commonJS({
|
|
|
15959
15975
|
this.push(marker);
|
|
15960
15976
|
this._await();
|
|
15961
15977
|
try {
|
|
15962
|
-
const contents =
|
|
15978
|
+
const contents = fs2.readFileSync(file, "utf8");
|
|
15963
15979
|
this.addString(contents, file, "ini", marker);
|
|
15964
15980
|
} catch (error) {
|
|
15965
15981
|
this.add({}, marker);
|
|
@@ -16026,7 +16042,7 @@ var require_conf = __commonJS({
|
|
|
16026
16042
|
return;
|
|
16027
16043
|
}
|
|
16028
16044
|
try {
|
|
16029
|
-
const contents =
|
|
16045
|
+
const contents = fs2.readFileSync(file, "utf8");
|
|
16030
16046
|
const delim = "-----END CERTIFICATE-----";
|
|
16031
16047
|
const output = contents.split(delim).filter((x) => Boolean(x.trim())).map((x) => x.trimLeft() + delim);
|
|
16032
16048
|
this.set("ca", output);
|
|
@@ -16048,7 +16064,7 @@ var require_conf = __commonJS({
|
|
|
16048
16064
|
}
|
|
16049
16065
|
const prefix = path.resolve(this.get("prefix"));
|
|
16050
16066
|
try {
|
|
16051
|
-
const stats =
|
|
16067
|
+
const stats = fs2.statSync(prefix);
|
|
16052
16068
|
defConf.user = stats.uid;
|
|
16053
16069
|
} catch (error) {
|
|
16054
16070
|
if (error.code === "ENOENT") {
|
|
@@ -16287,6 +16303,21 @@ var require_npm_conf = __commonJS({
|
|
|
16287
16303
|
}
|
|
16288
16304
|
});
|
|
16289
16305
|
|
|
16306
|
+
// ../../node_modules/.pnpm/normalize-registry-url@2.0.0/node_modules/normalize-registry-url/index.js
|
|
16307
|
+
var require_normalize_registry_url = __commonJS({
|
|
16308
|
+
"../../node_modules/.pnpm/normalize-registry-url@2.0.0/node_modules/normalize-registry-url/index.js"(exports2, module2) {
|
|
16309
|
+
"use strict";
|
|
16310
|
+
module2.exports = function(registry) {
|
|
16311
|
+
if (typeof registry !== "string") {
|
|
16312
|
+
throw new TypeError("`registry` should be a string");
|
|
16313
|
+
}
|
|
16314
|
+
if (registry.endsWith("/") || registry.indexOf("/", registry.indexOf("//") + 2) != -1)
|
|
16315
|
+
return registry;
|
|
16316
|
+
return `${registry}/`;
|
|
16317
|
+
};
|
|
16318
|
+
}
|
|
16319
|
+
});
|
|
16320
|
+
|
|
16290
16321
|
// ../../node_modules/.pnpm/ramda@0.27.1/node_modules/ramda/src/internal/_isPlaceholder.js
|
|
16291
16322
|
var require_isPlaceholder = __commonJS({
|
|
16292
16323
|
"../../node_modules/.pnpm/ramda@0.27.1/node_modules/ramda/src/internal/_isPlaceholder.js"(exports2, module2) {
|
|
@@ -16334,10 +16365,10 @@ var require_fromPairs = __commonJS({
|
|
|
16334
16365
|
// ../../node_modules/.pnpm/realpath-missing@1.1.0/node_modules/realpath-missing/index.js
|
|
16335
16366
|
var require_realpath_missing = __commonJS({
|
|
16336
16367
|
"../../node_modules/.pnpm/realpath-missing@1.1.0/node_modules/realpath-missing/index.js"(exports2, module2) {
|
|
16337
|
-
var
|
|
16368
|
+
var fs2 = require("fs");
|
|
16338
16369
|
module2.exports = async function realpathMissing(path) {
|
|
16339
16370
|
try {
|
|
16340
|
-
return await
|
|
16371
|
+
return await fs2.promises.realpath(path);
|
|
16341
16372
|
} catch (err) {
|
|
16342
16373
|
if (err.code === "ENOENT") {
|
|
16343
16374
|
return path;
|
|
@@ -16353,7 +16384,7 @@ var require_windows = __commonJS({
|
|
|
16353
16384
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports2, module2) {
|
|
16354
16385
|
module2.exports = isexe;
|
|
16355
16386
|
isexe.sync = sync;
|
|
16356
|
-
var
|
|
16387
|
+
var fs2 = require("fs");
|
|
16357
16388
|
function checkPathExt(path, options) {
|
|
16358
16389
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
16359
16390
|
if (!pathext) {
|
|
@@ -16378,12 +16409,12 @@ var require_windows = __commonJS({
|
|
|
16378
16409
|
return checkPathExt(path, options);
|
|
16379
16410
|
}
|
|
16380
16411
|
function isexe(path, options, cb) {
|
|
16381
|
-
|
|
16412
|
+
fs2.stat(path, function(er, stat) {
|
|
16382
16413
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
16383
16414
|
});
|
|
16384
16415
|
}
|
|
16385
16416
|
function sync(path, options) {
|
|
16386
|
-
return checkStat(
|
|
16417
|
+
return checkStat(fs2.statSync(path), path, options);
|
|
16387
16418
|
}
|
|
16388
16419
|
}
|
|
16389
16420
|
});
|
|
@@ -16393,14 +16424,14 @@ var require_mode = __commonJS({
|
|
|
16393
16424
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports2, module2) {
|
|
16394
16425
|
module2.exports = isexe;
|
|
16395
16426
|
isexe.sync = sync;
|
|
16396
|
-
var
|
|
16427
|
+
var fs2 = require("fs");
|
|
16397
16428
|
function isexe(path, options, cb) {
|
|
16398
|
-
|
|
16429
|
+
fs2.stat(path, function(er, stat) {
|
|
16399
16430
|
cb(er, er ? false : checkStat(stat, options));
|
|
16400
16431
|
});
|
|
16401
16432
|
}
|
|
16402
16433
|
function sync(path, options) {
|
|
16403
|
-
return checkStat(
|
|
16434
|
+
return checkStat(fs2.statSync(path), options);
|
|
16404
16435
|
}
|
|
16405
16436
|
function checkStat(stat, options) {
|
|
16406
16437
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -16424,7 +16455,7 @@ var require_mode = __commonJS({
|
|
|
16424
16455
|
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
16425
16456
|
var require_isexe = __commonJS({
|
|
16426
16457
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
|
|
16427
|
-
var
|
|
16458
|
+
var fs2 = require("fs");
|
|
16428
16459
|
var core;
|
|
16429
16460
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
16430
16461
|
core = require_windows();
|
|
@@ -16574,22 +16605,21 @@ var require_which = __commonJS({
|
|
|
16574
16605
|
var require_getScopeRegistries = __commonJS({
|
|
16575
16606
|
"../config/lib/getScopeRegistries.js"(exports2) {
|
|
16576
16607
|
"use strict";
|
|
16608
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
16609
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
16610
|
+
};
|
|
16577
16611
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16578
|
-
|
|
16612
|
+
var normalize_registry_url_1 = __importDefault(require_normalize_registry_url());
|
|
16579
16613
|
function getScopeRegistries(rawConfig) {
|
|
16580
16614
|
const registries = {};
|
|
16581
16615
|
for (const configKey of Object.keys(rawConfig)) {
|
|
16582
16616
|
if (configKey[0] === "@" && configKey.endsWith(":registry")) {
|
|
16583
|
-
registries[configKey.substr(0, configKey.indexOf(":"))] =
|
|
16617
|
+
registries[configKey.substr(0, configKey.indexOf(":"))] = (0, normalize_registry_url_1.default)(rawConfig[configKey]);
|
|
16584
16618
|
}
|
|
16585
16619
|
}
|
|
16586
16620
|
return registries;
|
|
16587
16621
|
}
|
|
16588
16622
|
exports2.default = getScopeRegistries;
|
|
16589
|
-
function normalizeRegistry(registry) {
|
|
16590
|
-
return registry.endsWith("/") ? registry : `${registry}/`;
|
|
16591
|
-
}
|
|
16592
|
-
exports2.normalizeRegistry = normalizeRegistry;
|
|
16593
16623
|
}
|
|
16594
16624
|
});
|
|
16595
16625
|
|
|
@@ -16788,34 +16818,6 @@ var require_concurrency = __commonJS({
|
|
|
16788
16818
|
var require_lib12 = __commonJS({
|
|
16789
16819
|
"../config/lib/index.js"(exports2) {
|
|
16790
16820
|
"use strict";
|
|
16791
|
-
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
16792
|
-
if (k2 === void 0)
|
|
16793
|
-
k2 = k;
|
|
16794
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
16795
|
-
return m[k];
|
|
16796
|
-
} });
|
|
16797
|
-
} : function(o, m, k, k2) {
|
|
16798
|
-
if (k2 === void 0)
|
|
16799
|
-
k2 = k;
|
|
16800
|
-
o[k2] = m[k];
|
|
16801
|
-
});
|
|
16802
|
-
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
16803
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16804
|
-
} : function(o, v) {
|
|
16805
|
-
o["default"] = v;
|
|
16806
|
-
});
|
|
16807
|
-
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
|
|
16808
|
-
if (mod && mod.__esModule)
|
|
16809
|
-
return mod;
|
|
16810
|
-
var result = {};
|
|
16811
|
-
if (mod != null) {
|
|
16812
|
-
for (var k in mod)
|
|
16813
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
16814
|
-
__createBinding2(result, mod, k);
|
|
16815
|
-
}
|
|
16816
|
-
__setModuleDefault2(result, mod);
|
|
16817
|
-
return result;
|
|
16818
|
-
};
|
|
16819
16821
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
16820
16822
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
16821
16823
|
};
|
|
@@ -16832,10 +16834,11 @@ var require_lib12 = __commonJS({
|
|
|
16832
16834
|
var npm_conf_1 = __importDefault(require_npm_conf());
|
|
16833
16835
|
var types_1 = __importDefault(require_types2());
|
|
16834
16836
|
var can_write_to_dir_1 = require_can_write_to_dir();
|
|
16837
|
+
var normalize_registry_url_1 = __importDefault(require_normalize_registry_url());
|
|
16835
16838
|
var fromPairs_1 = __importDefault(require_fromPairs());
|
|
16836
16839
|
var realpath_missing_1 = __importDefault(require_realpath_missing());
|
|
16837
16840
|
var which_1 = __importDefault(require_which());
|
|
16838
|
-
var getScopeRegistries_1 =
|
|
16841
|
+
var getScopeRegistries_1 = __importDefault(require_getScopeRegistries());
|
|
16839
16842
|
var findBestGlobalPrefix_1 = __importDefault(require_findBestGlobalPrefix());
|
|
16840
16843
|
var dirs_1 = require_dirs();
|
|
16841
16844
|
var concurrency_1 = require_concurrency();
|
|
@@ -16987,6 +16990,7 @@ var require_lib12 = __commonJS({
|
|
|
16987
16990
|
registry: npmDefaults.registry,
|
|
16988
16991
|
"save-peer": false,
|
|
16989
16992
|
"save-workspace-protocol": true,
|
|
16993
|
+
"scripts-prepend-node-path": false,
|
|
16990
16994
|
symlink: true,
|
|
16991
16995
|
"shared-workspace-lockfile": true,
|
|
16992
16996
|
"shared-workspace-shrinkwrap": true,
|
|
@@ -17028,7 +17032,7 @@ var require_lib12 = __commonJS({
|
|
|
17028
17032
|
{ "user-agent": pnpmConfig.userAgent }
|
|
17029
17033
|
]);
|
|
17030
17034
|
pnpmConfig.registries = {
|
|
17031
|
-
default: (0,
|
|
17035
|
+
default: (0, normalize_registry_url_1.default)(pnpmConfig.rawConfig.registry),
|
|
17032
17036
|
...(0, getScopeRegistries_1.default)(pnpmConfig.rawConfig)
|
|
17033
17037
|
};
|
|
17034
17038
|
pnpmConfig.lockfileDir = (_e = (_d = pnpmConfig.lockfileDir) !== null && _d !== void 0 ? _d : pnpmConfig.lockfileDirectory) !== null && _e !== void 0 ? _e : pnpmConfig.shrinkwrapDirectory;
|
|
@@ -36156,7 +36160,7 @@ var require_p_defer = __commonJS({
|
|
|
36156
36160
|
});
|
|
36157
36161
|
|
|
36158
36162
|
// ../../node_modules/.pnpm/map-age-cleaner@0.1.3/node_modules/map-age-cleaner/dist/index.js
|
|
36159
|
-
var
|
|
36163
|
+
var require_dist = __commonJS({
|
|
36160
36164
|
"../../node_modules/.pnpm/map-age-cleaner@0.1.3/node_modules/map-age-cleaner/dist/index.js"(exports2, module2) {
|
|
36161
36165
|
"use strict";
|
|
36162
36166
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
@@ -36257,11 +36261,11 @@ var require_dist2 = __commonJS({
|
|
|
36257
36261
|
});
|
|
36258
36262
|
|
|
36259
36263
|
// ../../node_modules/.pnpm/mem@8.1.1/node_modules/mem/dist/index.js
|
|
36260
|
-
var
|
|
36264
|
+
var require_dist2 = __commonJS({
|
|
36261
36265
|
"../../node_modules/.pnpm/mem@8.1.1/node_modules/mem/dist/index.js"(exports2, module2) {
|
|
36262
36266
|
"use strict";
|
|
36263
36267
|
var mimicFn = require_mimic_fn();
|
|
36264
|
-
var mapAgeCleaner =
|
|
36268
|
+
var mapAgeCleaner = require_dist();
|
|
36265
36269
|
var decoratorInstanceMap = new WeakMap();
|
|
36266
36270
|
var cacheStore = new WeakMap();
|
|
36267
36271
|
var mem = (fn2, { cacheKey, cache = new Map(), maxAge } = {}) => {
|
|
@@ -36524,16 +36528,16 @@ var require_shebang_command = __commonJS({
|
|
|
36524
36528
|
var require_readShebang = __commonJS({
|
|
36525
36529
|
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
|
36526
36530
|
"use strict";
|
|
36527
|
-
var
|
|
36531
|
+
var fs2 = require("fs");
|
|
36528
36532
|
var shebangCommand = require_shebang_command();
|
|
36529
36533
|
function readShebang(command) {
|
|
36530
36534
|
const size = 150;
|
|
36531
36535
|
const buffer = Buffer.alloc(size);
|
|
36532
36536
|
let fd;
|
|
36533
36537
|
try {
|
|
36534
|
-
fd =
|
|
36535
|
-
|
|
36536
|
-
|
|
36538
|
+
fd = fs2.openSync(command, "r");
|
|
36539
|
+
fs2.readSync(fd, buffer, 0, size, 0);
|
|
36540
|
+
fs2.closeSync(fd);
|
|
36537
36541
|
} catch (e) {
|
|
36538
36542
|
}
|
|
36539
36543
|
return shebangCommand(buffer.toString());
|
|
@@ -38019,7 +38023,7 @@ var require_getSystemNodeVersion = __commonJS({
|
|
|
38019
38023
|
};
|
|
38020
38024
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
38021
38025
|
exports2.getSystemNodeVersion = exports2.getSystemNodeVersionNonCached = void 0;
|
|
38022
|
-
var mem_1 = __importDefault(
|
|
38026
|
+
var mem_1 = __importDefault(require_dist2());
|
|
38023
38027
|
var execa = __importStar2(require_lib14());
|
|
38024
38028
|
function getSystemNodeVersionNonCached() {
|
|
38025
38029
|
if (process["pkg"] != null) {
|
|
@@ -39607,7 +39611,7 @@ var require_write_file_atomic = __commonJS({
|
|
|
39607
39611
|
module2.exports.sync = writeFileSync;
|
|
39608
39612
|
module2.exports._getTmpname = getTmpname;
|
|
39609
39613
|
module2.exports._cleanupOnExit = cleanupOnExit;
|
|
39610
|
-
var
|
|
39614
|
+
var fs2 = require("fs");
|
|
39611
39615
|
var MurmurHash3 = require_imurmurhash();
|
|
39612
39616
|
var onExit = require_signal_exit();
|
|
39613
39617
|
var path = require("path");
|
|
@@ -39630,7 +39634,7 @@ var require_write_file_atomic = __commonJS({
|
|
|
39630
39634
|
function cleanupOnExit(tmpfile) {
|
|
39631
39635
|
return () => {
|
|
39632
39636
|
try {
|
|
39633
|
-
|
|
39637
|
+
fs2.unlinkSync(typeof tmpfile === "function" ? tmpfile() : tmpfile);
|
|
39634
39638
|
} catch (_) {
|
|
39635
39639
|
}
|
|
39636
39640
|
};
|
|
@@ -39666,10 +39670,10 @@ var require_write_file_atomic = __commonJS({
|
|
|
39666
39670
|
const absoluteName = path.resolve(filename);
|
|
39667
39671
|
try {
|
|
39668
39672
|
await serializeActiveFile(absoluteName);
|
|
39669
|
-
const truename = await promisify(
|
|
39673
|
+
const truename = await promisify(fs2.realpath)(filename).catch(() => filename);
|
|
39670
39674
|
tmpfile = getTmpname(truename);
|
|
39671
39675
|
if (!options.mode || !options.chown) {
|
|
39672
|
-
const stats = await promisify(
|
|
39676
|
+
const stats = await promisify(fs2.stat)(truename).catch(() => {
|
|
39673
39677
|
});
|
|
39674
39678
|
if (stats) {
|
|
39675
39679
|
if (options.mode == null) {
|
|
@@ -39680,7 +39684,7 @@ var require_write_file_atomic = __commonJS({
|
|
|
39680
39684
|
}
|
|
39681
39685
|
}
|
|
39682
39686
|
}
|
|
39683
|
-
fd = await promisify(
|
|
39687
|
+
fd = await promisify(fs2.open)(tmpfile, "w", options.mode);
|
|
39684
39688
|
if (options.tmpfileCreated) {
|
|
39685
39689
|
await options.tmpfileCreated(tmpfile);
|
|
39686
39690
|
}
|
|
@@ -39688,37 +39692,37 @@ var require_write_file_atomic = __commonJS({
|
|
|
39688
39692
|
data = typedArrayToBuffer(data);
|
|
39689
39693
|
}
|
|
39690
39694
|
if (Buffer.isBuffer(data)) {
|
|
39691
|
-
await promisify(
|
|
39695
|
+
await promisify(fs2.write)(fd, data, 0, data.length, 0);
|
|
39692
39696
|
} else if (data != null) {
|
|
39693
|
-
await promisify(
|
|
39697
|
+
await promisify(fs2.write)(fd, String(data), 0, String(options.encoding || "utf8"));
|
|
39694
39698
|
}
|
|
39695
39699
|
if (options.fsync !== false) {
|
|
39696
|
-
await promisify(
|
|
39700
|
+
await promisify(fs2.fsync)(fd);
|
|
39697
39701
|
}
|
|
39698
|
-
await promisify(
|
|
39702
|
+
await promisify(fs2.close)(fd);
|
|
39699
39703
|
fd = null;
|
|
39700
39704
|
if (options.chown) {
|
|
39701
|
-
await promisify(
|
|
39705
|
+
await promisify(fs2.chown)(tmpfile, options.chown.uid, options.chown.gid).catch((err) => {
|
|
39702
39706
|
if (!isChownErrOk(err)) {
|
|
39703
39707
|
throw err;
|
|
39704
39708
|
}
|
|
39705
39709
|
});
|
|
39706
39710
|
}
|
|
39707
39711
|
if (options.mode) {
|
|
39708
|
-
await promisify(
|
|
39712
|
+
await promisify(fs2.chmod)(tmpfile, options.mode).catch((err) => {
|
|
39709
39713
|
if (!isChownErrOk(err)) {
|
|
39710
39714
|
throw err;
|
|
39711
39715
|
}
|
|
39712
39716
|
});
|
|
39713
39717
|
}
|
|
39714
|
-
await promisify(
|
|
39718
|
+
await promisify(fs2.rename)(tmpfile, truename);
|
|
39715
39719
|
} finally {
|
|
39716
39720
|
if (fd) {
|
|
39717
|
-
await promisify(
|
|
39721
|
+
await promisify(fs2.close)(fd).catch(() => {
|
|
39718
39722
|
});
|
|
39719
39723
|
}
|
|
39720
39724
|
removeOnExitHandler();
|
|
39721
|
-
await promisify(
|
|
39725
|
+
await promisify(fs2.unlink)(tmpfile).catch(() => {
|
|
39722
39726
|
});
|
|
39723
39727
|
activeFiles[absoluteName].shift();
|
|
39724
39728
|
if (activeFiles[absoluteName].length > 0) {
|
|
@@ -39744,13 +39748,13 @@ var require_write_file_atomic = __commonJS({
|
|
|
39744
39748
|
else if (!options)
|
|
39745
39749
|
options = {};
|
|
39746
39750
|
try {
|
|
39747
|
-
filename =
|
|
39751
|
+
filename = fs2.realpathSync(filename);
|
|
39748
39752
|
} catch (ex) {
|
|
39749
39753
|
}
|
|
39750
39754
|
const tmpfile = getTmpname(filename);
|
|
39751
39755
|
if (!options.mode || !options.chown) {
|
|
39752
39756
|
try {
|
|
39753
|
-
const stats =
|
|
39757
|
+
const stats = fs2.statSync(filename);
|
|
39754
39758
|
options = Object.assign({}, options);
|
|
39755
39759
|
if (!options.mode) {
|
|
39756
39760
|
options.mode = stats.mode;
|
|
@@ -39766,7 +39770,7 @@ var require_write_file_atomic = __commonJS({
|
|
|
39766
39770
|
const removeOnExitHandler = onExit(cleanup);
|
|
39767
39771
|
let threw = true;
|
|
39768
39772
|
try {
|
|
39769
|
-
fd =
|
|
39773
|
+
fd = fs2.openSync(tmpfile, "w", options.mode || 438);
|
|
39770
39774
|
if (options.tmpfileCreated) {
|
|
39771
39775
|
options.tmpfileCreated(tmpfile);
|
|
39772
39776
|
}
|
|
@@ -39774,18 +39778,18 @@ var require_write_file_atomic = __commonJS({
|
|
|
39774
39778
|
data = typedArrayToBuffer(data);
|
|
39775
39779
|
}
|
|
39776
39780
|
if (Buffer.isBuffer(data)) {
|
|
39777
|
-
|
|
39781
|
+
fs2.writeSync(fd, data, 0, data.length, 0);
|
|
39778
39782
|
} else if (data != null) {
|
|
39779
|
-
|
|
39783
|
+
fs2.writeSync(fd, String(data), 0, String(options.encoding || "utf8"));
|
|
39780
39784
|
}
|
|
39781
39785
|
if (options.fsync !== false) {
|
|
39782
|
-
|
|
39786
|
+
fs2.fsyncSync(fd);
|
|
39783
39787
|
}
|
|
39784
|
-
|
|
39788
|
+
fs2.closeSync(fd);
|
|
39785
39789
|
fd = null;
|
|
39786
39790
|
if (options.chown) {
|
|
39787
39791
|
try {
|
|
39788
|
-
|
|
39792
|
+
fs2.chownSync(tmpfile, options.chown.uid, options.chown.gid);
|
|
39789
39793
|
} catch (err) {
|
|
39790
39794
|
if (!isChownErrOk(err)) {
|
|
39791
39795
|
throw err;
|
|
@@ -39794,19 +39798,19 @@ var require_write_file_atomic = __commonJS({
|
|
|
39794
39798
|
}
|
|
39795
39799
|
if (options.mode) {
|
|
39796
39800
|
try {
|
|
39797
|
-
|
|
39801
|
+
fs2.chmodSync(tmpfile, options.mode);
|
|
39798
39802
|
} catch (err) {
|
|
39799
39803
|
if (!isChownErrOk(err)) {
|
|
39800
39804
|
throw err;
|
|
39801
39805
|
}
|
|
39802
39806
|
}
|
|
39803
39807
|
}
|
|
39804
|
-
|
|
39808
|
+
fs2.renameSync(tmpfile, filename);
|
|
39805
39809
|
threw = false;
|
|
39806
39810
|
} finally {
|
|
39807
39811
|
if (fd) {
|
|
39808
39812
|
try {
|
|
39809
|
-
|
|
39813
|
+
fs2.closeSync(fd);
|
|
39810
39814
|
} catch (ex) {
|
|
39811
39815
|
}
|
|
39812
39816
|
}
|
|
@@ -42640,7 +42644,7 @@ var require_write_yaml_file = __commonJS({
|
|
|
42640
42644
|
"../../node_modules/.pnpm/write-yaml-file@4.2.0/node_modules/write-yaml-file/index.js"(exports2, module2) {
|
|
42641
42645
|
"use strict";
|
|
42642
42646
|
var path = require("path");
|
|
42643
|
-
var
|
|
42647
|
+
var fs2 = require("fs");
|
|
42644
42648
|
var writeFileAtomic = require_write_file_atomic();
|
|
42645
42649
|
var YAML = require_js_yaml();
|
|
42646
42650
|
var main = (fn2, fp, data, opts) => {
|
|
@@ -42655,11 +42659,11 @@ var require_write_yaml_file = __commonJS({
|
|
|
42655
42659
|
return fn2(fp, yaml, { mode: opts.mode });
|
|
42656
42660
|
};
|
|
42657
42661
|
module2.exports = async (fp, data, opts) => {
|
|
42658
|
-
await
|
|
42662
|
+
await fs2.promises.mkdir(path.dirname(fp), { recursive: true });
|
|
42659
42663
|
return main(writeFileAtomic, fp, data, opts);
|
|
42660
42664
|
};
|
|
42661
42665
|
module2.exports.sync = (fp, data, opts) => {
|
|
42662
|
-
|
|
42666
|
+
fs2.mkdirSync(path.dirname(fp), { recursive: true });
|
|
42663
42667
|
main(writeFileAtomic.sync, fp, data, opts);
|
|
42664
42668
|
};
|
|
42665
42669
|
}
|
|
@@ -42701,14 +42705,14 @@ var require_lib19 = __commonJS({
|
|
|
42701
42705
|
var require_read_yaml_file = __commonJS({
|
|
42702
42706
|
"../../node_modules/.pnpm/read-yaml-file@2.1.0/node_modules/read-yaml-file/index.js"(exports2, module2) {
|
|
42703
42707
|
"use strict";
|
|
42704
|
-
var
|
|
42708
|
+
var fs2 = require("fs");
|
|
42705
42709
|
var stripBom = require_strip_bom();
|
|
42706
42710
|
var yaml = require_js_yaml();
|
|
42707
42711
|
var parse = (data) => yaml.load(stripBom(data));
|
|
42708
|
-
var readYamlFile = (fp) =>
|
|
42712
|
+
var readYamlFile = (fp) => fs2.promises.readFile(fp, "utf8").then((data) => parse(data));
|
|
42709
42713
|
module2.exports = readYamlFile;
|
|
42710
42714
|
module2.exports.default = readYamlFile;
|
|
42711
|
-
module2.exports.sync = (fp) => parse(
|
|
42715
|
+
module2.exports.sync = (fp) => parse(fs2.readFileSync(fp, "utf8"));
|
|
42712
42716
|
}
|
|
42713
42717
|
});
|
|
42714
42718
|
|
|
@@ -46627,8 +46631,8 @@ var require_utils5 = __commonJS({
|
|
|
46627
46631
|
exports2.array = array;
|
|
46628
46632
|
var errno = require_errno();
|
|
46629
46633
|
exports2.errno = errno;
|
|
46630
|
-
var
|
|
46631
|
-
exports2.fs =
|
|
46634
|
+
var fs2 = require_fs();
|
|
46635
|
+
exports2.fs = fs2;
|
|
46632
46636
|
var path = require_path2();
|
|
46633
46637
|
exports2.path = path;
|
|
46634
46638
|
var pattern = require_pattern();
|
|
@@ -46790,12 +46794,12 @@ var require_fs2 = __commonJS({
|
|
|
46790
46794
|
"use strict";
|
|
46791
46795
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
46792
46796
|
exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
|
|
46793
|
-
var
|
|
46797
|
+
var fs2 = require("fs");
|
|
46794
46798
|
exports2.FILE_SYSTEM_ADAPTER = {
|
|
46795
|
-
lstat:
|
|
46796
|
-
stat:
|
|
46797
|
-
lstatSync:
|
|
46798
|
-
statSync:
|
|
46799
|
+
lstat: fs2.lstat,
|
|
46800
|
+
stat: fs2.stat,
|
|
46801
|
+
lstatSync: fs2.lstatSync,
|
|
46802
|
+
statSync: fs2.statSync
|
|
46799
46803
|
};
|
|
46800
46804
|
function createFileSystemAdapter(fsMethods) {
|
|
46801
46805
|
if (fsMethods === void 0) {
|
|
@@ -46812,12 +46816,12 @@ var require_settings = __commonJS({
|
|
|
46812
46816
|
"../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports2) {
|
|
46813
46817
|
"use strict";
|
|
46814
46818
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
46815
|
-
var
|
|
46819
|
+
var fs2 = require_fs2();
|
|
46816
46820
|
var Settings = class {
|
|
46817
46821
|
constructor(_options = {}) {
|
|
46818
46822
|
this._options = _options;
|
|
46819
46823
|
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
|
|
46820
|
-
this.fs =
|
|
46824
|
+
this.fs = fs2.createFileSystemAdapter(this._options.fs);
|
|
46821
46825
|
this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
|
|
46822
46826
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
46823
46827
|
}
|
|
@@ -46975,8 +46979,8 @@ var require_utils6 = __commonJS({
|
|
|
46975
46979
|
"use strict";
|
|
46976
46980
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
46977
46981
|
exports2.fs = void 0;
|
|
46978
|
-
var
|
|
46979
|
-
exports2.fs =
|
|
46982
|
+
var fs2 = require_fs3();
|
|
46983
|
+
exports2.fs = fs2;
|
|
46980
46984
|
}
|
|
46981
46985
|
});
|
|
46982
46986
|
|
|
@@ -47171,14 +47175,14 @@ var require_fs4 = __commonJS({
|
|
|
47171
47175
|
"use strict";
|
|
47172
47176
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
47173
47177
|
exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
|
|
47174
|
-
var
|
|
47178
|
+
var fs2 = require("fs");
|
|
47175
47179
|
exports2.FILE_SYSTEM_ADAPTER = {
|
|
47176
|
-
lstat:
|
|
47177
|
-
stat:
|
|
47178
|
-
lstatSync:
|
|
47179
|
-
statSync:
|
|
47180
|
-
readdir:
|
|
47181
|
-
readdirSync:
|
|
47180
|
+
lstat: fs2.lstat,
|
|
47181
|
+
stat: fs2.stat,
|
|
47182
|
+
lstatSync: fs2.lstatSync,
|
|
47183
|
+
statSync: fs2.statSync,
|
|
47184
|
+
readdir: fs2.readdir,
|
|
47185
|
+
readdirSync: fs2.readdirSync
|
|
47182
47186
|
};
|
|
47183
47187
|
function createFileSystemAdapter(fsMethods) {
|
|
47184
47188
|
if (fsMethods === void 0) {
|
|
@@ -47197,12 +47201,12 @@ var require_settings2 = __commonJS({
|
|
|
47197
47201
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
47198
47202
|
var path = require("path");
|
|
47199
47203
|
var fsStat = require_out();
|
|
47200
|
-
var
|
|
47204
|
+
var fs2 = require_fs4();
|
|
47201
47205
|
var Settings = class {
|
|
47202
47206
|
constructor(_options = {}) {
|
|
47203
47207
|
this._options = _options;
|
|
47204
47208
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
47205
|
-
this.fs =
|
|
47209
|
+
this.fs = fs2.createFileSystemAdapter(this._options.fs);
|
|
47206
47210
|
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
|
|
47207
47211
|
this.stats = this._getValue(this._options.stats, false);
|
|
47208
47212
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
@@ -48476,16 +48480,16 @@ var require_settings4 = __commonJS({
|
|
|
48476
48480
|
"use strict";
|
|
48477
48481
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
48478
48482
|
exports2.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
48479
|
-
var
|
|
48483
|
+
var fs2 = require("fs");
|
|
48480
48484
|
var os = require("os");
|
|
48481
48485
|
var CPU_COUNT = Math.max(os.cpus().length, 1);
|
|
48482
48486
|
exports2.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
48483
|
-
lstat:
|
|
48484
|
-
lstatSync:
|
|
48485
|
-
stat:
|
|
48486
|
-
statSync:
|
|
48487
|
-
readdir:
|
|
48488
|
-
readdirSync:
|
|
48487
|
+
lstat: fs2.lstat,
|
|
48488
|
+
lstatSync: fs2.lstatSync,
|
|
48489
|
+
stat: fs2.stat,
|
|
48490
|
+
statSync: fs2.statSync,
|
|
48491
|
+
readdir: fs2.readdir,
|
|
48492
|
+
readdirSync: fs2.readdirSync
|
|
48489
48493
|
};
|
|
48490
48494
|
var Settings = class {
|
|
48491
48495
|
constructor(_options = {}) {
|
|
@@ -50600,11 +50604,11 @@ var require_locate_path = __commonJS({
|
|
|
50600
50604
|
"../../node_modules/.pnpm/locate-path@6.0.0/node_modules/locate-path/index.js"(exports2, module2) {
|
|
50601
50605
|
"use strict";
|
|
50602
50606
|
var path = require("path");
|
|
50603
|
-
var
|
|
50607
|
+
var fs2 = require("fs");
|
|
50604
50608
|
var { promisify } = require("util");
|
|
50605
50609
|
var pLocate = require_p_locate();
|
|
50606
|
-
var fsStat = promisify(
|
|
50607
|
-
var fsLStat = promisify(
|
|
50610
|
+
var fsStat = promisify(fs2.stat);
|
|
50611
|
+
var fsLStat = promisify(fs2.lstat);
|
|
50608
50612
|
var typeMappings = {
|
|
50609
50613
|
directory: "isDirectory",
|
|
50610
50614
|
file: "isFile"
|
|
@@ -50642,7 +50646,7 @@ var require_locate_path = __commonJS({
|
|
|
50642
50646
|
...options
|
|
50643
50647
|
};
|
|
50644
50648
|
checkType(options);
|
|
50645
|
-
const statFn = options.allowSymlinks ?
|
|
50649
|
+
const statFn = options.allowSymlinks ? fs2.statSync : fs2.lstatSync;
|
|
50646
50650
|
for (const path_ of paths) {
|
|
50647
50651
|
try {
|
|
50648
50652
|
const stat = statFn(path.resolve(options.cwd, path_));
|
|
@@ -50660,9 +50664,9 @@ var require_locate_path = __commonJS({
|
|
|
50660
50664
|
var require_path_exists = __commonJS({
|
|
50661
50665
|
"../../node_modules/.pnpm/path-exists@4.0.0/node_modules/path-exists/index.js"(exports2, module2) {
|
|
50662
50666
|
"use strict";
|
|
50663
|
-
var
|
|
50667
|
+
var fs2 = require("fs");
|
|
50664
50668
|
var { promisify } = require("util");
|
|
50665
|
-
var pAccess = promisify(
|
|
50669
|
+
var pAccess = promisify(fs2.access);
|
|
50666
50670
|
module2.exports = async (path) => {
|
|
50667
50671
|
try {
|
|
50668
50672
|
await pAccess(path);
|
|
@@ -50673,7 +50677,7 @@ var require_path_exists = __commonJS({
|
|
|
50673
50677
|
};
|
|
50674
50678
|
module2.exports.sync = (path) => {
|
|
50675
50679
|
try {
|
|
50676
|
-
|
|
50680
|
+
fs2.accessSync(path);
|
|
50677
50681
|
return true;
|
|
50678
50682
|
} catch (_) {
|
|
50679
50683
|
return false;
|
|
@@ -51435,7 +51439,7 @@ var require_fetch_blob = __commonJS({
|
|
|
51435
51439
|
});
|
|
51436
51440
|
|
|
51437
51441
|
// ../../node_modules/.pnpm/node-fetch@3.0.0-beta.9/node_modules/node-fetch/dist/index.cjs
|
|
51438
|
-
var
|
|
51442
|
+
var require_dist3 = __commonJS({
|
|
51439
51443
|
"../../node_modules/.pnpm/node-fetch@3.0.0-beta.9/node_modules/node-fetch/dist/index.cjs"(exports2, module2) {
|
|
51440
51444
|
"use strict";
|
|
51441
51445
|
exports2 = module2.exports = fetch;
|
|
@@ -52330,7 +52334,7 @@ var require_fetch = __commonJS({
|
|
|
52330
52334
|
exports2.ResponseError = exports2.isRedirect = exports2.Response = void 0;
|
|
52331
52335
|
var core_loggers_1 = require_lib10();
|
|
52332
52336
|
var retry_1 = require_retry2();
|
|
52333
|
-
var node_fetch_1 = __importStar2(
|
|
52337
|
+
var node_fetch_1 = __importStar2(require_dist3());
|
|
52334
52338
|
Object.defineProperty(exports2, "Response", { enumerable: true, get: function() {
|
|
52335
52339
|
return node_fetch_1.Response;
|
|
52336
52340
|
} });
|
|
@@ -52351,7 +52355,7 @@ var require_fetch = __commonJS({
|
|
|
52351
52355
|
var _a2;
|
|
52352
52356
|
try {
|
|
52353
52357
|
const res = await (0, node_fetch_1.default)(url, opts);
|
|
52354
|
-
if (res.status >= 500 && res.status < 600 || res.status
|
|
52358
|
+
if (res.status >= 500 && res.status < 600 || [408, 409, 420, 429].includes(res.status)) {
|
|
52355
52359
|
throw new ResponseError(res);
|
|
52356
52360
|
} else {
|
|
52357
52361
|
resolve(res);
|
|
@@ -53305,7 +53309,7 @@ var require_agentkeepalive = __commonJS({
|
|
|
53305
53309
|
});
|
|
53306
53310
|
|
|
53307
53311
|
// ../../node_modules/.pnpm/@tootallnate+once@2.0.0/node_modules/@tootallnate/once/dist/index.js
|
|
53308
|
-
var
|
|
53312
|
+
var require_dist4 = __commonJS({
|
|
53309
53313
|
"../../node_modules/.pnpm/@tootallnate+once@2.0.0/node_modules/@tootallnate/once/dist/index.js"(exports2) {
|
|
53310
53314
|
"use strict";
|
|
53311
53315
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -53571,7 +53575,7 @@ var require_agent2 = __commonJS({
|
|
|
53571
53575
|
var tls_1 = __importDefault(require("tls"));
|
|
53572
53576
|
var url_1 = __importDefault(require("url"));
|
|
53573
53577
|
var debug_1 = __importDefault(require_src());
|
|
53574
|
-
var once_1 = __importDefault(
|
|
53578
|
+
var once_1 = __importDefault(require_dist4());
|
|
53575
53579
|
var agent_base_1 = require_src3();
|
|
53576
53580
|
var debug = (0, debug_1.default)("http-proxy-agent");
|
|
53577
53581
|
function isHTTPS(protocol) {
|
|
@@ -53663,7 +53667,7 @@ var require_agent2 = __commonJS({
|
|
|
53663
53667
|
});
|
|
53664
53668
|
|
|
53665
53669
|
// ../../node_modules/.pnpm/http-proxy-agent@5.0.0/node_modules/http-proxy-agent/dist/index.js
|
|
53666
|
-
var
|
|
53670
|
+
var require_dist5 = __commonJS({
|
|
53667
53671
|
"../../node_modules/.pnpm/http-proxy-agent@5.0.0/node_modules/http-proxy-agent/dist/index.js"(exports2, module2) {
|
|
53668
53672
|
"use strict";
|
|
53669
53673
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
@@ -53905,7 +53909,7 @@ var require_agent3 = __commonJS({
|
|
|
53905
53909
|
});
|
|
53906
53910
|
|
|
53907
53911
|
// ../../node_modules/.pnpm/https-proxy-agent@5.0.0/node_modules/https-proxy-agent/dist/index.js
|
|
53908
|
-
var
|
|
53912
|
+
var require_dist6 = __commonJS({
|
|
53909
53913
|
"../../node_modules/.pnpm/https-proxy-agent@5.0.0/node_modules/https-proxy-agent/dist/index.js"(exports2, module2) {
|
|
53910
53914
|
"use strict";
|
|
53911
53915
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
@@ -55639,7 +55643,7 @@ var require_socksclient = __commonJS({
|
|
|
55639
55643
|
});
|
|
55640
55644
|
|
|
55641
55645
|
// ../../node_modules/.pnpm/socks@2.6.1/node_modules/socks/build/index.js
|
|
55642
|
-
var
|
|
55646
|
+
var require_build2 = __commonJS({
|
|
55643
55647
|
"../../node_modules/.pnpm/socks@2.6.1/node_modules/socks/build/index.js"(exports2) {
|
|
55644
55648
|
"use strict";
|
|
55645
55649
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -55663,9 +55667,9 @@ var require_build = __commonJS({
|
|
|
55663
55667
|
}
|
|
55664
55668
|
});
|
|
55665
55669
|
|
|
55666
|
-
// ../../node_modules/.pnpm/socks-proxy-agent@6.1.
|
|
55670
|
+
// ../../node_modules/.pnpm/socks-proxy-agent@6.1.1/node_modules/socks-proxy-agent/dist/agent.js
|
|
55667
55671
|
var require_agent4 = __commonJS({
|
|
55668
|
-
"../../node_modules/.pnpm/socks-proxy-agent@6.1.
|
|
55672
|
+
"../../node_modules/.pnpm/socks-proxy-agent@6.1.1/node_modules/socks-proxy-agent/dist/agent.js"(exports2) {
|
|
55669
55673
|
"use strict";
|
|
55670
55674
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
55671
55675
|
function adopt(value) {
|
|
@@ -55703,7 +55707,7 @@ var require_agent4 = __commonJS({
|
|
|
55703
55707
|
var url_1 = __importDefault(require("url"));
|
|
55704
55708
|
var debug_1 = __importDefault(require_src());
|
|
55705
55709
|
var agent_base_1 = require_src3();
|
|
55706
|
-
var socks_1 =
|
|
55710
|
+
var socks_1 = require_build2();
|
|
55707
55711
|
var debug = debug_1.default("socks-proxy-agent");
|
|
55708
55712
|
function dnsLookup(host) {
|
|
55709
55713
|
return new Promise((resolve, reject) => {
|
|
@@ -55844,9 +55848,9 @@ var require_agent4 = __commonJS({
|
|
|
55844
55848
|
}
|
|
55845
55849
|
});
|
|
55846
55850
|
|
|
55847
|
-
// ../../node_modules/.pnpm/socks-proxy-agent@6.1.
|
|
55848
|
-
var
|
|
55849
|
-
"../../node_modules/.pnpm/socks-proxy-agent@6.1.
|
|
55851
|
+
// ../../node_modules/.pnpm/socks-proxy-agent@6.1.1/node_modules/socks-proxy-agent/dist/index.js
|
|
55852
|
+
var require_dist7 = __commonJS({
|
|
55853
|
+
"../../node_modules/.pnpm/socks-proxy-agent@6.1.1/node_modules/socks-proxy-agent/dist/index.js"(exports2, module2) {
|
|
55850
55854
|
"use strict";
|
|
55851
55855
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
55852
55856
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -55873,10 +55877,10 @@ var require_lib29 = __commonJS({
|
|
|
55873
55877
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
55874
55878
|
var url_1 = require("url");
|
|
55875
55879
|
var agentkeepalive_1 = __importDefault(require_agentkeepalive());
|
|
55876
|
-
var http_proxy_agent_1 = __importDefault(
|
|
55877
|
-
var https_proxy_agent_1 = __importDefault(
|
|
55880
|
+
var http_proxy_agent_1 = __importDefault(require_dist5());
|
|
55881
|
+
var https_proxy_agent_1 = __importDefault(require_dist6());
|
|
55878
55882
|
var lru_cache_1 = __importDefault(require_lru_cache());
|
|
55879
|
-
var socks_proxy_agent_1 = __importDefault(
|
|
55883
|
+
var socks_proxy_agent_1 = __importDefault(require_dist7());
|
|
55880
55884
|
var HttpsAgent = agentkeepalive_1.default.HttpsAgent;
|
|
55881
55885
|
var DEFAULT_MAX_SOCKETS = 50;
|
|
55882
55886
|
var AGENT_CACHE = new lru_cache_1.default({ max: 50 });
|
|
@@ -56155,15 +56159,15 @@ var require_cmd_shim = __commonJS({
|
|
|
56155
56159
|
]);
|
|
56156
56160
|
function ingestOptions(opts) {
|
|
56157
56161
|
const opts_ = { ...DEFAULT_OPTIONS, ...opts };
|
|
56158
|
-
const
|
|
56162
|
+
const fs2 = opts_.fs;
|
|
56159
56163
|
opts_.fs_ = {
|
|
56160
|
-
chmod:
|
|
56164
|
+
chmod: fs2.chmod ? util_1.promisify(fs2.chmod) : async () => {
|
|
56161
56165
|
},
|
|
56162
|
-
mkdir: util_1.promisify(
|
|
56163
|
-
readFile: util_1.promisify(
|
|
56164
|
-
stat: util_1.promisify(
|
|
56165
|
-
unlink: util_1.promisify(
|
|
56166
|
-
writeFile: util_1.promisify(
|
|
56166
|
+
mkdir: util_1.promisify(fs2.mkdir),
|
|
56167
|
+
readFile: util_1.promisify(fs2.readFile),
|
|
56168
|
+
stat: util_1.promisify(fs2.stat),
|
|
56169
|
+
unlink: util_1.promisify(fs2.unlink),
|
|
56170
|
+
writeFile: util_1.promisify(fs2.writeFile)
|
|
56167
56171
|
};
|
|
56168
56172
|
return opts_;
|
|
56169
56173
|
}
|
|
@@ -61459,7 +61463,7 @@ var require_table = __commonJS({
|
|
|
61459
61463
|
});
|
|
61460
61464
|
|
|
61461
61465
|
// ../../node_modules/.pnpm/table@6.0.4/node_modules/table/dist/index.js
|
|
61462
|
-
var
|
|
61466
|
+
var require_dist8 = __commonJS({
|
|
61463
61467
|
"../../node_modules/.pnpm/table@6.0.4/node_modules/table/dist/index.js"(exports2) {
|
|
61464
61468
|
"use strict";
|
|
61465
61469
|
Object.defineProperty(exports2, "__esModule", {
|
|
@@ -61496,7 +61500,7 @@ var require_dist9 = __commonJS({
|
|
|
61496
61500
|
var require_lib31 = __commonJS({
|
|
61497
61501
|
"../../node_modules/.pnpm/render-help@1.0.2/node_modules/render-help/lib/index.js"(exports2, module2) {
|
|
61498
61502
|
"use strict";
|
|
61499
|
-
var table_1 =
|
|
61503
|
+
var table_1 = require_dist8();
|
|
61500
61504
|
var NO_BORDERS = {
|
|
61501
61505
|
topBody: "",
|
|
61502
61506
|
topJoin: "",
|
|
@@ -61576,9 +61580,9 @@ var require_lib31 = __commonJS({
|
|
|
61576
61580
|
// ../../node_modules/.pnpm/@zkochan+rimraf@2.1.1/node_modules/@zkochan/rimraf/index.js
|
|
61577
61581
|
var require_rimraf = __commonJS({
|
|
61578
61582
|
"../../node_modules/.pnpm/@zkochan+rimraf@2.1.1/node_modules/@zkochan/rimraf/index.js"(exports2, module2) {
|
|
61579
|
-
var
|
|
61580
|
-
var rm =
|
|
61581
|
-
var rmdirSync =
|
|
61583
|
+
var fs2 = require("fs");
|
|
61584
|
+
var rm = fs2.promises.rm ? fs2.promises.rm : fs2.promises.rmdir;
|
|
61585
|
+
var rmdirSync = fs2.rmSync ? fs2.rmSync : fs2.rmdirSync;
|
|
61582
61586
|
module2.exports = async (p) => {
|
|
61583
61587
|
try {
|
|
61584
61588
|
await rm(p, { recursive: true, maxRetries: 3 });
|
|
@@ -61604,12 +61608,12 @@ var require_rimraf = __commonJS({
|
|
|
61604
61608
|
var require_rename_overwrite = __commonJS({
|
|
61605
61609
|
"../../node_modules/.pnpm/rename-overwrite@4.0.0/node_modules/rename-overwrite/index.js"(exports2, module2) {
|
|
61606
61610
|
"use strict";
|
|
61607
|
-
var
|
|
61611
|
+
var fs2 = require("fs");
|
|
61608
61612
|
var path = require("path");
|
|
61609
61613
|
var rimraf = require_rimraf();
|
|
61610
61614
|
module2.exports = async function renameOverwrite(oldPath, newPath) {
|
|
61611
61615
|
try {
|
|
61612
|
-
await
|
|
61616
|
+
await fs2.promises.rename(oldPath, newPath);
|
|
61613
61617
|
} catch (err) {
|
|
61614
61618
|
switch (err.code) {
|
|
61615
61619
|
case "ENOTEMPTY":
|
|
@@ -61626,7 +61630,7 @@ var require_rename_overwrite = __commonJS({
|
|
|
61626
61630
|
while (Date.now() - start < 6e4 && (lastError.code === "EPERM" || lastError.code === "EACCESS")) {
|
|
61627
61631
|
await new Promise((resolve) => setTimeout(resolve, backoff));
|
|
61628
61632
|
try {
|
|
61629
|
-
await
|
|
61633
|
+
await fs2.promises.rename(oldPath, newPath);
|
|
61630
61634
|
return;
|
|
61631
61635
|
} catch (err2) {
|
|
61632
61636
|
lastError = err2;
|
|
@@ -61639,13 +61643,13 @@ var require_rename_overwrite = __commonJS({
|
|
|
61639
61643
|
}
|
|
61640
61644
|
case "ENOENT":
|
|
61641
61645
|
try {
|
|
61642
|
-
await
|
|
61646
|
+
await fs2.promises.stat(oldPath);
|
|
61643
61647
|
} catch (statErr) {
|
|
61644
61648
|
if (statErr.code === "ENOENT") {
|
|
61645
61649
|
throw statErr;
|
|
61646
61650
|
}
|
|
61647
61651
|
}
|
|
61648
|
-
await
|
|
61652
|
+
await fs2.promises.mkdir(path.dirname(newPath), { recursive: true });
|
|
61649
61653
|
await renameOverwrite(oldPath, newPath);
|
|
61650
61654
|
break;
|
|
61651
61655
|
default:
|
|
@@ -61655,17 +61659,17 @@ var require_rename_overwrite = __commonJS({
|
|
|
61655
61659
|
};
|
|
61656
61660
|
module2.exports.sync = function renameOverwriteSync(oldPath, newPath) {
|
|
61657
61661
|
try {
|
|
61658
|
-
|
|
61662
|
+
fs2.renameSync(oldPath, newPath);
|
|
61659
61663
|
} catch (err) {
|
|
61660
61664
|
switch (err.code) {
|
|
61661
61665
|
case "ENOTEMPTY":
|
|
61662
61666
|
case "EEXIST":
|
|
61663
61667
|
case "EPERM":
|
|
61664
61668
|
rimraf.sync(newPath);
|
|
61665
|
-
|
|
61669
|
+
fs2.renameSync(oldPath, newPath);
|
|
61666
61670
|
return;
|
|
61667
61671
|
case "ENOENT":
|
|
61668
|
-
|
|
61672
|
+
fs2.mkdirSync(path.dirname(newPath), { recursive: true });
|
|
61669
61673
|
renameOverwriteSync(oldPath, newPath);
|
|
61670
61674
|
return;
|
|
61671
61675
|
default:
|
|
@@ -66726,7 +66730,7 @@ var require_pump = __commonJS({
|
|
|
66726
66730
|
"../../node_modules/.pnpm/pump@2.0.1/node_modules/pump/index.js"(exports2, module2) {
|
|
66727
66731
|
var once = require_once();
|
|
66728
66732
|
var eos = require_end_of_stream2();
|
|
66729
|
-
var
|
|
66733
|
+
var fs2 = require("fs");
|
|
66730
66734
|
var noop = function() {
|
|
66731
66735
|
};
|
|
66732
66736
|
var ancient = /^v?\.0/.test(process.version);
|
|
@@ -66736,9 +66740,9 @@ var require_pump = __commonJS({
|
|
|
66736
66740
|
var isFS = function(stream) {
|
|
66737
66741
|
if (!ancient)
|
|
66738
66742
|
return false;
|
|
66739
|
-
if (!
|
|
66743
|
+
if (!fs2)
|
|
66740
66744
|
return false;
|
|
66741
|
-
return (stream instanceof (
|
|
66745
|
+
return (stream instanceof (fs2.ReadStream || noop) || stream instanceof (fs2.WriteStream || noop)) && isFn(stream.close);
|
|
66742
66746
|
};
|
|
66743
66747
|
var isRequest = function(stream) {
|
|
66744
66748
|
return stream.setHeader && isFn(stream.abort);
|
|
@@ -68416,9 +68420,9 @@ var require_lib32 = __commonJS({
|
|
|
68416
68420
|
}
|
|
68417
68421
|
});
|
|
68418
68422
|
|
|
68419
|
-
// ../../node_modules/.pnpm/spdx-license-ids@3.0.
|
|
68423
|
+
// ../../node_modules/.pnpm/spdx-license-ids@3.0.11/node_modules/spdx-license-ids/index.json
|
|
68420
68424
|
var require_spdx_license_ids = __commonJS({
|
|
68421
|
-
"../../node_modules/.pnpm/spdx-license-ids@3.0.
|
|
68425
|
+
"../../node_modules/.pnpm/spdx-license-ids@3.0.11/node_modules/spdx-license-ids/index.json"(exports2, module2) {
|
|
68422
68426
|
module2.exports = [
|
|
68423
68427
|
"0BSD",
|
|
68424
68428
|
"AAL",
|
|
@@ -68556,12 +68560,14 @@ var require_spdx_license_ids = __commonJS({
|
|
|
68556
68560
|
"CNRI-Jython",
|
|
68557
68561
|
"CNRI-Python",
|
|
68558
68562
|
"CNRI-Python-GPL-Compatible",
|
|
68563
|
+
"COIL-1.0",
|
|
68559
68564
|
"CPAL-1.0",
|
|
68560
68565
|
"CPL-1.0",
|
|
68561
68566
|
"CPOL-1.02",
|
|
68562
68567
|
"CUA-OPL-1.0",
|
|
68563
68568
|
"Caldera",
|
|
68564
68569
|
"ClArtistic",
|
|
68570
|
+
"Community-Spec-1.0",
|
|
68565
68571
|
"Condor-1.1",
|
|
68566
68572
|
"Crossword",
|
|
68567
68573
|
"CrystalStacker",
|
|
@@ -68585,6 +68591,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
68585
68591
|
"Entessa",
|
|
68586
68592
|
"ErlPL-1.1",
|
|
68587
68593
|
"Eurosym",
|
|
68594
|
+
"FDK-AAC",
|
|
68588
68595
|
"FSFAP",
|
|
68589
68596
|
"FSFUL",
|
|
68590
68597
|
"FSFULLR",
|
|
@@ -68666,6 +68673,7 @@ var require_spdx_license_ids = __commonJS({
|
|
|
68666
68673
|
"LiLiQ-Rplus-1.1",
|
|
68667
68674
|
"Libpng",
|
|
68668
68675
|
"Linux-OpenIB",
|
|
68676
|
+
"Linux-man-pages-copyleft",
|
|
68669
68677
|
"MIT",
|
|
68670
68678
|
"MIT-0",
|
|
68671
68679
|
"MIT-CMU",
|
|
@@ -68868,9 +68876,9 @@ var require_spdx_license_ids = __commonJS({
|
|
|
68868
68876
|
}
|
|
68869
68877
|
});
|
|
68870
68878
|
|
|
68871
|
-
// ../../node_modules/.pnpm/spdx-license-ids@3.0.
|
|
68879
|
+
// ../../node_modules/.pnpm/spdx-license-ids@3.0.11/node_modules/spdx-license-ids/deprecated.json
|
|
68872
68880
|
var require_deprecated = __commonJS({
|
|
68873
|
-
"../../node_modules/.pnpm/spdx-license-ids@3.0.
|
|
68881
|
+
"../../node_modules/.pnpm/spdx-license-ids@3.0.11/node_modules/spdx-license-ids/deprecated.json"(exports2, module2) {
|
|
68874
68882
|
module2.exports = [
|
|
68875
68883
|
"AGPL-1.0",
|
|
68876
68884
|
"AGPL-3.0",
|
|
@@ -70469,7 +70477,7 @@ var require_encode_registry = __commonJS({
|
|
|
70469
70477
|
"use strict";
|
|
70470
70478
|
var assert = require("assert");
|
|
70471
70479
|
var { URL: URL2 } = require("url");
|
|
70472
|
-
var mem =
|
|
70480
|
+
var mem = require_dist2();
|
|
70473
70481
|
module2.exports = mem(encodeRegistry);
|
|
70474
70482
|
function encodeRegistry(registry) {
|
|
70475
70483
|
assert(registry, "`registry` is required");
|
|
@@ -70942,7 +70950,7 @@ var require_priority_queue = __commonJS({
|
|
|
70942
70950
|
});
|
|
70943
70951
|
|
|
70944
70952
|
// ../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js
|
|
70945
|
-
var
|
|
70953
|
+
var require_dist9 = __commonJS({
|
|
70946
70954
|
"../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js"(exports2) {
|
|
70947
70955
|
"use strict";
|
|
70948
70956
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -71263,13 +71271,14 @@ var require_packageRequester = __commonJS({
|
|
|
71263
71271
|
var package_is_installable_1 = __importDefault(require_lib15());
|
|
71264
71272
|
var read_package_json_1 = __importDefault(require_lib33());
|
|
71265
71273
|
var dependency_path_1 = require_lib34();
|
|
71266
|
-
var p_queue_1 = __importDefault(
|
|
71274
|
+
var p_queue_1 = __importDefault(require_dist9());
|
|
71267
71275
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
71268
71276
|
var p_defer_1 = __importDefault(require_p_defer2());
|
|
71269
71277
|
var path_temp_1 = __importDefault(require_path_temp());
|
|
71270
71278
|
var promise_share_1 = __importDefault(require_promise_share());
|
|
71271
71279
|
var pick_1 = __importDefault(require_pick());
|
|
71272
71280
|
var rename_overwrite_1 = __importDefault(require_rename_overwrite());
|
|
71281
|
+
var semver_1 = __importDefault(require_semver2());
|
|
71273
71282
|
var ssri_1 = __importDefault(require_ssri());
|
|
71274
71283
|
var safeDeferredPromise_1 = __importDefault(require_safeDeferredPromise());
|
|
71275
71284
|
var TARBALL_INTEGRITY_FILENAME = "tarball-integrity";
|
|
@@ -71289,6 +71298,13 @@ var require_packageRequester = __commonJS({
|
|
|
71289
71298
|
"scripts",
|
|
71290
71299
|
"version"
|
|
71291
71300
|
]);
|
|
71301
|
+
function normalizeBundledManifest(manifest) {
|
|
71302
|
+
var _a, _b;
|
|
71303
|
+
return {
|
|
71304
|
+
...pickBundledManifest(manifest),
|
|
71305
|
+
version: (_b = semver_1.default.clean((_a = manifest.version) !== null && _a !== void 0 ? _a : "0.0.0", { loose: true })) !== null && _b !== void 0 ? _b : manifest.version
|
|
71306
|
+
};
|
|
71307
|
+
}
|
|
71292
71308
|
function default_1(opts) {
|
|
71293
71309
|
var _a;
|
|
71294
71310
|
opts = opts || {};
|
|
@@ -71501,7 +71517,7 @@ var require_packageRequester = __commonJS({
|
|
|
71501
71517
|
}
|
|
71502
71518
|
if ((pkgFilesIndex === null || pkgFilesIndex === void 0 ? void 0 : pkgFilesIndex.files) != null) {
|
|
71503
71519
|
const manifest = opts.fetchRawManifest ? (0, safeDeferredPromise_1.default)() : void 0;
|
|
71504
|
-
if (pkgFilesIndex.name != null && opts.pkg.name != null && pkgFilesIndex.name !== opts.pkg.name || pkgFilesIndex.version != null && opts.pkg.version != null && pkgFilesIndex.version
|
|
71520
|
+
if (pkgFilesIndex.name != null && opts.pkg.name != null && pkgFilesIndex.name !== opts.pkg.name || pkgFilesIndex.version != null && opts.pkg.version != null && !semver_1.default.eq(pkgFilesIndex.version, opts.pkg.version, { loose: true })) {
|
|
71505
71521
|
throw new error_1.default("UNEXPECTED_PKG_CONTENT_IN_STORE", `Package name mismatch found while reading ${JSON.stringify(opts.pkg.resolution)} from the store. This means that the lockfile is broken. Expected package: ${opts.pkg.name}@${opts.pkg.version}. Actual package in the store by the given integrity: ${pkgFilesIndex.name}@${pkgFilesIndex.version}.`);
|
|
71506
71522
|
}
|
|
71507
71523
|
const verified = await ctx.checkFilesIntegrity(pkgFilesIndex.files, manifest);
|
|
@@ -71512,7 +71528,7 @@ var require_packageRequester = __commonJS({
|
|
|
71512
71528
|
sideEffects: pkgFilesIndex.sideEffects
|
|
71513
71529
|
});
|
|
71514
71530
|
if (manifest != null) {
|
|
71515
|
-
manifest().then((manifest2) => bundledManifest.resolve(
|
|
71531
|
+
manifest().then((manifest2) => bundledManifest.resolve(normalizeBundledManifest(manifest2))).catch(bundledManifest.reject);
|
|
71516
71532
|
}
|
|
71517
71533
|
finishing.resolve(void 0);
|
|
71518
71534
|
return;
|
|
@@ -71526,7 +71542,7 @@ var require_packageRequester = __commonJS({
|
|
|
71526
71542
|
const priority = (++ctx.requestsQueue["counter"] % ctx.requestsQueue["concurrency"] === 0 ? -1 : 1) * 1e3;
|
|
71527
71543
|
const fetchManifest = opts.fetchRawManifest ? (0, safeDeferredPromise_1.default)() : void 0;
|
|
71528
71544
|
if (fetchManifest != null) {
|
|
71529
|
-
fetchManifest().then((manifest) => bundledManifest.resolve(
|
|
71545
|
+
fetchManifest().then((manifest) => bundledManifest.resolve(normalizeBundledManifest(manifest))).catch(bundledManifest.reject);
|
|
71530
71546
|
}
|
|
71531
71547
|
const fetchedPackage = await ctx.requestsQueue.add(async () => ctx.fetch(opts.pkg.id, opts.pkg.resolution, {
|
|
71532
71548
|
lockfileDir: opts.lockfileDir,
|
|
@@ -72782,7 +72798,7 @@ var require_semver3 = __commonJS({
|
|
|
72782
72798
|
var require_make_dir = __commonJS({
|
|
72783
72799
|
"../../node_modules/.pnpm/make-dir@3.1.0/node_modules/make-dir/index.js"(exports2, module2) {
|
|
72784
72800
|
"use strict";
|
|
72785
|
-
var
|
|
72801
|
+
var fs2 = require("fs");
|
|
72786
72802
|
var path = require("path");
|
|
72787
72803
|
var { promisify } = require("util");
|
|
72788
72804
|
var semver = require_semver3();
|
|
@@ -72800,7 +72816,7 @@ var require_make_dir = __commonJS({
|
|
|
72800
72816
|
var processOptions = (options) => {
|
|
72801
72817
|
const defaults = {
|
|
72802
72818
|
mode: 511,
|
|
72803
|
-
fs
|
|
72819
|
+
fs: fs2
|
|
72804
72820
|
};
|
|
72805
72821
|
return {
|
|
72806
72822
|
...defaults,
|
|
@@ -72820,7 +72836,7 @@ var require_make_dir = __commonJS({
|
|
|
72820
72836
|
options = processOptions(options);
|
|
72821
72837
|
const mkdir = promisify(options.fs.mkdir);
|
|
72822
72838
|
const stat = promisify(options.fs.stat);
|
|
72823
|
-
if (useNativeRecursiveOption && options.fs.mkdir ===
|
|
72839
|
+
if (useNativeRecursiveOption && options.fs.mkdir === fs2.mkdir) {
|
|
72824
72840
|
const pth = path.resolve(input);
|
|
72825
72841
|
await mkdir(pth, {
|
|
72826
72842
|
mode: options.mode,
|
|
@@ -72863,9 +72879,9 @@ var require_make_dir = __commonJS({
|
|
|
72863
72879
|
module2.exports.sync = (input, options) => {
|
|
72864
72880
|
checkPath(input);
|
|
72865
72881
|
options = processOptions(options);
|
|
72866
|
-
if (useNativeRecursiveOption && options.fs.mkdirSync ===
|
|
72882
|
+
if (useNativeRecursiveOption && options.fs.mkdirSync === fs2.mkdirSync) {
|
|
72867
72883
|
const pth = path.resolve(input);
|
|
72868
|
-
|
|
72884
|
+
fs2.mkdirSync(pth, {
|
|
72869
72885
|
mode: options.mode,
|
|
72870
72886
|
recursive: true
|
|
72871
72887
|
});
|
|
@@ -72909,13 +72925,13 @@ var require_write_json_file = __commonJS({
|
|
|
72909
72925
|
"use strict";
|
|
72910
72926
|
var { promisify } = require("util");
|
|
72911
72927
|
var path = require("path");
|
|
72912
|
-
var
|
|
72928
|
+
var fs2 = require_graceful_fs();
|
|
72913
72929
|
var writeFileAtomic = require_write_file_atomic();
|
|
72914
72930
|
var sortKeys = require_sort_keys();
|
|
72915
72931
|
var makeDir = require_make_dir();
|
|
72916
72932
|
var detectIndent = require_detect_indent();
|
|
72917
72933
|
var isPlainObj = require_is_plain_obj();
|
|
72918
|
-
var readFile = promisify(
|
|
72934
|
+
var readFile = promisify(fs2.readFile);
|
|
72919
72935
|
var init = (fn2, filePath, data, options) => {
|
|
72920
72936
|
if (!filePath) {
|
|
72921
72937
|
throw new TypeError("Expected a filepath");
|
|
@@ -72959,7 +72975,7 @@ var require_write_json_file = __commonJS({
|
|
|
72959
72975
|
let { indent } = options;
|
|
72960
72976
|
let trailingNewline = "\n";
|
|
72961
72977
|
try {
|
|
72962
|
-
const file =
|
|
72978
|
+
const file = fs2.readFileSync(filePath, "utf8");
|
|
72963
72979
|
if (!file.endsWith("\n")) {
|
|
72964
72980
|
trailingNewline = "";
|
|
72965
72981
|
}
|
|
@@ -72975,11 +72991,11 @@ var require_write_json_file = __commonJS({
|
|
|
72975
72991
|
return writeFileAtomic.sync(filePath, `${json}${trailingNewline}`, { mode: options.mode, chown: false });
|
|
72976
72992
|
};
|
|
72977
72993
|
module2.exports = async (filePath, data, options) => {
|
|
72978
|
-
await makeDir(path.dirname(filePath), { fs });
|
|
72994
|
+
await makeDir(path.dirname(filePath), { fs: fs2 });
|
|
72979
72995
|
return init(main, filePath, data, options);
|
|
72980
72996
|
};
|
|
72981
72997
|
module2.exports.sync = (filePath, data, options) => {
|
|
72982
|
-
makeDir.sync(path.dirname(filePath), { fs });
|
|
72998
|
+
makeDir.sync(path.dirname(filePath), { fs: fs2 });
|
|
72983
72999
|
init(mainSync, filePath, data, options);
|
|
72984
73000
|
};
|
|
72985
73001
|
}
|
|
@@ -73064,15 +73080,15 @@ var require_sanitize_filename = __commonJS({
|
|
|
73064
73080
|
var require_make_empty_dir = __commonJS({
|
|
73065
73081
|
"../../node_modules/.pnpm/make-empty-dir@2.0.0/node_modules/make-empty-dir/index.js"(exports2, module2) {
|
|
73066
73082
|
"use strict";
|
|
73067
|
-
var
|
|
73083
|
+
var fs2 = require("fs").promises;
|
|
73068
73084
|
var path = require("path");
|
|
73069
73085
|
var rimraf = require_rimraf();
|
|
73070
73086
|
module2.exports = async function makeEmptyDir(dir, opts) {
|
|
73071
73087
|
if (opts && opts.recursive) {
|
|
73072
|
-
await
|
|
73088
|
+
await fs2.mkdir(path.dirname(dir), { recursive: true });
|
|
73073
73089
|
}
|
|
73074
73090
|
try {
|
|
73075
|
-
await
|
|
73091
|
+
await fs2.mkdir(dir);
|
|
73076
73092
|
return "created";
|
|
73077
73093
|
} catch (err) {
|
|
73078
73094
|
if (err.code === "EEXIST") {
|
|
@@ -73083,7 +73099,7 @@ var require_make_empty_dir = __commonJS({
|
|
|
73083
73099
|
}
|
|
73084
73100
|
};
|
|
73085
73101
|
async function removeContentsOfDir(dir) {
|
|
73086
|
-
const items = await
|
|
73102
|
+
const items = await fs2.readdir(dir);
|
|
73087
73103
|
for (const item of items) {
|
|
73088
73104
|
await rimraf(path.join(dir, item));
|
|
73089
73105
|
}
|
|
@@ -73437,7 +73453,7 @@ var require_storeController = __commonJS({
|
|
|
73437
73453
|
var cafs_1 = __importStar2(require_lib32());
|
|
73438
73454
|
var package_requester_1 = __importDefault(require_lib35());
|
|
73439
73455
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
73440
|
-
var mem_1 = __importDefault(
|
|
73456
|
+
var mem_1 = __importDefault(require_dist2());
|
|
73441
73457
|
var path_temp_1 = __importDefault(require_path_temp());
|
|
73442
73458
|
var write_json_file_1 = __importDefault(require_write_json_file());
|
|
73443
73459
|
var createImportPackage_1 = __importDefault(require_createImportPackage());
|
|
@@ -73635,10 +73651,10 @@ var require_can_link = __commonJS({
|
|
|
73635
73651
|
"use strict";
|
|
73636
73652
|
var defaultFS = require("fs");
|
|
73637
73653
|
module2.exports = async (existingPath, newPath, customFS) => {
|
|
73638
|
-
const
|
|
73654
|
+
const fs2 = customFS || defaultFS;
|
|
73639
73655
|
try {
|
|
73640
|
-
await
|
|
73641
|
-
|
|
73656
|
+
await fs2.promises.link(existingPath, newPath);
|
|
73657
|
+
fs2.promises.unlink(newPath).catch(() => {
|
|
73642
73658
|
});
|
|
73643
73659
|
return true;
|
|
73644
73660
|
} catch (err) {
|
|
@@ -73649,10 +73665,10 @@ var require_can_link = __commonJS({
|
|
|
73649
73665
|
}
|
|
73650
73666
|
};
|
|
73651
73667
|
module2.exports.sync = (existingPath, newPath, customFS) => {
|
|
73652
|
-
const
|
|
73668
|
+
const fs2 = customFS || defaultFS;
|
|
73653
73669
|
try {
|
|
73654
|
-
|
|
73655
|
-
|
|
73670
|
+
fs2.linkSync(existingPath, newPath);
|
|
73671
|
+
fs2.unlinkSync(newPath);
|
|
73656
73672
|
return true;
|
|
73657
73673
|
} catch (err) {
|
|
73658
73674
|
if (err.code === "EXDEV" || err.code === "EACCES" || err.code === "EPERM") {
|
|
@@ -73726,7 +73742,7 @@ var require_touch = __commonJS({
|
|
|
73726
73742
|
"use strict";
|
|
73727
73743
|
var EE = require("events").EventEmitter;
|
|
73728
73744
|
var cons = require("constants");
|
|
73729
|
-
var
|
|
73745
|
+
var fs2 = require("fs");
|
|
73730
73746
|
module2.exports = (f, options, cb) => {
|
|
73731
73747
|
if (typeof options === "function")
|
|
73732
73748
|
cb = options, options = {};
|
|
@@ -73791,11 +73807,11 @@ var require_touch = __commonJS({
|
|
|
73791
73807
|
}
|
|
73792
73808
|
close() {
|
|
73793
73809
|
if (typeof this.fd === "number" && this.closeAfter)
|
|
73794
|
-
|
|
73810
|
+
fs2.close(this.fd, () => {
|
|
73795
73811
|
});
|
|
73796
73812
|
}
|
|
73797
73813
|
open() {
|
|
73798
|
-
|
|
73814
|
+
fs2.open(this.path, this.oflags, (er, fd) => this.onopen(er, fd));
|
|
73799
73815
|
}
|
|
73800
73816
|
onopen(er, fd) {
|
|
73801
73817
|
if (er) {
|
|
@@ -73816,7 +73832,7 @@ var require_touch = __commonJS({
|
|
|
73816
73832
|
}
|
|
73817
73833
|
}
|
|
73818
73834
|
statref() {
|
|
73819
|
-
|
|
73835
|
+
fs2.stat(this.ref, (er, st) => {
|
|
73820
73836
|
if (er)
|
|
73821
73837
|
this.emit("error", er);
|
|
73822
73838
|
else
|
|
@@ -73834,7 +73850,7 @@ var require_touch = __commonJS({
|
|
|
73834
73850
|
fstat() {
|
|
73835
73851
|
const stat = this.fd ? "fstat" : "stat";
|
|
73836
73852
|
const target = this.fd || this.path;
|
|
73837
|
-
|
|
73853
|
+
fs2[stat](target, (er, st) => {
|
|
73838
73854
|
if (er)
|
|
73839
73855
|
this.emit("error", er);
|
|
73840
73856
|
else
|
|
@@ -73851,7 +73867,7 @@ var require_touch = __commonJS({
|
|
|
73851
73867
|
futimes() {
|
|
73852
73868
|
const utimes = this.fd ? "futimes" : "utimes";
|
|
73853
73869
|
const target = this.fd || this.path;
|
|
73854
|
-
|
|
73870
|
+
fs2[utimes](target, "" + this.atime, "" + this.mtime, (er) => {
|
|
73855
73871
|
if (er)
|
|
73856
73872
|
this.emit("error", er);
|
|
73857
73873
|
else
|
|
@@ -73862,7 +73878,7 @@ var require_touch = __commonJS({
|
|
|
73862
73878
|
var TouchSync = class extends Touch {
|
|
73863
73879
|
open() {
|
|
73864
73880
|
try {
|
|
73865
|
-
this.onopen(null,
|
|
73881
|
+
this.onopen(null, fs2.openSync(this.path, this.oflags));
|
|
73866
73882
|
} catch (er) {
|
|
73867
73883
|
this.onopen(er);
|
|
73868
73884
|
}
|
|
@@ -73870,7 +73886,7 @@ var require_touch = __commonJS({
|
|
|
73870
73886
|
statref() {
|
|
73871
73887
|
let threw = true;
|
|
73872
73888
|
try {
|
|
73873
|
-
this.onstatref(
|
|
73889
|
+
this.onstatref(fs2.statSync(this.ref));
|
|
73874
73890
|
threw = false;
|
|
73875
73891
|
} finally {
|
|
73876
73892
|
if (threw)
|
|
@@ -73882,7 +73898,7 @@ var require_touch = __commonJS({
|
|
|
73882
73898
|
const stat = this.fd ? "fstatSync" : "statSync";
|
|
73883
73899
|
const target = this.fd || this.path;
|
|
73884
73900
|
try {
|
|
73885
|
-
this.onfstat(
|
|
73901
|
+
this.onfstat(fs2[stat](target));
|
|
73886
73902
|
threw = false;
|
|
73887
73903
|
} finally {
|
|
73888
73904
|
if (threw)
|
|
@@ -73894,7 +73910,7 @@ var require_touch = __commonJS({
|
|
|
73894
73910
|
const utimes = this.fd ? "futimesSync" : "utimesSync";
|
|
73895
73911
|
const target = this.fd || this.path;
|
|
73896
73912
|
try {
|
|
73897
|
-
|
|
73913
|
+
fs2[utimes](target, this.atime, this.mtime);
|
|
73898
73914
|
threw = false;
|
|
73899
73915
|
} finally {
|
|
73900
73916
|
if (threw)
|
|
@@ -73905,7 +73921,7 @@ var require_touch = __commonJS({
|
|
|
73905
73921
|
close() {
|
|
73906
73922
|
if (typeof this.fd === "number" && this.closeAfter)
|
|
73907
73923
|
try {
|
|
73908
|
-
|
|
73924
|
+
fs2.closeSync(this.fd);
|
|
73909
73925
|
} catch (er) {
|
|
73910
73926
|
}
|
|
73911
73927
|
}
|
|
@@ -74109,11 +74125,11 @@ var require_locate_path2 = __commonJS({
|
|
|
74109
74125
|
"../../node_modules/.pnpm/locate-path@5.0.0/node_modules/locate-path/index.js"(exports2, module2) {
|
|
74110
74126
|
"use strict";
|
|
74111
74127
|
var path = require("path");
|
|
74112
|
-
var
|
|
74128
|
+
var fs2 = require("fs");
|
|
74113
74129
|
var { promisify } = require("util");
|
|
74114
74130
|
var pLocate = require_p_locate2();
|
|
74115
|
-
var fsStat = promisify(
|
|
74116
|
-
var fsLStat = promisify(
|
|
74131
|
+
var fsStat = promisify(fs2.stat);
|
|
74132
|
+
var fsLStat = promisify(fs2.lstat);
|
|
74117
74133
|
var typeMappings = {
|
|
74118
74134
|
directory: "isDirectory",
|
|
74119
74135
|
file: "isFile"
|
|
@@ -74151,7 +74167,7 @@ var require_locate_path2 = __commonJS({
|
|
|
74151
74167
|
...options
|
|
74152
74168
|
};
|
|
74153
74169
|
checkType(options);
|
|
74154
|
-
const statFn = options.allowSymlinks ?
|
|
74170
|
+
const statFn = options.allowSymlinks ? fs2.statSync : fs2.lstatSync;
|
|
74155
74171
|
for (const path_ of paths) {
|
|
74156
74172
|
try {
|
|
74157
74173
|
const stat = statFn(path.resolve(options.cwd, path_));
|
|
@@ -77301,13 +77317,13 @@ var require_js_yaml3 = __commonJS({
|
|
|
77301
77317
|
var require_load_yaml_file = __commonJS({
|
|
77302
77318
|
"../../node_modules/.pnpm/load-yaml-file@0.2.0/node_modules/load-yaml-file/index.js"(exports2, module2) {
|
|
77303
77319
|
"use strict";
|
|
77304
|
-
var
|
|
77320
|
+
var fs2 = require_graceful_fs();
|
|
77305
77321
|
var pify = require_pify();
|
|
77306
77322
|
var stripBom = require_strip_bom2();
|
|
77307
77323
|
var yaml = require_js_yaml3();
|
|
77308
77324
|
var parse = (data) => yaml.safeLoad(stripBom(data));
|
|
77309
|
-
module2.exports = (fp) => pify(
|
|
77310
|
-
module2.exports.sync = (fp) => parse(
|
|
77325
|
+
module2.exports = (fp) => pify(fs2.readFile)(fp, "utf8").then((data) => parse(data));
|
|
77326
|
+
module2.exports.sync = (fp) => parse(fs2.readFileSync(fp, "utf8"));
|
|
77311
77327
|
}
|
|
77312
77328
|
});
|
|
77313
77329
|
|
|
@@ -78210,9 +78226,9 @@ var require_errors2 = __commonJS({
|
|
|
78210
78226
|
// ../../node_modules/.pnpm/adm-zip@0.5.9/node_modules/adm-zip/util/fattr.js
|
|
78211
78227
|
var require_fattr = __commonJS({
|
|
78212
78228
|
"../../node_modules/.pnpm/adm-zip@0.5.9/node_modules/adm-zip/util/fattr.js"(exports2, module2) {
|
|
78213
|
-
var
|
|
78229
|
+
var fs2 = require_fileSystem().require();
|
|
78214
78230
|
var pth = require("path");
|
|
78215
|
-
|
|
78231
|
+
fs2.existsSync = fs2.existsSync || pth.existsSync;
|
|
78216
78232
|
module2.exports = function(path) {
|
|
78217
78233
|
var _path = path || "", _obj = newAttr(), _stat = null;
|
|
78218
78234
|
function newAttr() {
|
|
@@ -78225,8 +78241,8 @@ var require_fattr = __commonJS({
|
|
|
78225
78241
|
atime: 0
|
|
78226
78242
|
};
|
|
78227
78243
|
}
|
|
78228
|
-
if (_path &&
|
|
78229
|
-
_stat =
|
|
78244
|
+
if (_path && fs2.existsSync(_path)) {
|
|
78245
|
+
_stat = fs2.statSync(_path);
|
|
78230
78246
|
_obj.directory = _stat.isDirectory();
|
|
78231
78247
|
_obj.mtime = _stat.mtime;
|
|
78232
78248
|
_obj.atime = _stat.atime;
|
|
@@ -79870,12 +79886,12 @@ var require_adm_zip = __commonJS({
|
|
|
79870
79886
|
var require_temp_dir = __commonJS({
|
|
79871
79887
|
"../../node_modules/.pnpm/temp-dir@2.0.0/node_modules/temp-dir/index.js"(exports2, module2) {
|
|
79872
79888
|
"use strict";
|
|
79873
|
-
var
|
|
79889
|
+
var fs2 = require("fs");
|
|
79874
79890
|
var os = require("os");
|
|
79875
79891
|
var tempDirectorySymbol = Symbol.for("__RESOLVED_TEMP_DIRECTORY__");
|
|
79876
79892
|
if (!global[tempDirectorySymbol]) {
|
|
79877
79893
|
Object.defineProperty(global, tempDirectorySymbol, {
|
|
79878
|
-
value:
|
|
79894
|
+
value: fs2.realpathSync(os.tmpdir())
|
|
79879
79895
|
});
|
|
79880
79896
|
}
|
|
79881
79897
|
module2.exports = global[tempDirectorySymbol];
|
|
@@ -79897,13 +79913,13 @@ var require_path_type = __commonJS({
|
|
|
79897
79913
|
"../../node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.js"(exports2) {
|
|
79898
79914
|
"use strict";
|
|
79899
79915
|
var { promisify } = require("util");
|
|
79900
|
-
var
|
|
79916
|
+
var fs2 = require("fs");
|
|
79901
79917
|
async function isType(fsStatType, statsMethodName, filePath) {
|
|
79902
79918
|
if (typeof filePath !== "string") {
|
|
79903
79919
|
throw new TypeError(`Expected a string, got ${typeof filePath}`);
|
|
79904
79920
|
}
|
|
79905
79921
|
try {
|
|
79906
|
-
const stats = await promisify(
|
|
79922
|
+
const stats = await promisify(fs2[fsStatType])(filePath);
|
|
79907
79923
|
return stats[statsMethodName]();
|
|
79908
79924
|
} catch (error) {
|
|
79909
79925
|
if (error.code === "ENOENT") {
|
|
@@ -79917,7 +79933,7 @@ var require_path_type = __commonJS({
|
|
|
79917
79933
|
throw new TypeError(`Expected a string, got ${typeof filePath}`);
|
|
79918
79934
|
}
|
|
79919
79935
|
try {
|
|
79920
|
-
return
|
|
79936
|
+
return fs2[fsStatType](filePath)[statsMethodName]();
|
|
79921
79937
|
} catch (error) {
|
|
79922
79938
|
if (error.code === "ENOENT") {
|
|
79923
79939
|
return false;
|
|
@@ -80259,7 +80275,7 @@ var require_gitignore = __commonJS({
|
|
|
80259
80275
|
"../../node_modules/.pnpm/globby@11.0.4/node_modules/globby/gitignore.js"(exports2, module2) {
|
|
80260
80276
|
"use strict";
|
|
80261
80277
|
var { promisify } = require("util");
|
|
80262
|
-
var
|
|
80278
|
+
var fs2 = require("fs");
|
|
80263
80279
|
var path = require("path");
|
|
80264
80280
|
var fastGlob = require_out4();
|
|
80265
80281
|
var gitIgnore = require_ignore();
|
|
@@ -80270,7 +80286,7 @@ var require_gitignore = __commonJS({
|
|
|
80270
80286
|
"**/coverage/**",
|
|
80271
80287
|
"**/.git"
|
|
80272
80288
|
];
|
|
80273
|
-
var readFileP = promisify(
|
|
80289
|
+
var readFileP = promisify(fs2.readFile);
|
|
80274
80290
|
var mapGitIgnorePatternTo = (base) => (ignore) => {
|
|
80275
80291
|
if (ignore.startsWith("!")) {
|
|
80276
80292
|
return "!" + path.posix.join(base, ignore.slice(1));
|
|
@@ -80315,7 +80331,7 @@ var require_gitignore = __commonJS({
|
|
|
80315
80331
|
};
|
|
80316
80332
|
var getFileSync = (file, cwd) => {
|
|
80317
80333
|
const filePath = path.join(cwd, file);
|
|
80318
|
-
const content =
|
|
80334
|
+
const content = fs2.readFileSync(filePath, "utf8");
|
|
80319
80335
|
return {
|
|
80320
80336
|
cwd,
|
|
80321
80337
|
filePath,
|
|
@@ -80399,7 +80415,7 @@ var require_stream_utils = __commonJS({
|
|
|
80399
80415
|
var require_globby = __commonJS({
|
|
80400
80416
|
"../../node_modules/.pnpm/globby@11.0.4/node_modules/globby/index.js"(exports2, module2) {
|
|
80401
80417
|
"use strict";
|
|
80402
|
-
var
|
|
80418
|
+
var fs2 = require("fs");
|
|
80403
80419
|
var arrayUnion = require_array_union();
|
|
80404
80420
|
var merge2 = require_merge22();
|
|
80405
80421
|
var fastGlob = require_out4();
|
|
@@ -80419,7 +80435,7 @@ var require_globby = __commonJS({
|
|
|
80419
80435
|
}
|
|
80420
80436
|
let stat;
|
|
80421
80437
|
try {
|
|
80422
|
-
stat =
|
|
80438
|
+
stat = fs2.statSync(options.cwd);
|
|
80423
80439
|
} catch {
|
|
80424
80440
|
return;
|
|
80425
80441
|
}
|
|
@@ -80427,7 +80443,7 @@ var require_globby = __commonJS({
|
|
|
80427
80443
|
throw new Error("The `cwd` option must be a path to a directory");
|
|
80428
80444
|
}
|
|
80429
80445
|
};
|
|
80430
|
-
var getPathString = (p) => p.stats instanceof
|
|
80446
|
+
var getPathString = (p) => p.stats instanceof fs2.Stats ? p.path : p;
|
|
80431
80447
|
var generateGlobTasks = (patterns, taskOptions) => {
|
|
80432
80448
|
patterns = arrayUnion([].concat(patterns));
|
|
80433
80449
|
assertPatternsInput(patterns);
|
|
@@ -80565,7 +80581,7 @@ var require_old = __commonJS({
|
|
|
80565
80581
|
"../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js"(exports2) {
|
|
80566
80582
|
var pathModule = require("path");
|
|
80567
80583
|
var isWindows = process.platform === "win32";
|
|
80568
|
-
var
|
|
80584
|
+
var fs2 = require("fs");
|
|
80569
80585
|
var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
|
80570
80586
|
function rethrow() {
|
|
80571
80587
|
var callback;
|
|
@@ -80630,7 +80646,7 @@ var require_old = __commonJS({
|
|
|
80630
80646
|
base = m[0];
|
|
80631
80647
|
previous = "";
|
|
80632
80648
|
if (isWindows && !knownHard[base]) {
|
|
80633
|
-
|
|
80649
|
+
fs2.lstatSync(base);
|
|
80634
80650
|
knownHard[base] = true;
|
|
80635
80651
|
}
|
|
80636
80652
|
}
|
|
@@ -80648,7 +80664,7 @@ var require_old = __commonJS({
|
|
|
80648
80664
|
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
80649
80665
|
resolvedLink = cache[base];
|
|
80650
80666
|
} else {
|
|
80651
|
-
var stat =
|
|
80667
|
+
var stat = fs2.lstatSync(base);
|
|
80652
80668
|
if (!stat.isSymbolicLink()) {
|
|
80653
80669
|
knownHard[base] = true;
|
|
80654
80670
|
if (cache)
|
|
@@ -80663,8 +80679,8 @@ var require_old = __commonJS({
|
|
|
80663
80679
|
}
|
|
80664
80680
|
}
|
|
80665
80681
|
if (linkTarget === null) {
|
|
80666
|
-
|
|
80667
|
-
linkTarget =
|
|
80682
|
+
fs2.statSync(base);
|
|
80683
|
+
linkTarget = fs2.readlinkSync(base);
|
|
80668
80684
|
}
|
|
80669
80685
|
resolvedLink = pathModule.resolve(previous, linkTarget);
|
|
80670
80686
|
if (cache)
|
|
@@ -80701,7 +80717,7 @@ var require_old = __commonJS({
|
|
|
80701
80717
|
base = m[0];
|
|
80702
80718
|
previous = "";
|
|
80703
80719
|
if (isWindows && !knownHard[base]) {
|
|
80704
|
-
|
|
80720
|
+
fs2.lstat(base, function(err) {
|
|
80705
80721
|
if (err)
|
|
80706
80722
|
return cb(err);
|
|
80707
80723
|
knownHard[base] = true;
|
|
@@ -80729,7 +80745,7 @@ var require_old = __commonJS({
|
|
|
80729
80745
|
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
80730
80746
|
return gotResolvedLink(cache[base]);
|
|
80731
80747
|
}
|
|
80732
|
-
return
|
|
80748
|
+
return fs2.lstat(base, gotStat);
|
|
80733
80749
|
}
|
|
80734
80750
|
function gotStat(err, stat) {
|
|
80735
80751
|
if (err)
|
|
@@ -80746,10 +80762,10 @@ var require_old = __commonJS({
|
|
|
80746
80762
|
return gotTarget(null, seenLinks[id], base);
|
|
80747
80763
|
}
|
|
80748
80764
|
}
|
|
80749
|
-
|
|
80765
|
+
fs2.stat(base, function(err2) {
|
|
80750
80766
|
if (err2)
|
|
80751
80767
|
return cb(err2);
|
|
80752
|
-
|
|
80768
|
+
fs2.readlink(base, function(err3, target) {
|
|
80753
80769
|
if (!isWindows)
|
|
80754
80770
|
seenLinks[id] = target;
|
|
80755
80771
|
gotTarget(err3, target);
|
|
@@ -80781,9 +80797,9 @@ var require_fs5 = __commonJS({
|
|
|
80781
80797
|
realpath.realpathSync = realpathSync;
|
|
80782
80798
|
realpath.monkeypatch = monkeypatch;
|
|
80783
80799
|
realpath.unmonkeypatch = unmonkeypatch;
|
|
80784
|
-
var
|
|
80785
|
-
var origRealpath =
|
|
80786
|
-
var origRealpathSync =
|
|
80800
|
+
var fs2 = require("fs");
|
|
80801
|
+
var origRealpath = fs2.realpath;
|
|
80802
|
+
var origRealpathSync = fs2.realpathSync;
|
|
80787
80803
|
var version = process.version;
|
|
80788
80804
|
var ok = /^v[0-5]\./.test(version);
|
|
80789
80805
|
var old = require_old();
|
|
@@ -80821,12 +80837,12 @@ var require_fs5 = __commonJS({
|
|
|
80821
80837
|
}
|
|
80822
80838
|
}
|
|
80823
80839
|
function monkeypatch() {
|
|
80824
|
-
|
|
80825
|
-
|
|
80840
|
+
fs2.realpath = realpath;
|
|
80841
|
+
fs2.realpathSync = realpathSync;
|
|
80826
80842
|
}
|
|
80827
80843
|
function unmonkeypatch() {
|
|
80828
|
-
|
|
80829
|
-
|
|
80844
|
+
fs2.realpath = origRealpath;
|
|
80845
|
+
fs2.realpathSync = origRealpathSync;
|
|
80830
80846
|
}
|
|
80831
80847
|
}
|
|
80832
80848
|
});
|
|
@@ -81657,7 +81673,7 @@ var require_common6 = __commonJS({
|
|
|
81657
81673
|
function ownProp(obj, field) {
|
|
81658
81674
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
81659
81675
|
}
|
|
81660
|
-
var
|
|
81676
|
+
var fs2 = require("fs");
|
|
81661
81677
|
var path = require("path");
|
|
81662
81678
|
var minimatch = require_minimatch();
|
|
81663
81679
|
var isAbsolute = require_path_is_absolute();
|
|
@@ -81712,7 +81728,7 @@ var require_common6 = __commonJS({
|
|
|
81712
81728
|
self2.stat = !!options.stat;
|
|
81713
81729
|
self2.noprocess = !!options.noprocess;
|
|
81714
81730
|
self2.absolute = !!options.absolute;
|
|
81715
|
-
self2.fs = options.fs ||
|
|
81731
|
+
self2.fs = options.fs || fs2;
|
|
81716
81732
|
self2.maxLength = options.maxLength || Infinity;
|
|
81717
81733
|
self2.cache = options.cache || Object.create(null);
|
|
81718
81734
|
self2.statCache = options.statCache || Object.create(null);
|
|
@@ -82792,7 +82808,7 @@ var require_rimraf2 = __commonJS({
|
|
|
82792
82808
|
"../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports2, module2) {
|
|
82793
82809
|
var assert = require("assert");
|
|
82794
82810
|
var path = require("path");
|
|
82795
|
-
var
|
|
82811
|
+
var fs2 = require("fs");
|
|
82796
82812
|
var glob = void 0;
|
|
82797
82813
|
try {
|
|
82798
82814
|
glob = require_glob();
|
|
@@ -82814,9 +82830,9 @@ var require_rimraf2 = __commonJS({
|
|
|
82814
82830
|
"readdir"
|
|
82815
82831
|
];
|
|
82816
82832
|
methods.forEach((m) => {
|
|
82817
|
-
options[m] = options[m] ||
|
|
82833
|
+
options[m] = options[m] || fs2[m];
|
|
82818
82834
|
m = m + "Sync";
|
|
82819
|
-
options[m] = options[m] ||
|
|
82835
|
+
options[m] = options[m] || fs2[m];
|
|
82820
82836
|
});
|
|
82821
82837
|
options.maxBusyTries = options.maxBusyTries || 3;
|
|
82822
82838
|
options.emfileWait = options.emfileWait || 1e3;
|
|
@@ -83338,7 +83354,7 @@ var require_del = __commonJS({
|
|
|
83338
83354
|
var require_tempy = __commonJS({
|
|
83339
83355
|
"../../node_modules/.pnpm/tempy@1.0.1/node_modules/tempy/index.js"(exports2, module2) {
|
|
83340
83356
|
"use strict";
|
|
83341
|
-
var
|
|
83357
|
+
var fs2 = require("fs");
|
|
83342
83358
|
var path = require("path");
|
|
83343
83359
|
var uniqueString = require_unique_string();
|
|
83344
83360
|
var tempDir = require_temp_dir();
|
|
@@ -83347,9 +83363,9 @@ var require_tempy = __commonJS({
|
|
|
83347
83363
|
var stream = require("stream");
|
|
83348
83364
|
var { promisify } = require("util");
|
|
83349
83365
|
var pipeline = promisify(stream.pipeline);
|
|
83350
|
-
var { writeFile } =
|
|
83366
|
+
var { writeFile } = fs2.promises;
|
|
83351
83367
|
var getPath = (prefix = "") => path.join(tempDir, prefix + uniqueString());
|
|
83352
|
-
var writeStream = async (filePath, data) => pipeline(data,
|
|
83368
|
+
var writeStream = async (filePath, data) => pipeline(data, fs2.createWriteStream(filePath));
|
|
83353
83369
|
var createTask = (tempyFunction, { extraArguments = 0 } = {}) => async (...arguments_) => {
|
|
83354
83370
|
const [callback, options] = arguments_.slice(extraArguments);
|
|
83355
83371
|
const result = await tempyFunction(...arguments_.slice(0, extraArguments), options);
|
|
@@ -83374,7 +83390,7 @@ var require_tempy = __commonJS({
|
|
|
83374
83390
|
module2.exports.file.task = createTask(module2.exports.file);
|
|
83375
83391
|
module2.exports.directory = ({ prefix = "" } = {}) => {
|
|
83376
83392
|
const directory = getPath(prefix);
|
|
83377
|
-
|
|
83393
|
+
fs2.mkdirSync(directory);
|
|
83378
83394
|
return directory;
|
|
83379
83395
|
};
|
|
83380
83396
|
module2.exports.directory.task = createTask(module2.exports.directory);
|
|
@@ -83387,7 +83403,7 @@ var require_tempy = __commonJS({
|
|
|
83387
83403
|
module2.exports.write.task = createTask(module2.exports.write, { extraArguments: 1 });
|
|
83388
83404
|
module2.exports.writeSync = (data, options) => {
|
|
83389
83405
|
const filename = module2.exports.file(options);
|
|
83390
|
-
|
|
83406
|
+
fs2.writeFileSync(filename, data);
|
|
83391
83407
|
return filename;
|
|
83392
83408
|
};
|
|
83393
83409
|
Object.defineProperty(module2.exports, "root", {
|
|
@@ -83398,6 +83414,24 @@ var require_tempy = __commonJS({
|
|
|
83398
83414
|
}
|
|
83399
83415
|
});
|
|
83400
83416
|
|
|
83417
|
+
// ../plugin-commands-env/lib/normalizeArch.js
|
|
83418
|
+
var require_normalizeArch = __commonJS({
|
|
83419
|
+
"../plugin-commands-env/lib/normalizeArch.js"(exports2) {
|
|
83420
|
+
"use strict";
|
|
83421
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
83422
|
+
function getNormalizedArch(platform, arch) {
|
|
83423
|
+
if (platform === "win32" && arch === "ia32") {
|
|
83424
|
+
return "x86";
|
|
83425
|
+
}
|
|
83426
|
+
if (arch === "arm") {
|
|
83427
|
+
return "armv7l";
|
|
83428
|
+
}
|
|
83429
|
+
return arch;
|
|
83430
|
+
}
|
|
83431
|
+
exports2.default = getNormalizedArch;
|
|
83432
|
+
}
|
|
83433
|
+
});
|
|
83434
|
+
|
|
83401
83435
|
// ../plugin-commands-env/lib/node.js
|
|
83402
83436
|
var require_node3 = __commonJS({
|
|
83403
83437
|
"../plugin-commands-env/lib/node.js"(exports2) {
|
|
@@ -83446,6 +83480,7 @@ var require_node3 = __commonJS({
|
|
|
83446
83480
|
var tempy_1 = __importDefault(require_tempy());
|
|
83447
83481
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
83448
83482
|
var write_json_file_1 = __importDefault(require_write_json_file());
|
|
83483
|
+
var normalizeArch_1 = __importDefault(require_normalizeArch());
|
|
83449
83484
|
async function getNodeBinDir(opts) {
|
|
83450
83485
|
const fetch = (0, fetch_1.createFetchFromRegistry)(opts);
|
|
83451
83486
|
const nodeDir = await getNodeDir(fetch, opts);
|
|
@@ -83521,7 +83556,7 @@ var require_node3 = __commonJS({
|
|
|
83521
83556
|
}
|
|
83522
83557
|
function getNodeJSTarball(nodeVersion, releaseDir) {
|
|
83523
83558
|
const platform = process.platform === "win32" ? "win" : process.platform;
|
|
83524
|
-
const arch =
|
|
83559
|
+
const arch = (0, normalizeArch_1.default)(process.platform, process.arch);
|
|
83525
83560
|
const extension = platform === "win" ? "zip" : "tar.gz";
|
|
83526
83561
|
const pkgName = `node-v${nodeVersion}-${platform}-${arch}`;
|
|
83527
83562
|
return {
|
|
@@ -84472,7 +84507,7 @@ var require_mem = __commonJS({
|
|
|
84472
84507
|
"../../node_modules/.pnpm/mem@6.1.1/node_modules/mem/index.js"(exports2, module2) {
|
|
84473
84508
|
"use strict";
|
|
84474
84509
|
var mimicFn = require_mimic_fn();
|
|
84475
|
-
var mapAgeCleaner =
|
|
84510
|
+
var mapAgeCleaner = require_dist();
|
|
84476
84511
|
var cacheStore = new WeakMap();
|
|
84477
84512
|
var mem = (fn2, {
|
|
84478
84513
|
cacheKey,
|
|
@@ -85414,7 +85449,7 @@ var require_npm_normalize_package_bin = __commonJS({
|
|
|
85414
85449
|
var require_npm_bundled = __commonJS({
|
|
85415
85450
|
"../../node_modules/.pnpm/npm-bundled@1.1.2/node_modules/npm-bundled/index.js"(exports2, module2) {
|
|
85416
85451
|
"use strict";
|
|
85417
|
-
var
|
|
85452
|
+
var fs2 = require("fs");
|
|
85418
85453
|
var path = require("path");
|
|
85419
85454
|
var EE = require("events").EventEmitter;
|
|
85420
85455
|
var normalizePackageBin = require_npm_normalize_package_bin();
|
|
@@ -85476,7 +85511,7 @@ var require_npm_bundled = __commonJS({
|
|
|
85476
85511
|
return this;
|
|
85477
85512
|
}
|
|
85478
85513
|
readPackageJson(pj) {
|
|
85479
|
-
|
|
85514
|
+
fs2.readFile(pj, (er, data) => er ? this.done() : this.onPackageJson(pj, data));
|
|
85480
85515
|
}
|
|
85481
85516
|
onPackageJson(pj, data) {
|
|
85482
85517
|
try {
|
|
@@ -85543,7 +85578,7 @@ var require_npm_bundled = __commonJS({
|
|
|
85543
85578
|
}
|
|
85544
85579
|
readPackageJson(pj) {
|
|
85545
85580
|
try {
|
|
85546
|
-
this.onPackageJson(pj,
|
|
85581
|
+
this.onPackageJson(pj, fs2.readFileSync(pj));
|
|
85547
85582
|
} catch (er) {
|
|
85548
85583
|
}
|
|
85549
85584
|
return this;
|
|
@@ -85563,7 +85598,7 @@ var require_npm_bundled = __commonJS({
|
|
|
85563
85598
|
}
|
|
85564
85599
|
};
|
|
85565
85600
|
var readdirNodeModules = (nm, cb) => {
|
|
85566
|
-
|
|
85601
|
+
fs2.readdir(nm, (er, set) => {
|
|
85567
85602
|
if (er)
|
|
85568
85603
|
cb(er);
|
|
85569
85604
|
else {
|
|
@@ -85574,7 +85609,7 @@ var require_npm_bundled = __commonJS({
|
|
|
85574
85609
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
85575
85610
|
let count = scopes.length;
|
|
85576
85611
|
scopes.forEach((scope) => {
|
|
85577
|
-
|
|
85612
|
+
fs2.readdir(nm + "/" + scope, (er2, pkgs) => {
|
|
85578
85613
|
if (er2 || !pkgs.length)
|
|
85579
85614
|
unscoped.push(scope);
|
|
85580
85615
|
else
|
|
@@ -85588,11 +85623,11 @@ var require_npm_bundled = __commonJS({
|
|
|
85588
85623
|
});
|
|
85589
85624
|
};
|
|
85590
85625
|
var readdirNodeModulesSync = (nm) => {
|
|
85591
|
-
const set =
|
|
85626
|
+
const set = fs2.readdirSync(nm);
|
|
85592
85627
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
85593
85628
|
const scopes = set.filter((f) => /^@/.test(f)).map((scope) => {
|
|
85594
85629
|
try {
|
|
85595
|
-
const pkgs =
|
|
85630
|
+
const pkgs = fs2.readdirSync(nm + "/" + scope);
|
|
85596
85631
|
return pkgs.length ? pkgs.map((p) => scope + "/" + p) : [scope];
|
|
85597
85632
|
} catch (er) {
|
|
85598
85633
|
return [scope];
|
|
@@ -85620,7 +85655,7 @@ var require_npm_bundled = __commonJS({
|
|
|
85620
85655
|
var require_ignore_walk = __commonJS({
|
|
85621
85656
|
"../../node_modules/.pnpm/ignore-walk@3.0.4/node_modules/ignore-walk/index.js"(exports2, module2) {
|
|
85622
85657
|
"use strict";
|
|
85623
|
-
var
|
|
85658
|
+
var fs2 = require("fs");
|
|
85624
85659
|
var path = require("path");
|
|
85625
85660
|
var EE = require("events").EventEmitter;
|
|
85626
85661
|
var Minimatch = require_minimatch().Minimatch;
|
|
@@ -85660,7 +85695,7 @@ var require_ignore_walk = __commonJS({
|
|
|
85660
85695
|
return ret;
|
|
85661
85696
|
}
|
|
85662
85697
|
start() {
|
|
85663
|
-
|
|
85698
|
+
fs2.readdir(this.path, (er, entries) => er ? this.emit("error", er) : this.onReaddir(entries));
|
|
85664
85699
|
return this;
|
|
85665
85700
|
}
|
|
85666
85701
|
isIgnoreFile(e) {
|
|
@@ -85691,7 +85726,7 @@ var require_ignore_walk = __commonJS({
|
|
|
85691
85726
|
}
|
|
85692
85727
|
addIgnoreFile(file, then) {
|
|
85693
85728
|
const ig = path.resolve(this.path, file);
|
|
85694
|
-
|
|
85729
|
+
fs2.readFile(ig, "utf8", (er, data) => er ? this.emit("error", er) : this.onReadIgnoreFile(file, data, then));
|
|
85695
85730
|
}
|
|
85696
85731
|
onReadIgnoreFile(file, data, then) {
|
|
85697
85732
|
const mmopt = {
|
|
@@ -85741,7 +85776,7 @@ var require_ignore_walk = __commonJS({
|
|
|
85741
85776
|
}
|
|
85742
85777
|
stat(entry, file, dir, then) {
|
|
85743
85778
|
const abs = this.path + "/" + entry;
|
|
85744
|
-
|
|
85779
|
+
fs2[this.follow ? "stat" : "lstat"](abs, (er, st) => {
|
|
85745
85780
|
if (er)
|
|
85746
85781
|
this.emit("error", er);
|
|
85747
85782
|
else
|
|
@@ -85785,16 +85820,16 @@ var require_ignore_walk = __commonJS({
|
|
|
85785
85820
|
super(opt);
|
|
85786
85821
|
}
|
|
85787
85822
|
start() {
|
|
85788
|
-
this.onReaddir(
|
|
85823
|
+
this.onReaddir(fs2.readdirSync(this.path));
|
|
85789
85824
|
return this;
|
|
85790
85825
|
}
|
|
85791
85826
|
addIgnoreFile(file, then) {
|
|
85792
85827
|
const ig = path.resolve(this.path, file);
|
|
85793
|
-
this.onReadIgnoreFile(file,
|
|
85828
|
+
this.onReadIgnoreFile(file, fs2.readFileSync(ig, "utf8"), then);
|
|
85794
85829
|
}
|
|
85795
85830
|
stat(entry, file, dir, then) {
|
|
85796
85831
|
const abs = this.path + "/" + entry;
|
|
85797
|
-
const st =
|
|
85832
|
+
const st = fs2[this.follow ? "statSync" : "lstatSync"](abs);
|
|
85798
85833
|
this.onstat(st, entry, file, dir, then);
|
|
85799
85834
|
}
|
|
85800
85835
|
walker(entry, then) {
|
|
@@ -85835,7 +85870,7 @@ var require_npm_packlist = __commonJS({
|
|
|
85835
85870
|
var packageMustHaveFileNames = "readme|copying|license|licence";
|
|
85836
85871
|
var packageMustHaves = `@(${packageMustHaveFileNames}){,.*[^~$]}`;
|
|
85837
85872
|
var packageMustHavesRE = new RegExp(`^(${packageMustHaveFileNames})(\\..*[^~$])?$`, "i");
|
|
85838
|
-
var
|
|
85873
|
+
var fs2 = require("fs");
|
|
85839
85874
|
var glob = require_glob();
|
|
85840
85875
|
var defaultRules = [
|
|
85841
85876
|
".npmignore",
|
|
@@ -86049,7 +86084,7 @@ var require_npm_packlist = __commonJS({
|
|
|
86049
86084
|
glob(pattern, { dot: true, cwd: this.path, nocase: true }, cb);
|
|
86050
86085
|
}
|
|
86051
86086
|
readPackageJson(entries) {
|
|
86052
|
-
|
|
86087
|
+
fs2.readFile(this.path + "/package.json", (er, pkg) => this.onReadPackageJson(entries, er, pkg));
|
|
86053
86088
|
}
|
|
86054
86089
|
walker(entry, then) {
|
|
86055
86090
|
new Walker(this.walkerOpt(entry)).on("done", then).start();
|
|
@@ -86062,7 +86097,7 @@ var require_npm_packlist = __commonJS({
|
|
|
86062
86097
|
readPackageJson(entries) {
|
|
86063
86098
|
const p = this.path + "/package.json";
|
|
86064
86099
|
try {
|
|
86065
|
-
this.onReadPackageJson(entries, null,
|
|
86100
|
+
this.onReadPackageJson(entries, null, fs2.readFileSync(p));
|
|
86066
86101
|
} catch (er) {
|
|
86067
86102
|
this.onReadPackageJson(entries, er);
|
|
86068
86103
|
}
|
|
@@ -86263,7 +86298,7 @@ var require_lib51 = __commonJS({
|
|
|
86263
86298
|
var git_fetcher_1 = __importDefault(require_lib50());
|
|
86264
86299
|
var tarball_fetcher_1 = __importDefault(require_lib41());
|
|
86265
86300
|
var credentials_by_uri_1 = __importDefault(require_credentials_by_uri());
|
|
86266
|
-
var mem_1 = __importDefault(
|
|
86301
|
+
var mem_1 = __importDefault(require_dist2());
|
|
86267
86302
|
function default_1(opts) {
|
|
86268
86303
|
const fetchFromRegistry = (0, fetch_1.createFetchFromRegistry)(opts);
|
|
86269
86304
|
const getCredentials = (0, mem_1.default)((registry) => (0, credentials_by_uri_1.default)(opts.authConfig, registry));
|
|
@@ -86506,29 +86541,18 @@ var require_packageIsIndependent = __commonJS({
|
|
|
86506
86541
|
}
|
|
86507
86542
|
});
|
|
86508
86543
|
|
|
86509
|
-
// ../../node_modules/.pnpm/
|
|
86510
|
-
var require_normalize_registry_url = __commonJS({
|
|
86511
|
-
"../../node_modules/.pnpm/normalize-registry-url@1.0.0/node_modules/normalize-registry-url/index.js"(exports2, module2) {
|
|
86512
|
-
"use strict";
|
|
86513
|
-
module2.exports = function(registry) {
|
|
86514
|
-
if (typeof registry !== "string") {
|
|
86515
|
-
throw new TypeError("`registry` should be a string");
|
|
86516
|
-
}
|
|
86517
|
-
if (registry[registry.length - 1] === "/")
|
|
86518
|
-
return registry;
|
|
86519
|
-
return `${registry}/`;
|
|
86520
|
-
};
|
|
86521
|
-
}
|
|
86522
|
-
});
|
|
86523
|
-
|
|
86524
|
-
// ../../node_modules/.pnpm/get-npm-tarball-url@2.0.2/node_modules/get-npm-tarball-url/lib/index.js
|
|
86544
|
+
// ../../node_modules/.pnpm/get-npm-tarball-url@2.0.3/node_modules/get-npm-tarball-url/lib/index.js
|
|
86525
86545
|
var require_lib53 = __commonJS({
|
|
86526
|
-
"../../node_modules/.pnpm/get-npm-tarball-url@2.0.
|
|
86546
|
+
"../../node_modules/.pnpm/get-npm-tarball-url@2.0.3/node_modules/get-npm-tarball-url/lib/index.js"(exports2) {
|
|
86527
86547
|
"use strict";
|
|
86528
86548
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
86529
|
-
var normalizeRegistry = require_normalize_registry_url();
|
|
86530
86549
|
function default_1(pkgName, pkgVersion, opts) {
|
|
86531
|
-
|
|
86550
|
+
let registry;
|
|
86551
|
+
if (opts === null || opts === void 0 ? void 0 : opts.registry) {
|
|
86552
|
+
registry = opts.registry.endsWith("/") ? opts.registry : `${opts.registry}/`;
|
|
86553
|
+
} else {
|
|
86554
|
+
registry = "https://registry.npmjs.org/";
|
|
86555
|
+
}
|
|
86532
86556
|
const scopelessName = getScopelessName(pkgName);
|
|
86533
86557
|
return `${registry}${pkgName}/-/${scopelessName}-${removeBuildMetadataFromVersion(pkgVersion)}.tgz`;
|
|
86534
86558
|
}
|
|
@@ -89831,7 +89855,7 @@ var require_table2 = __commonJS({
|
|
|
89831
89855
|
});
|
|
89832
89856
|
|
|
89833
89857
|
// ../../node_modules/.pnpm/@zkochan+table@1.0.0/node_modules/@zkochan/table/dist/index.js
|
|
89834
|
-
var
|
|
89858
|
+
var require_dist10 = __commonJS({
|
|
89835
89859
|
"../../node_modules/.pnpm/@zkochan+table@1.0.0/node_modules/@zkochan/table/dist/index.js"(exports2) {
|
|
89836
89860
|
"use strict";
|
|
89837
89861
|
Object.defineProperty(exports2, "__esModule", {
|
|
@@ -89917,7 +89941,7 @@ var require_audit2 = __commonJS({
|
|
|
89917
89941
|
var constants_1 = require_lib7();
|
|
89918
89942
|
var error_1 = __importDefault(require_lib8());
|
|
89919
89943
|
var lockfile_file_1 = require_lib59();
|
|
89920
|
-
var table_1 =
|
|
89944
|
+
var table_1 = require_dist10();
|
|
89921
89945
|
var chalk_1 = __importDefault(require_source());
|
|
89922
89946
|
var pick_1 = __importDefault(require_pick());
|
|
89923
89947
|
var render_help_1 = __importDefault(require_lib31());
|
|
@@ -91278,9 +91302,9 @@ var require_lib65 = __commonJS({
|
|
|
91278
91302
|
}
|
|
91279
91303
|
});
|
|
91280
91304
|
|
|
91281
|
-
// ../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.
|
|
91305
|
+
// ../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.3/node_modules/@pnpm/npm-lifecycle/lib/spawn.js
|
|
91282
91306
|
var require_spawn = __commonJS({
|
|
91283
|
-
"../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.
|
|
91307
|
+
"../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.3/node_modules/@pnpm/npm-lifecycle/lib/spawn.js"(exports2, module2) {
|
|
91284
91308
|
"use strict";
|
|
91285
91309
|
module2.exports = spawn;
|
|
91286
91310
|
var _spawn = require("child_process").spawn;
|
|
@@ -103068,7 +103092,7 @@ var require_resolve_from = __commonJS({
|
|
|
103068
103092
|
"use strict";
|
|
103069
103093
|
var path = require("path");
|
|
103070
103094
|
var Module = require("module");
|
|
103071
|
-
var
|
|
103095
|
+
var fs2 = require("fs");
|
|
103072
103096
|
var resolveFrom = (fromDirectory, moduleId, silent) => {
|
|
103073
103097
|
if (typeof fromDirectory !== "string") {
|
|
103074
103098
|
throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDirectory}\``);
|
|
@@ -103077,7 +103101,7 @@ var require_resolve_from = __commonJS({
|
|
|
103077
103101
|
throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
|
|
103078
103102
|
}
|
|
103079
103103
|
try {
|
|
103080
|
-
fromDirectory =
|
|
103104
|
+
fromDirectory = fs2.realpathSync(fromDirectory);
|
|
103081
103105
|
} catch (error) {
|
|
103082
103106
|
if (error.code === "ENOENT") {
|
|
103083
103107
|
fromDirectory = path.resolve(fromDirectory);
|
|
@@ -103107,9 +103131,62 @@ var require_resolve_from = __commonJS({
|
|
|
103107
103131
|
}
|
|
103108
103132
|
});
|
|
103109
103133
|
|
|
103110
|
-
// ../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.
|
|
103134
|
+
// ../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.3/node_modules/@pnpm/npm-lifecycle/lib/extendPath.js
|
|
103135
|
+
var require_extendPath = __commonJS({
|
|
103136
|
+
"../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.3/node_modules/@pnpm/npm-lifecycle/lib/extendPath.js"(exports2, module2) {
|
|
103137
|
+
var path = require("path");
|
|
103138
|
+
var which = require_which();
|
|
103139
|
+
module2.exports = (wd, originalPath, nodeGyp, opts) => {
|
|
103140
|
+
const pathArr = [...opts.extraBinPaths || []];
|
|
103141
|
+
const p = wd.split(/[\\/]node_modules[\\/]/);
|
|
103142
|
+
let acc = path.resolve(p.shift());
|
|
103143
|
+
pathArr.unshift(nodeGyp);
|
|
103144
|
+
p.forEach((pp) => {
|
|
103145
|
+
pathArr.unshift(path.join(acc, "node_modules", ".bin"));
|
|
103146
|
+
acc = path.join(acc, "node_modules", pp);
|
|
103147
|
+
});
|
|
103148
|
+
pathArr.unshift(path.join(acc, "node_modules", ".bin"));
|
|
103149
|
+
if (shouldPrependCurrentNodeDirToPATH(opts)) {
|
|
103150
|
+
pathArr.push(path.dirname(process.execPath));
|
|
103151
|
+
}
|
|
103152
|
+
if (originalPath)
|
|
103153
|
+
pathArr.push(originalPath);
|
|
103154
|
+
return pathArr.join(process.platform === "win32" ? ";" : ":");
|
|
103155
|
+
};
|
|
103156
|
+
function shouldPrependCurrentNodeDirToPATH(opts) {
|
|
103157
|
+
const cfgsetting = opts.scriptsPrependNodePath;
|
|
103158
|
+
if (cfgsetting === false)
|
|
103159
|
+
return false;
|
|
103160
|
+
if (cfgsetting === true)
|
|
103161
|
+
return true;
|
|
103162
|
+
let isDifferentNodeInPath;
|
|
103163
|
+
const isWindows = process.platform === "win32";
|
|
103164
|
+
let foundExecPath;
|
|
103165
|
+
try {
|
|
103166
|
+
foundExecPath = which.sync(path.basename(process.execPath), { pathExt: isWindows ? ";" : ":" });
|
|
103167
|
+
isDifferentNodeInPath = fs.realpathSync(process.execPath).toUpperCase() !== fs.realpathSync(foundExecPath).toUpperCase();
|
|
103168
|
+
} catch (e) {
|
|
103169
|
+
isDifferentNodeInPath = true;
|
|
103170
|
+
}
|
|
103171
|
+
if (cfgsetting === "warn-only") {
|
|
103172
|
+
if (isDifferentNodeInPath && !shouldPrependCurrentNodeDirToPATH.hasWarned) {
|
|
103173
|
+
if (foundExecPath) {
|
|
103174
|
+
opts.log.warn("lifecycle", `The node binary used for scripts is ${foundExecPath} but pnpm is using ${process.execPath} itself. Use the \`--scripts-prepend-node-path\` option to include the path for the node binary pnpm was executed with.`);
|
|
103175
|
+
} else {
|
|
103176
|
+
opts.log.warn("lifecycle", `pnpm is using ${process.execPath} but there is no node binary in the current PATH. Use the \`--scripts-prepend-node-path\` option to include the path for the node binary pnpm was executed with.`);
|
|
103177
|
+
}
|
|
103178
|
+
shouldPrependCurrentNodeDirToPATH.hasWarned = true;
|
|
103179
|
+
}
|
|
103180
|
+
return false;
|
|
103181
|
+
}
|
|
103182
|
+
return isDifferentNodeInPath;
|
|
103183
|
+
}
|
|
103184
|
+
}
|
|
103185
|
+
});
|
|
103186
|
+
|
|
103187
|
+
// ../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.3/node_modules/@pnpm/npm-lifecycle/index.js
|
|
103111
103188
|
var require_npm_lifecycle = __commonJS({
|
|
103112
|
-
"../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.
|
|
103189
|
+
"../../node_modules/.pnpm/@pnpm+npm-lifecycle@1.0.3/node_modules/@pnpm/npm-lifecycle/index.js"(exports2, module2) {
|
|
103113
103190
|
"use strict";
|
|
103114
103191
|
exports2 = module2.exports = lifecycle;
|
|
103115
103192
|
exports2.makeEnv = makeEnv;
|
|
@@ -103118,14 +103195,14 @@ var require_npm_lifecycle = __commonJS({
|
|
|
103118
103195
|
var { execute } = require_lib68();
|
|
103119
103196
|
var path = require("path");
|
|
103120
103197
|
var Stream = require("stream").Stream;
|
|
103121
|
-
var
|
|
103198
|
+
var fs2 = require("fs");
|
|
103122
103199
|
var chain = require_slide().chain;
|
|
103123
103200
|
var uidNumber = require_uid_number();
|
|
103124
103201
|
var umask = require_umask();
|
|
103125
|
-
var which = require_which();
|
|
103126
103202
|
var byline = require_byline();
|
|
103127
103203
|
var resolveFrom = require_resolve_from();
|
|
103128
103204
|
var { PassThrough } = require("stream");
|
|
103205
|
+
var extendPath = require_extendPath();
|
|
103129
103206
|
var DEFAULT_NODE_GYP_PATH;
|
|
103130
103207
|
try {
|
|
103131
103208
|
DEFAULT_NODE_GYP_PATH = resolveFrom(__dirname, "node-gyp/bin/node-gyp");
|
|
@@ -103148,7 +103225,7 @@ var require_npm_lifecycle = __commonJS({
|
|
|
103148
103225
|
const hook = path.join(dir, ".hooks", stage);
|
|
103149
103226
|
const cachedStatError = hookStatCache.get(hook);
|
|
103150
103227
|
if (cachedStatError === void 0) {
|
|
103151
|
-
return
|
|
103228
|
+
return fs2.stat(hook, (statError) => {
|
|
103152
103229
|
hookStatCache.set(hook, statError);
|
|
103153
103230
|
cb(statError);
|
|
103154
103231
|
});
|
|
@@ -103208,21 +103285,7 @@ var require_npm_lifecycle = __commonJS({
|
|
|
103208
103285
|
return wd.lastIndexOf(pkg.name) !== wd.length - pkg.name.length;
|
|
103209
103286
|
}
|
|
103210
103287
|
function lifecycle_(pkg, stage, wd, opts, env, cb) {
|
|
103211
|
-
|
|
103212
|
-
const p = wd.split(/[\\/]node_modules[\\/]/);
|
|
103213
|
-
let acc = path.resolve(p.shift());
|
|
103214
|
-
p.forEach((pp) => {
|
|
103215
|
-
pathArr.unshift(path.join(acc, "node_modules", ".bin"));
|
|
103216
|
-
acc = path.join(acc, "node_modules", pp);
|
|
103217
|
-
});
|
|
103218
|
-
pathArr.unshift(path.join(acc, "node_modules", ".bin"));
|
|
103219
|
-
pathArr.unshift(path.join(__dirname, "node-gyp-bin"));
|
|
103220
|
-
if (shouldPrependCurrentNodeDirToPATH(opts)) {
|
|
103221
|
-
pathArr.push(path.dirname(process.execPath));
|
|
103222
|
-
}
|
|
103223
|
-
if (env[PATH])
|
|
103224
|
-
pathArr.push(env[PATH]);
|
|
103225
|
-
env[PATH] = pathArr.join(process.platform === "win32" ? ";" : ":");
|
|
103288
|
+
env[PATH] = extendPath(wd, env[PATH], path.join(__dirname, "node-gyp-bin"), opts);
|
|
103226
103289
|
let packageLifecycle = pkg.scripts && pkg.scripts.hasOwnProperty(stage);
|
|
103227
103290
|
if (opts.ignoreScripts) {
|
|
103228
103291
|
opts.log.info("lifecycle", logid(pkg, stage), "ignored because ignore-scripts is set to true", pkg._id);
|
|
@@ -103249,36 +103312,8 @@ var require_npm_lifecycle = __commonJS({
|
|
|
103249
103312
|
[runHookLifecycle, pkg, stage, env, wd, opts]
|
|
103250
103313
|
], done);
|
|
103251
103314
|
}
|
|
103252
|
-
function shouldPrependCurrentNodeDirToPATH(opts) {
|
|
103253
|
-
const cfgsetting = opts.scriptsPrependNodePath;
|
|
103254
|
-
if (cfgsetting === false)
|
|
103255
|
-
return false;
|
|
103256
|
-
if (cfgsetting === true)
|
|
103257
|
-
return true;
|
|
103258
|
-
let isDifferentNodeInPath;
|
|
103259
|
-
const isWindows = process.platform === "win32";
|
|
103260
|
-
let foundExecPath;
|
|
103261
|
-
try {
|
|
103262
|
-
foundExecPath = which.sync(path.basename(process.execPath), { pathExt: isWindows ? ";" : ":" });
|
|
103263
|
-
isDifferentNodeInPath = fs.realpathSync(process.execPath).toUpperCase() !== fs.realpathSync(foundExecPath).toUpperCase();
|
|
103264
|
-
} catch (e) {
|
|
103265
|
-
isDifferentNodeInPath = true;
|
|
103266
|
-
}
|
|
103267
|
-
if (cfgsetting === "warn-only") {
|
|
103268
|
-
if (isDifferentNodeInPath && !shouldPrependCurrentNodeDirToPATH.hasWarned) {
|
|
103269
|
-
if (foundExecPath) {
|
|
103270
|
-
opts.log.warn("lifecycle", "The node binary used for scripts is", foundExecPath, "but npm is using", process.execPath, "itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.");
|
|
103271
|
-
} else {
|
|
103272
|
-
opts.log.warn("lifecycle", "npm is using", process.execPath, "but there is no node binary in the current PATH. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.");
|
|
103273
|
-
}
|
|
103274
|
-
shouldPrependCurrentNodeDirToPATH.hasWarned = true;
|
|
103275
|
-
}
|
|
103276
|
-
return false;
|
|
103277
|
-
}
|
|
103278
|
-
return isDifferentNodeInPath;
|
|
103279
|
-
}
|
|
103280
103315
|
function validWd(d, cb) {
|
|
103281
|
-
|
|
103316
|
+
fs2.stat(d, (er, st) => {
|
|
103282
103317
|
if (er || !st.isDirectory()) {
|
|
103283
103318
|
const p = path.dirname(d);
|
|
103284
103319
|
if (p === d) {
|
|
@@ -103416,7 +103451,7 @@ ${er.message}`;
|
|
|
103416
103451
|
if (er.code !== "EPERM") {
|
|
103417
103452
|
er.code = "ELIFECYCLE";
|
|
103418
103453
|
}
|
|
103419
|
-
|
|
103454
|
+
fs2.stat(opts.dir, (statError, d) => {
|
|
103420
103455
|
if (statError && statError.code === "ENOENT" && opts.dir.split(path.sep).slice(-1)[0] === "node_modules") {
|
|
103421
103456
|
opts.log.warn("", "Local package.json exists, but node_modules missing, did you mean to install?");
|
|
103422
103457
|
}
|
|
@@ -103601,6 +103636,7 @@ var require_runLifecycleHook = __commonJS({
|
|
|
103601
103636
|
warn: (...msg) => (0, logger_1.globalWarn)(msg.join(" "))
|
|
103602
103637
|
},
|
|
103603
103638
|
runConcurrently: true,
|
|
103639
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
103604
103640
|
scriptShell: opts.scriptShell,
|
|
103605
103641
|
shellEmulator: opts.shellEmulator,
|
|
103606
103642
|
stdio: (_e = opts.stdio) !== null && _e !== void 0 ? _e : "pipe",
|
|
@@ -104199,15 +104235,15 @@ var require_unnest = __commonJS({
|
|
|
104199
104235
|
// ../../node_modules/.pnpm/bin-links@2.3.0/node_modules/bin-links/lib/fix-bin.js
|
|
104200
104236
|
var require_fix_bin = __commonJS({
|
|
104201
104237
|
"../../node_modules/.pnpm/bin-links@2.3.0/node_modules/bin-links/lib/fix-bin.js"(exports2, module2) {
|
|
104202
|
-
var
|
|
104238
|
+
var fs2 = require("fs");
|
|
104203
104239
|
var { promisify } = require("util");
|
|
104204
104240
|
var execMode = 511 & ~process.umask();
|
|
104205
104241
|
var writeFileAtomic = require_write_file_atomic();
|
|
104206
|
-
var open = promisify(
|
|
104207
|
-
var close = promisify(
|
|
104208
|
-
var read = promisify(
|
|
104209
|
-
var chmod = promisify(
|
|
104210
|
-
var readFile = promisify(
|
|
104242
|
+
var open = promisify(fs2.open);
|
|
104243
|
+
var close = promisify(fs2.close);
|
|
104244
|
+
var read = promisify(fs2.read);
|
|
104245
|
+
var chmod = promisify(fs2.chmod);
|
|
104246
|
+
var readFile = promisify(fs2.readFile);
|
|
104211
104247
|
var isWindowsHashBang = (buf) => buf[0] === "#".charCodeAt(0) && buf[1] === "!".charCodeAt(0) && /^#![^\n]+\r\n/.test(buf.toString());
|
|
104212
104248
|
var isWindowsHashbangFile = (file) => {
|
|
104213
104249
|
const FALSE = () => false;
|
|
@@ -106862,6 +106898,7 @@ var require_extendRebuildOptions = __commonJS({
|
|
|
106862
106898
|
production: true,
|
|
106863
106899
|
rawConfig: {},
|
|
106864
106900
|
registries: normalize_registries_1.DEFAULT_REGISTRIES,
|
|
106901
|
+
scriptsPrependNodePath: false,
|
|
106865
106902
|
shamefullyHoist: false,
|
|
106866
106903
|
shellEmulator: false,
|
|
106867
106904
|
sideEffectsCacheRead: false,
|
|
@@ -107024,6 +107061,7 @@ var require_implementation4 = __commonJS({
|
|
|
107024
107061
|
const scriptsOpts = {
|
|
107025
107062
|
extraBinPaths: ctx.extraBinPaths,
|
|
107026
107063
|
rawConfig: opts.rawConfig,
|
|
107064
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
107027
107065
|
scriptShell: opts.scriptShell,
|
|
107028
107066
|
shellEmulator: opts.shellEmulator,
|
|
107029
107067
|
storeController: store.ctrl,
|
|
@@ -107110,6 +107148,7 @@ var require_implementation4 = __commonJS({
|
|
|
107110
107148
|
pkgRoot,
|
|
107111
107149
|
rawConfig: opts.rawConfig,
|
|
107112
107150
|
rootModulesDir: ctx.rootModulesDir,
|
|
107151
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
107113
107152
|
shellEmulator: opts.shellEmulator,
|
|
107114
107153
|
unsafePerm: opts.unsafePerm || false
|
|
107115
107154
|
});
|
|
@@ -107973,7 +108012,7 @@ var require_lib82 = __commonJS({
|
|
|
107973
108012
|
});
|
|
107974
108013
|
|
|
107975
108014
|
// ../../node_modules/.pnpm/symlink-dir@5.0.1/node_modules/symlink-dir/dist/index.js
|
|
107976
|
-
var
|
|
108015
|
+
var require_dist11 = __commonJS({
|
|
107977
108016
|
"../../node_modules/.pnpm/symlink-dir@5.0.1/node_modules/symlink-dir/dist/index.js"(exports2, module2) {
|
|
107978
108017
|
"use strict";
|
|
107979
108018
|
var betterPathResolve = require_better_path_resolve();
|
|
@@ -108054,7 +108093,7 @@ var require_symlinkDirectRootDependency = __commonJS({
|
|
|
108054
108093
|
var path_1 = __importDefault(require("path"));
|
|
108055
108094
|
var core_loggers_1 = require_lib10();
|
|
108056
108095
|
var logger_1 = require_lib6();
|
|
108057
|
-
var symlink_dir_1 = __importDefault(
|
|
108096
|
+
var symlink_dir_1 = __importDefault(require_dist11());
|
|
108058
108097
|
var DEP_TYPE_BY_DEPS_FIELD_NAME = {
|
|
108059
108098
|
dependencies: "prod",
|
|
108060
108099
|
devDependencies: "dev",
|
|
@@ -108111,7 +108150,7 @@ var require_lib83 = __commonJS({
|
|
|
108111
108150
|
exports2.symlinkDirectRootDependency = void 0;
|
|
108112
108151
|
var path_1 = __importDefault(require("path"));
|
|
108113
108152
|
var core_loggers_1 = require_lib10();
|
|
108114
|
-
var symlink_dir_1 = __importDefault(
|
|
108153
|
+
var symlink_dir_1 = __importDefault(require_dist11());
|
|
108115
108154
|
var symlinkDirectRootDependency_1 = __importDefault(require_symlinkDirectRootDependency());
|
|
108116
108155
|
exports2.symlinkDirectRootDependency = symlinkDirectRootDependency_1.default;
|
|
108117
108156
|
async function symlinkDependency(dependencyRealLocation, destModulesDir, importAs) {
|
|
@@ -108504,6 +108543,7 @@ var require_lib84 = __commonJS({
|
|
|
108504
108543
|
pkgRoot: depNode.dir,
|
|
108505
108544
|
rawConfig: opts.rawConfig,
|
|
108506
108545
|
rootModulesDir: opts.rootModulesDir,
|
|
108546
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
108507
108547
|
scriptShell: opts.scriptShell,
|
|
108508
108548
|
shellEmulator: opts.shellEmulator,
|
|
108509
108549
|
unsafePerm: opts.unsafePerm || false
|
|
@@ -111459,6 +111499,7 @@ var require_lib88 = __commonJS({
|
|
|
111459
111499
|
optional: false,
|
|
111460
111500
|
extraBinPaths: opts.extraBinPaths,
|
|
111461
111501
|
rawConfig: opts.rawConfig,
|
|
111502
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
111462
111503
|
scriptShell: opts.scriptShell,
|
|
111463
111504
|
shellEmulator: opts.shellEmulator,
|
|
111464
111505
|
stdio: (_e = opts.ownLifecycleHooksStdio) !== null && _e !== void 0 ? _e : "inherit",
|
|
@@ -111539,6 +111580,7 @@ var require_lib88 = __commonJS({
|
|
|
111539
111580
|
prefix: lockfileDir
|
|
111540
111581
|
});
|
|
111541
111582
|
}
|
|
111583
|
+
let newHoistedDependencies;
|
|
111542
111584
|
if (opts.enableModulesDir !== false) {
|
|
111543
111585
|
await Promise.all(depNodes.map(async (depNode) => fs_1.promises.mkdir(depNode.modules, { recursive: true })));
|
|
111544
111586
|
await Promise.all([
|
|
@@ -111556,7 +111598,6 @@ var require_lib88 = __commonJS({
|
|
|
111556
111598
|
prefix: lockfileDir,
|
|
111557
111599
|
stage: "importing_done"
|
|
111558
111600
|
});
|
|
111559
|
-
let newHoistedDependencies;
|
|
111560
111601
|
if (opts.ignorePackageManifest !== true && (opts.hoistPattern != null || opts.publicHoistPattern != null)) {
|
|
111561
111602
|
const hoistLockfile = {
|
|
111562
111603
|
...filteredLockfile,
|
|
@@ -111576,64 +111617,10 @@ var require_lib88 = __commonJS({
|
|
|
111576
111617
|
} else {
|
|
111577
111618
|
newHoistedDependencies = {};
|
|
111578
111619
|
}
|
|
111579
|
-
if (opts.ignoreScripts) {
|
|
111580
|
-
for (const { id, manifest } of opts.projects) {
|
|
111581
|
-
if (opts.ignoreScripts && (manifest === null || manifest === void 0 ? void 0 : manifest.scripts) != null && ((_l = (_k = (_j = (_h = manifest.scripts.preinstall) !== null && _h !== void 0 ? _h : manifest.scripts.prepublish) !== null && _j !== void 0 ? _j : manifest.scripts.install) !== null && _k !== void 0 ? _k : manifest.scripts.postinstall) !== null && _l !== void 0 ? _l : manifest.scripts.prepare)) {
|
|
111582
|
-
opts.pendingBuilds.push(id);
|
|
111583
|
-
}
|
|
111584
|
-
}
|
|
111585
|
-
opts.pendingBuilds = opts.pendingBuilds.concat(depNodes.filter(({ requiresBuild }) => requiresBuild).map(({ depPath }) => depPath));
|
|
111586
|
-
} else {
|
|
111587
|
-
const directNodes = new Set();
|
|
111588
|
-
for (const id of importerIds) {
|
|
111589
|
-
Object.values(directDependenciesByImporterId[id]).filter((loc) => graph[loc]).forEach((loc) => {
|
|
111590
|
-
directNodes.add(loc);
|
|
111591
|
-
});
|
|
111592
|
-
}
|
|
111593
|
-
const extraBinPaths = [...(_m = opts.extraBinPaths) !== null && _m !== void 0 ? _m : []];
|
|
111594
|
-
if (opts.hoistPattern != null) {
|
|
111595
|
-
extraBinPaths.unshift(path_1.default.join(virtualStoreDir, "node_modules/.bin"));
|
|
111596
|
-
}
|
|
111597
|
-
let extraEnv;
|
|
111598
|
-
if (opts.enablePnp) {
|
|
111599
|
-
extraEnv = (0, lifecycle_1.makeNodeRequireOption)(path_1.default.join(opts.lockfileDir, ".pnp.cjs"));
|
|
111600
|
-
}
|
|
111601
|
-
await (0, build_modules_1.default)(graph, Array.from(directNodes), {
|
|
111602
|
-
childConcurrency: opts.childConcurrency,
|
|
111603
|
-
extraBinPaths,
|
|
111604
|
-
extendNodePath: opts.extendNodePath,
|
|
111605
|
-
extraEnv,
|
|
111606
|
-
lockfileDir,
|
|
111607
|
-
optional: opts.include.optionalDependencies,
|
|
111608
|
-
rawConfig: opts.rawConfig,
|
|
111609
|
-
rootModulesDir: virtualStoreDir,
|
|
111610
|
-
scriptShell: opts.scriptShell,
|
|
111611
|
-
shellEmulator: opts.shellEmulator,
|
|
111612
|
-
sideEffectsCacheWrite: opts.sideEffectsCacheWrite,
|
|
111613
|
-
storeController: opts.storeController,
|
|
111614
|
-
unsafePerm: opts.unsafePerm,
|
|
111615
|
-
userAgent: opts.userAgent
|
|
111616
|
-
});
|
|
111617
|
-
}
|
|
111618
|
-
await (0, modules_yaml_1.write)(rootModulesDir, {
|
|
111619
|
-
hoistedDependencies: newHoistedDependencies,
|
|
111620
|
-
hoistPattern: opts.hoistPattern,
|
|
111621
|
-
included: opts.include,
|
|
111622
|
-
layoutVersion: constants_1.LAYOUT_VERSION,
|
|
111623
|
-
packageManager: `${opts.packageManager.name}@${opts.packageManager.version}`,
|
|
111624
|
-
pendingBuilds: opts.pendingBuilds,
|
|
111625
|
-
publicHoistPattern: opts.publicHoistPattern,
|
|
111626
|
-
prunedAt: opts.pruneVirtualStore === true || opts.prunedAt == null ? new Date().toUTCString() : opts.prunedAt,
|
|
111627
|
-
registries: opts.registries,
|
|
111628
|
-
skipped: Array.from(skipped),
|
|
111629
|
-
storeDir: opts.storeDir,
|
|
111630
|
-
virtualStoreDir
|
|
111631
|
-
});
|
|
111632
111620
|
await linkAllBins(graph, { extendNodePath: opts.extendNodePath, optional: opts.include.optionalDependencies, warn });
|
|
111633
111621
|
if (currentLockfile != null && !(0, equals_1.default)(importerIds.sort(), Object.keys(filteredLockfile.importers).sort())) {
|
|
111634
111622
|
Object.assign(filteredLockfile.packages, currentLockfile.packages);
|
|
111635
111623
|
}
|
|
111636
|
-
await (0, lockfile_file_1.writeCurrentLockfile)(virtualStoreDir, filteredLockfile);
|
|
111637
111624
|
if (!opts.ignorePackageManifest) {
|
|
111638
111625
|
await Promise.all(opts.projects.map(async ({ rootDir, id, manifest, modulesDir }) => {
|
|
111639
111626
|
if (opts.symlink !== false) {
|
|
@@ -111652,6 +111639,50 @@ var require_lib88 = __commonJS({
|
|
|
111652
111639
|
updated: manifest
|
|
111653
111640
|
});
|
|
111654
111641
|
}));
|
|
111642
|
+
}
|
|
111643
|
+
}
|
|
111644
|
+
if (opts.ignoreScripts) {
|
|
111645
|
+
for (const { id, manifest } of opts.projects) {
|
|
111646
|
+
if (opts.ignoreScripts && (manifest === null || manifest === void 0 ? void 0 : manifest.scripts) != null && ((_l = (_k = (_j = (_h = manifest.scripts.preinstall) !== null && _h !== void 0 ? _h : manifest.scripts.prepublish) !== null && _j !== void 0 ? _j : manifest.scripts.install) !== null && _k !== void 0 ? _k : manifest.scripts.postinstall) !== null && _l !== void 0 ? _l : manifest.scripts.prepare)) {
|
|
111647
|
+
opts.pendingBuilds.push(id);
|
|
111648
|
+
}
|
|
111649
|
+
}
|
|
111650
|
+
opts.pendingBuilds = opts.pendingBuilds.concat(depNodes.filter(({ requiresBuild }) => requiresBuild).map(({ depPath }) => depPath));
|
|
111651
|
+
} else {
|
|
111652
|
+
const directNodes = new Set();
|
|
111653
|
+
for (const id of importerIds) {
|
|
111654
|
+
Object.values(directDependenciesByImporterId[id]).filter((loc) => graph[loc]).forEach((loc) => {
|
|
111655
|
+
directNodes.add(loc);
|
|
111656
|
+
});
|
|
111657
|
+
}
|
|
111658
|
+
const extraBinPaths = [...(_m = opts.extraBinPaths) !== null && _m !== void 0 ? _m : []];
|
|
111659
|
+
if (opts.hoistPattern != null) {
|
|
111660
|
+
extraBinPaths.unshift(path_1.default.join(virtualStoreDir, "node_modules/.bin"));
|
|
111661
|
+
}
|
|
111662
|
+
let extraEnv;
|
|
111663
|
+
if (opts.enablePnp) {
|
|
111664
|
+
extraEnv = (0, lifecycle_1.makeNodeRequireOption)(path_1.default.join(opts.lockfileDir, ".pnp.cjs"));
|
|
111665
|
+
}
|
|
111666
|
+
await (0, build_modules_1.default)(graph, Array.from(directNodes), {
|
|
111667
|
+
childConcurrency: opts.childConcurrency,
|
|
111668
|
+
extraBinPaths,
|
|
111669
|
+
extendNodePath: opts.extendNodePath,
|
|
111670
|
+
extraEnv,
|
|
111671
|
+
lockfileDir,
|
|
111672
|
+
optional: opts.include.optionalDependencies,
|
|
111673
|
+
rawConfig: opts.rawConfig,
|
|
111674
|
+
rootModulesDir: virtualStoreDir,
|
|
111675
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
111676
|
+
scriptShell: opts.scriptShell,
|
|
111677
|
+
shellEmulator: opts.shellEmulator,
|
|
111678
|
+
sideEffectsCacheWrite: opts.sideEffectsCacheWrite,
|
|
111679
|
+
storeController: opts.storeController,
|
|
111680
|
+
unsafePerm: opts.unsafePerm,
|
|
111681
|
+
userAgent: opts.userAgent
|
|
111682
|
+
});
|
|
111683
|
+
}
|
|
111684
|
+
if (opts.enableModulesDir !== false) {
|
|
111685
|
+
if (!opts.ignorePackageManifest) {
|
|
111655
111686
|
await Promise.all(opts.projects.map(async (project) => {
|
|
111656
111687
|
var _a2;
|
|
111657
111688
|
if (((_a2 = opts.publicHoistPattern) === null || _a2 === void 0 ? void 0 : _a2.length) && path_1.default.relative(opts.lockfileDir, project.rootDir) === "") {
|
|
@@ -111665,6 +111696,21 @@ var require_lib88 = __commonJS({
|
|
|
111665
111696
|
}
|
|
111666
111697
|
}));
|
|
111667
111698
|
}
|
|
111699
|
+
await (0, modules_yaml_1.write)(rootModulesDir, {
|
|
111700
|
+
hoistedDependencies: newHoistedDependencies,
|
|
111701
|
+
hoistPattern: opts.hoistPattern,
|
|
111702
|
+
included: opts.include,
|
|
111703
|
+
layoutVersion: constants_1.LAYOUT_VERSION,
|
|
111704
|
+
packageManager: `${opts.packageManager.name}@${opts.packageManager.version}`,
|
|
111705
|
+
pendingBuilds: opts.pendingBuilds,
|
|
111706
|
+
publicHoistPattern: opts.publicHoistPattern,
|
|
111707
|
+
prunedAt: opts.pruneVirtualStore === true || opts.prunedAt == null ? new Date().toUTCString() : opts.prunedAt,
|
|
111708
|
+
registries: opts.registries,
|
|
111709
|
+
skipped: Array.from(skipped),
|
|
111710
|
+
storeDir: opts.storeDir,
|
|
111711
|
+
virtualStoreDir
|
|
111712
|
+
});
|
|
111713
|
+
await (0, lockfile_file_1.writeCurrentLockfile)(virtualStoreDir, filteredLockfile);
|
|
111668
111714
|
}
|
|
111669
111715
|
await Promise.all(depNodes.map(({ finishing }) => finishing));
|
|
111670
111716
|
core_loggers_1.summaryLogger.debug({ prefix: lockfileDir });
|
|
@@ -113661,18 +113707,18 @@ var require_lib89 = __commonJS({
|
|
|
113661
113707
|
var require_resolve_link_target = __commonJS({
|
|
113662
113708
|
"../../node_modules/.pnpm/resolve-link-target@2.0.0/node_modules/resolve-link-target/index.js"(exports2, module2) {
|
|
113663
113709
|
"use strict";
|
|
113664
|
-
var
|
|
113710
|
+
var fs2 = require("fs");
|
|
113665
113711
|
var path = require("path");
|
|
113666
113712
|
module2.exports = getLinkTarget;
|
|
113667
113713
|
module2.exports.sync = getLinkTargetSync;
|
|
113668
113714
|
async function getLinkTarget(linkPath) {
|
|
113669
113715
|
linkPath = path.resolve(linkPath);
|
|
113670
|
-
const target = await
|
|
113716
|
+
const target = await fs2.promises.readlink(linkPath);
|
|
113671
113717
|
return _resolveLink(linkPath, target);
|
|
113672
113718
|
}
|
|
113673
113719
|
function getLinkTargetSync(linkPath) {
|
|
113674
113720
|
linkPath = path.resolve(linkPath);
|
|
113675
|
-
const target =
|
|
113721
|
+
const target = fs2.readlinkSync(linkPath);
|
|
113676
113722
|
return _resolveLink(linkPath, target);
|
|
113677
113723
|
}
|
|
113678
113724
|
function _resolveLink(dest, target) {
|
|
@@ -114473,6 +114519,7 @@ var require_extendInstallOptions = __commonJS({
|
|
|
114473
114519
|
rawConfig: {},
|
|
114474
114520
|
registries: normalize_registries_1.DEFAULT_REGISTRIES,
|
|
114475
114521
|
saveWorkspaceProtocol: true,
|
|
114522
|
+
scriptsPrependNodePath: false,
|
|
114476
114523
|
shamefullyHoist: false,
|
|
114477
114524
|
shellEmulator: false,
|
|
114478
114525
|
sideEffectsCacheRead: false,
|
|
@@ -115124,6 +115171,7 @@ var require_install = __commonJS({
|
|
|
115124
115171
|
const scriptsOpts = {
|
|
115125
115172
|
extraBinPaths: opts.extraBinPaths,
|
|
115126
115173
|
rawConfig: opts.rawConfig,
|
|
115174
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
115127
115175
|
scriptShell: opts.scriptShell,
|
|
115128
115176
|
shellEmulator: opts.shellEmulator,
|
|
115129
115177
|
stdio: opts.ownLifecycleHooksStdio,
|
|
@@ -115193,7 +115241,7 @@ var require_install = __commonJS({
|
|
|
115193
115241
|
pruneVirtualStore,
|
|
115194
115242
|
publicHoistPattern: ctx.publicHoistPattern,
|
|
115195
115243
|
rawConfig: opts.rawConfig,
|
|
115196
|
-
registries:
|
|
115244
|
+
registries: ctx.registries,
|
|
115197
115245
|
sideEffectsCacheRead: opts.sideEffectsCacheRead,
|
|
115198
115246
|
sideEffectsCacheWrite: opts.sideEffectsCacheWrite,
|
|
115199
115247
|
symlink: opts.symlink,
|
|
@@ -115538,7 +115586,7 @@ var require_install = __commonJS({
|
|
|
115538
115586
|
pnpmVersion: opts.packageManager.name === "pnpm" ? opts.packageManager.version : "",
|
|
115539
115587
|
preferWorkspacePackages: opts.preferWorkspacePackages,
|
|
115540
115588
|
preserveWorkspaceProtocol: opts.preserveWorkspaceProtocol,
|
|
115541
|
-
registries:
|
|
115589
|
+
registries: ctx.registries,
|
|
115542
115590
|
saveWorkspaceProtocol: opts.saveWorkspaceProtocol,
|
|
115543
115591
|
storeController: opts.storeController,
|
|
115544
115592
|
strictPeerDependencies: opts.strictPeerDependencies,
|
|
@@ -115595,7 +115643,7 @@ var require_install = __commonJS({
|
|
|
115595
115643
|
importerNames,
|
|
115596
115644
|
lockfileDir: ctx.lockfileDir,
|
|
115597
115645
|
virtualStoreDir: ctx.virtualStoreDir,
|
|
115598
|
-
registries:
|
|
115646
|
+
registries: ctx.registries
|
|
115599
115647
|
});
|
|
115600
115648
|
}
|
|
115601
115649
|
ctx.pendingBuilds = ctx.pendingBuilds.filter((relDepPath) => !result.removedDepPaths.has(relDepPath));
|
|
@@ -115618,6 +115666,7 @@ var require_install = __commonJS({
|
|
|
115618
115666
|
optional: opts.include.optionalDependencies,
|
|
115619
115667
|
rawConfig: opts.rawConfig,
|
|
115620
115668
|
rootModulesDir: ctx.virtualStoreDir,
|
|
115669
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
115621
115670
|
scriptShell: opts.scriptShell,
|
|
115622
115671
|
shellEmulator: opts.shellEmulator,
|
|
115623
115672
|
sideEffectsCacheWrite: opts.sideEffectsCacheWrite,
|
|
@@ -116367,12 +116416,12 @@ var require_ini2 = __commonJS({
|
|
|
116367
116416
|
var require_read_ini_file = __commonJS({
|
|
116368
116417
|
"../../node_modules/.pnpm/read-ini-file@3.1.0/node_modules/read-ini-file/index.js"(exports2, module2) {
|
|
116369
116418
|
"use strict";
|
|
116370
|
-
var
|
|
116419
|
+
var fs2 = require("fs");
|
|
116371
116420
|
var stripBom = require_strip_bom();
|
|
116372
116421
|
var ini = require_ini2();
|
|
116373
116422
|
var parse = (data) => ini.parse(stripBom(data));
|
|
116374
|
-
module2.exports = (fp) =>
|
|
116375
|
-
module2.exports.sync = (fp) => parse(
|
|
116423
|
+
module2.exports = (fp) => fs2.promises.readFile(fp, "utf8").then(parse);
|
|
116424
|
+
module2.exports.sync = (fp) => parse(fs2.readFileSync(fp, "utf8"));
|
|
116376
116425
|
}
|
|
116377
116426
|
});
|
|
116378
116427
|
|
|
@@ -116391,7 +116440,7 @@ var require_recursive = __commonJS({
|
|
|
116391
116440
|
var sort_packages_1 = __importDefault(require_lib92());
|
|
116392
116441
|
var store_connection_manager_1 = require_lib78();
|
|
116393
116442
|
var camelcase_keys_1 = __importDefault(require_camelcase_keys());
|
|
116394
|
-
var mem_1 = __importDefault(
|
|
116443
|
+
var mem_1 = __importDefault(require_dist2());
|
|
116395
116444
|
var p_limit_1 = __importDefault(require_p_limit());
|
|
116396
116445
|
var read_ini_file_1 = __importDefault(require_read_ini_file());
|
|
116397
116446
|
var implementation_1 = require_implementation4();
|
|
@@ -116535,6 +116584,7 @@ var require_rebuild = __commonJS({
|
|
|
116535
116584
|
...(0, pick_1.default)([
|
|
116536
116585
|
"npm-path",
|
|
116537
116586
|
"reporter",
|
|
116587
|
+
"scripts-prepend-node-path",
|
|
116538
116588
|
"unsafe-perm"
|
|
116539
116589
|
], config_1.types)
|
|
116540
116590
|
};
|
|
@@ -116793,7 +116843,7 @@ var require_recursive2 = __commonJS({
|
|
|
116793
116843
|
var core_1 = require_lib91();
|
|
116794
116844
|
var camelcase_keys_1 = __importDefault(require_camelcase_keys());
|
|
116795
116845
|
var is_subdir_1 = __importDefault(require_is_subdir());
|
|
116796
|
-
var mem_1 = __importDefault(
|
|
116846
|
+
var mem_1 = __importDefault(require_dist2());
|
|
116797
116847
|
var p_filter_1 = __importDefault(require_p_filter());
|
|
116798
116848
|
var p_limit_1 = __importDefault(require_p_limit());
|
|
116799
116849
|
var read_ini_file_1 = __importDefault(require_read_ini_file());
|
|
@@ -117634,6 +117684,7 @@ var require_install2 = __commonJS({
|
|
|
117634
117684
|
"registry",
|
|
117635
117685
|
"reporter",
|
|
117636
117686
|
"save-workspace-protocol",
|
|
117687
|
+
"scripts-prepend-node-path",
|
|
117637
117688
|
"shamefully-flatten",
|
|
117638
117689
|
"shamefully-hoist",
|
|
117639
117690
|
"shared-workspace-lockfile",
|
|
@@ -118767,9 +118818,9 @@ var require_lib96 = __commonJS({
|
|
|
118767
118818
|
}
|
|
118768
118819
|
});
|
|
118769
118820
|
|
|
118770
|
-
// ../../node_modules/.pnpm/@pnpm+semver-diff@1.0
|
|
118821
|
+
// ../../node_modules/.pnpm/@pnpm+semver-diff@1.1.0/node_modules/@pnpm/semver-diff/lib/index.js
|
|
118771
118822
|
var require_lib97 = __commonJS({
|
|
118772
|
-
"../../node_modules/.pnpm/@pnpm+semver-diff@1.0
|
|
118823
|
+
"../../node_modules/.pnpm/@pnpm+semver-diff@1.1.0/node_modules/@pnpm/semver-diff/lib/index.js"(exports2) {
|
|
118773
118824
|
"use strict";
|
|
118774
118825
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
118775
118826
|
var SEMVER_CHANGE_BY_TUPLE_NUMBER = ["breaking", "feature", "fix"];
|
|
@@ -118780,6 +118831,15 @@ var require_lib97 = __commonJS({
|
|
|
118780
118831
|
diff: [parseVersion(version1), []]
|
|
118781
118832
|
};
|
|
118782
118833
|
}
|
|
118834
|
+
const [version1Prefix, version1Semver] = parsePrefix(version1);
|
|
118835
|
+
const [version2Prefix, version2Semver] = parsePrefix(version2);
|
|
118836
|
+
if (version1Prefix !== version2Prefix) {
|
|
118837
|
+
const { change: change2 } = semverDiff(version1Semver, version2Semver);
|
|
118838
|
+
return {
|
|
118839
|
+
change: change2,
|
|
118840
|
+
diff: [[], parseVersion(version2)]
|
|
118841
|
+
};
|
|
118842
|
+
}
|
|
118783
118843
|
const version1Tuples = parseVersion(version1);
|
|
118784
118844
|
const version2Tuples = parseVersion(version2);
|
|
118785
118845
|
const same = [];
|
|
@@ -118805,6 +118865,12 @@ var require_lib97 = __commonJS({
|
|
|
118805
118865
|
};
|
|
118806
118866
|
}
|
|
118807
118867
|
exports2.default = semverDiff;
|
|
118868
|
+
function parsePrefix(version) {
|
|
118869
|
+
if (version.startsWith("~") || version.startsWith("^")) {
|
|
118870
|
+
return [version[0], version.substr(1)];
|
|
118871
|
+
}
|
|
118872
|
+
return ["", version];
|
|
118873
|
+
}
|
|
118808
118874
|
function parseVersion(version) {
|
|
118809
118875
|
const dashIndex = version.indexOf("-");
|
|
118810
118876
|
let normalVersion;
|
|
@@ -118833,7 +118899,7 @@ var require_getUpdateChoices = __commonJS({
|
|
|
118833
118899
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
118834
118900
|
var colorize_semver_diff_1 = __importDefault(require_lib96());
|
|
118835
118901
|
var semver_diff_1 = __importDefault(require_lib97());
|
|
118836
|
-
var table_1 =
|
|
118902
|
+
var table_1 = require_dist10();
|
|
118837
118903
|
var isEmpty_1 = __importDefault(require_isEmpty2());
|
|
118838
118904
|
var unnest_1 = __importDefault(require_unnest());
|
|
118839
118905
|
function default_1(outdatedPkgsOfProjects) {
|
|
@@ -118975,6 +119041,7 @@ var require_update = __commonJS({
|
|
|
118975
119041
|
"save-exact",
|
|
118976
119042
|
"save-prefix",
|
|
118977
119043
|
"save-workspace-protocol",
|
|
119044
|
+
"scripts-prepend-node-path",
|
|
118978
119045
|
"shamefully-flatten",
|
|
118979
119046
|
"shamefully-hoist",
|
|
118980
119047
|
"shared-workspace-lockfile",
|
|
@@ -122105,7 +122172,7 @@ var require_lockfile = __commonJS({
|
|
|
122105
122172
|
},
|
|
122106
122173
|
function(module3, exports3, __webpack_require__) {
|
|
122107
122174
|
module3.exports = glob;
|
|
122108
|
-
var
|
|
122175
|
+
var fs2 = __webpack_require__(3);
|
|
122109
122176
|
var rp = __webpack_require__(114);
|
|
122110
122177
|
var minimatch = __webpack_require__(60);
|
|
122111
122178
|
var Minimatch = minimatch.Minimatch;
|
|
@@ -122450,7 +122517,7 @@ var require_lockfile = __commonJS({
|
|
|
122450
122517
|
var self2 = this;
|
|
122451
122518
|
var lstatcb = inflight(lstatkey, lstatcb_);
|
|
122452
122519
|
if (lstatcb)
|
|
122453
|
-
|
|
122520
|
+
fs2.lstat(abs, lstatcb);
|
|
122454
122521
|
function lstatcb_(er, lstat) {
|
|
122455
122522
|
if (er && er.code === "ENOENT")
|
|
122456
122523
|
return cb();
|
|
@@ -122479,7 +122546,7 @@ var require_lockfile = __commonJS({
|
|
|
122479
122546
|
return cb(null, c);
|
|
122480
122547
|
}
|
|
122481
122548
|
var self2 = this;
|
|
122482
|
-
|
|
122549
|
+
fs2.readdir(abs, readdirCb(this, abs, cb));
|
|
122483
122550
|
};
|
|
122484
122551
|
function readdirCb(self2, abs, cb) {
|
|
122485
122552
|
return function(er, entries) {
|
|
@@ -122623,10 +122690,10 @@ var require_lockfile = __commonJS({
|
|
|
122623
122690
|
var self2 = this;
|
|
122624
122691
|
var statcb = inflight("stat\0" + abs, lstatcb_);
|
|
122625
122692
|
if (statcb)
|
|
122626
|
-
|
|
122693
|
+
fs2.lstat(abs, statcb);
|
|
122627
122694
|
function lstatcb_(er, lstat) {
|
|
122628
122695
|
if (lstat && lstat.isSymbolicLink()) {
|
|
122629
|
-
return
|
|
122696
|
+
return fs2.stat(abs, function(er2, stat2) {
|
|
122630
122697
|
if (er2)
|
|
122631
122698
|
self2._stat2(f, abs, null, lstat, cb);
|
|
122632
122699
|
else
|
|
@@ -123556,9 +123623,9 @@ var require_lockfile = __commonJS({
|
|
|
123556
123623
|
realpath.realpathSync = realpathSync;
|
|
123557
123624
|
realpath.monkeypatch = monkeypatch;
|
|
123558
123625
|
realpath.unmonkeypatch = unmonkeypatch;
|
|
123559
|
-
var
|
|
123560
|
-
var origRealpath =
|
|
123561
|
-
var origRealpathSync =
|
|
123626
|
+
var fs2 = __webpack_require__(3);
|
|
123627
|
+
var origRealpath = fs2.realpath;
|
|
123628
|
+
var origRealpathSync = fs2.realpathSync;
|
|
123562
123629
|
var version = process.version;
|
|
123563
123630
|
var ok = /^v[0-5]\./.test(version);
|
|
123564
123631
|
var old = __webpack_require__(217);
|
|
@@ -123596,12 +123663,12 @@ var require_lockfile = __commonJS({
|
|
|
123596
123663
|
}
|
|
123597
123664
|
}
|
|
123598
123665
|
function monkeypatch() {
|
|
123599
|
-
|
|
123600
|
-
|
|
123666
|
+
fs2.realpath = realpath;
|
|
123667
|
+
fs2.realpathSync = realpathSync;
|
|
123601
123668
|
}
|
|
123602
123669
|
function unmonkeypatch() {
|
|
123603
|
-
|
|
123604
|
-
|
|
123670
|
+
fs2.realpath = origRealpath;
|
|
123671
|
+
fs2.realpathSync = origRealpathSync;
|
|
123605
123672
|
}
|
|
123606
123673
|
},
|
|
123607
123674
|
function(module3, exports3, __webpack_require__) {
|
|
@@ -123798,7 +123865,7 @@ var require_lockfile = __commonJS({
|
|
|
123798
123865
|
},
|
|
123799
123866
|
function(module3, exports3, __webpack_require__) {
|
|
123800
123867
|
var path = __webpack_require__(0);
|
|
123801
|
-
var
|
|
123868
|
+
var fs2 = __webpack_require__(3);
|
|
123802
123869
|
var _0777 = parseInt("0777", 8);
|
|
123803
123870
|
module3.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
|
|
123804
123871
|
function mkdirP(p, opts, f, made) {
|
|
@@ -123809,7 +123876,7 @@ var require_lockfile = __commonJS({
|
|
|
123809
123876
|
opts = { mode: opts };
|
|
123810
123877
|
}
|
|
123811
123878
|
var mode = opts.mode;
|
|
123812
|
-
var xfs = opts.fs ||
|
|
123879
|
+
var xfs = opts.fs || fs2;
|
|
123813
123880
|
if (mode === void 0) {
|
|
123814
123881
|
mode = _0777 & ~process.umask();
|
|
123815
123882
|
}
|
|
@@ -123848,7 +123915,7 @@ var require_lockfile = __commonJS({
|
|
|
123848
123915
|
opts = { mode: opts };
|
|
123849
123916
|
}
|
|
123850
123917
|
var mode = opts.mode;
|
|
123851
|
-
var xfs = opts.fs ||
|
|
123918
|
+
var xfs = opts.fs || fs2;
|
|
123852
123919
|
if (mode === void 0) {
|
|
123853
123920
|
mode = _0777 & ~process.umask();
|
|
123854
123921
|
}
|
|
@@ -125678,7 +125745,7 @@ ${indent}`);
|
|
|
125678
125745
|
function(module3, exports3, __webpack_require__) {
|
|
125679
125746
|
var pathModule = __webpack_require__(0);
|
|
125680
125747
|
var isWindows = process.platform === "win32";
|
|
125681
|
-
var
|
|
125748
|
+
var fs2 = __webpack_require__(3);
|
|
125682
125749
|
var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
|
125683
125750
|
function rethrow() {
|
|
125684
125751
|
var callback;
|
|
@@ -125741,7 +125808,7 @@ ${indent}`);
|
|
|
125741
125808
|
base = m[0];
|
|
125742
125809
|
previous = "";
|
|
125743
125810
|
if (isWindows && !knownHard[base]) {
|
|
125744
|
-
|
|
125811
|
+
fs2.lstatSync(base);
|
|
125745
125812
|
knownHard[base] = true;
|
|
125746
125813
|
}
|
|
125747
125814
|
}
|
|
@@ -125759,7 +125826,7 @@ ${indent}`);
|
|
|
125759
125826
|
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
125760
125827
|
resolvedLink = cache[base];
|
|
125761
125828
|
} else {
|
|
125762
|
-
var stat =
|
|
125829
|
+
var stat = fs2.lstatSync(base);
|
|
125763
125830
|
if (!stat.isSymbolicLink()) {
|
|
125764
125831
|
knownHard[base] = true;
|
|
125765
125832
|
if (cache)
|
|
@@ -125774,8 +125841,8 @@ ${indent}`);
|
|
|
125774
125841
|
}
|
|
125775
125842
|
}
|
|
125776
125843
|
if (linkTarget === null) {
|
|
125777
|
-
|
|
125778
|
-
linkTarget =
|
|
125844
|
+
fs2.statSync(base);
|
|
125845
|
+
linkTarget = fs2.readlinkSync(base);
|
|
125779
125846
|
}
|
|
125780
125847
|
resolvedLink = pathModule.resolve(previous, linkTarget);
|
|
125781
125848
|
if (cache)
|
|
@@ -125812,7 +125879,7 @@ ${indent}`);
|
|
|
125812
125879
|
base = m[0];
|
|
125813
125880
|
previous = "";
|
|
125814
125881
|
if (isWindows && !knownHard[base]) {
|
|
125815
|
-
|
|
125882
|
+
fs2.lstat(base, function(err) {
|
|
125816
125883
|
if (err)
|
|
125817
125884
|
return cb(err);
|
|
125818
125885
|
knownHard[base] = true;
|
|
@@ -125840,7 +125907,7 @@ ${indent}`);
|
|
|
125840
125907
|
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
125841
125908
|
return gotResolvedLink(cache[base]);
|
|
125842
125909
|
}
|
|
125843
|
-
return
|
|
125910
|
+
return fs2.lstat(base, gotStat);
|
|
125844
125911
|
}
|
|
125845
125912
|
function gotStat(err, stat) {
|
|
125846
125913
|
if (err)
|
|
@@ -125857,10 +125924,10 @@ ${indent}`);
|
|
|
125857
125924
|
return gotTarget(null, seenLinks[id], base);
|
|
125858
125925
|
}
|
|
125859
125926
|
}
|
|
125860
|
-
|
|
125927
|
+
fs2.stat(base, function(err2) {
|
|
125861
125928
|
if (err2)
|
|
125862
125929
|
return cb(err2);
|
|
125863
|
-
|
|
125930
|
+
fs2.readlink(base, function(err3, target) {
|
|
125864
125931
|
if (!isWindows)
|
|
125865
125932
|
seenLinks[id] = target;
|
|
125866
125933
|
gotTarget(err3, target);
|
|
@@ -125884,7 +125951,7 @@ ${indent}`);
|
|
|
125884
125951
|
function(module3, exports3, __webpack_require__) {
|
|
125885
125952
|
module3.exports = globSync;
|
|
125886
125953
|
globSync.GlobSync = GlobSync;
|
|
125887
|
-
var
|
|
125954
|
+
var fs2 = __webpack_require__(3);
|
|
125888
125955
|
var rp = __webpack_require__(114);
|
|
125889
125956
|
var minimatch = __webpack_require__(60);
|
|
125890
125957
|
var Minimatch = minimatch.Minimatch;
|
|
@@ -126062,7 +126129,7 @@ ${indent}`);
|
|
|
126062
126129
|
var lstat;
|
|
126063
126130
|
var stat;
|
|
126064
126131
|
try {
|
|
126065
|
-
lstat =
|
|
126132
|
+
lstat = fs2.lstatSync(abs);
|
|
126066
126133
|
} catch (er) {
|
|
126067
126134
|
if (er.code === "ENOENT") {
|
|
126068
126135
|
return null;
|
|
@@ -126088,7 +126155,7 @@ ${indent}`);
|
|
|
126088
126155
|
return c;
|
|
126089
126156
|
}
|
|
126090
126157
|
try {
|
|
126091
|
-
return this._readdirEntries(abs,
|
|
126158
|
+
return this._readdirEntries(abs, fs2.readdirSync(abs));
|
|
126092
126159
|
} catch (er) {
|
|
126093
126160
|
this._readdirError(abs, er);
|
|
126094
126161
|
return null;
|
|
@@ -126197,7 +126264,7 @@ ${indent}`);
|
|
|
126197
126264
|
if (!stat) {
|
|
126198
126265
|
var lstat;
|
|
126199
126266
|
try {
|
|
126200
|
-
lstat =
|
|
126267
|
+
lstat = fs2.lstatSync(abs);
|
|
126201
126268
|
} catch (er) {
|
|
126202
126269
|
if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) {
|
|
126203
126270
|
this.statCache[abs] = false;
|
|
@@ -126206,7 +126273,7 @@ ${indent}`);
|
|
|
126206
126273
|
}
|
|
126207
126274
|
if (lstat && lstat.isSymbolicLink()) {
|
|
126208
126275
|
try {
|
|
126209
|
-
stat =
|
|
126276
|
+
stat = fs2.statSync(abs);
|
|
126210
126277
|
} catch (er) {
|
|
126211
126278
|
stat = lstat;
|
|
126212
126279
|
}
|
|
@@ -126418,7 +126485,7 @@ ${indent}`);
|
|
|
126418
126485
|
rimraf.sync = rimrafSync;
|
|
126419
126486
|
var assert = __webpack_require__(22);
|
|
126420
126487
|
var path = __webpack_require__(0);
|
|
126421
|
-
var
|
|
126488
|
+
var fs2 = __webpack_require__(3);
|
|
126422
126489
|
var glob = __webpack_require__(75);
|
|
126423
126490
|
var _0666 = parseInt("666", 8);
|
|
126424
126491
|
var defaultGlobOpts = {
|
|
@@ -126437,9 +126504,9 @@ ${indent}`);
|
|
|
126437
126504
|
"readdir"
|
|
126438
126505
|
];
|
|
126439
126506
|
methods.forEach(function(m) {
|
|
126440
|
-
options[m] = options[m] ||
|
|
126507
|
+
options[m] = options[m] || fs2[m];
|
|
126441
126508
|
m = m + "Sync";
|
|
126442
|
-
options[m] = options[m] ||
|
|
126509
|
+
options[m] = options[m] || fs2[m];
|
|
126443
126510
|
});
|
|
126444
126511
|
options.maxBusyTries = options.maxBusyTries || 3;
|
|
126445
126512
|
options.emfileWait = options.emfileWait || 1e3;
|
|
@@ -128317,7 +128384,7 @@ var require_recursive4 = __commonJS({
|
|
|
128317
128384
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
128318
128385
|
var cli_utils_1 = require_lib22();
|
|
128319
128386
|
var outdated_1 = require_lib95();
|
|
128320
|
-
var table_1 =
|
|
128387
|
+
var table_1 = require_dist10();
|
|
128321
128388
|
var chalk_1 = __importDefault(require_source());
|
|
128322
128389
|
var isEmpty_1 = __importDefault(require_isEmpty2());
|
|
128323
128390
|
var sortWith_1 = __importDefault(require_sortWith());
|
|
@@ -128442,7 +128509,7 @@ var require_outdated2 = __commonJS({
|
|
|
128442
128509
|
var config_1 = require_lib12();
|
|
128443
128510
|
var outdated_1 = require_lib95();
|
|
128444
128511
|
var semver_diff_1 = __importDefault(require_lib97());
|
|
128445
|
-
var table_1 =
|
|
128512
|
+
var table_1 = require_dist10();
|
|
128446
128513
|
var chalk_1 = __importDefault(require_source());
|
|
128447
128514
|
var pick_1 = __importDefault(require_pick());
|
|
128448
128515
|
var sortWith_1 = __importDefault(require_sortWith());
|
|
@@ -129500,7 +129567,7 @@ var require_dlx = __commonJS({
|
|
|
129500
129567
|
await (0, execa_1.default)("pnpm", pnpmArgs, {
|
|
129501
129568
|
stdio: "inherit"
|
|
129502
129569
|
});
|
|
129503
|
-
await (0, execa_1.default)(scopeless(params[0]), params.slice(1), {
|
|
129570
|
+
await (0, execa_1.default)(versionless(scopeless(params[0])), params.slice(1), {
|
|
129504
129571
|
env: {
|
|
129505
129572
|
...process.env,
|
|
129506
129573
|
[path_name_1.default]: [
|
|
@@ -129518,6 +129585,9 @@ var require_dlx = __commonJS({
|
|
|
129518
129585
|
}
|
|
129519
129586
|
return pkgName;
|
|
129520
129587
|
}
|
|
129588
|
+
function versionless(scopelessPkgName) {
|
|
129589
|
+
return scopelessPkgName.split("@")[0];
|
|
129590
|
+
}
|
|
129521
129591
|
}
|
|
129522
129592
|
});
|
|
129523
129593
|
|
|
@@ -129711,6 +129781,7 @@ var require_runRecursive = __commonJS({
|
|
|
129711
129781
|
pkgRoot: prefix,
|
|
129712
129782
|
rawConfig: opts.rawConfig,
|
|
129713
129783
|
rootModulesDir: await (0, realpath_missing_1.default)(path_1.default.join(prefix, "node_modules")),
|
|
129784
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
129714
129785
|
scriptShell: opts.scriptShell,
|
|
129715
129786
|
shellEmulator: opts.shellEmulator,
|
|
129716
129787
|
stdio,
|
|
@@ -129842,7 +129913,8 @@ var require_run = __commonJS({
|
|
|
129842
129913
|
"bail",
|
|
129843
129914
|
"sort",
|
|
129844
129915
|
"unsafe-perm",
|
|
129845
|
-
"workspace-concurrency"
|
|
129916
|
+
"workspace-concurrency",
|
|
129917
|
+
"scripts-prepend-node-path"
|
|
129846
129918
|
], config_1.types),
|
|
129847
129919
|
...exports2.IF_PRESENT_OPTION,
|
|
129848
129920
|
recursive: Boolean,
|
|
@@ -129895,8 +129967,7 @@ var require_run = __commonJS({
|
|
|
129895
129967
|
const [scriptName, ...passedThruArgs] = params;
|
|
129896
129968
|
if (opts.recursive) {
|
|
129897
129969
|
if (scriptName || Object.keys(opts.selectedProjectsGraph).length > 1) {
|
|
129898
|
-
|
|
129899
|
-
return;
|
|
129970
|
+
return (0, runRecursive_1.default)(params, opts);
|
|
129900
129971
|
}
|
|
129901
129972
|
dir = Object.keys(opts.selectedProjectsGraph)[0];
|
|
129902
129973
|
} else {
|
|
@@ -129913,11 +129984,10 @@ var require_run = __commonJS({
|
|
|
129913
129984
|
if (opts.fallbackCommandUsed) {
|
|
129914
129985
|
if (opts.argv == null)
|
|
129915
129986
|
throw new Error("Could not fallback because opts.argv.original was not passed to the script runner");
|
|
129916
|
-
|
|
129987
|
+
return (0, exec_1.handler)({
|
|
129917
129988
|
selectedProjectsGraph: {},
|
|
129918
129989
|
...opts
|
|
129919
129990
|
}, opts.argv.original.slice(1));
|
|
129920
|
-
return;
|
|
129921
129991
|
}
|
|
129922
129992
|
if (opts.workspaceDir) {
|
|
129923
129993
|
const { manifest: rootManifest } = await (0, cli_utils_1.tryReadProjectManifest)(opts.workspaceDir, opts);
|
|
@@ -129936,6 +130006,7 @@ so you may run "pnpm -w run ${scriptName}"`
|
|
|
129936
130006
|
pkgRoot: dir,
|
|
129937
130007
|
rawConfig: opts.rawConfig,
|
|
129938
130008
|
rootModulesDir: await (0, realpath_missing_1.default)(path_1.default.join(dir, "node_modules")),
|
|
130009
|
+
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
|
129939
130010
|
scriptShell: opts.scriptShell,
|
|
129940
130011
|
silent: opts.reporter === "silent",
|
|
129941
130012
|
shellEmulator: opts.shellEmulator,
|
|
@@ -130137,6 +130208,7 @@ var require_exec = __commonJS({
|
|
|
130137
130208
|
}
|
|
130138
130209
|
const existsPnp = existsInDir_1.default.bind(null, ".pnp.cjs");
|
|
130139
130210
|
const workspacePnpPath = opts.workspaceDir && await existsPnp(opts.workspaceDir);
|
|
130211
|
+
let exitCode = 0;
|
|
130140
130212
|
for (const chunk of chunks) {
|
|
130141
130213
|
await Promise.all(chunk.map(async (prefix) => limitRun(async () => {
|
|
130142
130214
|
var _a2, _b;
|
|
@@ -130160,9 +130232,8 @@ var require_exec = __commonJS({
|
|
|
130160
130232
|
result.passes++;
|
|
130161
130233
|
} catch (err) {
|
|
130162
130234
|
if (!opts.recursive && typeof err.exitCode === "number") {
|
|
130163
|
-
|
|
130164
|
-
|
|
130165
|
-
};
|
|
130235
|
+
exitCode = err.exitCode;
|
|
130236
|
+
return;
|
|
130166
130237
|
}
|
|
130167
130238
|
logger_1.default.info(err);
|
|
130168
130239
|
if (!opts.bail) {
|
|
@@ -130177,10 +130248,10 @@ var require_exec = __commonJS({
|
|
|
130177
130248
|
err["prefix"] = prefix;
|
|
130178
130249
|
throw err;
|
|
130179
130250
|
}
|
|
130180
|
-
return { exitCode: 0 };
|
|
130181
130251
|
})));
|
|
130182
130252
|
}
|
|
130183
130253
|
(0, cli_utils_1.throwOnCommandFail)("pnpm recursive exec", result);
|
|
130254
|
+
return { exitCode };
|
|
130184
130255
|
}
|
|
130185
130256
|
exports2.handler = handler;
|
|
130186
130257
|
}
|
|
@@ -131145,30 +131216,36 @@ Setup complete. Open a new terminal to start using pnpm.`;
|
|
|
131145
131216
|
return "Could not infer shell type.";
|
|
131146
131217
|
}
|
|
131147
131218
|
async function setupShell(configFile, pnpmHomeDir) {
|
|
131148
|
-
|
|
131149
|
-
|
|
131219
|
+
const content = `export PNPM_HOME="${pnpmHomeDir}"
|
|
131220
|
+
export PATH="$PNPM_HOME:$PATH"
|
|
131221
|
+
`;
|
|
131222
|
+
if (!fs_1.default.existsSync(configFile)) {
|
|
131223
|
+
await fs_1.default.promises.writeFile(configFile, content, "utf8");
|
|
131224
|
+
return `Created ${configFile}`;
|
|
131225
|
+
}
|
|
131150
131226
|
const configContent = await fs_1.default.promises.readFile(configFile, "utf8");
|
|
131151
131227
|
if (configContent.includes("PNPM_HOME")) {
|
|
131152
131228
|
return `PNPM_HOME is already in ${configFile}`;
|
|
131153
131229
|
}
|
|
131154
|
-
await fs_1.default.promises.
|
|
131155
|
-
|
|
131156
|
-
export PATH="$PNPM_HOME:$PATH"
|
|
131157
|
-
`, "utf8");
|
|
131230
|
+
await fs_1.default.promises.appendFile(configFile, `
|
|
131231
|
+
${content}`, "utf8");
|
|
131158
131232
|
return `Updated ${configFile}`;
|
|
131159
131233
|
}
|
|
131160
131234
|
async function setupFishShell(pnpmHomeDir) {
|
|
131161
131235
|
const configFile = path_1.default.join(os_1.default.homedir(), ".config/fish/config.fish");
|
|
131162
|
-
|
|
131163
|
-
|
|
131236
|
+
const content = `set -gx PNPM_HOME "${pnpmHomeDir}"
|
|
131237
|
+
set -gx PATH "$PNPM_HOME" $PATH
|
|
131238
|
+
`;
|
|
131239
|
+
if (!fs_1.default.existsSync(configFile)) {
|
|
131240
|
+
await fs_1.default.promises.writeFile(configFile, content, "utf8");
|
|
131241
|
+
return `Created ${configFile}`;
|
|
131242
|
+
}
|
|
131164
131243
|
const configContent = await fs_1.default.promises.readFile(configFile, "utf8");
|
|
131165
131244
|
if (configContent.includes("PNPM_HOME")) {
|
|
131166
131245
|
return `PNPM_HOME is already in ${configFile}`;
|
|
131167
131246
|
}
|
|
131168
|
-
await fs_1.default.promises.
|
|
131169
|
-
|
|
131170
|
-
set -gx PATH "$PNPM_HOME" $PATH
|
|
131171
|
-
`, "utf8");
|
|
131247
|
+
await fs_1.default.promises.appendFile(configFile, `
|
|
131248
|
+
${content}`, "utf8");
|
|
131172
131249
|
return `Updated ${configFile}`;
|
|
131173
131250
|
}
|
|
131174
131251
|
}
|
|
@@ -131318,7 +131395,7 @@ var require_storePrune = __commonJS({
|
|
|
131318
131395
|
var require_dint = __commonJS({
|
|
131319
131396
|
"../../node_modules/.pnpm/dint@5.1.0/node_modules/dint/index.js"(exports2, module2) {
|
|
131320
131397
|
"use strict";
|
|
131321
|
-
var
|
|
131398
|
+
var fs2 = require("fs");
|
|
131322
131399
|
var ssri = require_ssri();
|
|
131323
131400
|
var path = require("path");
|
|
131324
131401
|
var pEvery = require_p_every();
|
|
@@ -131330,10 +131407,10 @@ var require_dint = __commonJS({
|
|
|
131330
131407
|
}
|
|
131331
131408
|
async function _retrieveFileIntegrities(rootDir, currDir, index) {
|
|
131332
131409
|
try {
|
|
131333
|
-
const files = await
|
|
131410
|
+
const files = await fs2.promises.readdir(currDir);
|
|
131334
131411
|
await Promise.all(files.map(async (file) => {
|
|
131335
131412
|
const fullPath = path.join(currDir, file);
|
|
131336
|
-
const stat = await
|
|
131413
|
+
const stat = await fs2.promises.stat(fullPath);
|
|
131337
131414
|
if (stat.isDirectory()) {
|
|
131338
131415
|
return _retrieveFileIntegrities(rootDir, fullPath, index);
|
|
131339
131416
|
}
|
|
@@ -131342,7 +131419,7 @@ var require_dint = __commonJS({
|
|
|
131342
131419
|
index[relativePath] = {
|
|
131343
131420
|
size: stat.size,
|
|
131344
131421
|
generatingIntegrity: limit(() => {
|
|
131345
|
-
return stat.size < MAX_BULK_SIZE ?
|
|
131422
|
+
return stat.size < MAX_BULK_SIZE ? fs2.promises.readFile(fullPath).then(ssri.fromData) : ssri.fromStream(fs2.createReadStream(fullPath));
|
|
131346
131423
|
})
|
|
131347
131424
|
};
|
|
131348
131425
|
}
|
|
@@ -131364,7 +131441,7 @@ var require_dint = __commonJS({
|
|
|
131364
131441
|
const filename = path.join(dirname, f);
|
|
131365
131442
|
if (fstat.size > MAX_BULK_SIZE) {
|
|
131366
131443
|
try {
|
|
131367
|
-
return await ssri.checkStream(
|
|
131444
|
+
return await ssri.checkStream(fs2.createReadStream(filename), fstat.integrity);
|
|
131368
131445
|
} catch (err) {
|
|
131369
131446
|
if (err.code === "EINTEGRITY" || err.code === "ENOENT")
|
|
131370
131447
|
return false;
|
|
@@ -131372,7 +131449,7 @@ var require_dint = __commonJS({
|
|
|
131372
131449
|
}
|
|
131373
131450
|
}
|
|
131374
131451
|
try {
|
|
131375
|
-
const data = await
|
|
131452
|
+
const data = await fs2.promises.readFile(filename);
|
|
131376
131453
|
return ssri.checkData(data, fstat.integrity);
|
|
131377
131454
|
} catch (err) {
|
|
131378
131455
|
if (err.code === "EINTEGRITY" || err.code === "ENOENT")
|
|
@@ -132650,7 +132727,7 @@ var require_lodash = __commonJS({
|
|
|
132650
132727
|
});
|
|
132651
132728
|
|
|
132652
132729
|
// ../../node_modules/.pnpm/didyoumean2@5.0.0/node_modules/didyoumean2/dist/index.cjs
|
|
132653
|
-
var
|
|
132730
|
+
var require_dist12 = __commonJS({
|
|
132654
132731
|
"../../node_modules/.pnpm/didyoumean2@5.0.0/node_modules/didyoumean2/dist/index.cjs"(exports2) {
|
|
132655
132732
|
"use strict";
|
|
132656
132733
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -132828,7 +132905,7 @@ var require_lib110 = __commonJS({
|
|
|
132828
132905
|
var error_1 = __importDefault(require_lib8());
|
|
132829
132906
|
var find_workspace_dir_1 = __importDefault(require_lib94());
|
|
132830
132907
|
var nopt_1 = __importDefault(require_nopt());
|
|
132831
|
-
var didyoumean2_1 = __importStar2(
|
|
132908
|
+
var didyoumean2_1 = __importStar2(require_dist12());
|
|
132832
132909
|
var RECURSIVE_CMDS = new Set(["recursive", "multi", "m"]);
|
|
132833
132910
|
async function parseCliArgs(opts, inputArgv) {
|
|
132834
132911
|
var _a;
|
|
@@ -134022,9 +134099,11 @@ var require_main2 = __commonJS({
|
|
|
134022
134099
|
const selfUpdate = config.global && (cmd === "add" || cmd === "update") && cliParams.includes(cli_meta_1.default.name);
|
|
134023
134100
|
if (selfUpdate) {
|
|
134024
134101
|
await cmd_1.default.server(config, ["stop"]);
|
|
134025
|
-
|
|
134026
|
-
|
|
134027
|
-
|
|
134102
|
+
if (config.cliOptions["global-dir"] == null) {
|
|
134103
|
+
try {
|
|
134104
|
+
config.bin = path_1.default.dirname(which_1.default.sync("pnpm"));
|
|
134105
|
+
} catch (err) {
|
|
134106
|
+
}
|
|
134028
134107
|
}
|
|
134029
134108
|
}
|
|
134030
134109
|
if ((cmd === "install" || cmd === "import") && typeof workspaceDir === "string") {
|