@shopify/cli 3.85.5 → 3.86.0
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/dev-console/extensions/dev-console/assets/index-Cj8WCHlM.js +64 -0
- package/dist/assets/dev-console/index.html +1 -1
- package/dist/assets/hydrogen/starter/package.json +1 -1
- package/dist/{brotli-EDFLSXX4.js → brotli-2OKV26Y6.js} +3 -3
- package/dist/{chunk-DHW4GI57.js → chunk-2KZOUSPH.js} +5 -5
- package/dist/{chunk-BQ3PZIHZ.js → chunk-4MSYMXAX.js} +16 -16
- package/dist/{chunk-PFBQBDNU.js → chunk-4TSN5PHA.js} +3 -3
- package/dist/{chunk-TE4CUUT4.js → chunk-4YT3BY2B.js} +2 -2
- package/dist/{chunk-MDDWB46W.js → chunk-5Q7CDSRK.js} +6 -6
- package/dist/{chunk-SMBX232U.js → chunk-5RBPM5MR.js} +205 -183
- package/dist/{chunk-UATXMR5F.js → chunk-6FH6AJI5.js} +3 -3
- package/dist/{chunk-75LV6AQS.js → chunk-6ONJEX7Y.js} +8 -8
- package/dist/{chunk-P46WMXBU.js → chunk-6UMZO4DD.js} +5 -5
- package/dist/{chunk-JF6DQIJR.js → chunk-7TE554OT.js} +16 -16
- package/dist/{chunk-NMGJYSTC.js → chunk-7VKRIIXT.js} +6 -6
- package/dist/{chunk-VVDGGMKJ.js → chunk-AA57B6YW.js} +3 -3
- package/dist/{chunk-RAZVOMJW.js → chunk-AQK2VHTY.js} +3 -3
- package/dist/{chunk-TXX6R3WL.js → chunk-DKRTUP7T.js} +2 -2
- package/dist/{chunk-O2O5GRI6.js → chunk-E25JAFOX.js} +3 -3
- package/dist/{chunk-IG5SOACB.js → chunk-F2V6FX7R.js} +3 -3
- package/dist/{chunk-UQT7B7DM.js → chunk-G3RY2PNL.js} +3 -3
- package/dist/{chunk-UF2X5VHR.js → chunk-GAPPN3SH.js} +3 -3
- package/dist/{chunk-AVSSZ6MY.js → chunk-GU76E24D.js} +7 -7
- package/dist/{chunk-IAX3IWUQ.js → chunk-IZMUO44N.js} +5 -5
- package/dist/{chunk-FGSQR4VQ.js → chunk-J5WELXX6.js} +3 -3
- package/dist/{chunk-GG2ELY5O.js → chunk-JMQJQNH7.js} +145 -124
- package/dist/{chunk-MR763CPY.js → chunk-KIMPXWRC.js} +6 -6
- package/dist/{chunk-TYHJPUOR.js → chunk-LDFPMZVN.js} +2 -2
- package/dist/{chunk-PZUWEJO3.js → chunk-LDJGMHXE.js} +4 -4
- package/dist/{chunk-J6T7KVRL.js → chunk-LOWKEYZ4.js} +2 -2
- package/dist/{chunk-G2I4CD5D.js → chunk-LPSHXR57.js} +2 -2
- package/dist/{chunk-FMD2ETAR.js → chunk-NIZJP24I.js} +4 -4
- package/dist/{chunk-FRHZJBJZ.js → chunk-NMH42STK.js} +27 -19
- package/dist/{chunk-NTCXWD2Q.js → chunk-O32LAXNO.js} +583 -585
- package/dist/{chunk-MUZ7NPCX.js → chunk-PFWYGIIB.js} +4 -4
- package/dist/{chunk-B5EXYCV3.js → chunk-Q2H6D2MH.js} +5 -5
- package/dist/{chunk-3ULYQTX3.js → chunk-TCTK5NQE.js} +8 -8
- package/dist/{chunk-CQSO2B3C.js → chunk-UAYSVXRU.js} +82 -31
- package/dist/{chunk-GQ63RYWN.js → chunk-UKECTTQZ.js} +2 -2
- package/dist/{chunk-R6BNSDGA.js → chunk-UXJEPFC3.js} +3 -3
- package/dist/{chunk-RZPYG7LO.js → chunk-WZTQS5NN.js} +25 -25
- package/dist/{chunk-F7F4BQYW.js → chunk-X2YIODUW.js} +56 -58
- package/dist/{chunk-25IMI7TH.js → chunk-XD3LXUGW.js} +5 -5
- package/dist/{chunk-CHLX44DR.js → chunk-ZRLTG3SU.js} +4 -4
- package/dist/{chunk-ODJ7LSLO.js → chunk-ZZGMPT2W.js} +3 -3
- package/dist/cli/commands/auth/login.js +15 -15
- package/dist/cli/commands/auth/login.test.js +17 -17
- package/dist/cli/commands/auth/logout.js +15 -15
- package/dist/cli/commands/auth/logout.test.js +17 -17
- package/dist/cli/commands/cache/clear.js +15 -15
- package/dist/cli/commands/debug/command-flags.js +15 -15
- package/dist/cli/commands/docs/generate.js +15 -15
- package/dist/cli/commands/docs/generate.test.js +16 -16
- package/dist/cli/commands/help.js +15 -15
- package/dist/cli/commands/kitchen-sink/async.js +16 -16
- package/dist/cli/commands/kitchen-sink/async.test.js +17 -17
- package/dist/cli/commands/kitchen-sink/index.js +18 -18
- package/dist/cli/commands/kitchen-sink/index.test.js +19 -19
- package/dist/cli/commands/kitchen-sink/prompts.js +16 -16
- package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -17
- package/dist/cli/commands/kitchen-sink/static.js +16 -16
- package/dist/cli/commands/kitchen-sink/static.test.js +17 -17
- package/dist/cli/commands/notifications/generate.js +16 -16
- package/dist/cli/commands/notifications/list.js +16 -16
- package/dist/cli/commands/search.js +16 -16
- package/dist/cli/commands/upgrade.js +16 -16
- package/dist/cli/commands/upgrade.test.js +1 -1
- package/dist/cli/commands/version.js +16 -16
- package/dist/cli/commands/version.test.js +17 -17
- package/dist/cli/services/commands/notifications.js +11 -11
- package/dist/cli/services/commands/search.js +6 -6
- package/dist/cli/services/commands/search.test.js +7 -7
- package/dist/cli/services/commands/version.js +7 -7
- package/dist/cli/services/commands/version.test.js +9 -9
- package/dist/cli/services/kitchen-sink/async.js +6 -6
- package/dist/cli/services/kitchen-sink/prompts.js +6 -6
- package/dist/cli/services/kitchen-sink/static.js +6 -6
- package/dist/cli/services/upgrade.js +7 -7
- package/dist/cli/services/upgrade.test.js +9 -9
- package/dist/{custom-oclif-loader-X7GLA66E.js → custom-oclif-loader-Y4GWKKAU.js} +6 -6
- package/dist/{del-DNZ7X2HW.js → del-DIPVIUR3.js} +3 -3
- package/dist/{error-handler-QOTWDLMF.js → error-handler-WPYX52XY.js} +13 -13
- package/dist/hooks/postrun.js +11 -11
- package/dist/hooks/prerun.js +12 -12
- package/dist/{http-proxy-node16-T623PGD4.js → http-proxy-node16-K5X7BUK5.js} +3 -3
- package/dist/index.js +1655 -2641
- package/dist/{lib-DEEC6IKU.js → lib-EMZRCLCJ.js} +3 -3
- package/dist/{lib-JVEIEXYB.js → lib-WHI5XOGD.js} +2 -2
- package/dist/{local-FS3UI7PE.js → local-ZMOSXANE.js} +6 -6
- package/dist/{morph-D4BXY376.js → morph-EGK76SED.js} +17 -18
- package/dist/{multipart-parser-WSNBP656.js → multipart-parser-IYYNISJK.js} +2 -2
- package/dist/{node-package-manager-TX3WZQGI.js → node-package-manager-4KOKGFQG.js} +7 -7
- package/dist/{source-map-QCVC46UY.js → source-map-UFUVQCYE.js} +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-PUN5STUM.js → ui-YYVT2VLD.js} +6 -6
- package/dist/{workerd-GJFM5MYN.js → workerd-35SAC4OI.js} +17 -17
- package/oclif.manifest.json +17 -104
- package/package.json +8 -12
- package/dist/assets/dev-console/extensions/dev-console/assets/index-ohOjvIJh.js +0 -64
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// ../cli-kit/dist/public/common/version.js
|
|
6
6
|
init_cjs_shims();
|
|
7
|
-
var CLI_KIT_VERSION = "3.
|
|
7
|
+
var CLI_KIT_VERSION = "3.86.0";
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-LDFPMZVN.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
searchService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LOWKEYZ4.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7VKRIIXT.js";
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X2YIODUW.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM,
|
|
12
12
|
init_cjs_shims
|
|
@@ -48,4 +48,4 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
|
|
|
48
48
|
export {
|
|
49
49
|
Search
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-LDJGMHXE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openURL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JMQJQNH7.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -15,4 +15,4 @@ async function searchService(query) {
|
|
|
15
15
|
export {
|
|
16
16
|
searchService
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-LOWKEYZ4.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderConcurrent,
|
|
3
3
|
renderTasks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JMQJQNH7.js";
|
|
5
5
|
import {
|
|
6
6
|
init_cjs_shims
|
|
7
7
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -43,4 +43,4 @@ async function asyncTasks() {
|
|
|
43
43
|
export {
|
|
44
44
|
asyncTasks
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-LPSHXR57.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7VKRIIXT.js";
|
|
4
4
|
import {
|
|
5
5
|
outputResult,
|
|
6
6
|
renderTable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JMQJQNH7.js";
|
|
8
8
|
import {
|
|
9
9
|
require_lib
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X2YIODUW.js";
|
|
11
11
|
import {
|
|
12
12
|
__toESM,
|
|
13
13
|
init_cjs_shims
|
|
@@ -84,4 +84,4 @@ var import_core = __toESM(require_lib(), 1), CommandFlags = class _CommandFlags
|
|
|
84
84
|
export {
|
|
85
85
|
CommandFlags
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=chunk-
|
|
87
|
+
//# sourceMappingURL=chunk-NIZJP24I.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
sanitizedHeadersOutput,
|
|
19
19
|
shopifyFetch,
|
|
20
20
|
z
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7TE554OT.js";
|
|
22
22
|
import {
|
|
23
23
|
cacheRetrieveOrRepopulate,
|
|
24
24
|
getCurrentSessionId,
|
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
setCurrentSessionId,
|
|
31
31
|
setSessions,
|
|
32
32
|
timeIntervalToMilliseconds
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UAYSVXRU.js";
|
|
34
34
|
import {
|
|
35
35
|
CLI_KIT_VERSION
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LDFPMZVN.js";
|
|
37
37
|
import {
|
|
38
38
|
AbortError,
|
|
39
39
|
BugError,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
sessionConstants,
|
|
97
97
|
stringifyMessage,
|
|
98
98
|
themeToken
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-JMQJQNH7.js";
|
|
100
100
|
import {
|
|
101
101
|
cwd
|
|
102
102
|
} from "./chunk-EG6MBBEN.js";
|
|
@@ -737,7 +737,7 @@ var require_Events = __commonJS({
|
|
|
737
737
|
return name !== "debug" && _this.trigger("debug", `Event triggered: ${name}`, args), _this._events[name] == null ? void 0 : (_this._events[name] = _this._events[name].filter(function(listener) {
|
|
738
738
|
return listener.status !== "none";
|
|
739
739
|
}), promises = _this._events[name].map(
|
|
740
|
-
/* @__PURE__ */ function() {
|
|
740
|
+
/* @__PURE__ */ (function() {
|
|
741
741
|
var _ref = _asyncToGenerator2(function* (listener) {
|
|
742
742
|
var e2, returned;
|
|
743
743
|
if (listener.status !== "none") {
|
|
@@ -752,7 +752,7 @@ var require_Events = __commonJS({
|
|
|
752
752
|
return function(_x) {
|
|
753
753
|
return _ref.apply(this, arguments);
|
|
754
754
|
};
|
|
755
|
-
}()
|
|
755
|
+
})()
|
|
756
756
|
), (yield Promise.all(promises)).find(function(x) {
|
|
757
757
|
return x != null;
|
|
758
758
|
}));
|
|
@@ -1957,7 +1957,7 @@ var require_RedisConnection = __commonJS({
|
|
|
1957
1957
|
__removeLimiter__(instance) {
|
|
1958
1958
|
var _this2 = this;
|
|
1959
1959
|
return this.Promise.all([instance.channel(), instance.channel_client()].map(
|
|
1960
|
-
/* @__PURE__ */ function() {
|
|
1960
|
+
/* @__PURE__ */ (function() {
|
|
1961
1961
|
var _ref = _asyncToGenerator(function* (channel) {
|
|
1962
1962
|
return _this2.terminated || (yield new _this2.Promise((resolve, reject) => _this2.subscriber.unsubscribe(channel, function(err2, chan) {
|
|
1963
1963
|
if (err2 != null)
|
|
@@ -1969,7 +1969,7 @@ var require_RedisConnection = __commonJS({
|
|
|
1969
1969
|
return function(_x) {
|
|
1970
1970
|
return _ref.apply(this, arguments);
|
|
1971
1971
|
};
|
|
1972
|
-
}()
|
|
1972
|
+
})()
|
|
1973
1973
|
));
|
|
1974
1974
|
}
|
|
1975
1975
|
__scriptArgs__(name, id, args, cb) {
|
|
@@ -2090,14 +2090,14 @@ var require_IORedisConnection = __commonJS({
|
|
|
2090
2090
|
__removeLimiter__(instance) {
|
|
2091
2091
|
var _this2 = this;
|
|
2092
2092
|
return [instance.channel(), instance.channel_client()].forEach(
|
|
2093
|
-
/* @__PURE__ */ function() {
|
|
2093
|
+
/* @__PURE__ */ (function() {
|
|
2094
2094
|
var _ref3 = _asyncToGenerator(function* (channel) {
|
|
2095
2095
|
return _this2.terminated || (yield _this2.subscriber.unsubscribe(channel)), delete _this2.limiters[channel];
|
|
2096
2096
|
});
|
|
2097
2097
|
return function(_x) {
|
|
2098
2098
|
return _ref3.apply(this, arguments);
|
|
2099
2099
|
};
|
|
2100
|
-
}()
|
|
2100
|
+
})()
|
|
2101
2101
|
);
|
|
2102
2102
|
}
|
|
2103
2103
|
__scriptArgs__(name, id, args, cb) {
|
|
@@ -3367,8 +3367,8 @@ async function identityFqdn() {
|
|
|
3367
3367
|
return productionFqdn;
|
|
3368
3368
|
}
|
|
3369
3369
|
}
|
|
3370
|
-
|
|
3371
|
-
let storeFqdn = store2.replace(/^https?:\/\//, "").replace(/\/$/, ""), addDomain =
|
|
3370
|
+
function normalizeStoreFqdn(store2) {
|
|
3371
|
+
let storeFqdn = store2.replace(/^https?:\/\//, "").replace(/\/$/, "").replace(/\/admin$/, ""), addDomain = (storeFqdn2) => {
|
|
3372
3372
|
switch (serviceEnvironment()) {
|
|
3373
3373
|
case "local":
|
|
3374
3374
|
return new DevServerCore().host(storeFqdn2);
|
|
@@ -4142,7 +4142,7 @@ function setLastSeenAuthMethod(method) {
|
|
|
4142
4142
|
async function ensureAuthenticated(applications, _env, { forceRefresh = !1, noPrompt = !1, forceNewSession = !1 } = {}) {
|
|
4143
4143
|
let fqdn = await identityFqdn(), previousStoreFqdn = applications.adminApi?.storeFqdn;
|
|
4144
4144
|
if (previousStoreFqdn) {
|
|
4145
|
-
let normalizedStoreName =
|
|
4145
|
+
let normalizedStoreName = normalizeStoreFqdn(previousStoreFqdn);
|
|
4146
4146
|
previousStoreFqdn === applications.adminApi?.storeFqdn && (applications.adminApi.storeFqdn = normalizedStoreName);
|
|
4147
4147
|
}
|
|
4148
4148
|
let sessions = await fetch() ?? {}, currentSessionId = getCurrentSessionId();
|
|
@@ -4255,7 +4255,7 @@ function getExchangeScopes(apps) {
|
|
|
4255
4255
|
function buildIdentityTokenFromEnv(scopes, identityTokenInformation) {
|
|
4256
4256
|
return {
|
|
4257
4257
|
...identityTokenInformation,
|
|
4258
|
-
expiresAt: new Date(Date.now() +
|
|
4258
|
+
expiresAt: new Date(Date.now() + 720 * 60 * 60 * 1e3),
|
|
4259
4259
|
scopes,
|
|
4260
4260
|
alias: identityTokenInformation.userId
|
|
4261
4261
|
};
|
|
@@ -4370,7 +4370,7 @@ async function refreshAccessToken(currentToken) {
|
|
|
4370
4370
|
refresh_token: currentToken.refreshToken,
|
|
4371
4371
|
client_id: clientId2
|
|
4372
4372
|
}, value = (await tokenRequest(params)).mapError(tokenRequestErrorHandler).valueOrBug();
|
|
4373
|
-
return buildIdentityToken(value, currentToken.userId);
|
|
4373
|
+
return buildIdentityToken(value, currentToken.userId, currentToken.alias);
|
|
4374
4374
|
}
|
|
4375
4375
|
async function exchangeCliTokenForAccessToken(apiName, token, scopes) {
|
|
4376
4376
|
let appId = applicationId(apiName);
|
|
@@ -4431,7 +4431,7 @@ async function tokenRequest(params) {
|
|
|
4431
4431
|
let res = await shopifyFetch(url3.href, { method: "POST" }), payload = await res.json();
|
|
4432
4432
|
return res.ok ? ok(payload) : err({ error: payload.error, store: params.store });
|
|
4433
4433
|
}
|
|
4434
|
-
function buildIdentityToken(result, existingUserId) {
|
|
4434
|
+
function buildIdentityToken(result, existingUserId, existingAlias) {
|
|
4435
4435
|
let userId2 = existingUserId ?? (result.id_token ? decodeJwt(result.id_token).sub : void 0);
|
|
4436
4436
|
if (!userId2)
|
|
4437
4437
|
throw new BugError("Error setting userId for session. No id_token or pre-existing user ID provided.");
|
|
@@ -4440,7 +4440,8 @@ function buildIdentityToken(result, existingUserId) {
|
|
|
4440
4440
|
refreshToken: result.refresh_token,
|
|
4441
4441
|
expiresAt: new Date(Date.now() + result.expires_in * 1e3),
|
|
4442
4442
|
scopes: result.scope.split(" "),
|
|
4443
|
-
userId: userId2
|
|
4443
|
+
userId: userId2,
|
|
4444
|
+
alias: existingAlias
|
|
4444
4445
|
};
|
|
4445
4446
|
}
|
|
4446
4447
|
function buildApplicationToken(result) {
|
|
@@ -4452,6 +4453,12 @@ function buildApplicationToken(result) {
|
|
|
4452
4453
|
}
|
|
4453
4454
|
|
|
4454
4455
|
// ../cli-kit/dist/public/node/session.js
|
|
4456
|
+
function isUserAccount(account) {
|
|
4457
|
+
return account.type === "UserAccount";
|
|
4458
|
+
}
|
|
4459
|
+
function isServiceAccount(account) {
|
|
4460
|
+
return account.type === "ServiceAccount";
|
|
4461
|
+
}
|
|
4455
4462
|
async function ensureAuthenticatedUser(env = process.env, options2 = {}) {
|
|
4456
4463
|
return outputDebug(outputContent`Ensuring that the user is authenticated with no particular scopes`), { userId: (await ensureAuthenticated({}, env, options2)).userId };
|
|
4457
4464
|
}
|
|
@@ -4600,7 +4607,6 @@ export {
|
|
|
4600
4607
|
appManagementFqdn,
|
|
4601
4608
|
appDevFqdn,
|
|
4602
4609
|
developerDashboardFqdn,
|
|
4603
|
-
businessPlatformFqdn,
|
|
4604
4610
|
identityFqdn,
|
|
4605
4611
|
normalizeStoreFqdn,
|
|
4606
4612
|
ok,
|
|
@@ -4609,6 +4615,8 @@ export {
|
|
|
4609
4615
|
getSessionAlias,
|
|
4610
4616
|
findSessionByAlias,
|
|
4611
4617
|
isThemeAccessSession,
|
|
4618
|
+
isUserAccount,
|
|
4619
|
+
isServiceAccount,
|
|
4612
4620
|
ensureAuthenticatedUser,
|
|
4613
4621
|
ensureAuthenticatedPartners,
|
|
4614
4622
|
ensureAuthenticatedAppManagementAndBusinessPlatform,
|
|
@@ -4651,4 +4659,4 @@ export {
|
|
|
4651
4659
|
getEnvironmentData,
|
|
4652
4660
|
getSensitiveEnvironmentData
|
|
4653
4661
|
};
|
|
4654
|
-
//# sourceMappingURL=chunk-
|
|
4662
|
+
//# sourceMappingURL=chunk-NMH42STK.js.map
|