@depot/cli 0.0.1-cli.2.102.1 → 0.0.1-cli.2.102.11
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/bin/depot +3 -5
- package/install.js +4 -8
- package/lib/main.d.ts +2 -1
- package/lib/main.js +82 -84
- package/package.json +14 -11
package/bin/depot
CHANGED
|
@@ -67,16 +67,14 @@ function pkgForSomeOtherPlatform() {
|
|
|
67
67
|
for (const unixKey in knownUnixlikePackages) {
|
|
68
68
|
try {
|
|
69
69
|
const pkg = knownUnixlikePackages[unixKey];
|
|
70
|
-
if (fs.existsSync(path.join(nodeModulesDirectory, pkg)))
|
|
71
|
-
return pkg;
|
|
70
|
+
if (fs.existsSync(path.join(nodeModulesDirectory, pkg))) return pkg;
|
|
72
71
|
} catch {
|
|
73
72
|
}
|
|
74
73
|
}
|
|
75
74
|
for (const windowsKey in knownWindowsPackages) {
|
|
76
75
|
try {
|
|
77
76
|
const pkg = knownWindowsPackages[windowsKey];
|
|
78
|
-
if (fs.existsSync(path.join(nodeModulesDirectory, pkg)))
|
|
79
|
-
return pkg;
|
|
77
|
+
if (fs.existsSync(path.join(nodeModulesDirectory, pkg))) return pkg;
|
|
80
78
|
} catch {
|
|
81
79
|
}
|
|
82
80
|
}
|
|
@@ -176,7 +174,7 @@ for your current platform.`);
|
|
|
176
174
|
"node_modules",
|
|
177
175
|
".cache",
|
|
178
176
|
"@depot/cli",
|
|
179
|
-
`pnpapi-${pkg.replace("/", "-")}-${"2.102.
|
|
177
|
+
`pnpapi-${pkg.replace("/", "-")}-${"2.102.11"}-${path.basename(subpath)}`
|
|
180
178
|
);
|
|
181
179
|
if (!fs.existsSync(binTargetPath)) {
|
|
182
180
|
fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
|
package/install.js
CHANGED
|
@@ -134,8 +134,7 @@ function fetch(url) {
|
|
|
134
134
|
https.get(url, (res) => {
|
|
135
135
|
if ((res.statusCode === 301 || res.statusCode === 302) && res.headers.location)
|
|
136
136
|
return fetch(res.headers.location).then(resolve, reject);
|
|
137
|
-
if (res.statusCode !== 200)
|
|
138
|
-
return reject(new Error(`Server responded with ${res.statusCode}`));
|
|
137
|
+
if (res.statusCode !== 200) return reject(new Error(`Server responded with ${res.statusCode}`));
|
|
139
138
|
let chunks = [];
|
|
140
139
|
res.on("data", (chunk) => chunks.push(chunk));
|
|
141
140
|
res.on("end", () => resolve(Buffer.concat(chunks)));
|
|
@@ -156,8 +155,7 @@ function extractFileFromTarGzip(buffer, subpath) {
|
|
|
156
155
|
let size = parseInt(str(offset + 124, 12), 8);
|
|
157
156
|
offset += 512;
|
|
158
157
|
if (!isNaN(size)) {
|
|
159
|
-
if (name === subpath)
|
|
160
|
-
return buffer.subarray(offset, offset + size);
|
|
158
|
+
if (name === subpath) return buffer.subarray(offset, offset + size);
|
|
161
159
|
offset += size + 511 & ~511;
|
|
162
160
|
}
|
|
163
161
|
}
|
|
@@ -192,10 +190,8 @@ function removeRecursive(dir) {
|
|
|
192
190
|
} catch {
|
|
193
191
|
continue;
|
|
194
192
|
}
|
|
195
|
-
if (stats.isDirectory())
|
|
196
|
-
|
|
197
|
-
else
|
|
198
|
-
fs.unlinkSync(entryPath);
|
|
193
|
+
if (stats.isDirectory()) removeRecursive(entryPath);
|
|
194
|
+
else fs.unlinkSync(entryPath);
|
|
199
195
|
}
|
|
200
196
|
fs.rmdirSync(dir);
|
|
201
197
|
}
|
package/lib/main.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v8.
|
|
1
|
+
// Generated by dts-bundle-generator v8.1.2
|
|
2
2
|
|
|
3
|
+
import { Buffer } from 'node:buffer';
|
|
3
4
|
import { ChildProcess } from 'node:child_process';
|
|
4
5
|
import { Readable as ReadableStream, Stream, Writable as WritableStream } from 'node:stream';
|
|
5
6
|
|
package/lib/main.js
CHANGED
|
@@ -5,8 +5,15 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __typeError = (msg) => {
|
|
9
|
+
throw TypeError(msg);
|
|
10
|
+
};
|
|
8
11
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
|
|
12
|
+
try {
|
|
13
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14
|
+
} catch (e) {
|
|
15
|
+
throw mod = 0, e;
|
|
16
|
+
}
|
|
10
17
|
};
|
|
11
18
|
var __export = (target, all) => {
|
|
12
19
|
for (var name in all)
|
|
@@ -29,32 +36,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
36
|
mod
|
|
30
37
|
));
|
|
31
38
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
-
var __accessCheck = (obj, member, msg) =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var
|
|
37
|
-
__accessCheck(obj, member, "read from private field");
|
|
38
|
-
return getter ? getter.call(obj) : member.get(obj);
|
|
39
|
-
};
|
|
40
|
-
var __privateAdd = (obj, member, value) => {
|
|
41
|
-
if (member.has(obj))
|
|
42
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
43
|
-
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
44
|
-
};
|
|
45
|
-
var __privateSet = (obj, member, value, setter) => {
|
|
46
|
-
__accessCheck(obj, member, "write to private field");
|
|
47
|
-
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
48
|
-
return value;
|
|
49
|
-
};
|
|
50
|
-
var __privateMethod = (obj, member, method) => {
|
|
51
|
-
__accessCheck(obj, member, "access private method");
|
|
52
|
-
return method;
|
|
53
|
-
};
|
|
39
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
40
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
41
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
42
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
43
|
+
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
54
44
|
|
|
55
45
|
// node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
56
46
|
var require_windows = __commonJS({
|
|
57
|
-
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(
|
|
47
|
+
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports2, module2) {
|
|
58
48
|
module2.exports = isexe;
|
|
59
49
|
isexe.sync = sync;
|
|
60
50
|
var fs2 = require("fs");
|
|
@@ -94,7 +84,7 @@ var require_windows = __commonJS({
|
|
|
94
84
|
|
|
95
85
|
// node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
96
86
|
var require_mode = __commonJS({
|
|
97
|
-
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(
|
|
87
|
+
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports2, module2) {
|
|
98
88
|
module2.exports = isexe;
|
|
99
89
|
isexe.sync = sync;
|
|
100
90
|
var fs2 = require("fs");
|
|
@@ -127,7 +117,7 @@ var require_mode = __commonJS({
|
|
|
127
117
|
|
|
128
118
|
// node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
129
119
|
var require_isexe = __commonJS({
|
|
130
|
-
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(
|
|
120
|
+
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
|
|
131
121
|
var fs2 = require("fs");
|
|
132
122
|
var core;
|
|
133
123
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
@@ -182,7 +172,7 @@ var require_isexe = __commonJS({
|
|
|
182
172
|
|
|
183
173
|
// node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
184
174
|
var require_which = __commonJS({
|
|
185
|
-
"node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(
|
|
175
|
+
"node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) {
|
|
186
176
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
187
177
|
var path5 = require("path");
|
|
188
178
|
var COLON = isWindows ? ";" : ":";
|
|
@@ -278,7 +268,7 @@ var require_which = __commonJS({
|
|
|
278
268
|
|
|
279
269
|
// node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
280
270
|
var require_path_key = __commonJS({
|
|
281
|
-
"node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(
|
|
271
|
+
"node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports2, module2) {
|
|
282
272
|
"use strict";
|
|
283
273
|
var pathKey2 = (options = {}) => {
|
|
284
274
|
const environment = options.env || process.env;
|
|
@@ -293,9 +283,9 @@ var require_path_key = __commonJS({
|
|
|
293
283
|
}
|
|
294
284
|
});
|
|
295
285
|
|
|
296
|
-
// node_modules/.pnpm/cross-spawn@7.0.
|
|
286
|
+
// node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
297
287
|
var require_resolveCommand = __commonJS({
|
|
298
|
-
"node_modules/.pnpm/cross-spawn@7.0.
|
|
288
|
+
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
|
299
289
|
"use strict";
|
|
300
290
|
var path5 = require("path");
|
|
301
291
|
var which = require_which();
|
|
@@ -335,9 +325,9 @@ var require_resolveCommand = __commonJS({
|
|
|
335
325
|
}
|
|
336
326
|
});
|
|
337
327
|
|
|
338
|
-
// node_modules/.pnpm/cross-spawn@7.0.
|
|
328
|
+
// node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
339
329
|
var require_escape = __commonJS({
|
|
340
|
-
"node_modules/.pnpm/cross-spawn@7.0.
|
|
330
|
+
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
|
|
341
331
|
"use strict";
|
|
342
332
|
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
343
333
|
function escapeCommand(arg) {
|
|
@@ -346,8 +336,8 @@ var require_escape = __commonJS({
|
|
|
346
336
|
}
|
|
347
337
|
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
348
338
|
arg = `${arg}`;
|
|
349
|
-
arg = arg.replace(/(
|
|
350
|
-
arg = arg.replace(/(
|
|
339
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
|
|
340
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
351
341
|
arg = `"${arg}"`;
|
|
352
342
|
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
353
343
|
if (doubleEscapeMetaChars) {
|
|
@@ -362,7 +352,7 @@ var require_escape = __commonJS({
|
|
|
362
352
|
|
|
363
353
|
// node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
364
354
|
var require_shebang_regex = __commonJS({
|
|
365
|
-
"node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(
|
|
355
|
+
"node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports2, module2) {
|
|
366
356
|
"use strict";
|
|
367
357
|
module2.exports = /^#!(.*)/;
|
|
368
358
|
}
|
|
@@ -370,7 +360,7 @@ var require_shebang_regex = __commonJS({
|
|
|
370
360
|
|
|
371
361
|
// node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
372
362
|
var require_shebang_command = __commonJS({
|
|
373
|
-
"node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(
|
|
363
|
+
"node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports2, module2) {
|
|
374
364
|
"use strict";
|
|
375
365
|
var shebangRegex = require_shebang_regex();
|
|
376
366
|
module2.exports = (string = "") => {
|
|
@@ -388,9 +378,9 @@ var require_shebang_command = __commonJS({
|
|
|
388
378
|
}
|
|
389
379
|
});
|
|
390
380
|
|
|
391
|
-
// node_modules/.pnpm/cross-spawn@7.0.
|
|
381
|
+
// node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
392
382
|
var require_readShebang = __commonJS({
|
|
393
|
-
"node_modules/.pnpm/cross-spawn@7.0.
|
|
383
|
+
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
|
394
384
|
"use strict";
|
|
395
385
|
var fs2 = require("fs");
|
|
396
386
|
var shebangCommand = require_shebang_command();
|
|
@@ -410,9 +400,9 @@ var require_readShebang = __commonJS({
|
|
|
410
400
|
}
|
|
411
401
|
});
|
|
412
402
|
|
|
413
|
-
// node_modules/.pnpm/cross-spawn@7.0.
|
|
403
|
+
// node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
414
404
|
var require_parse = __commonJS({
|
|
415
|
-
"node_modules/.pnpm/cross-spawn@7.0.
|
|
405
|
+
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
|
416
406
|
"use strict";
|
|
417
407
|
var path5 = require("path");
|
|
418
408
|
var resolveCommand = require_resolveCommand();
|
|
@@ -472,9 +462,9 @@ var require_parse = __commonJS({
|
|
|
472
462
|
}
|
|
473
463
|
});
|
|
474
464
|
|
|
475
|
-
// node_modules/.pnpm/cross-spawn@7.0.
|
|
465
|
+
// node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
476
466
|
var require_enoent = __commonJS({
|
|
477
|
-
"node_modules/.pnpm/cross-spawn@7.0.
|
|
467
|
+
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
|
|
478
468
|
"use strict";
|
|
479
469
|
var isWin = process.platform === "win32";
|
|
480
470
|
function notFoundError(original, syscall) {
|
|
@@ -493,7 +483,7 @@ var require_enoent = __commonJS({
|
|
|
493
483
|
const originalEmit = cp.emit;
|
|
494
484
|
cp.emit = function(name, arg1) {
|
|
495
485
|
if (name === "exit") {
|
|
496
|
-
const err = verifyENOENT(arg1, parsed
|
|
486
|
+
const err = verifyENOENT(arg1, parsed);
|
|
497
487
|
if (err) {
|
|
498
488
|
return originalEmit.call(cp, "error", err);
|
|
499
489
|
}
|
|
@@ -522,9 +512,9 @@ var require_enoent = __commonJS({
|
|
|
522
512
|
}
|
|
523
513
|
});
|
|
524
514
|
|
|
525
|
-
// node_modules/.pnpm/cross-spawn@7.0.
|
|
515
|
+
// node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
526
516
|
var require_cross_spawn = __commonJS({
|
|
527
|
-
"node_modules/.pnpm/cross-spawn@7.0.
|
|
517
|
+
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
|
|
528
518
|
"use strict";
|
|
529
519
|
var cp = require("child_process");
|
|
530
520
|
var parse = require_parse();
|
|
@@ -551,7 +541,7 @@ var require_cross_spawn = __commonJS({
|
|
|
551
541
|
|
|
552
542
|
// node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js
|
|
553
543
|
var require_merge_stream = __commonJS({
|
|
554
|
-
"node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(
|
|
544
|
+
"node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports2, module2) {
|
|
555
545
|
"use strict";
|
|
556
546
|
var { PassThrough } = require("stream");
|
|
557
547
|
module2.exports = function() {
|
|
@@ -617,10 +607,10 @@ function stripFinalNewline(input) {
|
|
|
617
607
|
return input;
|
|
618
608
|
}
|
|
619
609
|
|
|
620
|
-
// node_modules/.pnpm/npm-run-path@5.
|
|
610
|
+
// node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js
|
|
621
611
|
var import_node_process = __toESM(require("process"), 1);
|
|
622
612
|
var import_node_path = __toESM(require("path"), 1);
|
|
623
|
-
var import_node_url =
|
|
613
|
+
var import_node_url = require("url");
|
|
624
614
|
|
|
625
615
|
// node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
626
616
|
function pathKey(options = {}) {
|
|
@@ -634,32 +624,44 @@ function pathKey(options = {}) {
|
|
|
634
624
|
return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
635
625
|
}
|
|
636
626
|
|
|
637
|
-
// node_modules/.pnpm/npm-run-path@5.
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
const cwdString = cwd instanceof URL ? import_node_url.
|
|
646
|
-
|
|
627
|
+
// node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js
|
|
628
|
+
var npmRunPath = ({
|
|
629
|
+
cwd = import_node_process.default.cwd(),
|
|
630
|
+
path: pathOption = import_node_process.default.env[pathKey()],
|
|
631
|
+
preferLocal = true,
|
|
632
|
+
execPath = import_node_process.default.execPath,
|
|
633
|
+
addExecPath = true
|
|
634
|
+
} = {}) => {
|
|
635
|
+
const cwdString = cwd instanceof URL ? (0, import_node_url.fileURLToPath)(cwd) : cwd;
|
|
636
|
+
const cwdPath = import_node_path.default.resolve(cwdString);
|
|
647
637
|
const result = [];
|
|
638
|
+
if (preferLocal) {
|
|
639
|
+
applyPreferLocal(result, cwdPath);
|
|
640
|
+
}
|
|
641
|
+
if (addExecPath) {
|
|
642
|
+
applyExecPath(result, execPath, cwdPath);
|
|
643
|
+
}
|
|
644
|
+
return [...result, pathOption].join(import_node_path.default.delimiter);
|
|
645
|
+
};
|
|
646
|
+
var applyPreferLocal = (result, cwdPath) => {
|
|
647
|
+
let previous;
|
|
648
648
|
while (previous !== cwdPath) {
|
|
649
649
|
result.push(import_node_path.default.join(cwdPath, "node_modules/.bin"));
|
|
650
650
|
previous = cwdPath;
|
|
651
651
|
cwdPath = import_node_path.default.resolve(cwdPath, "..");
|
|
652
652
|
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
653
|
+
};
|
|
654
|
+
var applyExecPath = (result, execPath, cwdPath) => {
|
|
655
|
+
const execPathString = execPath instanceof URL ? (0, import_node_url.fileURLToPath)(execPath) : execPath;
|
|
656
|
+
result.push(import_node_path.default.resolve(cwdPath, execPathString, ".."));
|
|
657
|
+
};
|
|
658
|
+
var npmRunPathEnv = ({ env = import_node_process.default.env, ...options } = {}) => {
|
|
657
659
|
env = { ...env };
|
|
658
|
-
const
|
|
659
|
-
options.path = env[
|
|
660
|
-
env[
|
|
660
|
+
const pathName = pathKey({ env });
|
|
661
|
+
options.path = env[pathName];
|
|
662
|
+
env[pathName] = npmRunPath(options);
|
|
661
663
|
return env;
|
|
662
|
-
}
|
|
664
|
+
};
|
|
663
665
|
|
|
664
666
|
// node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.js
|
|
665
667
|
var copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
@@ -1231,7 +1233,7 @@ if (process.platform === "linux") {
|
|
|
1231
1233
|
|
|
1232
1234
|
// node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
1233
1235
|
var processOk = (process7) => !!process7 && typeof process7 === "object" && typeof process7.removeListener === "function" && typeof process7.emit === "function" && typeof process7.reallyExit === "function" && typeof process7.listeners === "function" && typeof process7.kill === "function" && typeof process7.pid === "number" && typeof process7.on === "function";
|
|
1234
|
-
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
1236
|
+
var kExitEmitter = /* @__PURE__ */ Symbol.for("signal-exit emitter");
|
|
1235
1237
|
var global2 = globalThis;
|
|
1236
1238
|
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
1237
1239
|
var Emitter = class {
|
|
@@ -1311,21 +1313,20 @@ var SignalExitFallback = class extends SignalExitBase {
|
|
|
1311
1313
|
unload() {
|
|
1312
1314
|
}
|
|
1313
1315
|
};
|
|
1314
|
-
var _hupSig, _emitter, _process, _originalProcessEmit, _originalProcessReallyExit, _sigListeners, _loaded,
|
|
1316
|
+
var _hupSig, _emitter, _process, _originalProcessEmit, _originalProcessReallyExit, _sigListeners, _loaded, _SignalExit_instances, processReallyExit_fn, processEmit_fn;
|
|
1315
1317
|
var SignalExit = class extends SignalExitBase {
|
|
1316
1318
|
constructor(process7) {
|
|
1317
1319
|
super();
|
|
1318
|
-
__privateAdd(this,
|
|
1319
|
-
__privateAdd(this, _processEmit);
|
|
1320
|
+
__privateAdd(this, _SignalExit_instances);
|
|
1320
1321
|
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
1321
1322
|
// so use a supported signal instead
|
|
1322
1323
|
/* c8 ignore start */
|
|
1323
1324
|
__privateAdd(this, _hupSig, process4.platform === "win32" ? "SIGINT" : "SIGHUP");
|
|
1324
1325
|
/* c8 ignore stop */
|
|
1325
1326
|
__privateAdd(this, _emitter, new Emitter());
|
|
1326
|
-
__privateAdd(this, _process
|
|
1327
|
-
__privateAdd(this, _originalProcessEmit
|
|
1328
|
-
__privateAdd(this, _originalProcessReallyExit
|
|
1327
|
+
__privateAdd(this, _process);
|
|
1328
|
+
__privateAdd(this, _originalProcessEmit);
|
|
1329
|
+
__privateAdd(this, _originalProcessReallyExit);
|
|
1329
1330
|
__privateAdd(this, _sigListeners, {});
|
|
1330
1331
|
__privateAdd(this, _loaded, false);
|
|
1331
1332
|
__privateSet(this, _process, process7);
|
|
@@ -1382,10 +1383,10 @@ var SignalExit = class extends SignalExitBase {
|
|
|
1382
1383
|
}
|
|
1383
1384
|
}
|
|
1384
1385
|
__privateGet(this, _process).emit = (ev, ...a) => {
|
|
1385
|
-
return __privateMethod(this,
|
|
1386
|
+
return __privateMethod(this, _SignalExit_instances, processEmit_fn).call(this, ev, ...a);
|
|
1386
1387
|
};
|
|
1387
1388
|
__privateGet(this, _process).reallyExit = (code) => {
|
|
1388
|
-
return __privateMethod(this,
|
|
1389
|
+
return __privateMethod(this, _SignalExit_instances, processReallyExit_fn).call(this, code);
|
|
1389
1390
|
};
|
|
1390
1391
|
}
|
|
1391
1392
|
unload() {
|
|
@@ -1415,7 +1416,7 @@ _originalProcessEmit = new WeakMap();
|
|
|
1415
1416
|
_originalProcessReallyExit = new WeakMap();
|
|
1416
1417
|
_sigListeners = new WeakMap();
|
|
1417
1418
|
_loaded = new WeakMap();
|
|
1418
|
-
|
|
1419
|
+
_SignalExit_instances = new WeakSet();
|
|
1419
1420
|
processReallyExit_fn = function(code) {
|
|
1420
1421
|
if (!processOk(__privateGet(this, _process))) {
|
|
1421
1422
|
return 0;
|
|
@@ -1424,7 +1425,6 @@ processReallyExit_fn = function(code) {
|
|
|
1424
1425
|
__privateGet(this, _emitter).emit("exit", __privateGet(this, _process).exitCode, null);
|
|
1425
1426
|
return __privateGet(this, _originalProcessReallyExit).call(__privateGet(this, _process), __privateGet(this, _process).exitCode);
|
|
1426
1427
|
};
|
|
1427
|
-
_processEmit = new WeakSet();
|
|
1428
1428
|
processEmit_fn = function(ev, ...args) {
|
|
1429
1429
|
const og = __privateGet(this, _originalProcessEmit);
|
|
1430
1430
|
if (ev === "exit" && processOk(__privateGet(this, _process))) {
|
|
@@ -1868,8 +1868,8 @@ var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBu
|
|
|
1868
1868
|
};
|
|
1869
1869
|
|
|
1870
1870
|
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.js
|
|
1871
|
-
var nativePromisePrototype = (
|
|
1872
|
-
})()
|
|
1871
|
+
var nativePromisePrototype = (async () => {
|
|
1872
|
+
})().constructor.prototype;
|
|
1873
1873
|
var descriptors = ["then", "catch", "finally"].map((property) => [
|
|
1874
1874
|
property,
|
|
1875
1875
|
Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
|
|
@@ -2233,16 +2233,14 @@ function pkgForSomeOtherPlatform() {
|
|
|
2233
2233
|
for (const unixKey in knownUnixlikePackages) {
|
|
2234
2234
|
try {
|
|
2235
2235
|
const pkg = knownUnixlikePackages[unixKey];
|
|
2236
|
-
if (fs.existsSync(path3.join(nodeModulesDirectory, pkg)))
|
|
2237
|
-
return pkg;
|
|
2236
|
+
if (fs.existsSync(path3.join(nodeModulesDirectory, pkg))) return pkg;
|
|
2238
2237
|
} catch {
|
|
2239
2238
|
}
|
|
2240
2239
|
}
|
|
2241
2240
|
for (const windowsKey in knownWindowsPackages) {
|
|
2242
2241
|
try {
|
|
2243
2242
|
const pkg = knownWindowsPackages[windowsKey];
|
|
2244
|
-
if (fs.existsSync(path3.join(nodeModulesDirectory, pkg)))
|
|
2245
|
-
return pkg;
|
|
2243
|
+
if (fs.existsSync(path3.join(nodeModulesDirectory, pkg))) return pkg;
|
|
2246
2244
|
} catch {
|
|
2247
2245
|
}
|
|
2248
2246
|
}
|
|
@@ -2342,7 +2340,7 @@ for your current platform.`);
|
|
|
2342
2340
|
"node_modules",
|
|
2343
2341
|
".cache",
|
|
2344
2342
|
"@depot/cli",
|
|
2345
|
-
`pnpapi-${pkg.replace("/", "-")}-${"2.102.
|
|
2343
|
+
`pnpapi-${pkg.replace("/", "-")}-${"2.102.11"}-${path3.basename(subpath)}`
|
|
2346
2344
|
);
|
|
2347
2345
|
if (!fs.existsSync(binTargetPath)) {
|
|
2348
2346
|
fs.mkdirSync(path3.dirname(binTargetPath), { recursive: true });
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depot/cli",
|
|
3
|
-
"version": "0.0.1-cli.2.102.
|
|
3
|
+
"version": "0.0.1-cli.2.102.11",
|
|
4
4
|
"description": "Depot CLI",
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/depot/cli"
|
|
8
|
+
},
|
|
6
9
|
"license": "MIT",
|
|
7
10
|
"engines": {
|
|
8
11
|
"node": ">=14"
|
|
@@ -13,15 +16,15 @@
|
|
|
13
16
|
"main": "lib/main.js",
|
|
14
17
|
"types": "lib/main.d.ts",
|
|
15
18
|
"optionalDependencies": {
|
|
16
|
-
"@depot/cli-darwin-arm64": "0.0.1-cli.2.102.
|
|
17
|
-
"@depot/cli-darwin-x64": "0.0.1-cli.2.102.
|
|
18
|
-
"@depot/cli-linux-arm": "0.0.1-cli.2.102.
|
|
19
|
-
"@depot/cli-linux-arm64": "0.0.1-cli.2.102.
|
|
20
|
-
"@depot/cli-linux-ia32": "0.0.1-cli.2.102.
|
|
21
|
-
"@depot/cli-linux-x64": "0.0.1-cli.2.102.
|
|
22
|
-
"@depot/cli-win32-arm64": "0.0.1-cli.2.102.
|
|
23
|
-
"@depot/cli-win32-ia32": "0.0.1-cli.2.102.
|
|
24
|
-
"@depot/cli-win32-x64": "0.0.1-cli.2.102.
|
|
19
|
+
"@depot/cli-darwin-arm64": "0.0.1-cli.2.102.11",
|
|
20
|
+
"@depot/cli-darwin-x64": "0.0.1-cli.2.102.11",
|
|
21
|
+
"@depot/cli-linux-arm": "0.0.1-cli.2.102.11",
|
|
22
|
+
"@depot/cli-linux-arm64": "0.0.1-cli.2.102.11",
|
|
23
|
+
"@depot/cli-linux-ia32": "0.0.1-cli.2.102.11",
|
|
24
|
+
"@depot/cli-linux-x64": "0.0.1-cli.2.102.11",
|
|
25
|
+
"@depot/cli-win32-arm64": "0.0.1-cli.2.102.11",
|
|
26
|
+
"@depot/cli-win32-ia32": "0.0.1-cli.2.102.11",
|
|
27
|
+
"@depot/cli-win32-x64": "0.0.1-cli.2.102.11"
|
|
25
28
|
},
|
|
26
29
|
"publishConfig": {
|
|
27
30
|
"access": "public"
|