@shopify/cli 3.82.1 → 3.83.1
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/{chokidar-TTCYG5AA.js → chokidar-KCZH6DIC.js} +5 -5
- package/dist/{chokidar-XUA2BN3J.js → chokidar-XPSJ2FUJ.js} +5 -5
- package/dist/{chunk-QDLC5TZP.js → chunk-2ZA3MHM5.js} +3 -3
- package/dist/{chunk-LPU2VGJR.js → chunk-3FBDJEGD.js} +6153 -11319
- package/dist/{chunk-IHFQ3F23.js → chunk-4BPSIIGV.js} +3 -3
- package/dist/{chunk-EE5FOU6D.js → chunk-57SXE5DE.js} +2 -2
- package/dist/{chunk-TRPRYAWB.js → chunk-5BJYF6FG.js} +4 -4
- package/dist/{chunk-7E5ELMEP.js → chunk-5QFLNCVR.js} +6 -6
- package/dist/{chunk-F7J5CUMZ.js → chunk-66VZYBID.js} +4 -4
- package/dist/{chunk-JFCQDJFN.js → chunk-7EV36FNO.js} +12 -12
- package/dist/{chunk-MOIB2YST.js → chunk-7KLV4YSY.js} +2 -2
- package/dist/{chunk-TOYQ6OGF.js → chunk-A6DFWCO7.js} +4 -4
- package/dist/{chunk-YPVB6B34.js → chunk-ARXCCKJT.js} +9 -9
- package/dist/{chunk-LHLR2V5J.js → chunk-ASWHWSRF.js} +2 -2
- package/dist/{chunk-B2IEJ5WW.js → chunk-BZBO3V3A.js} +4 -4
- package/dist/{chunk-YN4HBUI3.js → chunk-BZFP2O66.js} +7 -7
- package/dist/{chunk-API6SOPE.js → chunk-DDU22ZPL.js} +3 -3
- package/dist/{chunk-YJPCY2LS.js → chunk-DFABOPSU.js} +4 -4
- package/dist/{chunk-UENXYFT3.js → chunk-DVGCJLCA.js} +12 -10
- package/dist/{chunk-CLFWIHUG.js → chunk-FEMALH67.js} +4 -4
- package/dist/{chunk-SFDHLWEI.js → chunk-FNYLJESL.js} +4 -4
- package/dist/{chunk-MPCIJZRR.js → chunk-JEW6HZHJ.js} +3 -3
- package/dist/{chunk-5NCPSAFZ.js → chunk-K5GF4S7D.js} +2 -2
- package/dist/{chunk-AE3MLJMV.js → chunk-KPFBSWRK.js} +779 -24
- package/dist/{chunk-W7ISQU7I.js → chunk-KSLA767C.js} +2 -2
- package/dist/{chunk-HPTCTDPD.js → chunk-NJN55E4K.js} +4 -4
- package/dist/{chunk-OSWJJWB4.js → chunk-PPDGMVCL.js} +5 -5
- package/dist/{chunk-VOPDBKMR.js → chunk-QNMWKLS4.js} +3 -3
- package/dist/{chunk-IXOKLO2J.js → chunk-RDAZS4FZ.js} +8 -8
- package/dist/{chunk-MBYV3HFV.js → chunk-SJYNVNUB.js} +3 -3
- package/dist/{chunk-2UOPOSAQ.js → chunk-SUA462JY.js} +5 -5
- package/dist/{chunk-6HSVIAHC.js → chunk-TB443RFG.js} +14 -12
- package/dist/{chunk-M4TCGXII.js → chunk-TLYRIQK7.js} +7 -7
- package/dist/chunk-UV5N2VL7.js +39 -0
- package/dist/{chunk-7AGM22KG.js → chunk-UZIJLLPI.js} +3 -3
- package/dist/{chunk-SRBYTZSG.js → chunk-XI6AXLZO.js} +4 -4
- package/dist/{chunk-RBHXB7LY.js → chunk-XOIMWH77.js} +2 -2
- package/dist/{chunk-GCPVC7EU.js → chunk-XVZQHSFP.js} +5 -5
- package/dist/{chunk-EG6MBBEN.js → chunk-Y2JP6WFP.js} +2 -2
- package/dist/{chunk-N4LQOIDN.js → chunk-ZQMRVJXG.js} +3 -3
- package/dist/cli/commands/auth/logout.js +16 -18
- package/dist/cli/commands/auth/logout.test.js +17 -19
- package/dist/cli/commands/cache/clear.js +15 -17
- package/dist/cli/commands/debug/command-flags.d.ts +1 -1
- package/dist/cli/commands/debug/command-flags.js +15 -17
- package/dist/cli/commands/docs/generate.js +15 -17
- package/dist/cli/commands/docs/generate.test.js +15 -17
- package/dist/cli/commands/help.d.ts +2 -2
- package/dist/cli/commands/help.js +15 -17
- package/dist/cli/commands/kitchen-sink/async.js +16 -18
- package/dist/cli/commands/kitchen-sink/async.test.js +16 -18
- package/dist/cli/commands/kitchen-sink/index.js +18 -20
- package/dist/cli/commands/kitchen-sink/index.test.js +18 -20
- package/dist/cli/commands/kitchen-sink/prompts.js +16 -18
- package/dist/cli/commands/kitchen-sink/prompts.test.js +16 -18
- package/dist/cli/commands/kitchen-sink/static.js +16 -18
- package/dist/cli/commands/kitchen-sink/static.test.js +16 -18
- package/dist/cli/commands/notifications/generate.js +16 -18
- package/dist/cli/commands/notifications/list.d.ts +1 -1
- package/dist/cli/commands/notifications/list.js +16 -18
- package/dist/cli/commands/search.d.ts +1 -1
- package/dist/cli/commands/search.js +16 -18
- package/dist/cli/commands/upgrade.js +16 -18
- package/dist/cli/commands/version.js +16 -18
- package/dist/cli/commands/version.test.js +16 -18
- package/dist/cli/services/commands/notifications.js +11 -13
- package/dist/cli/services/commands/search.js +7 -9
- package/dist/cli/services/commands/search.test.js +7 -9
- package/dist/cli/services/commands/version.js +8 -10
- package/dist/cli/services/commands/version.test.js +9 -11
- package/dist/cli/services/kitchen-sink/async.js +7 -9
- package/dist/cli/services/kitchen-sink/prompts.js +7 -9
- package/dist/cli/services/kitchen-sink/static.js +7 -9
- package/dist/cli/services/upgrade.js +8 -10
- package/dist/cli/services/upgrade.test.js +9 -11
- package/dist/configs/all.yml +9 -0
- package/dist/configs/recommended.yml +9 -0
- package/dist/{custom-oclif-loader-SQEUSZSS.js → custom-oclif-loader-XASCYJ7O.js} +7 -9
- package/dist/data/filters.json +40 -0
- package/dist/data/latest.json +1 -1
- package/dist/data/objects.json +28 -16
- package/dist/data/tags.json +7 -7
- package/dist/data/translations.json +9 -2
- package/dist/{chunk-FAITFLRX.js → del-SAZHGAZZ.js} +372 -42
- package/dist/{error-handler-EUTRPJGF.js → error-handler-HQBVO3GI.js} +13 -15
- package/dist/hooks/postrun.js +11 -13
- package/dist/hooks/prerun.js +12 -14
- package/dist/{http-proxy-LHSVRGJ5.js → http-proxy-node16-T623PGD4.js} +37 -29
- package/dist/index.js +20782 -20289
- package/dist/{lib-2ZBT3UR2.js → lib-OSXFX3I2.js} +4 -5
- package/dist/{local-DTWKQE2A.js → local-PI2REOYY.js} +7 -9
- package/dist/{morph-DFRO3NRL.js → morph-5LWJDWYB.js} +5 -5
- package/dist/{node-MZOMVUI6.js → node-NAYZANSZ.js} +17 -19
- package/dist/{node-package-manager-NJGCZMAX.js → node-package-manager-RVDETLBX.js} +8 -10
- package/dist/{path-GB4VIEM6.js → path-COZT77T2.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-OUT2NXBE.js → ui-RDFVKEJS.js} +7 -9
- package/dist/{workerd-JR3RQRVU.js → workerd-XLT4ZWI5.js} +17 -19
- package/oclif.manifest.json +212 -1
- package/package.json +14 -12
- package/dist/del-4JSTEFDW.js +0 -375
package/dist/del-4JSTEFDW.js
DELETED
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
require_glob
|
|
3
|
-
} from "./chunk-IG5SOACB.js";
|
|
4
|
-
import "./chunk-SHWOPMLQ.js";
|
|
5
|
-
import {
|
|
6
|
-
require_graceful_fs
|
|
7
|
-
} from "./chunk-75LV6AQS.js";
|
|
8
|
-
import {
|
|
9
|
-
require_globby,
|
|
10
|
-
require_indent_string,
|
|
11
|
-
require_slash
|
|
12
|
-
} from "./chunk-FAITFLRX.js";
|
|
13
|
-
import "./chunk-XE5EOEBL.js";
|
|
14
|
-
import "./chunk-CTFDRWUN.js";
|
|
15
|
-
import {
|
|
16
|
-
require_is_glob
|
|
17
|
-
} from "./chunk-7IK72W75.js";
|
|
18
|
-
import {
|
|
19
|
-
__commonJS,
|
|
20
|
-
__require,
|
|
21
|
-
init_cjs_shims
|
|
22
|
-
} from "./chunk-PKR7KJ6P.js";
|
|
23
|
-
|
|
24
|
-
// ../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js
|
|
25
|
-
var require_is_path_cwd = __commonJS({
|
|
26
|
-
"../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(exports, module) {
|
|
27
|
-
"use strict";
|
|
28
|
-
init_cjs_shims();
|
|
29
|
-
var path = __require("path");
|
|
30
|
-
module.exports = (path_) => {
|
|
31
|
-
let cwd = process.cwd();
|
|
32
|
-
return path_ = path.resolve(path_), process.platform === "win32" && (cwd = cwd.toLowerCase(), path_ = path_.toLowerCase()), path_ === cwd;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
// ../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js
|
|
38
|
-
var require_is_path_inside = __commonJS({
|
|
39
|
-
"../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js"(exports, module) {
|
|
40
|
-
"use strict";
|
|
41
|
-
init_cjs_shims();
|
|
42
|
-
var path = __require("path");
|
|
43
|
-
module.exports = (childPath, parentPath) => {
|
|
44
|
-
let relation = path.relative(parentPath, childPath);
|
|
45
|
-
return !!(relation && relation !== ".." && !relation.startsWith(`..${path.sep}`) && relation !== path.resolve(childPath));
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
// ../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js
|
|
51
|
-
var require_rimraf = __commonJS({
|
|
52
|
-
"../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports, module) {
|
|
53
|
-
init_cjs_shims();
|
|
54
|
-
var assert = __require("assert"), path = __require("path"), fs = __require("fs"), glob;
|
|
55
|
-
try {
|
|
56
|
-
glob = require_glob();
|
|
57
|
-
} catch {
|
|
58
|
-
}
|
|
59
|
-
var defaultGlobOpts = {
|
|
60
|
-
nosort: !0,
|
|
61
|
-
silent: !0
|
|
62
|
-
}, timeout = 0, isWindows = process.platform === "win32", defaults = (options) => {
|
|
63
|
-
if ([
|
|
64
|
-
"unlink",
|
|
65
|
-
"chmod",
|
|
66
|
-
"stat",
|
|
67
|
-
"lstat",
|
|
68
|
-
"rmdir",
|
|
69
|
-
"readdir"
|
|
70
|
-
].forEach((m) => {
|
|
71
|
-
options[m] = options[m] || fs[m], m = m + "Sync", options[m] = options[m] || fs[m];
|
|
72
|
-
}), options.maxBusyTries = options.maxBusyTries || 3, options.emfileWait = options.emfileWait || 1e3, options.glob === !1 && (options.disableGlob = !0), options.disableGlob !== !0 && glob === void 0)
|
|
73
|
-
throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");
|
|
74
|
-
options.disableGlob = options.disableGlob || !1, options.glob = options.glob || defaultGlobOpts;
|
|
75
|
-
}, rimraf = (p, options, cb) => {
|
|
76
|
-
typeof options == "function" && (cb = options, options = {}), assert(p, "rimraf: missing path"), assert.equal(typeof p, "string", "rimraf: path should be a string"), assert.equal(typeof cb, "function", "rimraf: callback function required"), assert(options, "rimraf: invalid options argument provided"), assert.equal(typeof options, "object", "rimraf: options should be object"), defaults(options);
|
|
77
|
-
let busyTries = 0, errState = null, n = 0, next = (er) => {
|
|
78
|
-
errState = errState || er, --n === 0 && cb(errState);
|
|
79
|
-
}, afterGlob = (er, results) => {
|
|
80
|
-
if (er)
|
|
81
|
-
return cb(er);
|
|
82
|
-
if (n = results.length, n === 0)
|
|
83
|
-
return cb();
|
|
84
|
-
results.forEach((p2) => {
|
|
85
|
-
let CB = (er2) => {
|
|
86
|
-
if (er2) {
|
|
87
|
-
if ((er2.code === "EBUSY" || er2.code === "ENOTEMPTY" || er2.code === "EPERM") && busyTries < options.maxBusyTries)
|
|
88
|
-
return busyTries++, setTimeout(() => rimraf_(p2, options, CB), busyTries * 100);
|
|
89
|
-
if (er2.code === "EMFILE" && timeout < options.emfileWait)
|
|
90
|
-
return setTimeout(() => rimraf_(p2, options, CB), timeout++);
|
|
91
|
-
er2.code === "ENOENT" && (er2 = null);
|
|
92
|
-
}
|
|
93
|
-
timeout = 0, next(er2);
|
|
94
|
-
};
|
|
95
|
-
rimraf_(p2, options, CB);
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
if (options.disableGlob || !glob.hasMagic(p))
|
|
99
|
-
return afterGlob(null, [p]);
|
|
100
|
-
options.lstat(p, (er, stat) => {
|
|
101
|
-
if (!er)
|
|
102
|
-
return afterGlob(null, [p]);
|
|
103
|
-
glob(p, options.glob, afterGlob);
|
|
104
|
-
});
|
|
105
|
-
}, rimraf_ = (p, options, cb) => {
|
|
106
|
-
assert(p), assert(options), assert(typeof cb == "function"), options.lstat(p, (er, st) => {
|
|
107
|
-
if (er && er.code === "ENOENT")
|
|
108
|
-
return cb(null);
|
|
109
|
-
if (er && er.code === "EPERM" && isWindows && fixWinEPERM(p, options, er, cb), st && st.isDirectory())
|
|
110
|
-
return rmdir(p, options, er, cb);
|
|
111
|
-
options.unlink(p, (er2) => {
|
|
112
|
-
if (er2) {
|
|
113
|
-
if (er2.code === "ENOENT")
|
|
114
|
-
return cb(null);
|
|
115
|
-
if (er2.code === "EPERM")
|
|
116
|
-
return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb);
|
|
117
|
-
if (er2.code === "EISDIR")
|
|
118
|
-
return rmdir(p, options, er2, cb);
|
|
119
|
-
}
|
|
120
|
-
return cb(er2);
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
}, fixWinEPERM = (p, options, er, cb) => {
|
|
124
|
-
assert(p), assert(options), assert(typeof cb == "function"), options.chmod(p, 438, (er2) => {
|
|
125
|
-
er2 ? cb(er2.code === "ENOENT" ? null : er) : options.stat(p, (er3, stats) => {
|
|
126
|
-
er3 ? cb(er3.code === "ENOENT" ? null : er) : stats.isDirectory() ? rmdir(p, options, er, cb) : options.unlink(p, cb);
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
}, fixWinEPERMSync = (p, options, er) => {
|
|
130
|
-
assert(p), assert(options);
|
|
131
|
-
try {
|
|
132
|
-
options.chmodSync(p, 438);
|
|
133
|
-
} catch (er2) {
|
|
134
|
-
if (er2.code === "ENOENT")
|
|
135
|
-
return;
|
|
136
|
-
throw er;
|
|
137
|
-
}
|
|
138
|
-
let stats;
|
|
139
|
-
try {
|
|
140
|
-
stats = options.statSync(p);
|
|
141
|
-
} catch (er3) {
|
|
142
|
-
if (er3.code === "ENOENT")
|
|
143
|
-
return;
|
|
144
|
-
throw er;
|
|
145
|
-
}
|
|
146
|
-
stats.isDirectory() ? rmdirSync(p, options, er) : options.unlinkSync(p);
|
|
147
|
-
}, rmdir = (p, options, originalEr, cb) => {
|
|
148
|
-
assert(p), assert(options), assert(typeof cb == "function"), options.rmdir(p, (er) => {
|
|
149
|
-
er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") ? rmkids(p, options, cb) : er && er.code === "ENOTDIR" ? cb(originalEr) : cb(er);
|
|
150
|
-
});
|
|
151
|
-
}, rmkids = (p, options, cb) => {
|
|
152
|
-
assert(p), assert(options), assert(typeof cb == "function"), options.readdir(p, (er, files) => {
|
|
153
|
-
if (er)
|
|
154
|
-
return cb(er);
|
|
155
|
-
let n = files.length;
|
|
156
|
-
if (n === 0)
|
|
157
|
-
return options.rmdir(p, cb);
|
|
158
|
-
let errState;
|
|
159
|
-
files.forEach((f) => {
|
|
160
|
-
rimraf(path.join(p, f), options, (er2) => {
|
|
161
|
-
if (!errState) {
|
|
162
|
-
if (er2)
|
|
163
|
-
return cb(errState = er2);
|
|
164
|
-
--n === 0 && options.rmdir(p, cb);
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
}, rimrafSync = (p, options) => {
|
|
170
|
-
options = options || {}, defaults(options), assert(p, "rimraf: missing path"), assert.equal(typeof p, "string", "rimraf: path should be a string"), assert(options, "rimraf: missing options"), assert.equal(typeof options, "object", "rimraf: options should be object");
|
|
171
|
-
let results;
|
|
172
|
-
if (options.disableGlob || !glob.hasMagic(p))
|
|
173
|
-
results = [p];
|
|
174
|
-
else
|
|
175
|
-
try {
|
|
176
|
-
options.lstatSync(p), results = [p];
|
|
177
|
-
} catch {
|
|
178
|
-
results = glob.sync(p, options.glob);
|
|
179
|
-
}
|
|
180
|
-
if (results.length)
|
|
181
|
-
for (let i = 0; i < results.length; i++) {
|
|
182
|
-
let p2 = results[i], st;
|
|
183
|
-
try {
|
|
184
|
-
st = options.lstatSync(p2);
|
|
185
|
-
} catch (er) {
|
|
186
|
-
if (er.code === "ENOENT")
|
|
187
|
-
return;
|
|
188
|
-
er.code === "EPERM" && isWindows && fixWinEPERMSync(p2, options, er);
|
|
189
|
-
}
|
|
190
|
-
try {
|
|
191
|
-
st && st.isDirectory() ? rmdirSync(p2, options, null) : options.unlinkSync(p2);
|
|
192
|
-
} catch (er) {
|
|
193
|
-
if (er.code === "ENOENT")
|
|
194
|
-
return;
|
|
195
|
-
if (er.code === "EPERM")
|
|
196
|
-
return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er);
|
|
197
|
-
if (er.code !== "EISDIR")
|
|
198
|
-
throw er;
|
|
199
|
-
rmdirSync(p2, options, er);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}, rmdirSync = (p, options, originalEr) => {
|
|
203
|
-
assert(p), assert(options);
|
|
204
|
-
try {
|
|
205
|
-
options.rmdirSync(p);
|
|
206
|
-
} catch (er) {
|
|
207
|
-
if (er.code === "ENOENT")
|
|
208
|
-
return;
|
|
209
|
-
if (er.code === "ENOTDIR")
|
|
210
|
-
throw originalEr;
|
|
211
|
-
(er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") && rmkidsSync(p, options);
|
|
212
|
-
}
|
|
213
|
-
}, rmkidsSync = (p, options) => {
|
|
214
|
-
assert(p), assert(options), options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
|
|
215
|
-
let retries = isWindows ? 100 : 1, i = 0;
|
|
216
|
-
do {
|
|
217
|
-
let threw = !0;
|
|
218
|
-
try {
|
|
219
|
-
let ret = options.rmdirSync(p, options);
|
|
220
|
-
return threw = !1, ret;
|
|
221
|
-
} finally {
|
|
222
|
-
if (++i < retries && threw)
|
|
223
|
-
continue;
|
|
224
|
-
}
|
|
225
|
-
} while (!0);
|
|
226
|
-
};
|
|
227
|
-
module.exports = rimraf;
|
|
228
|
-
rimraf.sync = rimrafSync;
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
// ../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js
|
|
233
|
-
var require_clean_stack = __commonJS({
|
|
234
|
-
"../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(exports, module) {
|
|
235
|
-
"use strict";
|
|
236
|
-
init_cjs_shims();
|
|
237
|
-
var os = __require("os"), extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/, pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/, homeDir = typeof os.homedir > "u" ? "" : os.homedir();
|
|
238
|
-
module.exports = (stack, options) => (options = Object.assign({ pretty: !1 }, options), stack.replace(/\\/g, "/").split(`
|
|
239
|
-
`).filter((line) => {
|
|
240
|
-
let pathMatches = line.match(extractPathRegex);
|
|
241
|
-
if (pathMatches === null || !pathMatches[1])
|
|
242
|
-
return !0;
|
|
243
|
-
let match = pathMatches[1];
|
|
244
|
-
return match.includes(".app/Contents/Resources/electron.asar") || match.includes(".app/Contents/Resources/default_app.asar") ? !1 : !pathRegex.test(match);
|
|
245
|
-
}).filter((line) => line.trim() !== "").map((line) => options.pretty ? line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, "~"))) : line).join(`
|
|
246
|
-
`));
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
|
|
250
|
-
// ../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js
|
|
251
|
-
var require_aggregate_error = __commonJS({
|
|
252
|
-
"../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(exports, module) {
|
|
253
|
-
"use strict";
|
|
254
|
-
init_cjs_shims();
|
|
255
|
-
var indentString = require_indent_string(), cleanStack = require_clean_stack(), cleanInternalStack = (stack) => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, ""), AggregateError = class extends Error {
|
|
256
|
-
constructor(errors) {
|
|
257
|
-
if (!Array.isArray(errors))
|
|
258
|
-
throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
|
|
259
|
-
errors = [...errors].map((error) => error instanceof Error ? error : error !== null && typeof error == "object" ? Object.assign(new Error(error.message), error) : new Error(error));
|
|
260
|
-
let message = errors.map((error) => typeof error.stack == "string" ? cleanInternalStack(cleanStack(error.stack)) : String(error)).join(`
|
|
261
|
-
`);
|
|
262
|
-
message = `
|
|
263
|
-
` + indentString(message, 4), super(message), this.name = "AggregateError", Object.defineProperty(this, "_errors", { value: errors });
|
|
264
|
-
}
|
|
265
|
-
*[Symbol.iterator]() {
|
|
266
|
-
for (let error of this._errors)
|
|
267
|
-
yield error;
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
module.exports = AggregateError;
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
|
|
274
|
-
// ../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js
|
|
275
|
-
var require_p_map = __commonJS({
|
|
276
|
-
"../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(exports, module) {
|
|
277
|
-
"use strict";
|
|
278
|
-
init_cjs_shims();
|
|
279
|
-
var AggregateError = require_aggregate_error();
|
|
280
|
-
module.exports = async (iterable, mapper, {
|
|
281
|
-
concurrency = 1 / 0,
|
|
282
|
-
stopOnError = !0
|
|
283
|
-
} = {}) => new Promise((resolve, reject) => {
|
|
284
|
-
if (typeof mapper != "function")
|
|
285
|
-
throw new TypeError("Mapper function is required");
|
|
286
|
-
if (!((Number.isSafeInteger(concurrency) || concurrency === 1 / 0) && concurrency >= 1))
|
|
287
|
-
throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
|
|
288
|
-
let result = [], errors = [], iterator = iterable[Symbol.iterator](), isRejected = !1, isIterableDone = !1, resolvingCount = 0, currentIndex = 0, next = () => {
|
|
289
|
-
if (isRejected)
|
|
290
|
-
return;
|
|
291
|
-
let nextItem = iterator.next(), index = currentIndex;
|
|
292
|
-
if (currentIndex++, nextItem.done) {
|
|
293
|
-
isIterableDone = !0, resolvingCount === 0 && (!stopOnError && errors.length !== 0 ? reject(new AggregateError(errors)) : resolve(result));
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
resolvingCount++, (async () => {
|
|
297
|
-
try {
|
|
298
|
-
let element = await nextItem.value;
|
|
299
|
-
result[index] = await mapper(element, index), resolvingCount--, next();
|
|
300
|
-
} catch (error) {
|
|
301
|
-
stopOnError ? (isRejected = !0, reject(error)) : (errors.push(error), resolvingCount--, next());
|
|
302
|
-
}
|
|
303
|
-
})();
|
|
304
|
-
};
|
|
305
|
-
for (let i = 0; i < concurrency && (next(), !isIterableDone); i++)
|
|
306
|
-
;
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
|
|
311
|
-
// ../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js
|
|
312
|
-
var require_del = __commonJS({
|
|
313
|
-
"../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js"(exports, module) {
|
|
314
|
-
init_cjs_shims();
|
|
315
|
-
var { promisify } = __require("util"), path = __require("path"), globby = require_globby(), isGlob = require_is_glob(), slash = require_slash(), gracefulFs = require_graceful_fs(), isPathCwd = require_is_path_cwd(), isPathInside = require_is_path_inside(), rimraf = require_rimraf(), pMap = require_p_map(), rimrafP = promisify(rimraf), rimrafOptions = {
|
|
316
|
-
glob: !1,
|
|
317
|
-
unlink: gracefulFs.unlink,
|
|
318
|
-
unlinkSync: gracefulFs.unlinkSync,
|
|
319
|
-
chmod: gracefulFs.chmod,
|
|
320
|
-
chmodSync: gracefulFs.chmodSync,
|
|
321
|
-
stat: gracefulFs.stat,
|
|
322
|
-
statSync: gracefulFs.statSync,
|
|
323
|
-
lstat: gracefulFs.lstat,
|
|
324
|
-
lstatSync: gracefulFs.lstatSync,
|
|
325
|
-
rmdir: gracefulFs.rmdir,
|
|
326
|
-
rmdirSync: gracefulFs.rmdirSync,
|
|
327
|
-
readdir: gracefulFs.readdir,
|
|
328
|
-
readdirSync: gracefulFs.readdirSync
|
|
329
|
-
};
|
|
330
|
-
function safeCheck(file, cwd) {
|
|
331
|
-
if (isPathCwd(file))
|
|
332
|
-
throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option.");
|
|
333
|
-
if (!isPathInside(file, cwd))
|
|
334
|
-
throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.");
|
|
335
|
-
}
|
|
336
|
-
function normalizePatterns(patterns) {
|
|
337
|
-
return patterns = Array.isArray(patterns) ? patterns : [patterns], patterns = patterns.map((pattern) => process.platform === "win32" && isGlob(pattern) === !1 ? slash(pattern) : pattern), patterns;
|
|
338
|
-
}
|
|
339
|
-
module.exports = async (patterns, { force, dryRun, cwd = process.cwd(), onProgress = () => {
|
|
340
|
-
}, ...options } = {}) => {
|
|
341
|
-
options = {
|
|
342
|
-
expandDirectories: !1,
|
|
343
|
-
onlyFiles: !1,
|
|
344
|
-
followSymbolicLinks: !1,
|
|
345
|
-
cwd,
|
|
346
|
-
...options
|
|
347
|
-
}, patterns = normalizePatterns(patterns);
|
|
348
|
-
let files = (await globby(patterns, options)).sort((a, b) => b.localeCompare(a));
|
|
349
|
-
files.length === 0 && onProgress({
|
|
350
|
-
totalCount: 0,
|
|
351
|
-
deletedCount: 0,
|
|
352
|
-
percent: 1
|
|
353
|
-
});
|
|
354
|
-
let deletedCount = 0, removedFiles = await pMap(files, async (file) => (file = path.resolve(cwd, file), force || safeCheck(file, cwd), dryRun || await rimrafP(file, rimrafOptions), deletedCount += 1, onProgress({
|
|
355
|
-
totalCount: files.length,
|
|
356
|
-
deletedCount,
|
|
357
|
-
percent: deletedCount / files.length
|
|
358
|
-
}), file), options);
|
|
359
|
-
return removedFiles.sort((a, b) => a.localeCompare(b)), removedFiles;
|
|
360
|
-
};
|
|
361
|
-
module.exports.sync = (patterns, { force, dryRun, cwd = process.cwd(), ...options } = {}) => {
|
|
362
|
-
options = {
|
|
363
|
-
expandDirectories: !1,
|
|
364
|
-
onlyFiles: !1,
|
|
365
|
-
followSymbolicLinks: !1,
|
|
366
|
-
cwd,
|
|
367
|
-
...options
|
|
368
|
-
}, patterns = normalizePatterns(patterns);
|
|
369
|
-
let removedFiles = globby.sync(patterns, options).sort((a, b) => b.localeCompare(a)).map((file) => (file = path.resolve(cwd, file), force || safeCheck(file, cwd), dryRun || rimraf.sync(file, rimrafOptions), file));
|
|
370
|
-
return removedFiles.sort((a, b) => a.localeCompare(b)), removedFiles;
|
|
371
|
-
};
|
|
372
|
-
}
|
|
373
|
-
});
|
|
374
|
-
export default require_del();
|
|
375
|
-
//# sourceMappingURL=del-4JSTEFDW.js.map
|