@shopify/cli 3.86.0 → 3.87.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/README.md +2 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/index-0hw3R_TS.css +1 -0
- package/dist/assets/dev-console/index.html +2 -2
- package/dist/{chunk-NMH42STK.js → chunk-43MAAODZ.js} +29 -17
- package/dist/{chunk-O32LAXNO.js → chunk-4RMT22ZG.js} +116 -97
- package/dist/{chunk-UAYSVXRU.js → chunk-4X3OSIUW.js} +19 -7
- package/dist/{chunk-WZTQS5NN.js → chunk-6CKI4ZVA.js} +8 -8
- package/dist/{chunk-J5WELXX6.js → chunk-77FBLQSY.js} +3 -3
- package/dist/{chunk-7VKRIIXT.js → chunk-DX2IC6MA.js} +25 -8
- package/dist/chunk-EZQWZ57B.js +53 -0
- package/dist/{chunk-NIZJP24I.js → chunk-FBDL6M34.js} +4 -4
- package/dist/{chunk-TCTK5NQE.js → chunk-GK3L6WCO.js} +8 -8
- package/dist/{chunk-4MSYMXAX.js → chunk-GPKHDSF5.js} +2 -2
- package/dist/{chunk-5RBPM5MR.js → chunk-GV3VXLHN.js} +7 -7
- package/dist/{chunk-6UMZO4DD.js → chunk-H3HXI5FI.js} +5 -5
- package/dist/{chunk-LPSHXR57.js → chunk-H5JSK6HV.js} +2 -2
- package/dist/{chunk-AM4QB5OM.js → chunk-HMDWNGIV.js} +100 -206
- package/dist/{chunk-4YT3BY2B.js → chunk-HMJUSDS7.js} +2 -2
- package/dist/{chunk-LOWKEYZ4.js → chunk-ILCR5V7H.js} +2 -2
- package/dist/{chunk-GAPPN3SH.js → chunk-JJ3N36EZ.js} +3 -3
- package/dist/{chunk-6FH6AJI5.js → chunk-KUJQ4AB6.js} +103 -2
- package/dist/{chunk-ZRLTG3SU.js → chunk-KW37WO42.js} +4 -4
- package/dist/{chunk-7TE554OT.js → chunk-LMVYXPIS.js} +22 -9
- package/dist/{chunk-IZMUO44N.js → chunk-LVH6EINO.js} +5 -5
- package/dist/{chunk-G3RY2PNL.js → chunk-LWFYEQVC.js} +4 -4
- package/dist/{chunk-KIMPXWRC.js → chunk-MJ2CC5UF.js} +4 -4
- package/dist/{chunk-LDJGMHXE.js → chunk-NKJY5K45.js} +4 -4
- package/dist/{chunk-DKRTUP7T.js → chunk-PE3YDRXC.js} +2 -2
- package/dist/{chunk-PFWYGIIB.js → chunk-PU7263L3.js} +4 -4
- package/dist/{chunk-E25JAFOX.js → chunk-PW5V2LBK.js} +3 -3
- package/dist/{chunk-JMQJQNH7.js → chunk-QIIIG73M.js} +60 -186
- package/dist/{chunk-LDFPMZVN.js → chunk-R7GPNRH3.js} +2 -2
- package/dist/{chunk-4TSN5PHA.js → chunk-TVAQLJIT.js} +3 -3
- package/dist/{chunk-AA57B6YW.js → chunk-TY4JIQTU.js} +3 -3
- package/dist/{chunk-2KZOUSPH.js → chunk-U4EHUN6F.js} +5 -5
- package/dist/{chunk-AQK2VHTY.js → chunk-U6SKVYZN.js} +3 -3
- package/dist/{chunk-UKECTTQZ.js → chunk-UQLUAYP7.js} +2 -2
- package/dist/{chunk-ZZGMPT2W.js → chunk-VDMWZFUE.js} +3 -3
- package/dist/{chunk-X2YIODUW.js → chunk-VLBE545G.js} +15 -1237
- package/dist/{chunk-5Q7CDSRK.js → chunk-VQVENW26.js} +6 -6
- package/dist/{chunk-GU76E24D.js → chunk-VRRM2VMH.js} +6 -6
- package/dist/{chunk-F2V6FX7R.js → chunk-WM77PTR2.js} +4 -4
- package/dist/chunk-XB6A45UN.js +80 -0
- package/dist/{chunk-EG6MBBEN.js → chunk-Y2JP6WFP.js} +2 -2
- package/dist/{chunk-UXJEPFC3.js → chunk-ZWG6Y7VK.js} +3 -3
- package/dist/cli/commands/auth/login.js +16 -13
- package/dist/cli/commands/auth/login.test.js +18 -15
- package/dist/cli/commands/auth/logout.js +16 -13
- package/dist/cli/commands/auth/logout.test.js +18 -15
- package/dist/cli/commands/cache/clear.js +16 -13
- package/dist/cli/commands/debug/command-flags.js +16 -13
- package/dist/cli/commands/docs/generate.js +16 -13
- package/dist/cli/commands/docs/generate.test.js +17 -14
- package/dist/cli/commands/help.js +16 -13
- package/dist/cli/commands/kitchen-sink/async.js +17 -14
- package/dist/cli/commands/kitchen-sink/async.test.js +18 -15
- package/dist/cli/commands/kitchen-sink/index.js +19 -16
- package/dist/cli/commands/kitchen-sink/index.test.js +20 -17
- package/dist/cli/commands/kitchen-sink/prompts.js +17 -14
- package/dist/cli/commands/kitchen-sink/prompts.test.js +18 -15
- package/dist/cli/commands/kitchen-sink/static.js +17 -14
- package/dist/cli/commands/kitchen-sink/static.test.js +18 -15
- package/dist/cli/commands/notifications/generate.js +17 -14
- package/dist/cli/commands/notifications/list.js +17 -14
- package/dist/cli/commands/search.js +17 -14
- package/dist/cli/commands/upgrade.js +17 -14
- package/dist/cli/commands/upgrade.test.js +1 -1
- package/dist/cli/commands/version.js +17 -14
- package/dist/cli/commands/version.test.js +18 -15
- package/dist/cli/services/commands/notifications.js +12 -9
- package/dist/cli/services/commands/search.js +8 -5
- package/dist/cli/services/commands/search.test.js +9 -6
- package/dist/cli/services/commands/version.js +9 -6
- package/dist/cli/services/commands/version.test.js +11 -8
- package/dist/cli/services/kitchen-sink/async.js +8 -5
- package/dist/cli/services/kitchen-sink/prompts.js +8 -5
- package/dist/cli/services/kitchen-sink/static.js +8 -5
- package/dist/cli/services/upgrade.js +9 -6
- package/dist/cli/services/upgrade.test.js +11 -8
- package/dist/{custom-oclif-loader-Y4GWKKAU.js → custom-oclif-loader-QBK7WNIL.js} +18 -11
- package/dist/{del-DIPVIUR3.js → del-E4LJOSMR.js} +6 -6
- package/dist/{error-handler-WPYX52XY.js → error-handler-YWRJD3ZX.js} +14 -11
- package/dist/hooks/postrun.js +14 -72
- package/dist/hooks/prerun.js +13 -10
- package/dist/{http-proxy-node16-K5X7BUK5.js → http-proxy-node16-VGGP6PLA.js} +5 -5
- package/dist/index.js +2882 -1679
- package/dist/{lib-EMZRCLCJ.js → lib-G7Q5M6VX.js} +4 -3
- package/dist/{local-ZMOSXANE.js → local-DU2CZ6Z3.js} +8 -5
- package/dist/{magic-string.es-UZAAPNRE.js → magic-string.es-S5HKFBJX.js} +5 -6
- package/dist/{morph-EGK76SED.js → morph-37GC7LQM.js} +16 -20
- package/dist/{node-package-manager-4KOKGFQG.js → node-package-manager-W22PEMMM.js} +9 -6
- package/dist/{npa-LHT53SWR.js → npa-E675GQOI.js} +5 -3
- package/dist/{path-GB4VIEM6.js → path-COZT77T2.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-YYVT2VLD.js → ui-GTBNK773.js} +8 -5
- package/dist/{workerd-35SAC4OI.js → workerd-CT4T6SDW.js} +18 -17
- package/oclif.manifest.json +95 -127
- package/package.json +8 -8
- package/dist/assets/dev-console/extensions/dev-console/assets/index-BteeGmYf.css +0 -1
- package/dist/chunk-IWFYXDPH.js +0 -109
- /package/dist/assets/dev-console/extensions/dev-console/assets/{index-Cj8WCHlM.js → index-C12jKScn.js} +0 -0
package/dist/hooks/postrun.js
CHANGED
|
@@ -1,89 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import "../chunk-7TE554OT.js";
|
|
2
|
+
hook
|
|
3
|
+
} from "../chunk-XB6A45UN.js";
|
|
4
|
+
import "../chunk-GV3VXLHN.js";
|
|
5
|
+
import "../chunk-43MAAODZ.js";
|
|
6
|
+
import "../chunk-LMVYXPIS.js";
|
|
8
7
|
import "../chunk-XD3LXUGW.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
getAllSensitiveMetadata,
|
|
14
|
-
outputDebug,
|
|
15
|
-
renderWarning
|
|
16
|
-
} from "../chunk-JMQJQNH7.js";
|
|
17
|
-
import "../chunk-X2YIODUW.js";
|
|
8
|
+
import "../chunk-4X3OSIUW.js";
|
|
9
|
+
import "../chunk-R7GPNRH3.js";
|
|
10
|
+
import "../chunk-QIIIG73M.js";
|
|
11
|
+
import "../chunk-VLBE545G.js";
|
|
18
12
|
import "../chunk-UMUTXITN.js";
|
|
19
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-HMDWNGIV.js";
|
|
14
|
+
import "../chunk-KUJQ4AB6.js";
|
|
20
15
|
import "../chunk-Q2H6D2MH.js";
|
|
21
16
|
import "../chunk-G2ZZKGSV.js";
|
|
22
17
|
import "../chunk-6ONJEX7Y.js";
|
|
23
18
|
import "../chunk-UV5N2VL7.js";
|
|
24
19
|
import "../chunk-XE5EOEBL.js";
|
|
25
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-CTFDRWUN.js";
|
|
21
|
+
import "../chunk-7IK72W75.js";
|
|
22
|
+
import "../chunk-Y2JP6WFP.js";
|
|
26
23
|
import {
|
|
27
24
|
init_cjs_shims
|
|
28
25
|
} from "../chunk-PKR7KJ6P.js";
|
|
29
26
|
|
|
30
27
|
// src/hooks/postrun.ts
|
|
31
28
|
init_cjs_shims();
|
|
32
|
-
|
|
33
|
-
// ../cli-kit/dist/public/node/hooks/postrun.js
|
|
34
|
-
init_cjs_shims();
|
|
35
|
-
|
|
36
|
-
// ../cli-kit/dist/public/node/hooks/deprecations.js
|
|
37
|
-
init_cjs_shims();
|
|
38
|
-
var postrun = (Command) => {
|
|
39
|
-
let nextDeprecationDate = getNextDeprecationDate();
|
|
40
|
-
if (nextDeprecationDate) {
|
|
41
|
-
let forThemes = Command.id.includes("theme");
|
|
42
|
-
renderUpgradeWarning(nextDeprecationDate, forThemes);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
function renderUpgradeWarning(upgradeByDate, forThemes) {
|
|
46
|
-
let headline = `Upgrade to the latest CLI version by ${new Intl.DateTimeFormat("default", {
|
|
47
|
-
year: "numeric",
|
|
48
|
-
month: "long",
|
|
49
|
-
day: "numeric"
|
|
50
|
-
}).format(upgradeByDate)}.`;
|
|
51
|
-
renderWarning({
|
|
52
|
-
headline,
|
|
53
|
-
body: "This command requires an upgrade to continue working as intended.",
|
|
54
|
-
nextSteps: [["Run", { command: "upgrade" }, "to", {
|
|
55
|
-
link: {
|
|
56
|
-
label: "upgrade Shopify CLI",
|
|
57
|
-
url: forThemes ? "https://shopify.dev/docs/themes/tools/cli#upgrade-shopify-cli" : "https://shopify.dev/docs/apps/tools/cli#upgrade-shopify-cli"
|
|
58
|
-
}
|
|
59
|
-
}]]
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// ../cli-kit/dist/public/node/hooks/postrun.js
|
|
64
|
-
var hook = async ({ config, Command }) => {
|
|
65
|
-
await detectStopCommand(Command), await reportAnalyticsEvent({ config, exitMode: "ok" }), postrun(Command);
|
|
66
|
-
let command = Command.id.replace(/:/g, " ");
|
|
67
|
-
outputDebug(`Completed command ${command}`);
|
|
68
|
-
};
|
|
69
|
-
async function detectStopCommand(commandClass) {
|
|
70
|
-
let currentTime = (/* @__PURE__ */ new Date()).getTime();
|
|
71
|
-
if (commandClass && Object.prototype.hasOwnProperty.call(commandClass, "analyticsStopCommand")) {
|
|
72
|
-
let stopCommand = commandClass.analyticsStopCommand();
|
|
73
|
-
if (stopCommand) {
|
|
74
|
-
let { commandStartOptions } = getAllSensitiveMetadata();
|
|
75
|
-
if (!commandStartOptions)
|
|
76
|
-
return;
|
|
77
|
-
await addSensitiveMetadata(() => ({
|
|
78
|
-
commandStartOptions: {
|
|
79
|
-
...commandStartOptions,
|
|
80
|
-
startTime: currentTime,
|
|
81
|
-
startCommand: stopCommand
|
|
82
|
-
}
|
|
83
|
-
}));
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
29
|
export {
|
|
88
30
|
hook as default
|
|
89
31
|
};
|
package/dist/hooks/prerun.js
CHANGED
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getOutputUpdateCLIReminder
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-VDMWZFUE.js";
|
|
4
4
|
import {
|
|
5
5
|
startAnalytics
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-43MAAODZ.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchNotificationsInBackground
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-VRRM2VMH.js";
|
|
10
|
+
import "../chunk-LMVYXPIS.js";
|
|
11
11
|
import "../chunk-XD3LXUGW.js";
|
|
12
12
|
import {
|
|
13
13
|
checkForCachedNewVersion,
|
|
14
14
|
checkForNewVersion,
|
|
15
15
|
runAtMinimumInterval
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-4X3OSIUW.js";
|
|
17
17
|
import {
|
|
18
18
|
CLI_KIT_VERSION
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-R7GPNRH3.js";
|
|
20
20
|
import {
|
|
21
21
|
isPreReleaseVersion,
|
|
22
22
|
outputDebug,
|
|
23
23
|
outputWarn
|
|
24
|
-
} from "../chunk-
|
|
25
|
-
import "../chunk-
|
|
24
|
+
} from "../chunk-QIIIG73M.js";
|
|
25
|
+
import "../chunk-VLBE545G.js";
|
|
26
26
|
import "../chunk-UMUTXITN.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-HMDWNGIV.js";
|
|
28
|
+
import "../chunk-KUJQ4AB6.js";
|
|
28
29
|
import "../chunk-Q2H6D2MH.js";
|
|
29
30
|
import "../chunk-G2ZZKGSV.js";
|
|
30
31
|
import "../chunk-6ONJEX7Y.js";
|
|
31
32
|
import "../chunk-UV5N2VL7.js";
|
|
32
33
|
import "../chunk-XE5EOEBL.js";
|
|
33
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-CTFDRWUN.js";
|
|
35
|
+
import "../chunk-7IK72W75.js";
|
|
36
|
+
import "../chunk-Y2JP6WFP.js";
|
|
34
37
|
import {
|
|
35
38
|
init_cjs_shims
|
|
36
39
|
} from "../chunk-PKR7KJ6P.js";
|
|
@@ -301,9 +301,9 @@ var require_web_outgoing = __commonJS({
|
|
|
301
301
|
}
|
|
302
302
|
});
|
|
303
303
|
|
|
304
|
-
// ../../node_modules/.pnpm/follow-redirects@1.15.
|
|
304
|
+
// ../../node_modules/.pnpm/follow-redirects@1.15.11/node_modules/follow-redirects/debug.js
|
|
305
305
|
var require_debug = __commonJS({
|
|
306
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.
|
|
306
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.11/node_modules/follow-redirects/debug.js"(exports, module) {
|
|
307
307
|
init_cjs_shims();
|
|
308
308
|
var debug;
|
|
309
309
|
module.exports = function() {
|
|
@@ -320,9 +320,9 @@ var require_debug = __commonJS({
|
|
|
320
320
|
}
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
// ../../node_modules/.pnpm/follow-redirects@1.15.
|
|
323
|
+
// ../../node_modules/.pnpm/follow-redirects@1.15.11/node_modules/follow-redirects/index.js
|
|
324
324
|
var require_follow_redirects = __commonJS({
|
|
325
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.
|
|
325
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.11/node_modules/follow-redirects/index.js"(exports, module) {
|
|
326
326
|
init_cjs_shims();
|
|
327
327
|
var url = __require("url"), URL = url.URL, http = __require("http"), https = __require("https"), Writable = __require("stream").Writable, assert = __require("assert"), debug = require_debug();
|
|
328
328
|
(function() {
|
|
@@ -946,4 +946,4 @@ http-proxy-node16/index.js:
|
|
|
946
946
|
* Dante - The Divine Comedy (Canto III)
|
|
947
947
|
*)
|
|
948
948
|
*/
|
|
949
|
-
//# sourceMappingURL=http-proxy-node16-
|
|
949
|
+
//# sourceMappingURL=http-proxy-node16-VGGP6PLA.js.map
|