@shopify/cli 3.67.2 → 3.68.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.
Files changed (85) hide show
  1. package/dist/{chunk-6PW7I4PG.js → chunk-4H7GRGC6.js} +3 -3
  2. package/dist/{chunk-DRZBXASC.js → chunk-5VZ6BLBM.js} +3 -3
  3. package/dist/{chunk-5RIQPY5J.js → chunk-6IS7OFWG.js} +5 -5
  4. package/dist/{chunk-3WDAYAS7.js → chunk-7PUJMPXN.js} +5528 -17168
  5. package/dist/{chunk-2Q4KXXH7.js → chunk-A3DV6VXO.js} +2 -2
  6. package/dist/{chunk-ZCKALXEF.js → chunk-C4FBYE7F.js} +4 -4
  7. package/dist/{chunk-FH3MZSH6.js → chunk-D72SCNZ2.js} +6 -2
  8. package/dist/chunk-DD5ULVKP.js +103 -0
  9. package/dist/{chunk-UU4VCC4D.js → chunk-DMM6NVLV.js} +4 -4
  10. package/dist/{chunk-7IU4SQFO.js → chunk-E2OAY724.js} +2 -2
  11. package/dist/{chunk-EFKO63JK.js → chunk-EUBA2XGP.js} +4 -4
  12. package/dist/{chunk-LC2LNJNM.js → chunk-FIAUTHMT.js} +2 -2
  13. package/dist/{chunk-STZTH6VQ.js → chunk-FKQTUQ3O.js} +4 -4
  14. package/dist/{chunk-FQIDK63N.js → chunk-G47SEBU3.js} +3 -3
  15. package/dist/{chunk-EJNO7GOB.js → chunk-GDKBDEZV.js} +3 -3
  16. package/dist/{chunk-R3LRKILP.js → chunk-HTDUPJH5.js} +3 -3
  17. package/dist/{chunk-ZBI666QU.js → chunk-IL455HI5.js} +3 -3
  18. package/dist/{chunk-TSBX37ED.js → chunk-INEJACZ7.js} +3 -3
  19. package/dist/{chunk-B2FBI5M7.js → chunk-JAH3NBCG.js} +4 -4
  20. package/dist/{chunk-J5YDWXWQ.js → chunk-JAQZDU4S.js} +2 -2
  21. package/dist/{chunk-NSWINIBD.js → chunk-JJOZP7G6.js} +3 -3
  22. package/dist/{chunk-VN52QBYW.js → chunk-JR6ZN4TY.js} +4 -4
  23. package/dist/{chunk-7BYOY5N5.js → chunk-MXZ6B3TP.js} +2 -2
  24. package/dist/{chunk-PMK54HHN.js → chunk-NCUKAORS.js} +6 -6
  25. package/dist/{chunk-BC6U7ADI.js → chunk-OBX5DIH4.js} +4 -4
  26. package/dist/{chunk-562KSNGI.js → chunk-QIBFYG6F.js} +3 -3
  27. package/dist/{chunk-V6H23CVU.js → chunk-RUR45G5U.js} +14 -2
  28. package/dist/{chunk-Z56WKKTE.js → chunk-UCYJX4VB.js} +2 -2
  29. package/dist/{chunk-WETDRCPJ.js → chunk-VVY6VJR6.js} +2 -2
  30. package/dist/{chunk-JOCNTZDE.js → chunk-WJBW5QHV.js} +2 -2
  31. package/dist/chunk-WUA6LTEH.js +15959 -0
  32. package/dist/{chunk-JAG2AX55.js → chunk-XCGES3AJ.js} +3 -3
  33. package/dist/{chunk-PAZH6CHQ.js → chunk-YKH4ILAB.js} +14 -12
  34. package/dist/{chunk-X2SV2NGT.js → chunk-ZJZ3SGOJ.js} +2 -2
  35. package/dist/cli/commands/auth/logout.js +11 -12
  36. package/dist/cli/commands/auth/logout.test.js +12 -13
  37. package/dist/cli/commands/debug/command-flags.js +10 -9
  38. package/dist/cli/commands/demo/catalog.js +11 -11
  39. package/dist/cli/commands/demo/generate-file.js +11 -11
  40. package/dist/cli/commands/demo/index.js +11 -11
  41. package/dist/cli/commands/demo/print-ai-prompt.js +11 -11
  42. package/dist/cli/commands/docs/generate.js +10 -9
  43. package/dist/cli/commands/docs/generate.test.js +10 -9
  44. package/dist/cli/commands/help.js +10 -9
  45. package/dist/cli/commands/kitchen-sink/async.js +11 -10
  46. package/dist/cli/commands/kitchen-sink/async.test.js +11 -10
  47. package/dist/cli/commands/kitchen-sink/index.js +13 -12
  48. package/dist/cli/commands/kitchen-sink/index.test.js +13 -12
  49. package/dist/cli/commands/kitchen-sink/prompts.js +11 -10
  50. package/dist/cli/commands/kitchen-sink/prompts.test.js +11 -10
  51. package/dist/cli/commands/kitchen-sink/static.js +11 -10
  52. package/dist/cli/commands/kitchen-sink/static.test.js +11 -10
  53. package/dist/cli/commands/search.js +11 -10
  54. package/dist/cli/commands/upgrade.js +11 -10
  55. package/dist/cli/commands/version.js +11 -10
  56. package/dist/cli/commands/version.test.js +11 -10
  57. package/dist/cli/services/commands/search.js +2 -2
  58. package/dist/cli/services/commands/search.test.js +2 -2
  59. package/dist/cli/services/commands/version.js +3 -3
  60. package/dist/cli/services/commands/version.test.js +4 -4
  61. package/dist/cli/services/demo.js +2 -2
  62. package/dist/cli/services/demo.test.js +3 -3
  63. package/dist/cli/services/kitchen-sink/async.js +2 -2
  64. package/dist/cli/services/kitchen-sink/prompts.js +2 -2
  65. package/dist/cli/services/kitchen-sink/static.js +2 -2
  66. package/dist/cli/services/upgrade.js +3 -3
  67. package/dist/cli/services/upgrade.test.js +5 -5
  68. package/dist/{custom-oclif-loader-YYAVL5FV.js → custom-oclif-loader-Y5TLP3GI.js} +2 -2
  69. package/dist/{error-handler-64WEMROQ.js → error-handler-EORUUIBK.js} +9 -8
  70. package/dist/hooks/postrun.js +9 -9
  71. package/dist/hooks/prerun.js +8 -6
  72. package/dist/index.d.ts +1 -0
  73. package/dist/index.js +512 -615
  74. package/dist/{local-XTOGAMBD.js → local-4NQ3UGM2.js} +4 -2
  75. package/dist/{node-7GXTBJVP.js → node-NWOSUD3V.js} +12 -13
  76. package/dist/{node-package-manager-OQGCO62Q.js → node-package-manager-D7JIOBLM.js} +5 -3
  77. package/dist/{system-OLJOMCQB.js → system-WDT2XUAD.js} +2 -2
  78. package/dist/tsconfig.tsbuildinfo +1 -1
  79. package/dist/{ui-XXPOXZHJ.js → ui-JUVEDXYN.js} +2 -2
  80. package/dist/{workerd-PZPTMVQ4.js → workerd-VWTWLJIV.js} +12 -13
  81. package/oclif.manifest.json +15 -52
  82. package/package.json +6 -6
  83. package/dist/chunk-3UX657AK.js +0 -4244
  84. package/dist/chunk-HH7KQOBX.js +0 -118
  85. package/dist/chunk-LCWH3FW5.js +0 -33
@@ -1,118 +0,0 @@
1
- import {
2
- platformAndArch
3
- } from "./chunk-J5YDWXWQ.js";
4
- import {
5
- getPackageManager,
6
- packageManagerFromUserAgent
7
- } from "./chunk-V6H23CVU.js";
8
- import {
9
- addPublicMetadata,
10
- addSensitiveMetadata,
11
- ciPlatform,
12
- cloudEnvironment,
13
- currentProcessIsGlobal,
14
- macAddress
15
- } from "./chunk-FH3MZSH6.js";
16
- import {
17
- cwd
18
- } from "./chunk-T2GATXSP.js";
19
- import {
20
- init_cjs_shims
21
- } from "./chunk-POZ5MGPT.js";
22
-
23
- // ../cli-kit/dist/private/node/analytics.js
24
- init_cjs_shims();
25
-
26
- // ../cli-kit/dist/public/node/crypto.js
27
- init_cjs_shims();
28
- import crypto from "crypto";
29
- function randomHex(size) {
30
- return crypto.randomBytes(size).toString("hex");
31
- }
32
- function base64URLEncode(str) {
33
- return str.toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/[=]/g, "");
34
- }
35
- function sha256(str) {
36
- return crypto.createHash("sha256").update(str).digest();
37
- }
38
- function hashString(str) {
39
- return crypto.createHash("sha1").update(str).digest("hex");
40
- }
41
- function fileHash(buff) {
42
- return crypto.createHash("md5").update(buff).digest("hex");
43
- }
44
- function randomBytes(size) {
45
- return crypto.randomBytes(size);
46
- }
47
- function randomUUID() {
48
- return crypto.randomUUID();
49
- }
50
- function nonRandomUUID(subject) {
51
- let namespace = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
52
- return crypto.createHash("sha1").update(Buffer.from(namespace.replace(/-/g, ""), "hex")).update(subject).digest().toString("hex").replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
53
- }
54
-
55
- // ../cli-kit/dist/private/node/analytics.js
56
- async function startAnalytics({ commandContent, args, currentTime = (/* @__PURE__ */ new Date()).getTime(), commandClass }) {
57
- let startCommand = commandContent.command;
58
- commandClass && Object.prototype.hasOwnProperty.call(commandClass, "analyticsNameOverride") && (startCommand = commandClass.analyticsNameOverride() ?? commandContent.command);
59
- let pluginName = commandClass?.plugin?.name;
60
- commandClass && "customPluginName" in commandClass && (pluginName = commandClass.customPluginName), await addSensitiveMetadata(() => ({
61
- commandStartOptions: {
62
- startTime: currentTime,
63
- startCommand,
64
- startArgs: args
65
- }
66
- })), await addPublicMetadata(() => ({
67
- cmd_all_launcher: packageManagerFromUserAgent(),
68
- cmd_all_alias_used: commandContent.alias,
69
- cmd_all_topic: commandContent.topic,
70
- cmd_all_plugin: pluginName,
71
- cmd_all_force: flagIncluded("force", commandClass) ? args.includes("--force") : void 0
72
- }));
73
- }
74
- async function getEnvironmentData(config) {
75
- let ciplatform = ciPlatform(), pluginNames = getPluginNames(config), shopifyPlugins = pluginNames.filter((plugin) => plugin.startsWith("@shopify/")), { platform, arch } = platformAndArch();
76
- return {
77
- uname: `${platform} ${arch}`,
78
- env_ci: ciplatform.isCI,
79
- env_ci_platform: ciplatform.name,
80
- env_plugin_installed_any_custom: pluginNames.length !== shopifyPlugins.length,
81
- env_plugin_installed_shopify: JSON.stringify(shopifyPlugins),
82
- env_shell: config.shell,
83
- env_web_ide: cloudEnvironment().editor ? cloudEnvironment().platform : void 0,
84
- env_device_id: hashString(await macAddress()),
85
- env_cloud: cloudEnvironment().platform,
86
- env_package_manager: await getPackageManager(cwd()),
87
- env_is_global: currentProcessIsGlobal()
88
- };
89
- }
90
- async function getSensitiveEnvironmentData(config) {
91
- return {
92
- env_plugin_installed_all: JSON.stringify(getPluginNames(config))
93
- };
94
- }
95
- function getPluginNames(config) {
96
- return [...config.plugins.keys()].sort().filter((plugin) => !plugin.startsWith("@oclif/"));
97
- }
98
- function flagIncluded(flag, commandClass) {
99
- if (!commandClass)
100
- return !1;
101
- let commandFlags = commandClass.flags ?? {};
102
- return Object.keys(commandFlags).includes(flag);
103
- }
104
-
105
- export {
106
- randomHex,
107
- base64URLEncode,
108
- sha256,
109
- hashString,
110
- fileHash,
111
- randomBytes,
112
- randomUUID,
113
- nonRandomUUID,
114
- startAnalytics,
115
- getEnvironmentData,
116
- getSensitiveEnvironmentData
117
- };
118
- //# sourceMappingURL=chunk-HH7KQOBX.js.map
@@ -1,33 +0,0 @@
1
- import {
2
- init_cjs_shims
3
- } from "./chunk-POZ5MGPT.js";
4
-
5
- // ../cli-kit/dist/private/node/context/deprecations-store.js
6
- init_cjs_shims();
7
- var globalWithDeprecationsStore = {
8
- ...globalThis,
9
- deprecationsStore: {
10
- nextDeprecationDate: void 0
11
- }
12
- };
13
- function getNextDeprecationDate() {
14
- return globalWithDeprecationsStore.deprecationsStore.nextDeprecationDate;
15
- }
16
- function setNextDeprecationDate(dates) {
17
- if (dates.length < 1)
18
- return;
19
- let earliestFutureDateTime = earliestDateTimeAfter(Date.now(), dates);
20
- if (!earliestFutureDateTime)
21
- return;
22
- let nextDeprecationDate = getNextDeprecationDate();
23
- (!nextDeprecationDate || earliestFutureDateTime < nextDeprecationDate.getTime()) && (globalWithDeprecationsStore.deprecationsStore.nextDeprecationDate = new Date(earliestFutureDateTime));
24
- }
25
- function earliestDateTimeAfter(afterTime, dates) {
26
- return dates.map((date) => date.getTime()).sort().find((time) => time > afterTime);
27
- }
28
-
29
- export {
30
- getNextDeprecationDate,
31
- setNextDeprecationDate
32
- };
33
- //# sourceMappingURL=chunk-LCWH3FW5.js.map