@shopify/create-app 3.94.2 → 4.0.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/analytics-XLT3JDGP.js +33 -0
- package/dist/analytics-XUVDQAYG.js +39 -0
- package/dist/chunk-37G3KLO2.js +78 -0
- package/dist/chunk-4CS37CS5.js +665 -0
- package/dist/chunk-6OOTYTVB.js +1133 -0
- package/dist/{chunk-NIYBO6HO.js → chunk-ACS6S42W.js} +3 -3
- package/dist/chunk-ANIFE3UR.js +12 -0
- package/dist/{chunk-2ZQ4JUYQ.js → chunk-DHAC6KEL.js} +47 -12
- package/dist/chunk-DJW2W7VA.js +21 -0
- package/dist/chunk-DNF3EUMN.js +1771 -0
- package/dist/{chunk-LI75HRH4.js → chunk-DWGHKWV5.js} +1 -1
- package/dist/chunk-IGDZPTDH.js +371 -0
- package/dist/chunk-JCETIRLI.js +30 -0
- package/dist/chunk-JUV7D377.js +264 -0
- package/dist/{chunk-QCVAV5PM.js → chunk-LNOZTAML.js} +3618 -10143
- package/dist/{chunk-IFG7N3S2.js → chunk-OO33NRTL.js} +8 -12671
- package/dist/chunk-PES3XMQM.js +70 -0
- package/dist/chunk-QMXFPY46.js +55 -0
- package/dist/chunk-QN5KFM2B.js +104 -0
- package/dist/{chunk-XDAJMLCV.js → chunk-STHW3YIX.js} +43773 -43784
- package/dist/chunk-UMSYG5WJ.js +110 -0
- package/dist/chunk-UX6FRPFM.js +11555 -0
- package/dist/{chunk-CXPWSYGC.js → chunk-X2WZCKNE.js} +4 -14
- package/dist/chunk-YIHECXVH.js +5652 -0
- package/dist/chunk-YUPQUA3D.js +6106 -0
- package/dist/conf-store-RAVX2WFV.js +54 -0
- package/dist/custom-oclif-loader-354VAVF4.js +54 -0
- package/dist/deprecations-2QTB3736.js +55 -0
- package/dist/environments-LTWWRWCC.js +26 -0
- package/dist/error-handler-KHJE653Z.js +37 -0
- package/dist/fs-XENRLBMU.js +109 -0
- package/dist/hooks/postrun.js +6 -9
- package/dist/hooks/prerun.js +12 -25
- package/dist/{http-proxy-node16-U5VBDLS3.js → http-proxy-node16-XB2DSBCB.js} +3 -2
- package/dist/index.js +8987 -10518
- package/dist/is-global-KZMSAFQT.js +21 -0
- package/dist/latest-version-3PFKLJZM.js +7713 -0
- package/dist/lib-HWIFANCM.js +11 -0
- package/dist/{local-HD6YAL26.js → local-NQALOHJX.js} +3 -8
- package/dist/metadata-FXCUDE5I.js +20 -0
- package/dist/{node-package-manager-FD3ZCHSY.js → node-package-manager-7R7HDW4R.js} +17 -7
- package/dist/notifications-system-7QMDSL5Y.js +40 -0
- package/dist/output-PQSQ7U45.js +51 -0
- package/dist/{path-NQ6GZ2WO.js → path-EOPO7QNL.js} +2 -2
- package/dist/{prettier-67WYXU6J.js → prettier-UAG5TKE4.js} +2 -2
- package/dist/system-W4MMMHEV.js +47 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typescript-TKTDYKKG.js +6 -0
- package/dist/{ui-TJ7NU25P.js → ui-2FROV2IT.js} +15 -6
- package/dist/{chunk-Q2E5NGP3.js → upgrade-FAUZ7VAF.js} +77 -125
- package/dist/version-HKPHVW5M.js +30 -0
- package/dist/version-T73ZLUJK.js +8 -0
- package/oclif.manifest.json +63 -66
- package/package.json +5 -5
- package/dist/chunk-27ZXSSGX.js +0 -14117
- package/dist/error-handler-ZQMQHJ3W.js +0 -25
- package/dist/lib-PPI2FZOR.js +0 -8
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cacheClear,
|
|
3
|
+
cacheRetrieve,
|
|
4
|
+
cacheRetrieveOrRepopulate,
|
|
5
|
+
cacheStore,
|
|
6
|
+
getAutoUpgradeEnabled,
|
|
7
|
+
getCachedPartnerAccountStatus,
|
|
8
|
+
getConfigStoreForPartnerStatus,
|
|
9
|
+
getCurrentSessionId,
|
|
10
|
+
getSessions,
|
|
11
|
+
removeCurrentSessionId,
|
|
12
|
+
removeSessions,
|
|
13
|
+
runAtMinimumInterval,
|
|
14
|
+
runWithRateLimit,
|
|
15
|
+
setAutoUpgradeEnabled,
|
|
16
|
+
setCachedPartnerAccountStatus,
|
|
17
|
+
setCurrentSessionId,
|
|
18
|
+
setSessions,
|
|
19
|
+
timeIntervalToMilliseconds
|
|
20
|
+
} from "./chunk-YUPQUA3D.js";
|
|
21
|
+
import "./chunk-JUV7D377.js";
|
|
22
|
+
import "./chunk-UX6FRPFM.js";
|
|
23
|
+
import "./chunk-X2WZCKNE.js";
|
|
24
|
+
import "./chunk-G2ZZKGSV.js";
|
|
25
|
+
import "./chunk-OO33NRTL.js";
|
|
26
|
+
import "./chunk-6OOTYTVB.js";
|
|
27
|
+
import "./chunk-LNOZTAML.js";
|
|
28
|
+
import "./chunk-4CS37CS5.js";
|
|
29
|
+
import "./chunk-DJW2W7VA.js";
|
|
30
|
+
import "./chunk-ACS6S42W.js";
|
|
31
|
+
import "./chunk-AROS7RI6.js";
|
|
32
|
+
import "./chunk-7IK72W75.js";
|
|
33
|
+
import "./chunk-PKR7KJ6P.js";
|
|
34
|
+
export {
|
|
35
|
+
cacheClear,
|
|
36
|
+
cacheRetrieve,
|
|
37
|
+
cacheRetrieveOrRepopulate,
|
|
38
|
+
cacheStore,
|
|
39
|
+
getAutoUpgradeEnabled,
|
|
40
|
+
getCachedPartnerAccountStatus,
|
|
41
|
+
getConfigStoreForPartnerStatus,
|
|
42
|
+
getCurrentSessionId,
|
|
43
|
+
getSessions,
|
|
44
|
+
removeCurrentSessionId,
|
|
45
|
+
removeSessions,
|
|
46
|
+
runAtMinimumInterval,
|
|
47
|
+
runWithRateLimit,
|
|
48
|
+
setAutoUpgradeEnabled,
|
|
49
|
+
setCachedPartnerAccountStatus,
|
|
50
|
+
setCurrentSessionId,
|
|
51
|
+
setSessions,
|
|
52
|
+
timeIntervalToMilliseconds
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=conf-store-RAVX2WFV.js.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_lib
|
|
3
|
+
} from "./chunk-UX6FRPFM.js";
|
|
4
|
+
import "./chunk-X2WZCKNE.js";
|
|
5
|
+
import "./chunk-G2ZZKGSV.js";
|
|
6
|
+
import "./chunk-OO33NRTL.js";
|
|
7
|
+
import "./chunk-6OOTYTVB.js";
|
|
8
|
+
import "./chunk-DJW2W7VA.js";
|
|
9
|
+
import {
|
|
10
|
+
__toESM,
|
|
11
|
+
init_cjs_shims
|
|
12
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
13
|
+
|
|
14
|
+
// ../cli-kit/dist/public/node/custom-oclif-loader.js
|
|
15
|
+
init_cjs_shims();
|
|
16
|
+
var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends import_core.Config {
|
|
17
|
+
/**
|
|
18
|
+
* Set a lazy command loader that will be used to load individual command classes on demand,
|
|
19
|
+
* bypassing the default oclif behavior of importing the entire COMMANDS module.
|
|
20
|
+
*
|
|
21
|
+
* @param loader - The lazy command loader function.
|
|
22
|
+
*/
|
|
23
|
+
setLazyCommandLoader(loader) {
|
|
24
|
+
this.lazyCommandLoader = loader;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Override runCommand to use lazy loading when available.
|
|
28
|
+
* Instead of calling cmd.load() which triggers loading ALL commands via index.js,
|
|
29
|
+
* we directly import only the needed command module.
|
|
30
|
+
*
|
|
31
|
+
* @param id - The command ID to run.
|
|
32
|
+
* @param argv - The arguments to pass to the command.
|
|
33
|
+
* @param cachedCommand - An optional cached command loadable.
|
|
34
|
+
* @returns The command result.
|
|
35
|
+
*/
|
|
36
|
+
async runCommand(id, argv = [], cachedCommand = null) {
|
|
37
|
+
if (this.lazyCommandLoader) {
|
|
38
|
+
let cmd = cachedCommand ?? this.findCommand(id);
|
|
39
|
+
if (cmd) {
|
|
40
|
+
let commandClass = await this.lazyCommandLoader(id);
|
|
41
|
+
if (commandClass) {
|
|
42
|
+
commandClass.id = id, commandClass.plugin = cmd.plugin ?? this.rootPlugin, await this.runHook("prerun", { argv, Command: commandClass });
|
|
43
|
+
let result = await commandClass.run(argv, this);
|
|
44
|
+
return await this.runHook("postrun", { argv, Command: commandClass, result }), result;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return super.runCommand(id, argv, cachedCommand);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
ShopifyConfig
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=custom-oclif-loader-354VAVF4.js.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getNextDeprecationDate
|
|
3
|
+
} from "./chunk-JCETIRLI.js";
|
|
4
|
+
import {
|
|
5
|
+
renderWarning
|
|
6
|
+
} from "./chunk-YIHECXVH.js";
|
|
7
|
+
import "./chunk-37G3KLO2.js";
|
|
8
|
+
import "./chunk-JUV7D377.js";
|
|
9
|
+
import "./chunk-UX6FRPFM.js";
|
|
10
|
+
import "./chunk-X2WZCKNE.js";
|
|
11
|
+
import "./chunk-G2ZZKGSV.js";
|
|
12
|
+
import "./chunk-OO33NRTL.js";
|
|
13
|
+
import "./chunk-PES3XMQM.js";
|
|
14
|
+
import "./chunk-6OOTYTVB.js";
|
|
15
|
+
import "./chunk-QN5KFM2B.js";
|
|
16
|
+
import "./chunk-LNOZTAML.js";
|
|
17
|
+
import "./chunk-4CS37CS5.js";
|
|
18
|
+
import "./chunk-DJW2W7VA.js";
|
|
19
|
+
import "./chunk-ACS6S42W.js";
|
|
20
|
+
import "./chunk-AROS7RI6.js";
|
|
21
|
+
import "./chunk-7IK72W75.js";
|
|
22
|
+
import {
|
|
23
|
+
init_cjs_shims
|
|
24
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
25
|
+
|
|
26
|
+
// ../cli-kit/dist/public/node/hooks/deprecations.js
|
|
27
|
+
init_cjs_shims();
|
|
28
|
+
var postrun = (Command) => {
|
|
29
|
+
let nextDeprecationDate = getNextDeprecationDate();
|
|
30
|
+
if (nextDeprecationDate) {
|
|
31
|
+
let forThemes = Command.id.includes("theme");
|
|
32
|
+
renderUpgradeWarning(nextDeprecationDate, forThemes);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
function renderUpgradeWarning(upgradeByDate, forThemes) {
|
|
36
|
+
let headline = `Upgrade to the latest CLI version by ${new Intl.DateTimeFormat("default", {
|
|
37
|
+
year: "numeric",
|
|
38
|
+
month: "long",
|
|
39
|
+
day: "numeric"
|
|
40
|
+
}).format(upgradeByDate)}.`;
|
|
41
|
+
renderWarning({
|
|
42
|
+
headline,
|
|
43
|
+
body: "This command requires an upgrade to continue working as intended.",
|
|
44
|
+
nextSteps: [["Run", { command: "upgrade" }, "to", {
|
|
45
|
+
link: {
|
|
46
|
+
label: "upgrade Shopify CLI",
|
|
47
|
+
url: forThemes ? "https://shopify.dev/docs/themes/tools/cli#upgrade-shopify-cli" : "https://shopify.dev/docs/apps/tools/cli#upgrade-shopify-cli"
|
|
48
|
+
}
|
|
49
|
+
}]]
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
postrun
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=deprecations-2QTB3736.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
environmentFilePath,
|
|
3
|
+
loadEnvironment
|
|
4
|
+
} from "./chunk-DNF3EUMN.js";
|
|
5
|
+
import "./chunk-YIHECXVH.js";
|
|
6
|
+
import "./chunk-37G3KLO2.js";
|
|
7
|
+
import "./chunk-JUV7D377.js";
|
|
8
|
+
import "./chunk-UX6FRPFM.js";
|
|
9
|
+
import "./chunk-X2WZCKNE.js";
|
|
10
|
+
import "./chunk-G2ZZKGSV.js";
|
|
11
|
+
import "./chunk-OO33NRTL.js";
|
|
12
|
+
import "./chunk-PES3XMQM.js";
|
|
13
|
+
import "./chunk-6OOTYTVB.js";
|
|
14
|
+
import "./chunk-QN5KFM2B.js";
|
|
15
|
+
import "./chunk-LNOZTAML.js";
|
|
16
|
+
import "./chunk-4CS37CS5.js";
|
|
17
|
+
import "./chunk-DJW2W7VA.js";
|
|
18
|
+
import "./chunk-ACS6S42W.js";
|
|
19
|
+
import "./chunk-AROS7RI6.js";
|
|
20
|
+
import "./chunk-7IK72W75.js";
|
|
21
|
+
import "./chunk-PKR7KJ6P.js";
|
|
22
|
+
export {
|
|
23
|
+
environmentFilePath,
|
|
24
|
+
loadEnvironment
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=environments-LTWWRWCC.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
addBugsnagMetadata,
|
|
3
|
+
cleanStackFrameFilePath,
|
|
4
|
+
errorHandler,
|
|
5
|
+
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
6
|
+
sendErrorToBugsnag
|
|
7
|
+
} from "./chunk-STHW3YIX.js";
|
|
8
|
+
import "./chunk-JCETIRLI.js";
|
|
9
|
+
import "./chunk-IGDZPTDH.js";
|
|
10
|
+
import "./chunk-ANIFE3UR.js";
|
|
11
|
+
import "./chunk-VBBBCVMH.js";
|
|
12
|
+
import "./chunk-YUPQUA3D.js";
|
|
13
|
+
import "./chunk-YIHECXVH.js";
|
|
14
|
+
import "./chunk-37G3KLO2.js";
|
|
15
|
+
import "./chunk-JUV7D377.js";
|
|
16
|
+
import "./chunk-UX6FRPFM.js";
|
|
17
|
+
import "./chunk-X2WZCKNE.js";
|
|
18
|
+
import "./chunk-G2ZZKGSV.js";
|
|
19
|
+
import "./chunk-OO33NRTL.js";
|
|
20
|
+
import "./chunk-PES3XMQM.js";
|
|
21
|
+
import "./chunk-6OOTYTVB.js";
|
|
22
|
+
import "./chunk-QN5KFM2B.js";
|
|
23
|
+
import "./chunk-LNOZTAML.js";
|
|
24
|
+
import "./chunk-4CS37CS5.js";
|
|
25
|
+
import "./chunk-DJW2W7VA.js";
|
|
26
|
+
import "./chunk-ACS6S42W.js";
|
|
27
|
+
import "./chunk-AROS7RI6.js";
|
|
28
|
+
import "./chunk-7IK72W75.js";
|
|
29
|
+
import "./chunk-PKR7KJ6P.js";
|
|
30
|
+
export {
|
|
31
|
+
addBugsnagMetadata,
|
|
32
|
+
cleanStackFrameFilePath,
|
|
33
|
+
errorHandler,
|
|
34
|
+
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
35
|
+
sendErrorToBugsnag
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=error-handler-KHJE653Z.js.map
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import {
|
|
2
|
+
appendFile,
|
|
3
|
+
appendFileSync,
|
|
4
|
+
chmod,
|
|
5
|
+
copyDirectoryContents,
|
|
6
|
+
copyFile,
|
|
7
|
+
createFileReadStream,
|
|
8
|
+
createFileWriteStream,
|
|
9
|
+
defaultEOL,
|
|
10
|
+
detectEOL,
|
|
11
|
+
fileExists,
|
|
12
|
+
fileExistsSync,
|
|
13
|
+
fileHasExecutablePermissions,
|
|
14
|
+
fileHasWritePermissions,
|
|
15
|
+
fileLastUpdated,
|
|
16
|
+
fileLastUpdatedTimestamp,
|
|
17
|
+
fileRealPath,
|
|
18
|
+
fileSize,
|
|
19
|
+
fileSizeSync,
|
|
20
|
+
findPathUp,
|
|
21
|
+
findPathUpSync,
|
|
22
|
+
generateRandomNameForSubdirectory,
|
|
23
|
+
glob,
|
|
24
|
+
globSync,
|
|
25
|
+
inTemporaryDirectory,
|
|
26
|
+
isDirectory,
|
|
27
|
+
isDirectorySync,
|
|
28
|
+
matchGlob,
|
|
29
|
+
mkTmpDir,
|
|
30
|
+
mkdir,
|
|
31
|
+
mkdirSync,
|
|
32
|
+
moveFile,
|
|
33
|
+
pathToFileURL,
|
|
34
|
+
readFile,
|
|
35
|
+
readFileSync,
|
|
36
|
+
readdir,
|
|
37
|
+
removeFile,
|
|
38
|
+
removeFileSync,
|
|
39
|
+
renameFile,
|
|
40
|
+
rmdir,
|
|
41
|
+
stripUpPath,
|
|
42
|
+
symlink,
|
|
43
|
+
tempDirectory,
|
|
44
|
+
touchFile,
|
|
45
|
+
touchFileSync,
|
|
46
|
+
unixFileIsOwnedByCurrentUser,
|
|
47
|
+
unlinkFile,
|
|
48
|
+
unlinkFileSync,
|
|
49
|
+
writeFile,
|
|
50
|
+
writeFileSync
|
|
51
|
+
} from "./chunk-LNOZTAML.js";
|
|
52
|
+
import "./chunk-4CS37CS5.js";
|
|
53
|
+
import "./chunk-DJW2W7VA.js";
|
|
54
|
+
import "./chunk-ACS6S42W.js";
|
|
55
|
+
import "./chunk-AROS7RI6.js";
|
|
56
|
+
import "./chunk-7IK72W75.js";
|
|
57
|
+
import "./chunk-PKR7KJ6P.js";
|
|
58
|
+
export {
|
|
59
|
+
appendFile,
|
|
60
|
+
appendFileSync,
|
|
61
|
+
chmod,
|
|
62
|
+
copyDirectoryContents,
|
|
63
|
+
copyFile,
|
|
64
|
+
createFileReadStream,
|
|
65
|
+
createFileWriteStream,
|
|
66
|
+
defaultEOL,
|
|
67
|
+
detectEOL,
|
|
68
|
+
fileExists,
|
|
69
|
+
fileExistsSync,
|
|
70
|
+
fileHasExecutablePermissions,
|
|
71
|
+
fileHasWritePermissions,
|
|
72
|
+
fileLastUpdated,
|
|
73
|
+
fileLastUpdatedTimestamp,
|
|
74
|
+
fileRealPath,
|
|
75
|
+
fileSize,
|
|
76
|
+
fileSizeSync,
|
|
77
|
+
findPathUp,
|
|
78
|
+
findPathUpSync,
|
|
79
|
+
generateRandomNameForSubdirectory,
|
|
80
|
+
glob,
|
|
81
|
+
globSync,
|
|
82
|
+
inTemporaryDirectory,
|
|
83
|
+
isDirectory,
|
|
84
|
+
isDirectorySync,
|
|
85
|
+
matchGlob,
|
|
86
|
+
mkTmpDir,
|
|
87
|
+
mkdir,
|
|
88
|
+
mkdirSync,
|
|
89
|
+
moveFile,
|
|
90
|
+
pathToFileURL,
|
|
91
|
+
readFile,
|
|
92
|
+
readFileSync,
|
|
93
|
+
readdir,
|
|
94
|
+
removeFile,
|
|
95
|
+
removeFileSync,
|
|
96
|
+
renameFile,
|
|
97
|
+
rmdir,
|
|
98
|
+
stripUpPath,
|
|
99
|
+
symlink,
|
|
100
|
+
tempDirectory,
|
|
101
|
+
touchFile,
|
|
102
|
+
touchFileSync,
|
|
103
|
+
unixFileIsOwnedByCurrentUser,
|
|
104
|
+
unlinkFile,
|
|
105
|
+
unlinkFileSync,
|
|
106
|
+
writeFile,
|
|
107
|
+
writeFileSync
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=fs-XENRLBMU.js.map
|
package/dist/hooks/postrun.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hook
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-CXPWSYGC.js";
|
|
10
|
-
import "../chunk-NIYBO6HO.js";
|
|
3
|
+
} from "../chunk-UMSYG5WJ.js";
|
|
4
|
+
import "../chunk-QN5KFM2B.js";
|
|
5
|
+
import "../chunk-LNOZTAML.js";
|
|
6
|
+
import "../chunk-4CS37CS5.js";
|
|
7
|
+
import "../chunk-DJW2W7VA.js";
|
|
8
|
+
import "../chunk-ACS6S42W.js";
|
|
11
9
|
import "../chunk-AROS7RI6.js";
|
|
12
10
|
import "../chunk-7IK72W75.js";
|
|
13
|
-
import "../chunk-G2ZZKGSV.js";
|
|
14
11
|
import {
|
|
15
12
|
init_cjs_shims
|
|
16
13
|
} from "../chunk-PKR7KJ6P.js";
|
package/dist/hooks/prerun.js
CHANGED
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchNotificationsInBackground
|
|
3
|
-
} from "../chunk-2ZQ4JUYQ.js";
|
|
4
|
-
import {
|
|
5
|
-
CLI_KIT_VERSION,
|
|
6
|
-
startAnalytics
|
|
7
|
-
} from "../chunk-XDAJMLCV.js";
|
|
8
|
-
import "../chunk-VBBBCVMH.js";
|
|
9
|
-
import {
|
|
10
|
-
checkForNewVersion
|
|
11
|
-
} from "../chunk-27ZXSSGX.js";
|
|
12
|
-
import {
|
|
13
|
-
isPreReleaseVersion,
|
|
14
|
-
outputDebug
|
|
15
|
-
} from "../chunk-QCVAV5PM.js";
|
|
16
|
-
import "../chunk-IFG7N3S2.js";
|
|
17
|
-
import "../chunk-CXPWSYGC.js";
|
|
18
|
-
import "../chunk-NIYBO6HO.js";
|
|
19
|
-
import "../chunk-AROS7RI6.js";
|
|
20
|
-
import "../chunk-7IK72W75.js";
|
|
21
|
-
import "../chunk-G2ZZKGSV.js";
|
|
22
1
|
import {
|
|
23
2
|
init_cjs_shims
|
|
24
3
|
} from "../chunk-PKR7KJ6P.js";
|
|
@@ -33,8 +12,12 @@ var hook = async (options) => {
|
|
|
33
12
|
id: options.Command.id,
|
|
34
13
|
aliases: options.Command.aliases,
|
|
35
14
|
pluginAlias: options.Command.plugin?.alias
|
|
36
|
-
}), args = options.argv
|
|
37
|
-
|
|
15
|
+
}), args = options.argv, [{ outputDebug }, analyticsMod, notificationsMod] = await Promise.all([
|
|
16
|
+
import("../output-PQSQ7U45.js"),
|
|
17
|
+
import("../analytics-XLT3JDGP.js"),
|
|
18
|
+
import("../notifications-system-7QMDSL5Y.js")
|
|
19
|
+
]);
|
|
20
|
+
checkForNewVersionInBackground(), outputDebug(`Running command ${commandContent.command}`), await analyticsMod.startAnalytics({ commandContent, args, commandClass: options.Command }), notificationsMod.fetchNotificationsInBackground(options.Command.id);
|
|
38
21
|
};
|
|
39
22
|
function parseCommandContent(cmdInfo) {
|
|
40
23
|
let commandContent = parseCreateCommand(cmdInfo.pluginAlias);
|
|
@@ -60,8 +43,12 @@ function findAlias(aliases) {
|
|
|
60
43
|
if (existingAlias)
|
|
61
44
|
return existingAlias.replace(/:/g, " ");
|
|
62
45
|
}
|
|
63
|
-
function checkForNewVersionInBackground() {
|
|
64
|
-
let
|
|
46
|
+
async function checkForNewVersionInBackground() {
|
|
47
|
+
let [{ CLI_KIT_VERSION }, { isPreReleaseVersion }, { checkForNewVersion }] = await Promise.all([
|
|
48
|
+
import("../version-T73ZLUJK.js"),
|
|
49
|
+
import("../version-HKPHVW5M.js"),
|
|
50
|
+
import("../node-package-manager-7R7HDW4R.js")
|
|
51
|
+
]), currentVersion = CLI_KIT_VERSION;
|
|
65
52
|
isPreReleaseVersion(currentVersion) || checkForNewVersion("@shopify/cli", currentVersion, { cacheExpiryInHours: 24 });
|
|
66
53
|
}
|
|
67
54
|
export {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_src
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X2WZCKNE.js";
|
|
4
|
+
import "./chunk-DJW2W7VA.js";
|
|
4
5
|
import {
|
|
5
6
|
__commonJS,
|
|
6
7
|
__require,
|
|
@@ -946,4 +947,4 @@ http-proxy-node16/index.js:
|
|
|
946
947
|
* Dante - The Divine Comedy (Canto III)
|
|
947
948
|
*)
|
|
948
949
|
*/
|
|
949
|
-
//# sourceMappingURL=http-proxy-node16-
|
|
950
|
+
//# sourceMappingURL=http-proxy-node16-XB2DSBCB.js.map
|