@shopify/cli 3.74.1 → 3.75.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/assets/hydrogen/starter/CHANGELOG.md +99 -0
- package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +2 -1
- package/dist/assets/hydrogen/starter/app/root.tsx +12 -2
- package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +1 -0
- package/dist/assets/hydrogen/starter/package.json +10 -10
- package/dist/assets/hydrogen/starter/tsconfig.json +1 -1
- package/dist/assets/hydrogen/starter/vite.config.ts +1 -0
- package/dist/assets/hydrogen/tailwind/package.json +1 -1
- package/dist/assets/hydrogen/tailwind/tailwind.css +1 -1
- package/dist/assets/hydrogen/vite/package.json +1 -1
- package/dist/assets/hydrogen/vite/vite.config.js +1 -0
- package/dist/{chunk-Z4WWAZEY.js → chunk-245U5NQK.js} +4 -4
- package/dist/{chunk-5L3V3XN7.js → chunk-2TEPYAPA.js} +4 -4
- package/dist/{chunk-CKTTNTVQ.js → chunk-4EZQAZ74.js} +7 -7
- package/dist/{chunk-4VWVAF7H.js → chunk-4MJNU2QF.js} +3 -3
- package/dist/{chunk-C2KCEZK7.js → chunk-5CJ7VYH7.js} +2 -2
- package/dist/{chunk-XCOZPDGL.js → chunk-63Z76ANM.js} +2 -2
- package/dist/{chunk-7HJY7CZB.js → chunk-7CQUOSVH.js} +6 -6
- package/dist/{chunk-POKIPHUC.js → chunk-7HSAZRHC.js} +3 -3
- package/dist/{chunk-7DCZ4PEB.js → chunk-7OOACYZ4.js} +3 -3
- package/dist/{chunk-6N46HJWX.js → chunk-CV5T4LOB.js} +3 -3
- package/dist/{chunk-IVI5VH2V.js → chunk-DXX7H2IH.js} +2 -2
- package/dist/{chunk-S7L4E7JJ.js → chunk-FGC2O2I5.js} +6 -6
- package/dist/{chunk-X2GSBUQM.js → chunk-FTFTFTDU.js} +4 -4
- package/dist/{chunk-P6UIGUUZ.js → chunk-H3VLXETQ.js} +2 -2
- package/dist/{chunk-H6V3ZAMP.js → chunk-IEEXWVOL.js} +2 -2
- package/dist/{chunk-BGCAU2LM.js → chunk-IHA7JJN4.js} +2 -2
- package/dist/{chunk-GSDR4V4C.js → chunk-IMWIHPKY.js} +3 -3
- package/dist/{chunk-QVSOZYZT.js → chunk-IRNTKQVQ.js} +3 -3
- package/dist/{chunk-RAAPXB5S.js → chunk-JS6RLMBK.js} +3 -3
- package/dist/{chunk-DH65BORI.js → chunk-KR2ZEBN3.js} +5 -5
- package/dist/{chunk-DDHWVLT7.js → chunk-LJHVF5TJ.js} +9970 -9968
- package/dist/{chunk-5CLGH5PH.js → chunk-MP5RLDFN.js} +15 -8
- package/dist/{chunk-PLIMIFMY.js → chunk-MTPFCNYB.js} +3 -3
- package/dist/{chunk-POBZPEHK.js → chunk-NA34VFTA.js} +430 -207
- package/dist/{chunk-J673ZU5S.js → chunk-ORGKANED.js} +3 -3
- package/dist/{chunk-LOKVDI3S.js → chunk-P654UJXI.js} +15 -14
- package/dist/{chunk-FKB56THZ.js → chunk-PB3V422W.js} +5 -5
- package/dist/{chunk-AQFGEPN5.js → chunk-PDZHLRZ2.js} +8 -8
- package/dist/{chunk-VKUWRIWE.js → chunk-S3NMVYAF.js} +4 -4
- package/dist/{chunk-DNKTPUYV.js → chunk-SXT3JFLA.js} +4 -4
- package/dist/{chunk-6J2OGZ3N.js → chunk-U673QDO3.js} +2 -2
- package/dist/{chunk-MCL7WC6G.js → chunk-UEEQNXRY.js} +3 -3
- package/dist/{chunk-L5L7GDSR.js → chunk-UYZDNGSJ.js} +2 -2
- package/dist/{chunk-WYNFQEFV.js → chunk-VSC4NMYT.js} +3 -3
- package/dist/{chunk-CDQA3SST.js → chunk-VSKRQ3JT.js} +33 -29
- package/dist/{chunk-AKL7T64Q.js → chunk-Y53XECL6.js} +34 -34
- package/dist/{chunk-CGXWFHRF.js → chunk-Y5RMFD7I.js} +3 -3
- package/dist/{chunk-TLXMY7OM.js → chunk-YEOP3EMX.js} +94 -17
- package/dist/{chunk-TKPN642B.js → chunk-ZJSUUIVI.js} +14 -10
- package/dist/cli/commands/auth/logout.js +14 -15
- package/dist/cli/commands/auth/logout.test.js +16 -17
- package/dist/cli/commands/cache/clear.js +13 -14
- package/dist/cli/commands/debug/command-flags.js +13 -14
- package/dist/cli/commands/docs/generate.js +13 -14
- package/dist/cli/commands/docs/generate.test.js +14 -15
- package/dist/cli/commands/help.js +13 -14
- package/dist/cli/commands/kitchen-sink/async.js +14 -15
- package/dist/cli/commands/kitchen-sink/async.test.js +15 -16
- package/dist/cli/commands/kitchen-sink/index.js +16 -17
- package/dist/cli/commands/kitchen-sink/index.test.js +17 -18
- package/dist/cli/commands/kitchen-sink/prompts.js +14 -15
- package/dist/cli/commands/kitchen-sink/prompts.test.js +15 -16
- package/dist/cli/commands/kitchen-sink/static.js +14 -15
- package/dist/cli/commands/kitchen-sink/static.test.js +15 -16
- package/dist/cli/commands/notifications/generate.js +14 -15
- package/dist/cli/commands/notifications/list.js +14 -15
- package/dist/cli/commands/search.js +14 -15
- package/dist/cli/commands/upgrade.js +14 -15
- package/dist/cli/commands/upgrade.test.js +1 -2
- package/dist/cli/commands/version.js +14 -15
- package/dist/cli/commands/version.test.js +15 -16
- package/dist/cli/services/commands/notifications.js +8 -9
- package/dist/cli/services/commands/search.js +4 -5
- package/dist/cli/services/commands/search.test.js +5 -6
- package/dist/cli/services/commands/version.js +5 -6
- package/dist/cli/services/commands/version.test.js +7 -8
- package/dist/cli/services/kitchen-sink/async.js +4 -5
- package/dist/cli/services/kitchen-sink/prompts.js +4 -5
- package/dist/cli/services/kitchen-sink/static.js +4 -5
- package/dist/cli/services/upgrade.js +5 -6
- package/dist/cli/services/upgrade.test.js +8 -9
- package/dist/{custom-oclif-loader-YCFOTKOV.js → custom-oclif-loader-5N4JRQ46.js} +4 -5
- package/dist/{del-FBU5JYXS.js → del-2SYBVRHB.js} +2 -2
- package/dist/devtools-BA4WST2D.js +72 -0
- package/dist/{error-handler-S6ZLT6DF.js → error-handler-VQHDL26P.js} +11 -12
- package/dist/hooks/postrun.js +9 -10
- package/dist/hooks/prerun.js +9 -10
- package/dist/index.js +28956 -12558
- package/dist/{lib-E2DSNKUX.js → lib-SGEWXU7Z.js} +3 -3
- package/dist/{local-62JTGJVG.js → local-NKJECUJ3.js} +6 -5
- package/dist/{magic-string.es-PJMYOE6F.js → magic-string.es-BSVDQOZI.js} +32 -20
- package/dist/{morph-ACVSDUS7.js → morph-BTANDGVW.js} +9 -9
- package/dist/{node-M7KO76D7.js → node-RIZFDTN7.js} +17 -18
- package/dist/{node-package-manager-RXCBZVWU.js → node-package-manager-EOSRJYAN.js} +5 -6
- package/dist/{npa-JAX2F6CO.js → npa-E675GQOI.js} +123 -33
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-CEJ6R3AV.js → ui-II7LUT5P.js} +4 -5
- package/dist/{workerd-WLX2SY5E.js → workerd-SKOXR5SE.js} +16 -17
- package/oclif.manifest.json +33 -62
- package/package.json +11 -10
- package/dist/chunk-CFIKVUNW.js +0 -45
|
@@ -4337,16 +4337,16 @@ var require_chai2 = __commonJS({
|
|
|
4337
4337
|
}
|
|
4338
4338
|
});
|
|
4339
4339
|
|
|
4340
|
-
// ../../node_modules/.pnpm/@vitest+runner@1.6.
|
|
4340
|
+
// ../../node_modules/.pnpm/@vitest+runner@1.6.1/node_modules/@vitest/runner/dist/index.js
|
|
4341
4341
|
init_cjs_shims();
|
|
4342
4342
|
|
|
4343
4343
|
// ../../node_modules/.pnpm/p-limit@5.0.0/node_modules/p-limit/index.js
|
|
4344
4344
|
init_cjs_shims();
|
|
4345
4345
|
|
|
4346
|
-
// ../../node_modules/.pnpm/@vitest+utils@1.6.
|
|
4346
|
+
// ../../node_modules/.pnpm/@vitest+utils@1.6.1/node_modules/@vitest/utils/dist/index.js
|
|
4347
4347
|
init_cjs_shims();
|
|
4348
4348
|
|
|
4349
|
-
// ../../node_modules/.pnpm/@vitest+utils@1.6.
|
|
4349
|
+
// ../../node_modules/.pnpm/@vitest+utils@1.6.1/node_modules/@vitest/utils/dist/helpers.js
|
|
4350
4350
|
init_cjs_shims();
|
|
4351
4351
|
function assertTypes(value, name, types) {
|
|
4352
4352
|
let receivedType = typeof value;
|
|
@@ -4426,7 +4426,7 @@ function createDefer() {
|
|
|
4426
4426
|
return p.resolve = resolve3, p.reject = reject, p;
|
|
4427
4427
|
}
|
|
4428
4428
|
|
|
4429
|
-
// ../../node_modules/.pnpm/@vitest+utils@1.6.
|
|
4429
|
+
// ../../node_modules/.pnpm/@vitest+utils@1.6.1/node_modules/@vitest/utils/dist/chunk-display.js
|
|
4430
4430
|
init_cjs_shims();
|
|
4431
4431
|
var import_pretty_format = __toESM(require_build(), 1), loupe = __toESM(require_loupe(), 1), {
|
|
4432
4432
|
AsymmetricMatcher,
|
|
@@ -4541,7 +4541,7 @@ function objDisplay(obj, options = {}) {
|
|
|
4541
4541
|
return str;
|
|
4542
4542
|
}
|
|
4543
4543
|
|
|
4544
|
-
// ../../node_modules/.pnpm/@vitest+utils@1.6.
|
|
4544
|
+
// ../../node_modules/.pnpm/@vitest+utils@1.6.1/node_modules/@vitest/utils/dist/chunk-colors.js
|
|
4545
4545
|
init_cjs_shims();
|
|
4546
4546
|
var SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS"), SAFE_COLORS_SYMBOL = Symbol("vitest:SAFE_COLORS"), colorsMap = {
|
|
4547
4547
|
bold: ["\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"],
|
|
@@ -4579,7 +4579,7 @@ function getColors() {
|
|
|
4579
4579
|
return globalThis[SAFE_COLORS_SYMBOL] || defaultColors;
|
|
4580
4580
|
}
|
|
4581
4581
|
|
|
4582
|
-
// ../../node_modules/.pnpm/@vitest+utils@1.6.
|
|
4582
|
+
// ../../node_modules/.pnpm/@vitest+utils@1.6.1/node_modules/@vitest/utils/dist/index.js
|
|
4583
4583
|
var import_pretty_format2 = __toESM(require_build(), 1), import_loupe = __toESM(require_loupe(), 1);
|
|
4584
4584
|
function getSafeTimers() {
|
|
4585
4585
|
let {
|
|
@@ -4679,10 +4679,10 @@ var reservedWords = {
|
|
|
4679
4679
|
]
|
|
4680
4680
|
}, keywords = new Set(reservedWords.keyword), reservedWordsStrictSet = new Set(reservedWords.strict);
|
|
4681
4681
|
|
|
4682
|
-
// ../../node_modules/.pnpm/@vitest+utils@1.6.
|
|
4682
|
+
// ../../node_modules/.pnpm/@vitest+utils@1.6.1/node_modules/@vitest/utils/dist/error.js
|
|
4683
4683
|
init_cjs_shims();
|
|
4684
4684
|
|
|
4685
|
-
// ../../node_modules/.pnpm/@vitest+utils@1.6.
|
|
4685
|
+
// ../../node_modules/.pnpm/@vitest+utils@1.6.1/node_modules/@vitest/utils/dist/diff.js
|
|
4686
4686
|
init_cjs_shims();
|
|
4687
4687
|
var import_pretty_format3 = __toESM(require_build(), 1), diff$1 = __toESM(require_build2(), 1);
|
|
4688
4688
|
function getType2(value) {
|
|
@@ -5120,7 +5120,7 @@ function getObjectsDifference(a, b2, formatOptions, options) {
|
|
|
5120
5120
|
}
|
|
5121
5121
|
}
|
|
5122
5122
|
|
|
5123
|
-
// ../../node_modules/.pnpm/@vitest+utils@1.6.
|
|
5123
|
+
// ../../node_modules/.pnpm/@vitest+utils@1.6.1/node_modules/@vitest/utils/dist/error.js
|
|
5124
5124
|
var import_pretty_format4 = __toESM(require_build(), 1), import_diff_sequences = __toESM(require_build2(), 1);
|
|
5125
5125
|
var import_loupe2 = __toESM(require_loupe(), 1), IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@", IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
|
|
5126
5126
|
function isImmutable(v) {
|
|
@@ -5227,7 +5227,7 @@ function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE_
|
|
|
5227
5227
|
}) : { replacedActual: actual, replacedExpected: expected };
|
|
5228
5228
|
}
|
|
5229
5229
|
|
|
5230
|
-
// ../../node_modules/.pnpm/@vitest+runner@1.6.
|
|
5230
|
+
// ../../node_modules/.pnpm/@vitest+runner@1.6.1/node_modules/@vitest/runner/dist/chunk-tasks.js
|
|
5231
5231
|
init_cjs_shims();
|
|
5232
5232
|
function createChainable(keys2, fn2) {
|
|
5233
5233
|
function create(context) {
|
|
@@ -5257,7 +5257,7 @@ function getNames(task) {
|
|
|
5257
5257
|
return names;
|
|
5258
5258
|
}
|
|
5259
5259
|
|
|
5260
|
-
// ../../node_modules/.pnpm/@vitest+utils@1.6.
|
|
5260
|
+
// ../../node_modules/.pnpm/@vitest+utils@1.6.1/node_modules/@vitest/utils/dist/source-map.js
|
|
5261
5261
|
init_cjs_shims();
|
|
5262
5262
|
function normalizeWindowsPath(input = "") {
|
|
5263
5263
|
return !input || !input.includes("\\") ? input : input.replace(/\\/g, "/");
|
|
@@ -5517,7 +5517,7 @@ function parseSingleV8Stack(raw) {
|
|
|
5517
5517
|
});
|
|
5518
5518
|
}
|
|
5519
5519
|
|
|
5520
|
-
// ../../node_modules/.pnpm/@vitest+runner@1.6.
|
|
5520
|
+
// ../../node_modules/.pnpm/@vitest+runner@1.6.1/node_modules/@vitest/runner/dist/index.js
|
|
5521
5521
|
var fnMap = /* @__PURE__ */ new WeakMap(), fixtureMap = /* @__PURE__ */ new WeakMap(), hooksMap = /* @__PURE__ */ new WeakMap();
|
|
5522
5522
|
function setFn(key, fn2) {
|
|
5523
5523
|
fnMap.set(key, fn2);
|
|
@@ -5957,7 +5957,7 @@ function createTestHook(name, handler) {
|
|
|
5957
5957
|
};
|
|
5958
5958
|
}
|
|
5959
5959
|
|
|
5960
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
5960
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/vendor/vi.YFlodzP_.js
|
|
5961
5961
|
init_cjs_shims();
|
|
5962
5962
|
|
|
5963
5963
|
// ../../node_modules/.pnpm/chai@4.4.1/node_modules/chai/index.mjs
|
|
@@ -5978,17 +5978,17 @@ __export(chai_exports, {
|
|
|
5978
5978
|
init_cjs_shims();
|
|
5979
5979
|
var import_index = __toESM(require_chai2(), 1), expect = import_index.default.expect, version = import_index.default.version, Assertion = import_index.default.Assertion, AssertionError = import_index.default.AssertionError, util = import_index.default.util, config = import_index.default.config, use = import_index.default.use, should = import_index.default.should, assert = import_index.default.assert, core = import_index.default.core, chai_default = import_index.default;
|
|
5980
5980
|
|
|
5981
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
5981
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/vendor/_commonjsHelpers.jjO7Zipk.js
|
|
5982
5982
|
init_cjs_shims();
|
|
5983
5983
|
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5984
5984
|
function getDefaultExportFromCjs(x) {
|
|
5985
5985
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
|
|
5986
5986
|
}
|
|
5987
5987
|
|
|
5988
|
-
// ../../node_modules/.pnpm/@vitest+expect@1.6.
|
|
5988
|
+
// ../../node_modules/.pnpm/@vitest+expect@1.6.1/node_modules/@vitest/expect/dist/index.js
|
|
5989
5989
|
init_cjs_shims();
|
|
5990
5990
|
|
|
5991
|
-
// ../../node_modules/.pnpm/@vitest+spy@1.6.
|
|
5991
|
+
// ../../node_modules/.pnpm/@vitest+spy@1.6.1/node_modules/@vitest/spy/dist/index.js
|
|
5992
5992
|
init_cjs_shims();
|
|
5993
5993
|
|
|
5994
5994
|
// ../../node_modules/.pnpm/tinyspy@2.2.1/node_modules/tinyspy/dist/index.js
|
|
@@ -6078,7 +6078,7 @@ function E(e, t, n) {
|
|
|
6078
6078
|
return i(T, "restore", K), i(T, "getOriginal", () => l ? o() : o), i(T, "willCall", (h) => (T.impl = h, y)), O(l ? () => (P(y, n), y) : y), g.add(y), y;
|
|
6079
6079
|
}
|
|
6080
6080
|
|
|
6081
|
-
// ../../node_modules/.pnpm/@vitest+spy@1.6.
|
|
6081
|
+
// ../../node_modules/.pnpm/@vitest+spy@1.6.1/node_modules/@vitest/spy/dist/index.js
|
|
6082
6082
|
var mocks = /* @__PURE__ */ new Set();
|
|
6083
6083
|
function isMockFunction(fn2) {
|
|
6084
6084
|
return typeof fn2 == "function" && "_isMockFunction" in fn2 && fn2._isMockFunction;
|
|
@@ -6136,7 +6136,7 @@ function fn(implementation) {
|
|
|
6136
6136
|
return implementation && enhancedSpy.mockImplementation(implementation), enhancedSpy;
|
|
6137
6137
|
}
|
|
6138
6138
|
|
|
6139
|
-
// ../../node_modules/.pnpm/@vitest+expect@1.6.
|
|
6139
|
+
// ../../node_modules/.pnpm/@vitest+expect@1.6.1/node_modules/@vitest/expect/dist/index.js
|
|
6140
6140
|
var MATCHERS_OBJECT = Symbol.for("matchers-object"), JEST_MATCHERS_OBJECT = Symbol.for("$$jest-matchers-object"), GLOBAL_EXPECT = Symbol.for("expect-global"), ASYMMETRIC_MATCHERS_OBJECT = Symbol.for("asymmetric-matchers-object");
|
|
6141
6141
|
if (!Object.prototype.hasOwnProperty.call(globalThis, MATCHERS_OBJECT)) {
|
|
6142
6142
|
let globalState = /* @__PURE__ */ new WeakMap(), matchers = /* @__PURE__ */ Object.create(null), customEqualityTesters = [], assymetricMatchers = /* @__PURE__ */ Object.create(null);
|
|
@@ -7321,7 +7321,7 @@ var JestExtend = (chai3, utils) => {
|
|
|
7321
7321
|
});
|
|
7322
7322
|
};
|
|
7323
7323
|
|
|
7324
|
-
// ../../node_modules/.pnpm/@vitest+snapshot@1.6.
|
|
7324
|
+
// ../../node_modules/.pnpm/@vitest+snapshot@1.6.1/node_modules/@vitest/snapshot/dist/index.js
|
|
7325
7325
|
init_cjs_shims();
|
|
7326
7326
|
var import_pretty_format5 = __toESM(require_build(), 1);
|
|
7327
7327
|
function getDefaultExportFromCjs2(x) {
|
|
@@ -7942,7 +7942,7 @@ function parseErrorStacktrace(e, options = {}) {
|
|
|
7942
7942
|
return options.frameFilter && (stackFrames = stackFrames.filter((f2) => options.frameFilter(e, f2) !== !1)), e.stacks = stackFrames, stackFrames;
|
|
7943
7943
|
}
|
|
7944
7944
|
async function saveInlineSnapshots(environment, snapshots) {
|
|
7945
|
-
let MagicString = (await import("./magic-string.es-
|
|
7945
|
+
let MagicString = (await import("./magic-string.es-BSVDQOZI.js")).default, files = new Set(snapshots.map((i2) => i2.file));
|
|
7946
7946
|
await Promise.all(Array.from(files).map(async (file) => {
|
|
7947
7947
|
let snaps = snapshots.filter((i2) => i2.file === file), code = await environment.readSnapshotFile(file), s = new MagicString(code);
|
|
7948
7948
|
for (let snap of snaps) {
|
|
@@ -8262,16 +8262,16 @@ var SnapshotClient = class {
|
|
|
8262
8262
|
}
|
|
8263
8263
|
};
|
|
8264
8264
|
|
|
8265
|
-
// ../../node_modules/.pnpm/@vitest+runner@1.6.
|
|
8265
|
+
// ../../node_modules/.pnpm/@vitest+runner@1.6.1/node_modules/@vitest/runner/dist/utils.js
|
|
8266
8266
|
init_cjs_shims();
|
|
8267
8267
|
|
|
8268
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
8268
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/vendor/tasks.IknbGB2n.js
|
|
8269
8269
|
init_cjs_shims();
|
|
8270
8270
|
function getFullName(task, separator = " > ") {
|
|
8271
8271
|
return getNames(task).join(separator);
|
|
8272
8272
|
}
|
|
8273
8273
|
|
|
8274
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
8274
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/vendor/global.CkGT_TMy.js
|
|
8275
8275
|
init_cjs_shims();
|
|
8276
8276
|
function getWorkerState() {
|
|
8277
8277
|
let workerState = globalThis.__vitest_worker__;
|
|
@@ -8292,13 +8292,13 @@ function getCurrentEnvironment() {
|
|
|
8292
8292
|
return state?.environment.name;
|
|
8293
8293
|
}
|
|
8294
8294
|
|
|
8295
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
8295
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/vendor/base.5NT-gWu5.js
|
|
8296
8296
|
init_cjs_shims();
|
|
8297
8297
|
function isChildProcess() {
|
|
8298
8298
|
return typeof process < "u" && !!process.send;
|
|
8299
8299
|
}
|
|
8300
8300
|
|
|
8301
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
8301
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/vendor/date.Ns1pGd_X.js
|
|
8302
8302
|
init_cjs_shims();
|
|
8303
8303
|
var RealDate = Date, now2 = null, MockDate = class _MockDate extends RealDate {
|
|
8304
8304
|
constructor(y, m, d, h, M2, s, ms) {
|
|
@@ -8338,7 +8338,7 @@ function resetDate() {
|
|
|
8338
8338
|
globalThis.Date = RealDate;
|
|
8339
8339
|
}
|
|
8340
8340
|
|
|
8341
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
8341
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/vendor/vi.YFlodzP_.js
|
|
8342
8342
|
function resetModules(modules, resetMocks = !1) {
|
|
8343
8343
|
let skipPaths = [
|
|
8344
8344
|
// Vitest
|
|
@@ -9843,13 +9843,13 @@ function createVitest() {
|
|
|
9843
9843
|
}
|
|
9844
9844
|
var vitest = createVitest(), vi = vitest;
|
|
9845
9845
|
|
|
9846
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
9846
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/index.js
|
|
9847
9847
|
init_cjs_shims();
|
|
9848
9848
|
|
|
9849
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
9849
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/vendor/benchmark.yGkUTKnC.js
|
|
9850
9850
|
init_cjs_shims();
|
|
9851
9851
|
|
|
9852
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
9852
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/vendor/index.SMVOaj7F.js
|
|
9853
9853
|
init_cjs_shims();
|
|
9854
9854
|
function getRunMode() {
|
|
9855
9855
|
return getWorkerState().config.mode;
|
|
@@ -9858,7 +9858,7 @@ function isRunningInBenchmark() {
|
|
|
9858
9858
|
return getRunMode() === "benchmark";
|
|
9859
9859
|
}
|
|
9860
9860
|
|
|
9861
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
9861
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/vendor/benchmark.yGkUTKnC.js
|
|
9862
9862
|
var benchFns = /* @__PURE__ */ new WeakMap(), benchOptsMap = /* @__PURE__ */ new WeakMap();
|
|
9863
9863
|
var bench = createBenchmark(
|
|
9864
9864
|
function(name, fn2 = noop, options = {}) {
|
|
@@ -9884,7 +9884,7 @@ function formatName2(name) {
|
|
|
9884
9884
|
return typeof name == "string" ? name : name instanceof Function ? name.name || "<anonymous>" : String(name);
|
|
9885
9885
|
}
|
|
9886
9886
|
|
|
9887
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
9887
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/vendor/run-once.Olz_Zkd8.js
|
|
9888
9888
|
init_cjs_shims();
|
|
9889
9889
|
var filesCount = /* @__PURE__ */ new Map(), cache = /* @__PURE__ */ new Map();
|
|
9890
9890
|
function runOnce(fn2, key) {
|
|
@@ -9900,7 +9900,7 @@ function isFirstRun() {
|
|
|
9900
9900
|
}, "__vitest_first_run__"), firstRun;
|
|
9901
9901
|
}
|
|
9902
9902
|
|
|
9903
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
9903
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/vendor/index.dI9lHwVn.js
|
|
9904
9904
|
init_cjs_shims();
|
|
9905
9905
|
function getRunningMode() {
|
|
9906
9906
|
return process.env.VITEST_MODE === "WATCH" ? "watch" : "run";
|
|
@@ -9988,7 +9988,7 @@ var assertType = noop2, VitestIndex = /* @__PURE__ */ Object.freeze({
|
|
|
9988
9988
|
vitest
|
|
9989
9989
|
});
|
|
9990
9990
|
|
|
9991
|
-
// ../../node_modules/.pnpm/vitest@1.6.
|
|
9991
|
+
// ../../node_modules/.pnpm/vitest@1.6.1_@types+node@18.19.70/node_modules/vitest/dist/index.js
|
|
9992
9992
|
var expectTypeOf = dist.expectTypeOf;
|
|
9993
9993
|
|
|
9994
9994
|
export {
|
|
@@ -10593,4 +10593,4 @@ chai/lib/chai.js:
|
|
|
10593
10593
|
* @license MIT License
|
|
10594
10594
|
*)
|
|
10595
10595
|
*/
|
|
10596
|
-
//# sourceMappingURL=chunk-
|
|
10596
|
+
//# sourceMappingURL=chunk-Y53XECL6.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
list
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SXT3JFLA.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KR2ZEBN3.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ var List = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
List
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-Y5RMFD7I.js.map
|
|
@@ -18,14 +18,11 @@ import {
|
|
|
18
18
|
require_lib,
|
|
19
19
|
require_source,
|
|
20
20
|
require_supports_hyperlinks
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VSKRQ3JT.js";
|
|
22
22
|
import {
|
|
23
23
|
require_brace_expansion,
|
|
24
24
|
require_source_map
|
|
25
25
|
} from "./chunk-G5R6YD27.js";
|
|
26
|
-
import {
|
|
27
|
-
Queue
|
|
28
|
-
} from "./chunk-CFIKVUNW.js";
|
|
29
26
|
import {
|
|
30
27
|
delimiter
|
|
31
28
|
} from "./chunk-CDBXAE2F.js";
|
|
@@ -22355,7 +22352,6 @@ var import_change_case = __toESM(require_dist15(), 1), SAFE_RANDOM_BUSINESS_ADJE
|
|
|
22355
22352
|
"franchise",
|
|
22356
22353
|
"subsidiary",
|
|
22357
22354
|
"logistics",
|
|
22358
|
-
"infrastructure",
|
|
22359
22355
|
"sponsorship",
|
|
22360
22356
|
"partnership",
|
|
22361
22357
|
"tax",
|
|
@@ -22611,6 +22607,45 @@ init_cjs_shims();
|
|
|
22611
22607
|
|
|
22612
22608
|
// ../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
|
|
22613
22609
|
init_cjs_shims();
|
|
22610
|
+
|
|
22611
|
+
// ../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
|
|
22612
|
+
init_cjs_shims();
|
|
22613
|
+
var Node = class {
|
|
22614
|
+
value;
|
|
22615
|
+
next;
|
|
22616
|
+
constructor(value) {
|
|
22617
|
+
this.value = value;
|
|
22618
|
+
}
|
|
22619
|
+
}, Queue = class {
|
|
22620
|
+
#head;
|
|
22621
|
+
#tail;
|
|
22622
|
+
#size;
|
|
22623
|
+
constructor() {
|
|
22624
|
+
this.clear();
|
|
22625
|
+
}
|
|
22626
|
+
enqueue(value) {
|
|
22627
|
+
let node = new Node(value);
|
|
22628
|
+
this.#head ? (this.#tail.next = node, this.#tail = node) : (this.#head = node, this.#tail = node), this.#size++;
|
|
22629
|
+
}
|
|
22630
|
+
dequeue() {
|
|
22631
|
+
let current = this.#head;
|
|
22632
|
+
if (current)
|
|
22633
|
+
return this.#head = this.#head.next, this.#size--, current.value;
|
|
22634
|
+
}
|
|
22635
|
+
clear() {
|
|
22636
|
+
this.#head = void 0, this.#tail = void 0, this.#size = 0;
|
|
22637
|
+
}
|
|
22638
|
+
get size() {
|
|
22639
|
+
return this.#size;
|
|
22640
|
+
}
|
|
22641
|
+
*[Symbol.iterator]() {
|
|
22642
|
+
let current = this.#head;
|
|
22643
|
+
for (; current; )
|
|
22644
|
+
yield current.value, current = current.next;
|
|
22645
|
+
}
|
|
22646
|
+
};
|
|
22647
|
+
|
|
22648
|
+
// ../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
|
|
22614
22649
|
function pLimit(concurrency) {
|
|
22615
22650
|
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0))
|
|
22616
22651
|
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
@@ -23627,7 +23662,7 @@ async function renameFile(from, to) {
|
|
|
23627
23662
|
outputDebug(outputContent`Renaming file from ${outputToken.path(from)} to ${outputToken.path(to)}...`), await fsRename(from, to);
|
|
23628
23663
|
}
|
|
23629
23664
|
async function rmdir(path8, options = {}) {
|
|
23630
|
-
let { default: del } = await import("./del-
|
|
23665
|
+
let { default: del } = await import("./del-2SYBVRHB.js");
|
|
23631
23666
|
outputDebug(outputContent`Removing directory at ${outputToken.path(path8)}...`), await del(path8, { force: options.force });
|
|
23632
23667
|
}
|
|
23633
23668
|
async function isDirectory(path8) {
|
|
@@ -23791,7 +23826,8 @@ var identifier = "shopify-cli", cacheFolder = () => process.env.XDG_CACHE_HOME ?
|
|
|
23791
23826
|
refreshToken: "SHOPIFY_CLI_REFRESH_TOKEN",
|
|
23792
23827
|
otelURL: "SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",
|
|
23793
23828
|
themeKitAccessDomain: "SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN",
|
|
23794
|
-
json: "SHOPIFY_FLAG_JSON"
|
|
23829
|
+
json: "SHOPIFY_FLAG_JSON",
|
|
23830
|
+
neverUsePartnersApi: "SHOPIFY_CLI_NEVER_USE_PARTNERS_API"
|
|
23795
23831
|
}, defaultThemeKitAccessDomain = "theme-kit-access.shopifyapps.com", systemEnvironmentVariables = {
|
|
23796
23832
|
backendPort: "BACKEND_PORT"
|
|
23797
23833
|
}, pathConstants = {
|
|
@@ -25009,6 +25045,9 @@ function getIdentityTokenInformation() {
|
|
|
25009
25045
|
function jsonOutputEnabled(environment = getEnvironmentVariables()) {
|
|
25010
25046
|
return sniffForJson() || isTruthy(environment[environmentVariables.json]);
|
|
25011
25047
|
}
|
|
25048
|
+
function blockPartnersAccess() {
|
|
25049
|
+
return isTruthy(getEnvironmentVariables()[environmentVariables.neverUsePartnersApi]);
|
|
25050
|
+
}
|
|
25012
25051
|
|
|
25013
25052
|
// ../../node_modules/.pnpm/is-interactive@2.0.0/node_modules/is-interactive/index.js
|
|
25014
25053
|
init_cjs_shims();
|
|
@@ -25104,8 +25143,13 @@ function ciPlatform(env3 = process.env) {
|
|
|
25104
25143
|
function macAddress() {
|
|
25105
25144
|
return import_macaddress.default.one();
|
|
25106
25145
|
}
|
|
25146
|
+
function getThemeKitAccessDomain(env3 = process.env) {
|
|
25147
|
+
let domain = env3[environmentVariables.themeKitAccessDomain];
|
|
25148
|
+
return isSet(domain) ? domain : defaultThemeKitAccessDomain;
|
|
25149
|
+
}
|
|
25107
25150
|
function opentelemetryDomain(env3 = process.env) {
|
|
25108
|
-
|
|
25151
|
+
let domain = env3[environmentVariables.otelURL];
|
|
25152
|
+
return isSet(domain) ? domain : "https://otlp-http-production-cli.shopifysvc.com";
|
|
25109
25153
|
}
|
|
25110
25154
|
|
|
25111
25155
|
// ../cli-kit/dist/public/node/is-global.js
|
|
@@ -29427,7 +29471,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
29427
29471
|
try {
|
|
29428
29472
|
await getAndSet();
|
|
29429
29473
|
} catch (error) {
|
|
29430
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
29474
|
+
let { sendErrorToBugsnag } = await import("./error-handler-VQHDL26P.js");
|
|
29431
29475
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
29432
29476
|
}
|
|
29433
29477
|
}, durationStack = [];
|
|
@@ -30728,13 +30772,20 @@ function rainbow(text, frame) {
|
|
|
30728
30772
|
let hue = 5 * frame, leftColor = { h: hue % 360, s: 0.8, v: 1 }, rightColor = { h: (hue + 1) % 360, s: 0.8, v: 1 };
|
|
30729
30773
|
return (0, import_gradient_string.default)(leftColor, rightColor)(text, { interpolation: "hsv", hsvSpin: "long" });
|
|
30730
30774
|
}
|
|
30731
|
-
|
|
30775
|
+
function rotated(text, steps) {
|
|
30776
|
+
let normalizedSteps = steps % text.length, start = text.slice(-normalizedSteps), end = text.slice(0, -normalizedSteps);
|
|
30777
|
+
return start + end;
|
|
30778
|
+
}
|
|
30779
|
+
function truncated(text, maxWidth) {
|
|
30780
|
+
return maxWidth ? text.slice(0, maxWidth) : text;
|
|
30781
|
+
}
|
|
30782
|
+
var TextAnimation = (0, import_react50.memo)(({ text, maxWidth }) => {
|
|
30732
30783
|
let frame = (0, import_react50.useRef)(0), [renderedFrame, setRenderedFrame] = (0, import_react50.useState)(text), timeout = (0, import_react50.useRef)(), renderAnimation = (0, import_react50.useCallback)(() => {
|
|
30733
30784
|
let newFrame = frame.current + 1;
|
|
30734
|
-
frame.current = newFrame, setRenderedFrame(rainbow(text, frame.current)), timeout.current = setTimeout(() => {
|
|
30785
|
+
frame.current = newFrame, setRenderedFrame(rainbow(truncated(rotated(text, frame.current), maxWidth), frame.current)), timeout.current = setTimeout(() => {
|
|
30735
30786
|
renderAnimation();
|
|
30736
30787
|
}, 35);
|
|
30737
|
-
}, [text]);
|
|
30788
|
+
}, [text, maxWidth]);
|
|
30738
30789
|
return (0, import_react50.useLayoutEffect)(() => (renderAnimation(), () => {
|
|
30739
30790
|
clearTimeout(timeout.current);
|
|
30740
30791
|
}), [renderAnimation]), import_react50.default.createElement(Text, null, renderedFrame);
|
|
@@ -30758,7 +30809,7 @@ function useAsyncAndUnmount(asyncFunction, { onFulfilled = () => {
|
|
|
30758
30809
|
}
|
|
30759
30810
|
|
|
30760
30811
|
// ../cli-kit/dist/private/node/ui/components/Tasks.js
|
|
30761
|
-
var import_react52 = __toESM(require_react(), 1), loadingBarChar = "\u2580", TasksState;
|
|
30812
|
+
var import_react52 = __toESM(require_react(), 1), loadingBarChar = "\u2580", hillString = "\u2581\u2581\u2582\u2582\u2583\u2583\u2584\u2584\u2585\u2585\u2586\u2586\u2587\u2587\u2588\u2588\u2587\u2587\u2586\u2586\u2585\u2585\u2584\u2584\u2583\u2583\u2582\u2582\u2581\u2581", TasksState;
|
|
30762
30813
|
(function(TasksState2) {
|
|
30763
30814
|
TasksState2.Loading = "loading", TasksState2.Success = "success", TasksState2.Failure = "failure";
|
|
30764
30815
|
})(TasksState || (TasksState = {}));
|
|
@@ -30776,8 +30827,10 @@ async function runTask2(task, ctx) {
|
|
|
30776
30827
|
}
|
|
30777
30828
|
var noop3 = () => {
|
|
30778
30829
|
};
|
|
30779
|
-
function Tasks({ tasks, silent = isUnitTest(), onComplete = noop3, abortSignal }) {
|
|
30780
|
-
let { twoThirds } = useLayout(), loadingBar = new Array(twoThirds).fill(loadingBarChar).join("")
|
|
30830
|
+
function Tasks({ tasks, silent = isUnitTest(), onComplete = noop3, abortSignal, noColor }) {
|
|
30831
|
+
let { twoThirds } = useLayout(), loadingBar = new Array(twoThirds).fill(loadingBarChar).join("");
|
|
30832
|
+
(noColor ?? !shouldDisplayColors()) && (loadingBar = hillString.repeat(Math.ceil(twoThirds / hillString.length)));
|
|
30833
|
+
let [currentTask, setCurrentTask] = (0, import_react52.useState)(tasks[0]), [state, setState] = (0, import_react52.useState)(TasksState.Loading), ctx = (0, import_react52.useRef)({}), { isRawModeSupported } = use_stdin_default();
|
|
30781
30834
|
useAsyncAndUnmount(async () => {
|
|
30782
30835
|
for (let task of tasks) {
|
|
30783
30836
|
setCurrentTask(task);
|
|
@@ -30801,7 +30854,7 @@ function Tasks({ tasks, silent = isUnitTest(), onComplete = noop3, abortSignal }
|
|
|
30801
30854
|
return silent ? null : state === TasksState.Loading && !isAborted ? import_react52.default.createElement(
|
|
30802
30855
|
Box_default,
|
|
30803
30856
|
{ flexDirection: "column" },
|
|
30804
|
-
import_react52.default.createElement(TextAnimation, { text: loadingBar }),
|
|
30857
|
+
import_react52.default.createElement(TextAnimation, { text: loadingBar, maxWidth: twoThirds }),
|
|
30805
30858
|
import_react52.default.createElement(
|
|
30806
30859
|
Text,
|
|
30807
30860
|
null,
|
|
@@ -31092,11 +31145,28 @@ export {
|
|
|
31092
31145
|
runWithTimer,
|
|
31093
31146
|
require_react,
|
|
31094
31147
|
require_isObject,
|
|
31148
|
+
require_root,
|
|
31149
|
+
require_Symbol,
|
|
31150
|
+
require_isObjectLike,
|
|
31151
|
+
require_throttle,
|
|
31152
|
+
ansi_escapes_default2 as ansi_escapes_default,
|
|
31153
|
+
autoBind,
|
|
31095
31154
|
require_signal_exit,
|
|
31155
|
+
dist_default,
|
|
31156
|
+
Yoga,
|
|
31096
31157
|
require_scheduler,
|
|
31097
31158
|
stripAnsi,
|
|
31159
|
+
ansi_styles_default2 as ansi_styles_default,
|
|
31098
31160
|
sliceAnsi,
|
|
31161
|
+
indentString,
|
|
31162
|
+
require_cli_boxes,
|
|
31099
31163
|
source_default,
|
|
31164
|
+
styledCharsFromTokens,
|
|
31165
|
+
styledCharsToString,
|
|
31166
|
+
tokenize2 as tokenize,
|
|
31167
|
+
cli_cursor_default,
|
|
31168
|
+
require_stack_utils,
|
|
31169
|
+
dist_default3 as dist_default2,
|
|
31100
31170
|
Box_default,
|
|
31101
31171
|
Text,
|
|
31102
31172
|
Static,
|
|
@@ -31110,6 +31180,8 @@ export {
|
|
|
31110
31180
|
handleCtrlC,
|
|
31111
31181
|
require_stacktracey,
|
|
31112
31182
|
require_eq,
|
|
31183
|
+
require_Stack,
|
|
31184
|
+
require_Uint8Array,
|
|
31113
31185
|
require_mapToArray,
|
|
31114
31186
|
require_arrayPush,
|
|
31115
31187
|
require_isArray,
|
|
@@ -31119,6 +31191,8 @@ export {
|
|
|
31119
31191
|
require_isArguments,
|
|
31120
31192
|
require_isBuffer,
|
|
31121
31193
|
require_isIndex,
|
|
31194
|
+
require_baseUnary,
|
|
31195
|
+
require_nodeUtil,
|
|
31122
31196
|
require_isTypedArray,
|
|
31123
31197
|
require_arrayLikeKeys,
|
|
31124
31198
|
require_isPrototype,
|
|
@@ -31126,6 +31200,7 @@ export {
|
|
|
31126
31200
|
require_baseKeys,
|
|
31127
31201
|
require_isArrayLike,
|
|
31128
31202
|
require_keys,
|
|
31203
|
+
require_getAllKeys,
|
|
31129
31204
|
require_getTag,
|
|
31130
31205
|
require_baseIsEqual,
|
|
31131
31206
|
require_arrayMap,
|
|
@@ -31285,6 +31360,7 @@ export {
|
|
|
31285
31360
|
getBackendPort,
|
|
31286
31361
|
getIdentityTokenInformation,
|
|
31287
31362
|
jsonOutputEnabled,
|
|
31363
|
+
blockPartnersAccess,
|
|
31288
31364
|
isTerminalInteractive,
|
|
31289
31365
|
homeDirectory,
|
|
31290
31366
|
isDevelopment,
|
|
@@ -31307,6 +31383,7 @@ export {
|
|
|
31307
31383
|
hasGit,
|
|
31308
31384
|
ciPlatform,
|
|
31309
31385
|
macAddress,
|
|
31386
|
+
getThemeKitAccessDomain,
|
|
31310
31387
|
opentelemetryDomain
|
|
31311
31388
|
};
|
|
31312
31389
|
/*! Bundled license information:
|
|
@@ -31399,4 +31476,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
31399
31476
|
* LICENSE file in the root directory of this source tree.
|
|
31400
31477
|
*)
|
|
31401
31478
|
*/
|
|
31402
|
-
//# sourceMappingURL=chunk-
|
|
31479
|
+
//# sourceMappingURL=chunk-YEOP3EMX.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
remove,
|
|
7
7
|
setLastSeenAuthMethod,
|
|
8
8
|
setLastSeenUserIdAfterAuth
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-P654UJXI.js";
|
|
10
10
|
import {
|
|
11
11
|
BugError,
|
|
12
12
|
getPartnersToken,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
outputContent,
|
|
15
15
|
outputDebug,
|
|
16
16
|
outputToken
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YEOP3EMX.js";
|
|
18
18
|
import {
|
|
19
19
|
init_cjs_shims
|
|
20
20
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -35,14 +35,18 @@ ${outputToken.json(scopes)}
|
|
|
35
35
|
throw new BugError("No partners token found after ensuring authenticated");
|
|
36
36
|
return { token: tokens.partners, userId: tokens.userId };
|
|
37
37
|
}
|
|
38
|
-
async function
|
|
38
|
+
async function ensureAuthenticatedAppManagementAndBusinessPlatform(options = {}, appManagementScopes = [], businessPlatformScopes = [], env = process.env) {
|
|
39
39
|
outputDebug(outputContent`Ensuring that the user is authenticated with the App Management API with the following scopes:
|
|
40
|
-
${outputToken.json(
|
|
40
|
+
${outputToken.json(appManagementScopes)}
|
|
41
41
|
`);
|
|
42
|
-
let tokens = await ensureAuthenticated({ appManagementApi: { scopes } }, env, options);
|
|
43
|
-
if (!tokens)
|
|
44
|
-
throw new BugError("No App Management token found after ensuring authenticated");
|
|
45
|
-
return {
|
|
42
|
+
let tokens = await ensureAuthenticated({ appManagementApi: { scopes: appManagementScopes }, businessPlatformApi: { scopes: businessPlatformScopes } }, env, options);
|
|
43
|
+
if (!tokens.appManagement || !tokens.businessPlatform)
|
|
44
|
+
throw new BugError("No App Management or Business Platform token found after ensuring authenticated");
|
|
45
|
+
return {
|
|
46
|
+
appManagementToken: tokens.appManagement,
|
|
47
|
+
userId: tokens.userId,
|
|
48
|
+
businessPlatformToken: tokens.businessPlatform
|
|
49
|
+
};
|
|
46
50
|
}
|
|
47
51
|
async function ensureAuthenticatedStorefront(scopes = [], password = void 0, forceRefresh = !1) {
|
|
48
52
|
if (password) {
|
|
@@ -93,11 +97,11 @@ function logout() {
|
|
|
93
97
|
|
|
94
98
|
export {
|
|
95
99
|
ensureAuthenticatedPartners,
|
|
96
|
-
|
|
100
|
+
ensureAuthenticatedAppManagementAndBusinessPlatform,
|
|
97
101
|
ensureAuthenticatedStorefront,
|
|
98
102
|
ensureAuthenticatedAdmin,
|
|
99
103
|
ensureAuthenticatedThemes,
|
|
100
104
|
ensureAuthenticatedBusinessPlatform,
|
|
101
105
|
logout
|
|
102
106
|
};
|
|
103
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-ZJSUUIVI.js.map
|
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Logout
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-S3NMVYAF.js";
|
|
4
|
+
import "../../../chunk-ZJSUUIVI.js";
|
|
5
|
+
import "../../../chunk-KR2ZEBN3.js";
|
|
6
|
+
import "../../../chunk-4EZQAZ74.js";
|
|
7
7
|
import "../../../chunk-SHWOPMLQ.js";
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
10
|
-
import "../../../chunk-
|
|
11
|
-
import "../../../chunk-
|
|
12
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-FGC2O2I5.js";
|
|
9
|
+
import "../../../chunk-P654UJXI.js";
|
|
10
|
+
import "../../../chunk-H3VLXETQ.js";
|
|
11
|
+
import "../../../chunk-7CQUOSVH.js";
|
|
12
|
+
import "../../../chunk-LJHVF5TJ.js";
|
|
13
13
|
import "../../../chunk-25IMI7TH.js";
|
|
14
|
-
import "../../../chunk-
|
|
15
|
-
import "../../../chunk-
|
|
14
|
+
import "../../../chunk-UYZDNGSJ.js";
|
|
15
|
+
import "../../../chunk-DXX7H2IH.js";
|
|
16
16
|
import "../../../chunk-HMDWNGIV.js";
|
|
17
|
-
import "../../../chunk-
|
|
17
|
+
import "../../../chunk-YEOP3EMX.js";
|
|
18
18
|
import "../../../chunk-B5EXYCV3.js";
|
|
19
19
|
import "../../../chunk-75LV6AQS.js";
|
|
20
20
|
import "../../../chunk-57Q6OQG4.js";
|
|
21
|
-
import "../../../chunk-
|
|
21
|
+
import "../../../chunk-VSKRQ3JT.js";
|
|
22
22
|
import "../../../chunk-G5R6YD27.js";
|
|
23
23
|
import "../../../chunk-3I3GQNEW.js";
|
|
24
24
|
import "../../../chunk-G2ZZKGSV.js";
|
|
25
|
-
import "../../../chunk-
|
|
25
|
+
import "../../../chunk-MP5RLDFN.js";
|
|
26
26
|
import "../../../chunk-XE5EOEBL.js";
|
|
27
27
|
import "../../../chunk-5DBS6QOU.js";
|
|
28
28
|
import "../../../chunk-B3YWYURY.js";
|
|
29
|
-
import "../../../chunk-CFIKVUNW.js";
|
|
30
29
|
import "../../../chunk-CDBXAE2F.js";
|
|
31
30
|
import "../../../chunk-PKR7KJ6P.js";
|
|
32
31
|
export {
|