@shopify/cli 3.84.2 → 3.85.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.
Files changed (108) hide show
  1. package/README.md +1 -1
  2. package/dist/{chokidar-KCZH6DIC.js → chokidar-TTCYG5AA.js} +5 -5
  3. package/dist/{chokidar-XPSJ2FUJ.js → chokidar-XUA2BN3J.js} +5 -5
  4. package/dist/{chunk-OCEWRJZI.js → chunk-62H2KYOJ.js} +17 -21
  5. package/dist/{chunk-6A27UWO7.js → chunk-6YB46YWH.js} +4 -4
  6. package/dist/{chunk-L5OKA4W4.js → chunk-7JE3EHN3.js} +7 -7
  7. package/dist/chunk-7LEPNDDJ.js +87 -0
  8. package/dist/{chunk-MXDBI4PG.js → chunk-7N5JGLLX.js} +5 -5
  9. package/dist/{chunk-HMDWNGIV.js → chunk-AM4QB5OM.js} +206 -100
  10. package/dist/{chunk-W5G2YPO2.js → chunk-BQ3PZIHZ.js} +7 -7
  11. package/dist/{chunk-TFVMB62A.js → chunk-CKYPRLQQ.js} +19 -18
  12. package/dist/{chunk-AQVXNWM2.js → chunk-CNY4KRKG.js} +2 -2
  13. package/dist/{del-SAZHGAZZ.js → chunk-EFOOQV72.js} +17 -378
  14. package/dist/{chunk-3FBDJEGD.js → chunk-F7F4BQYW.js} +1824 -762
  15. package/dist/{chunk-66VZYBID.js → chunk-F7J5CUMZ.js} +4 -4
  16. package/dist/{chunk-2TBGVDDK.js → chunk-FLHWGFGH.js} +3 -3
  17. package/dist/{chunk-JHLYV5K7.js → chunk-G6OERDCU.js} +7 -7
  18. package/dist/{chunk-6JFZSZKE.js → chunk-GGNBWCCE.js} +16380 -5793
  19. package/dist/chunk-IWFYXDPH.js +109 -0
  20. package/dist/{chunk-7UHRC35E.js → chunk-J3DHMVKN.js} +2 -2
  21. package/dist/{chunk-Z6MEYGAG.js → chunk-JDI5KJ6D.js} +3 -3
  22. package/dist/chunk-KIC7OBUL.js +4654 -0
  23. package/dist/{chunk-YUI23PKV.js → chunk-KJT4XRJY.js} +2 -2
  24. package/dist/{chunk-46YOOMEM.js → chunk-LOJKECKW.js} +2 -2
  25. package/dist/{chunk-TAA5HGRT.js → chunk-MHFD5A4P.js} +666 -589
  26. package/dist/{chunk-QS5WPZTS.js → chunk-O47I6ERR.js} +10 -9
  27. package/dist/{chunk-KHBZ52PT.js → chunk-OXCV2R7K.js} +43 -19
  28. package/dist/{chunk-XD5EFQE2.js → chunk-OXVB7GS3.js} +5 -5
  29. package/dist/{chunk-UOLT7THS.js → chunk-PYZUPEOA.js} +3 -3
  30. package/dist/{chunk-G74IQQ6M.js → chunk-Q64LTCDT.js} +3 -3
  31. package/dist/{chunk-DCU33ZNP.js → chunk-R7QUG5YH.js} +3 -3
  32. package/dist/{chunk-YPRC4TK6.js → chunk-S3MBABAK.js} +187 -43
  33. package/dist/{chunk-ZRU5CKDG.js → chunk-TRKSH2XY.js} +4 -4
  34. package/dist/{chunk-BSKQ4RKV.js → chunk-TVWMGUCW.js} +3 -3
  35. package/dist/{chunk-G5R6YD27.js → chunk-UATXMR5F.js} +2 -103
  36. package/dist/{chunk-DZCCH5OM.js → chunk-UYWDOH6Y.js} +8 -8
  37. package/dist/{chunk-BX2C6EVM.js → chunk-VCGC2OW6.js} +2 -2
  38. package/dist/{chunk-YNNUWX3I.js → chunk-VMPHJR5V.js} +4 -4
  39. package/dist/{chunk-7YVG6N4O.js → chunk-W54BTT4L.js} +2 -2
  40. package/dist/{chunk-RTTTZZGY.js → chunk-XKHE52EY.js} +4 -4
  41. package/dist/{chunk-MRQXBTNU.js → chunk-XNKJ52IR.js} +3 -3
  42. package/dist/{chunk-EG6MBBEN.js → chunk-Y2JP6WFP.js} +2 -2
  43. package/dist/{chunk-M6EH6UKK.js → chunk-YIQ4GHA2.js} +4 -4
  44. package/dist/{chunk-ZBPY6YL5.js → chunk-YJZEHV2H.js} +8 -8
  45. package/dist/{chunk-T2Z26YN7.js → chunk-ZZACM6JY.js} +3 -3
  46. package/dist/cli/commands/auth/login.d.ts +8 -0
  47. package/dist/cli/commands/auth/login.js +28 -0
  48. package/dist/cli/commands/auth/login.test.js +53 -0
  49. package/dist/cli/commands/auth/logout.js +15 -17
  50. package/dist/cli/commands/auth/logout.test.js +20 -22
  51. package/dist/cli/commands/cache/clear.js +15 -16
  52. package/dist/cli/commands/debug/command-flags.js +15 -16
  53. package/dist/cli/commands/docs/generate.js +15 -16
  54. package/dist/cli/commands/docs/generate.test.js +21 -22
  55. package/dist/cli/commands/help.js +15 -16
  56. package/dist/cli/commands/kitchen-sink/async.js +16 -17
  57. package/dist/cli/commands/kitchen-sink/async.test.js +17 -18
  58. package/dist/cli/commands/kitchen-sink/index.js +18 -19
  59. package/dist/cli/commands/kitchen-sink/index.test.js +21 -22
  60. package/dist/cli/commands/kitchen-sink/prompts.js +16 -17
  61. package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -18
  62. package/dist/cli/commands/kitchen-sink/static.js +16 -17
  63. package/dist/cli/commands/kitchen-sink/static.test.js +17 -18
  64. package/dist/cli/commands/notifications/generate.js +16 -17
  65. package/dist/cli/commands/notifications/list.js +16 -17
  66. package/dist/cli/commands/search.js +16 -17
  67. package/dist/cli/commands/upgrade.js +16 -17
  68. package/dist/cli/commands/upgrade.test.js +1 -1
  69. package/dist/cli/commands/version.js +16 -17
  70. package/dist/cli/commands/version.test.js +17 -18
  71. package/dist/cli/services/commands/notifications.js +11 -12
  72. package/dist/cli/services/commands/search.js +7 -8
  73. package/dist/cli/services/commands/search.test.js +8 -9
  74. package/dist/cli/services/commands/version.js +8 -9
  75. package/dist/cli/services/commands/version.test.js +10 -11
  76. package/dist/cli/services/kitchen-sink/async.js +7 -8
  77. package/dist/cli/services/kitchen-sink/prompts.js +7 -8
  78. package/dist/cli/services/kitchen-sink/static.js +7 -8
  79. package/dist/cli/services/upgrade.js +8 -9
  80. package/dist/cli/services/upgrade.test.js +13 -14
  81. package/dist/configs/all.yml +3 -3
  82. package/dist/configs/recommended.yml +3 -3
  83. package/dist/{custom-oclif-loader-BBMEEF2H.js → custom-oclif-loader-MVTJFCUD.js} +11 -12
  84. package/dist/data/latest.json +1 -1
  85. package/dist/data/objects.json +2 -2
  86. package/dist/data/shopify_system_translations.json +82 -24
  87. package/dist/data/tags.json +10 -10
  88. package/dist/del-DNZ7X2HW.js +377 -0
  89. package/dist/{error-handler-734CUCMD.js → error-handler-OEZ5DBZB.js} +13 -14
  90. package/dist/hooks/postrun.js +13 -15
  91. package/dist/hooks/prerun.js +14 -15
  92. package/dist/index.d.ts +1 -1
  93. package/dist/index.js +7792 -5700
  94. package/dist/{lib-OSXFX3I2.js → lib-DEEC6IKU.js} +3 -4
  95. package/dist/{local-5AKZWHSS.js → local-72XWEFWL.js} +7 -8
  96. package/dist/{morph-TYIH255V.js → morph-5D7H6MU2.js} +13 -11
  97. package/dist/{node-package-manager-DMOU4DTB.js → node-package-manager-TTBSTZXN.js} +8 -9
  98. package/dist/{npa-E675GQOI.js → npa-LHT53SWR.js} +3 -5
  99. package/dist/{path-GB4VIEM6.js → path-COZT77T2.js} +2 -2
  100. package/dist/tsconfig.tsbuildinfo +1 -1
  101. package/dist/{ui-JQXGLHMO.js → ui-XUA267UA.js} +9 -8
  102. package/dist/{workerd-FTKMK3NR.js → workerd-KJQYQH4A.js} +23 -23
  103. package/oclif.manifest.json +79 -9
  104. package/package.json +10 -10
  105. package/dist/chunk-CP3BRHWK.js +0 -33
  106. package/dist/chunk-EZQWZ57B.js +0 -53
  107. package/dist/chunk-SJMHVGQ5.js +0 -119
  108. package/dist/chunk-SM7O6ZFJ.js +0 -1216
@@ -0,0 +1,377 @@
1
+ import {
2
+ require_glob
3
+ } from "./chunk-IG5SOACB.js";
4
+ import {
5
+ require_globby,
6
+ require_slash
7
+ } from "./chunk-EFOOQV72.js";
8
+ import "./chunk-CTFDRWUN.js";
9
+ import {
10
+ require_is_glob
11
+ } from "./chunk-7IK72W75.js";
12
+ import "./chunk-SHWOPMLQ.js";
13
+ import {
14
+ require_graceful_fs
15
+ } from "./chunk-75LV6AQS.js";
16
+ import {
17
+ require_indent_string
18
+ } from "./chunk-UV5N2VL7.js";
19
+ import "./chunk-XE5EOEBL.js";
20
+ import {
21
+ __commonJS,
22
+ __require,
23
+ init_cjs_shims
24
+ } from "./chunk-PKR7KJ6P.js";
25
+
26
+ // ../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js
27
+ var require_is_path_cwd = __commonJS({
28
+ "../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(exports, module) {
29
+ "use strict";
30
+ init_cjs_shims();
31
+ var path = __require("path");
32
+ module.exports = (path_) => {
33
+ let cwd = process.cwd();
34
+ return path_ = path.resolve(path_), process.platform === "win32" && (cwd = cwd.toLowerCase(), path_ = path_.toLowerCase()), path_ === cwd;
35
+ };
36
+ }
37
+ });
38
+
39
+ // ../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js
40
+ var require_is_path_inside = __commonJS({
41
+ "../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js"(exports, module) {
42
+ "use strict";
43
+ init_cjs_shims();
44
+ var path = __require("path");
45
+ module.exports = (childPath, parentPath) => {
46
+ let relation = path.relative(parentPath, childPath);
47
+ return !!(relation && relation !== ".." && !relation.startsWith(`..${path.sep}`) && relation !== path.resolve(childPath));
48
+ };
49
+ }
50
+ });
51
+
52
+ // ../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js
53
+ var require_rimraf = __commonJS({
54
+ "../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports, module) {
55
+ init_cjs_shims();
56
+ var assert = __require("assert"), path = __require("path"), fs = __require("fs"), glob;
57
+ try {
58
+ glob = require_glob();
59
+ } catch {
60
+ }
61
+ var defaultGlobOpts = {
62
+ nosort: !0,
63
+ silent: !0
64
+ }, timeout = 0, isWindows = process.platform === "win32", defaults = (options) => {
65
+ if ([
66
+ "unlink",
67
+ "chmod",
68
+ "stat",
69
+ "lstat",
70
+ "rmdir",
71
+ "readdir"
72
+ ].forEach((m) => {
73
+ options[m] = options[m] || fs[m], m = m + "Sync", options[m] = options[m] || fs[m];
74
+ }), options.maxBusyTries = options.maxBusyTries || 3, options.emfileWait = options.emfileWait || 1e3, options.glob === !1 && (options.disableGlob = !0), options.disableGlob !== !0 && glob === void 0)
75
+ throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");
76
+ options.disableGlob = options.disableGlob || !1, options.glob = options.glob || defaultGlobOpts;
77
+ }, rimraf = (p, options, cb) => {
78
+ 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);
79
+ let busyTries = 0, errState = null, n = 0, next = (er) => {
80
+ errState = errState || er, --n === 0 && cb(errState);
81
+ }, afterGlob = (er, results) => {
82
+ if (er)
83
+ return cb(er);
84
+ if (n = results.length, n === 0)
85
+ return cb();
86
+ results.forEach((p2) => {
87
+ let CB = (er2) => {
88
+ if (er2) {
89
+ if ((er2.code === "EBUSY" || er2.code === "ENOTEMPTY" || er2.code === "EPERM") && busyTries < options.maxBusyTries)
90
+ return busyTries++, setTimeout(() => rimraf_(p2, options, CB), busyTries * 100);
91
+ if (er2.code === "EMFILE" && timeout < options.emfileWait)
92
+ return setTimeout(() => rimraf_(p2, options, CB), timeout++);
93
+ er2.code === "ENOENT" && (er2 = null);
94
+ }
95
+ timeout = 0, next(er2);
96
+ };
97
+ rimraf_(p2, options, CB);
98
+ });
99
+ };
100
+ if (options.disableGlob || !glob.hasMagic(p))
101
+ return afterGlob(null, [p]);
102
+ options.lstat(p, (er, stat) => {
103
+ if (!er)
104
+ return afterGlob(null, [p]);
105
+ glob(p, options.glob, afterGlob);
106
+ });
107
+ }, rimraf_ = (p, options, cb) => {
108
+ assert(p), assert(options), assert(typeof cb == "function"), options.lstat(p, (er, st) => {
109
+ if (er && er.code === "ENOENT")
110
+ return cb(null);
111
+ if (er && er.code === "EPERM" && isWindows && fixWinEPERM(p, options, er, cb), st && st.isDirectory())
112
+ return rmdir(p, options, er, cb);
113
+ options.unlink(p, (er2) => {
114
+ if (er2) {
115
+ if (er2.code === "ENOENT")
116
+ return cb(null);
117
+ if (er2.code === "EPERM")
118
+ return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb);
119
+ if (er2.code === "EISDIR")
120
+ return rmdir(p, options, er2, cb);
121
+ }
122
+ return cb(er2);
123
+ });
124
+ });
125
+ }, fixWinEPERM = (p, options, er, cb) => {
126
+ assert(p), assert(options), assert(typeof cb == "function"), options.chmod(p, 438, (er2) => {
127
+ er2 ? cb(er2.code === "ENOENT" ? null : er) : options.stat(p, (er3, stats) => {
128
+ er3 ? cb(er3.code === "ENOENT" ? null : er) : stats.isDirectory() ? rmdir(p, options, er, cb) : options.unlink(p, cb);
129
+ });
130
+ });
131
+ }, fixWinEPERMSync = (p, options, er) => {
132
+ assert(p), assert(options);
133
+ try {
134
+ options.chmodSync(p, 438);
135
+ } catch (er2) {
136
+ if (er2.code === "ENOENT")
137
+ return;
138
+ throw er;
139
+ }
140
+ let stats;
141
+ try {
142
+ stats = options.statSync(p);
143
+ } catch (er3) {
144
+ if (er3.code === "ENOENT")
145
+ return;
146
+ throw er;
147
+ }
148
+ stats.isDirectory() ? rmdirSync(p, options, er) : options.unlinkSync(p);
149
+ }, rmdir = (p, options, originalEr, cb) => {
150
+ assert(p), assert(options), assert(typeof cb == "function"), options.rmdir(p, (er) => {
151
+ er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") ? rmkids(p, options, cb) : er && er.code === "ENOTDIR" ? cb(originalEr) : cb(er);
152
+ });
153
+ }, rmkids = (p, options, cb) => {
154
+ assert(p), assert(options), assert(typeof cb == "function"), options.readdir(p, (er, files) => {
155
+ if (er)
156
+ return cb(er);
157
+ let n = files.length;
158
+ if (n === 0)
159
+ return options.rmdir(p, cb);
160
+ let errState;
161
+ files.forEach((f) => {
162
+ rimraf(path.join(p, f), options, (er2) => {
163
+ if (!errState) {
164
+ if (er2)
165
+ return cb(errState = er2);
166
+ --n === 0 && options.rmdir(p, cb);
167
+ }
168
+ });
169
+ });
170
+ });
171
+ }, rimrafSync = (p, options) => {
172
+ 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");
173
+ let results;
174
+ if (options.disableGlob || !glob.hasMagic(p))
175
+ results = [p];
176
+ else
177
+ try {
178
+ options.lstatSync(p), results = [p];
179
+ } catch {
180
+ results = glob.sync(p, options.glob);
181
+ }
182
+ if (results.length)
183
+ for (let i = 0; i < results.length; i++) {
184
+ let p2 = results[i], st;
185
+ try {
186
+ st = options.lstatSync(p2);
187
+ } catch (er) {
188
+ if (er.code === "ENOENT")
189
+ return;
190
+ er.code === "EPERM" && isWindows && fixWinEPERMSync(p2, options, er);
191
+ }
192
+ try {
193
+ st && st.isDirectory() ? rmdirSync(p2, options, null) : options.unlinkSync(p2);
194
+ } catch (er) {
195
+ if (er.code === "ENOENT")
196
+ return;
197
+ if (er.code === "EPERM")
198
+ return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er);
199
+ if (er.code !== "EISDIR")
200
+ throw er;
201
+ rmdirSync(p2, options, er);
202
+ }
203
+ }
204
+ }, rmdirSync = (p, options, originalEr) => {
205
+ assert(p), assert(options);
206
+ try {
207
+ options.rmdirSync(p);
208
+ } catch (er) {
209
+ if (er.code === "ENOENT")
210
+ return;
211
+ if (er.code === "ENOTDIR")
212
+ throw originalEr;
213
+ (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") && rmkidsSync(p, options);
214
+ }
215
+ }, rmkidsSync = (p, options) => {
216
+ assert(p), assert(options), options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
217
+ let retries = isWindows ? 100 : 1, i = 0;
218
+ do {
219
+ let threw = !0;
220
+ try {
221
+ let ret = options.rmdirSync(p, options);
222
+ return threw = !1, ret;
223
+ } finally {
224
+ if (++i < retries && threw)
225
+ continue;
226
+ }
227
+ } while (!0);
228
+ };
229
+ module.exports = rimraf;
230
+ rimraf.sync = rimrafSync;
231
+ }
232
+ });
233
+
234
+ // ../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js
235
+ var require_clean_stack = __commonJS({
236
+ "../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(exports, module) {
237
+ "use strict";
238
+ init_cjs_shims();
239
+ 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();
240
+ module.exports = (stack, options) => (options = Object.assign({ pretty: !1 }, options), stack.replace(/\\/g, "/").split(`
241
+ `).filter((line) => {
242
+ let pathMatches = line.match(extractPathRegex);
243
+ if (pathMatches === null || !pathMatches[1])
244
+ return !0;
245
+ let match = pathMatches[1];
246
+ return match.includes(".app/Contents/Resources/electron.asar") || match.includes(".app/Contents/Resources/default_app.asar") ? !1 : !pathRegex.test(match);
247
+ }).filter((line) => line.trim() !== "").map((line) => options.pretty ? line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, "~"))) : line).join(`
248
+ `));
249
+ }
250
+ });
251
+
252
+ // ../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js
253
+ var require_aggregate_error = __commonJS({
254
+ "../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(exports, module) {
255
+ "use strict";
256
+ init_cjs_shims();
257
+ 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 {
258
+ constructor(errors) {
259
+ if (!Array.isArray(errors))
260
+ throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
261
+ errors = [...errors].map((error) => error instanceof Error ? error : error !== null && typeof error == "object" ? Object.assign(new Error(error.message), error) : new Error(error));
262
+ let message = errors.map((error) => typeof error.stack == "string" ? cleanInternalStack(cleanStack(error.stack)) : String(error)).join(`
263
+ `);
264
+ message = `
265
+ ` + indentString(message, 4), super(message), this.name = "AggregateError", Object.defineProperty(this, "_errors", { value: errors });
266
+ }
267
+ *[Symbol.iterator]() {
268
+ for (let error of this._errors)
269
+ yield error;
270
+ }
271
+ };
272
+ module.exports = AggregateError;
273
+ }
274
+ });
275
+
276
+ // ../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js
277
+ var require_p_map = __commonJS({
278
+ "../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(exports, module) {
279
+ "use strict";
280
+ init_cjs_shims();
281
+ var AggregateError = require_aggregate_error();
282
+ module.exports = async (iterable, mapper, {
283
+ concurrency = 1 / 0,
284
+ stopOnError = !0
285
+ } = {}) => new Promise((resolve, reject) => {
286
+ if (typeof mapper != "function")
287
+ throw new TypeError("Mapper function is required");
288
+ if (!((Number.isSafeInteger(concurrency) || concurrency === 1 / 0) && concurrency >= 1))
289
+ throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
290
+ let result = [], errors = [], iterator = iterable[Symbol.iterator](), isRejected = !1, isIterableDone = !1, resolvingCount = 0, currentIndex = 0, next = () => {
291
+ if (isRejected)
292
+ return;
293
+ let nextItem = iterator.next(), index = currentIndex;
294
+ if (currentIndex++, nextItem.done) {
295
+ isIterableDone = !0, resolvingCount === 0 && (!stopOnError && errors.length !== 0 ? reject(new AggregateError(errors)) : resolve(result));
296
+ return;
297
+ }
298
+ resolvingCount++, (async () => {
299
+ try {
300
+ let element = await nextItem.value;
301
+ result[index] = await mapper(element, index), resolvingCount--, next();
302
+ } catch (error) {
303
+ stopOnError ? (isRejected = !0, reject(error)) : (errors.push(error), resolvingCount--, next());
304
+ }
305
+ })();
306
+ };
307
+ for (let i = 0; i < concurrency && (next(), !isIterableDone); i++)
308
+ ;
309
+ });
310
+ }
311
+ });
312
+
313
+ // ../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js
314
+ var require_del = __commonJS({
315
+ "../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js"(exports, module) {
316
+ init_cjs_shims();
317
+ 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 = {
318
+ glob: !1,
319
+ unlink: gracefulFs.unlink,
320
+ unlinkSync: gracefulFs.unlinkSync,
321
+ chmod: gracefulFs.chmod,
322
+ chmodSync: gracefulFs.chmodSync,
323
+ stat: gracefulFs.stat,
324
+ statSync: gracefulFs.statSync,
325
+ lstat: gracefulFs.lstat,
326
+ lstatSync: gracefulFs.lstatSync,
327
+ rmdir: gracefulFs.rmdir,
328
+ rmdirSync: gracefulFs.rmdirSync,
329
+ readdir: gracefulFs.readdir,
330
+ readdirSync: gracefulFs.readdirSync
331
+ };
332
+ function safeCheck(file, cwd) {
333
+ if (isPathCwd(file))
334
+ throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option.");
335
+ if (!isPathInside(file, cwd))
336
+ throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.");
337
+ }
338
+ function normalizePatterns(patterns) {
339
+ return patterns = Array.isArray(patterns) ? patterns : [patterns], patterns = patterns.map((pattern) => process.platform === "win32" && isGlob(pattern) === !1 ? slash(pattern) : pattern), patterns;
340
+ }
341
+ module.exports = async (patterns, { force, dryRun, cwd = process.cwd(), onProgress = () => {
342
+ }, ...options } = {}) => {
343
+ options = {
344
+ expandDirectories: !1,
345
+ onlyFiles: !1,
346
+ followSymbolicLinks: !1,
347
+ cwd,
348
+ ...options
349
+ }, patterns = normalizePatterns(patterns);
350
+ let files = (await globby(patterns, options)).sort((a, b) => b.localeCompare(a));
351
+ files.length === 0 && onProgress({
352
+ totalCount: 0,
353
+ deletedCount: 0,
354
+ percent: 1
355
+ });
356
+ 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({
357
+ totalCount: files.length,
358
+ deletedCount,
359
+ percent: deletedCount / files.length
360
+ }), file), options);
361
+ return removedFiles.sort((a, b) => a.localeCompare(b)), removedFiles;
362
+ };
363
+ module.exports.sync = (patterns, { force, dryRun, cwd = process.cwd(), ...options } = {}) => {
364
+ options = {
365
+ expandDirectories: !1,
366
+ onlyFiles: !1,
367
+ followSymbolicLinks: !1,
368
+ cwd,
369
+ ...options
370
+ }, patterns = normalizePatterns(patterns);
371
+ 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));
372
+ return removedFiles.sort((a, b) => a.localeCompare(b)), removedFiles;
373
+ };
374
+ }
375
+ });
376
+ export default require_del();
377
+ //# sourceMappingURL=del-DNZ7X2HW.js.map
@@ -4,25 +4,24 @@ import {
4
4
  errorHandler,
5
5
  registerCleanBugsnagErrorsFromWithinPlugins,
6
6
  sendErrorToBugsnag
7
- } from "./chunk-TFVMB62A.js";
7
+ } from "./chunk-CKYPRLQQ.js";
8
8
  import "./chunk-SHWOPMLQ.js";
9
- import "./chunk-YPRC4TK6.js";
10
- import "./chunk-SM7O6ZFJ.js";
11
- import "./chunk-OCEWRJZI.js";
9
+ import "./chunk-S3MBABAK.js";
10
+ import "./chunk-KIC7OBUL.js";
11
+ import "./chunk-62H2KYOJ.js";
12
12
  import "./chunk-25IMI7TH.js";
13
- import "./chunk-YUI23PKV.js";
14
- import "./chunk-KHBZ52PT.js";
15
- import "./chunk-TAA5HGRT.js";
16
- import "./chunk-75LV6AQS.js";
17
- import "./chunk-EG6MBBEN.js";
18
- import "./chunk-3FBDJEGD.js";
13
+ import "./chunk-OXCV2R7K.js";
14
+ import "./chunk-KJT4XRJY.js";
15
+ import "./chunk-MHFD5A4P.js";
16
+ import "./chunk-F7F4BQYW.js";
19
17
  import "./chunk-UMUTXITN.js";
20
- import "./chunk-HMDWNGIV.js";
21
- import "./chunk-G5R6YD27.js";
18
+ import "./chunk-UATXMR5F.js";
19
+ import "./chunk-B5EXYCV3.js";
22
20
  import "./chunk-G2ZZKGSV.js";
21
+ import "./chunk-75LV6AQS.js";
23
22
  import "./chunk-UV5N2VL7.js";
24
23
  import "./chunk-XE5EOEBL.js";
25
- import "./chunk-B5EXYCV3.js";
24
+ import "./chunk-Y2JP6WFP.js";
26
25
  import "./chunk-PKR7KJ6P.js";
27
26
  export {
28
27
  addBugsnagMetadata,
@@ -31,4 +30,4 @@ export {
31
30
  registerCleanBugsnagErrorsFromWithinPlugins,
32
31
  sendErrorToBugsnag
33
32
  };
34
- //# sourceMappingURL=error-handler-734CUCMD.js.map
33
+ //# sourceMappingURL=error-handler-OEZ5DBZB.js.map
@@ -1,30 +1,28 @@
1
- import {
2
- getNextDeprecationDate
3
- } from "../chunk-CP3BRHWK.js";
4
1
  import {
5
2
  reportAnalyticsEvent
6
- } from "../chunk-YPRC4TK6.js";
7
- import "../chunk-SM7O6ZFJ.js";
8
- import "../chunk-OCEWRJZI.js";
3
+ } from "../chunk-S3MBABAK.js";
4
+ import {
5
+ getNextDeprecationDate
6
+ } from "../chunk-KIC7OBUL.js";
7
+ import "../chunk-62H2KYOJ.js";
9
8
  import "../chunk-25IMI7TH.js";
10
- import "../chunk-YUI23PKV.js";
11
- import "../chunk-KHBZ52PT.js";
9
+ import "../chunk-OXCV2R7K.js";
10
+ import "../chunk-KJT4XRJY.js";
12
11
  import {
13
12
  addSensitiveMetadata,
14
13
  getAllSensitiveMetadata,
15
14
  outputDebug,
16
15
  renderWarning
17
- } from "../chunk-TAA5HGRT.js";
18
- import "../chunk-75LV6AQS.js";
19
- import "../chunk-EG6MBBEN.js";
20
- import "../chunk-3FBDJEGD.js";
16
+ } from "../chunk-MHFD5A4P.js";
17
+ import "../chunk-F7F4BQYW.js";
21
18
  import "../chunk-UMUTXITN.js";
22
- import "../chunk-HMDWNGIV.js";
23
- import "../chunk-G5R6YD27.js";
19
+ import "../chunk-UATXMR5F.js";
20
+ import "../chunk-B5EXYCV3.js";
24
21
  import "../chunk-G2ZZKGSV.js";
22
+ import "../chunk-75LV6AQS.js";
25
23
  import "../chunk-UV5N2VL7.js";
26
24
  import "../chunk-XE5EOEBL.js";
27
- import "../chunk-B5EXYCV3.js";
25
+ import "../chunk-Y2JP6WFP.js";
28
26
  import {
29
27
  init_cjs_shims
30
28
  } from "../chunk-PKR7KJ6P.js";
@@ -1,37 +1,36 @@
1
1
  import {
2
2
  getOutputUpdateCLIReminder
3
- } from "../chunk-2TBGVDDK.js";
3
+ } from "../chunk-FLHWGFGH.js";
4
4
  import {
5
5
  startAnalytics
6
- } from "../chunk-SM7O6ZFJ.js";
6
+ } from "../chunk-KIC7OBUL.js";
7
7
  import {
8
8
  fetchNotificationsInBackground
9
- } from "../chunk-ZBPY6YL5.js";
10
- import "../chunk-OCEWRJZI.js";
9
+ } from "../chunk-YJZEHV2H.js";
10
+ import "../chunk-62H2KYOJ.js";
11
11
  import "../chunk-25IMI7TH.js";
12
- import {
13
- CLI_KIT_VERSION
14
- } from "../chunk-YUI23PKV.js";
15
12
  import {
16
13
  checkForCachedNewVersion,
17
14
  checkForNewVersion,
18
15
  runAtMinimumInterval
19
- } from "../chunk-KHBZ52PT.js";
16
+ } from "../chunk-OXCV2R7K.js";
17
+ import {
18
+ CLI_KIT_VERSION
19
+ } from "../chunk-KJT4XRJY.js";
20
20
  import {
21
21
  isPreReleaseVersion,
22
22
  outputDebug,
23
23
  outputWarn
24
- } from "../chunk-TAA5HGRT.js";
25
- import "../chunk-75LV6AQS.js";
26
- import "../chunk-EG6MBBEN.js";
27
- import "../chunk-3FBDJEGD.js";
24
+ } from "../chunk-MHFD5A4P.js";
25
+ import "../chunk-F7F4BQYW.js";
28
26
  import "../chunk-UMUTXITN.js";
29
- import "../chunk-HMDWNGIV.js";
30
- import "../chunk-G5R6YD27.js";
27
+ import "../chunk-UATXMR5F.js";
28
+ import "../chunk-B5EXYCV3.js";
31
29
  import "../chunk-G2ZZKGSV.js";
30
+ import "../chunk-75LV6AQS.js";
32
31
  import "../chunk-UV5N2VL7.js";
33
32
  import "../chunk-XE5EOEBL.js";
34
- import "../chunk-B5EXYCV3.js";
33
+ import "../chunk-Y2JP6WFP.js";
35
34
  import {
36
35
  init_cjs_shims
37
36
  } from "../chunk-PKR7KJ6P.js";
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export { default as TunnelProviderHook } from '@shopify/plugin-cloudflare/hooks/
4
4
  export { hooks as PluginHook } from '@oclif/plugin-plugins';
5
5
  export { AppSensitiveMetadataHook, AppInitHook, AppPublicMetadataHook } from '@shopify/app';
6
6
  export { push, pull, fetchStoreThemes } from '@shopify/theme';
7
- export declare const HydrogenInitHook: import("@oclif/core").Hook<"init">;
7
+ export declare const HydrogenInitHook: unknown;
8
8
  interface RunShopifyCLIOptions {
9
9
  development: boolean;
10
10
  }