@shopify/create-app 3.68.0 → 3.68.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/{chunk-JPBCRPG7.js → chunk-2MYV5AJ5.js} +3 -3
- package/dist/{chunk-TOQEXS2N.js → chunk-ARVENXAB.js} +6 -6
- package/dist/{chunk-T2GATXSP.js → chunk-BB6N2XSA.js} +2 -2
- package/dist/{chunk-7BOEG3VG.js → chunk-BUXMIKPA.js} +6 -6
- package/dist/{chunk-EY2NO5UP.js → chunk-CXVVOJV3.js} +4 -4
- package/dist/{chunk-MAWDESEZ.js → chunk-DJNRMCME.js} +5 -5
- package/dist/{chunk-EWVVUMVS.js → chunk-SB7EWNHY.js} +7 -7
- package/dist/{chunk-NZDBLGNM.js → chunk-T2XKLQYZ.js} +2 -2
- package/dist/{constants-TR6ABVLJ.js → constants-CPNN74KZ.js} +3 -3
- package/dist/{custom-oclif-loader-M54JZXX3.js → custom-oclif-loader-7UDPOFCK.js} +4 -4
- package/dist/{error-handler-AAI2P4B2.js → error-handler-JYFTDW74.js} +8 -8
- package/dist/hooks/postrun.js +6 -6
- package/dist/hooks/prerun.js +6 -6
- package/dist/index.js +113 -107
- package/dist/{local-XWESY2WL.js → local-TOVALPGH.js} +4 -4
- package/dist/{node-package-manager-SPDRX34D.js → node-package-manager-6HSGLS2Y.js} +5 -5
- package/dist/{path-T2RCZTRE.js → path-G6AAF6UV.js} +2 -2
- package/dist/{system-N4GMXNKO.js → system-RP7KHMIF.js} +4 -4
- package/dist/{ui-PM2VNG6W.js → ui-TW2LGB6E.js} +4 -4
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
packageManagerFromUserAgent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CXVVOJV3.js";
|
|
4
4
|
import {
|
|
5
5
|
currentProcessIsGlobal,
|
|
6
6
|
inferPackageManagerForGlobalCLI,
|
|
7
7
|
outputContent,
|
|
8
8
|
outputToken
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DJNRMCME.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -24,4 +24,4 @@ function getOutputUpdateCLIReminder(version) {
|
|
|
24
24
|
export {
|
|
25
25
|
getOutputUpdateCLIReminder
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
27
|
+
//# sourceMappingURL=chunk-2MYV5AJ5.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
removeSession,
|
|
13
13
|
setCachedPartnerAccountStatus,
|
|
14
14
|
setSession
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CXVVOJV3.js";
|
|
16
16
|
import {
|
|
17
17
|
AbortError,
|
|
18
18
|
BugError,
|
|
@@ -49,17 +49,17 @@ import {
|
|
|
49
49
|
stringifyMessage,
|
|
50
50
|
themeToken,
|
|
51
51
|
useDeviceAuth
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-DJNRMCME.js";
|
|
53
53
|
import {
|
|
54
54
|
defaultThemeKitAccessDomain,
|
|
55
55
|
environmentVariables,
|
|
56
56
|
sessionConstants,
|
|
57
57
|
systemEnvironmentVariables
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-T2XKLQYZ.js";
|
|
59
59
|
import {
|
|
60
60
|
cwd,
|
|
61
61
|
moduleDirectory
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-BB6N2XSA.js";
|
|
63
63
|
import {
|
|
64
64
|
__commonJS,
|
|
65
65
|
__require,
|
|
@@ -29719,7 +29719,7 @@ var require_lib3 = __commonJS({
|
|
|
29719
29719
|
|
|
29720
29720
|
// ../cli-kit/dist/public/common/version.js
|
|
29721
29721
|
init_cjs_shims();
|
|
29722
|
-
var CLI_KIT_VERSION = "3.68.
|
|
29722
|
+
var CLI_KIT_VERSION = "3.68.1";
|
|
29723
29723
|
|
|
29724
29724
|
// ../cli-kit/dist/private/node/analytics.js
|
|
29725
29725
|
init_cjs_shims();
|
|
@@ -35375,4 +35375,4 @@ mime-types/index.js:
|
|
|
35375
35375
|
* MIT Licensed
|
|
35376
35376
|
*)
|
|
35377
35377
|
*/
|
|
35378
|
-
//# sourceMappingURL=chunk-
|
|
35378
|
+
//# sourceMappingURL=chunk-ARVENXAB.js.map
|
|
@@ -41,7 +41,7 @@ var require_commondir = __commonJS({
|
|
|
41
41
|
|
|
42
42
|
// ../cli-kit/dist/public/node/path.js
|
|
43
43
|
init_cjs_shims();
|
|
44
|
-
var import_commondir = __toESM(require_commondir());
|
|
44
|
+
var import_commondir = __toESM(require_commondir(), 1);
|
|
45
45
|
import { fileURLToPath } from "url";
|
|
46
46
|
function joinPath(...paths) {
|
|
47
47
|
return join(...paths);
|
|
@@ -109,4 +109,4 @@ export {
|
|
|
109
109
|
sniffForPath,
|
|
110
110
|
sniffForJson
|
|
111
111
|
};
|
|
112
|
-
//# sourceMappingURL=chunk-
|
|
112
|
+
//# sourceMappingURL=chunk-BB6N2XSA.js.map
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
getLastSeenUserIdAfterAuth,
|
|
7
7
|
getSensitiveEnvironmentData,
|
|
8
8
|
platformAndArch
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ARVENXAB.js";
|
|
10
10
|
import {
|
|
11
11
|
require_semver,
|
|
12
12
|
runWithRateLimit
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CXVVOJV3.js";
|
|
14
14
|
import {
|
|
15
15
|
AbortError,
|
|
16
16
|
AbortSilentError,
|
|
@@ -41,17 +41,17 @@ import {
|
|
|
41
41
|
spinFqdn,
|
|
42
42
|
touchFile,
|
|
43
43
|
useEmbeddedThemeCLI
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-DJNRMCME.js";
|
|
45
45
|
import {
|
|
46
46
|
envPaths,
|
|
47
47
|
pathConstants,
|
|
48
48
|
reportingRateLimit
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-T2XKLQYZ.js";
|
|
50
50
|
import {
|
|
51
51
|
cwd,
|
|
52
52
|
dirname,
|
|
53
53
|
joinPath
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-BB6N2XSA.js";
|
|
55
55
|
import {
|
|
56
56
|
__commonJS,
|
|
57
57
|
__require,
|
|
@@ -15950,4 +15950,4 @@ export {
|
|
|
15950
15950
|
getListOfTunnelPlugins,
|
|
15951
15951
|
reportAnalyticsEvent
|
|
15952
15952
|
};
|
|
15953
|
-
//# sourceMappingURL=chunk-
|
|
15953
|
+
//# sourceMappingURL=chunk-BUXMIKPA.js.map
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
require_get_stream,
|
|
18
18
|
runWithTimer,
|
|
19
19
|
writeFile
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DJNRMCME.js";
|
|
21
21
|
import {
|
|
22
22
|
envPaths
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-T2XKLQYZ.js";
|
|
24
24
|
import {
|
|
25
25
|
dirname,
|
|
26
26
|
joinPath
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-BB6N2XSA.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__require,
|
|
@@ -15387,4 +15387,4 @@ deep-extend/lib/deep-extend.js:
|
|
|
15387
15387
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
15388
15388
|
*)
|
|
15389
15389
|
*/
|
|
15390
|
-
//# sourceMappingURL=chunk-
|
|
15390
|
+
//# sourceMappingURL=chunk-CXVVOJV3.js.map
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
environmentVariables,
|
|
20
20
|
pathConstants
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-T2XKLQYZ.js";
|
|
22
22
|
import {
|
|
23
23
|
cwd,
|
|
24
24
|
joinPath,
|
|
25
25
|
normalizePath,
|
|
26
26
|
relativizePath,
|
|
27
27
|
sniffForPath
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BB6N2XSA.js";
|
|
29
29
|
import {
|
|
30
30
|
__commonJS,
|
|
31
31
|
__esm,
|
|
@@ -24106,7 +24106,7 @@ async function findPathUp(matcher, options) {
|
|
|
24106
24106
|
let got = await findUp(matcher, options);
|
|
24107
24107
|
return got ? normalizePath(got) : void 0;
|
|
24108
24108
|
}
|
|
24109
|
-
function matchGlob(key, pattern, options
|
|
24109
|
+
function matchGlob(key, pattern, options) {
|
|
24110
24110
|
return minimatch(key, pattern, options);
|
|
24111
24111
|
}
|
|
24112
24112
|
|
|
@@ -29578,7 +29578,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
29578
29578
|
try {
|
|
29579
29579
|
await getAndSet();
|
|
29580
29580
|
} catch (error) {
|
|
29581
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
29581
|
+
let { sendErrorToBugsnag } = await import("./error-handler-JYFTDW74.js");
|
|
29582
29582
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
29583
29583
|
}
|
|
29584
29584
|
}, durationStack = [];
|
|
@@ -31743,4 +31743,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
31743
31743
|
* LICENSE file in the root directory of this source tree.
|
|
31744
31744
|
*)
|
|
31745
31745
|
*/
|
|
31746
|
-
//# sourceMappingURL=chunk-
|
|
31746
|
+
//# sourceMappingURL=chunk-DJNRMCME.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fanoutHooks,
|
|
3
3
|
reportAnalyticsEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BUXMIKPA.js";
|
|
5
5
|
import {
|
|
6
6
|
CLI_KIT_VERSION,
|
|
7
7
|
getEnvironmentData
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ARVENXAB.js";
|
|
9
9
|
import {
|
|
10
10
|
runWithRateLimit
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CXVVOJV3.js";
|
|
12
12
|
import {
|
|
13
13
|
AbortSilentError,
|
|
14
14
|
CancelExecution,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
printEventsJson,
|
|
23
23
|
require_stacktracey,
|
|
24
24
|
shouldReportError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-DJNRMCME.js";
|
|
26
26
|
import {
|
|
27
27
|
require_lib
|
|
28
28
|
} from "./chunk-VZ5DQVYW.js";
|
|
@@ -32,14 +32,14 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
bugsnagApiKey,
|
|
34
34
|
reportingRateLimit
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-T2XKLQYZ.js";
|
|
36
36
|
import {
|
|
37
37
|
cwd,
|
|
38
38
|
isAbsolutePath,
|
|
39
39
|
joinPath,
|
|
40
40
|
normalizePath,
|
|
41
41
|
relativePath
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-BB6N2XSA.js";
|
|
43
43
|
import {
|
|
44
44
|
__commonJS,
|
|
45
45
|
__require,
|
|
@@ -2145,4 +2145,4 @@ export {
|
|
|
2145
2145
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
2146
2146
|
addBugsnagMetadata
|
|
2147
2147
|
};
|
|
2148
|
-
//# sourceMappingURL=chunk-
|
|
2148
|
+
//# sourceMappingURL=chunk-SB7EWNHY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
joinPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BB6N2XSA.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -113,4 +113,4 @@ export {
|
|
|
113
113
|
bugsnagApiKey,
|
|
114
114
|
reportingRateLimit
|
|
115
115
|
};
|
|
116
|
-
//# sourceMappingURL=chunk-
|
|
116
|
+
//# sourceMappingURL=chunk-T2XKLQYZ.js.map
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
reportingRateLimit,
|
|
8
8
|
sessionConstants,
|
|
9
9
|
systemEnvironmentVariables
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-T2XKLQYZ.js";
|
|
11
|
+
import "./chunk-BB6N2XSA.js";
|
|
12
12
|
import "./chunk-PNN7RS7Y.js";
|
|
13
13
|
import "./chunk-POZ5MGPT.js";
|
|
14
14
|
export {
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
sessionConstants,
|
|
22
22
|
systemEnvironmentVariables
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=constants-
|
|
24
|
+
//# sourceMappingURL=constants-CPNN74KZ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
execaSync,
|
|
3
3
|
fileExistsSync
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DJNRMCME.js";
|
|
5
5
|
import {
|
|
6
6
|
require_lib
|
|
7
7
|
} from "./chunk-VZ5DQVYW.js";
|
|
@@ -14,12 +14,12 @@ import "./chunk-XVNW332R.js";
|
|
|
14
14
|
import "./chunk-BG6FYFQK.js";
|
|
15
15
|
import "./chunk-F27QYMO7.js";
|
|
16
16
|
import "./chunk-ZFVK6EQX.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-T2XKLQYZ.js";
|
|
18
18
|
import {
|
|
19
19
|
cwd,
|
|
20
20
|
joinPath,
|
|
21
21
|
sniffForPath
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BB6N2XSA.js";
|
|
23
23
|
import "./chunk-PNN7RS7Y.js";
|
|
24
24
|
import {
|
|
25
25
|
__toESM,
|
|
@@ -47,4 +47,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
|
|
|
47
47
|
export {
|
|
48
48
|
ShopifyConfig
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=custom-oclif-loader-
|
|
50
|
+
//# sourceMappingURL=custom-oclif-loader-7UDPOFCK.js.map
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
errorHandler,
|
|
5
5
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
6
6
|
sendErrorToBugsnag
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-SB7EWNHY.js";
|
|
8
|
+
import "./chunk-BUXMIKPA.js";
|
|
9
|
+
import "./chunk-ARVENXAB.js";
|
|
10
10
|
import "./chunk-VSLR7ET4.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-CXVVOJV3.js";
|
|
12
|
+
import "./chunk-DJNRMCME.js";
|
|
13
13
|
import "./chunk-VZ5DQVYW.js";
|
|
14
14
|
import "./chunk-SNOECVP4.js";
|
|
15
15
|
import "./chunk-UBB7JKND.js";
|
|
@@ -21,8 +21,8 @@ import "./chunk-XVNW332R.js";
|
|
|
21
21
|
import "./chunk-BG6FYFQK.js";
|
|
22
22
|
import "./chunk-F27QYMO7.js";
|
|
23
23
|
import "./chunk-ZFVK6EQX.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-T2XKLQYZ.js";
|
|
25
|
+
import "./chunk-BB6N2XSA.js";
|
|
26
26
|
import "./chunk-PNN7RS7Y.js";
|
|
27
27
|
import "./chunk-POZ5MGPT.js";
|
|
28
28
|
export {
|
|
@@ -32,4 +32,4 @@ export {
|
|
|
32
32
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
33
33
|
sendErrorToBugsnag
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=error-handler-
|
|
35
|
+
//# sourceMappingURL=error-handler-JYFTDW74.js.map
|
package/dist/hooks/postrun.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reportAnalyticsEvent
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BUXMIKPA.js";
|
|
4
4
|
import {
|
|
5
5
|
getNextDeprecationDate
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-ARVENXAB.js";
|
|
7
7
|
import "../chunk-VSLR7ET4.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-CXVVOJV3.js";
|
|
9
9
|
import {
|
|
10
10
|
addSensitiveMetadata,
|
|
11
11
|
getAllSensitiveMetadata,
|
|
12
12
|
outputDebug,
|
|
13
13
|
renderWarning
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-DJNRMCME.js";
|
|
15
15
|
import "../chunk-VZ5DQVYW.js";
|
|
16
16
|
import "../chunk-SNOECVP4.js";
|
|
17
17
|
import "../chunk-UBB7JKND.js";
|
|
@@ -22,8 +22,8 @@ import "../chunk-XVNW332R.js";
|
|
|
22
22
|
import "../chunk-BG6FYFQK.js";
|
|
23
23
|
import "../chunk-F27QYMO7.js";
|
|
24
24
|
import "../chunk-ZFVK6EQX.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-T2XKLQYZ.js";
|
|
26
|
+
import "../chunk-BB6N2XSA.js";
|
|
27
27
|
import "../chunk-PNN7RS7Y.js";
|
|
28
28
|
import {
|
|
29
29
|
init_cjs_shims
|
package/dist/hooks/prerun.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getOutputUpdateCLIReminder
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-2MYV5AJ5.js";
|
|
4
4
|
import {
|
|
5
5
|
CLI_KIT_VERSION,
|
|
6
6
|
startAnalytics
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-ARVENXAB.js";
|
|
8
8
|
import "../chunk-VSLR7ET4.js";
|
|
9
9
|
import {
|
|
10
10
|
checkForCachedNewVersion,
|
|
11
11
|
checkForNewVersion,
|
|
12
12
|
runAtMinimumInterval
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-CXVVOJV3.js";
|
|
14
14
|
import {
|
|
15
15
|
initDemoRecorder,
|
|
16
16
|
outputDebug,
|
|
17
17
|
outputWarn
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-DJNRMCME.js";
|
|
19
19
|
import "../chunk-VZ5DQVYW.js";
|
|
20
20
|
import "../chunk-SNOECVP4.js";
|
|
21
21
|
import "../chunk-UBB7JKND.js";
|
|
@@ -26,8 +26,8 @@ import "../chunk-XVNW332R.js";
|
|
|
26
26
|
import "../chunk-BG6FYFQK.js";
|
|
27
27
|
import "../chunk-F27QYMO7.js";
|
|
28
28
|
import "../chunk-ZFVK6EQX.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-T2XKLQYZ.js";
|
|
30
|
+
import "../chunk-BB6N2XSA.js";
|
|
31
31
|
import "../chunk-PNN7RS7Y.js";
|
|
32
32
|
import {
|
|
33
33
|
init_cjs_shims
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
errorHandler,
|
|
3
3
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
4
4
|
require_end_of_stream
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SB7EWNHY.js";
|
|
6
6
|
import {
|
|
7
7
|
require_normalize_path
|
|
8
8
|
} from "./chunk-PMUQTGZJ.js";
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
getListOfTunnelPlugins,
|
|
16
16
|
reportAnalyticsEvent,
|
|
17
17
|
version
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BUXMIKPA.js";
|
|
19
19
|
import {
|
|
20
20
|
getOutputUpdateCLIReminder
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2MYV5AJ5.js";
|
|
22
22
|
import {
|
|
23
23
|
CLI_KIT_VERSION,
|
|
24
24
|
ClientError,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
setNextDeprecationDate,
|
|
67
67
|
username,
|
|
68
68
|
z
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-ARVENXAB.js";
|
|
70
70
|
import "./chunk-VSLR7ET4.js";
|
|
71
71
|
import {
|
|
72
72
|
LocalStorage,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
usesWorkspaces,
|
|
89
89
|
versionSatisfies,
|
|
90
90
|
writePackageJSON
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-CXVVOJV3.js";
|
|
92
92
|
import {
|
|
93
93
|
AbortController as AbortController2,
|
|
94
94
|
AbortError,
|
|
@@ -258,7 +258,7 @@ import {
|
|
|
258
258
|
use_stdin_default,
|
|
259
259
|
writeFile,
|
|
260
260
|
writeFileSync
|
|
261
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-DJNRMCME.js";
|
|
262
262
|
import {
|
|
263
263
|
require_brace_expansion,
|
|
264
264
|
require_lib
|
|
@@ -291,7 +291,7 @@ import {
|
|
|
291
291
|
import "./chunk-ZFVK6EQX.js";
|
|
292
292
|
import {
|
|
293
293
|
logsFolder
|
|
294
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-T2XKLQYZ.js";
|
|
295
295
|
import {
|
|
296
296
|
basename,
|
|
297
297
|
cwd,
|
|
@@ -305,7 +305,7 @@ import {
|
|
|
305
305
|
relativizePath,
|
|
306
306
|
resolvePath,
|
|
307
307
|
sniffForJson
|
|
308
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-BB6N2XSA.js";
|
|
309
309
|
import "./chunk-PNN7RS7Y.js";
|
|
310
310
|
import {
|
|
311
311
|
__commonJS,
|
|
@@ -144636,7 +144636,7 @@ function setCachedAppInfo(options, config2 = appLocalStorage()) {
|
|
|
144636
144636
|
}
|
|
144637
144637
|
function clearCurrentConfigFile(directory, config2 = appLocalStorage()) {
|
|
144638
144638
|
let normalized = normalizePath(directory), savedApp = config2.get(normalized);
|
|
144639
|
-
config2.set(normalized, {
|
|
144639
|
+
savedApp && config2.set(normalized, {
|
|
144640
144640
|
...savedApp,
|
|
144641
144641
|
configFile: void 0
|
|
144642
144642
|
});
|
|
@@ -151651,7 +151651,7 @@ import { fileURLToPath as fileURLToPath2 } from "url";
|
|
|
151651
151651
|
async function warnIfOldNodeVersion() {
|
|
151652
151652
|
let nodeVersion = process.versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
151653
151653
|
if (nodeMajorVersion < 18) {
|
|
151654
|
-
let { renderWarning: renderWarning2 } = await import("./ui-
|
|
151654
|
+
let { renderWarning: renderWarning2 } = await import("./ui-TW2LGB6E.js");
|
|
151655
151655
|
renderWarning2({
|
|
151656
151656
|
headline: "Upgrade to a supported Node version now.",
|
|
151657
151657
|
body: [
|
|
@@ -151676,7 +151676,7 @@ function forceNoColor() {
|
|
|
151676
151676
|
}
|
|
151677
151677
|
async function runCLI(options) {
|
|
151678
151678
|
setupEnvironmentVariables(options), forceNoColor(), await warnIfOldNodeVersion();
|
|
151679
|
-
let { errorHandler: errorHandler2 } = await import("./error-handler-
|
|
151679
|
+
let { errorHandler: errorHandler2 } = await import("./error-handler-JYFTDW74.js"), { isDevelopment: isDevelopment2 } = await import("./local-TOVALPGH.js"), oclif = await import("./lib-N6KQZBCQ.js"), { ShopifyConfig } = await import("./custom-oclif-loader-7UDPOFCK.js");
|
|
151680
151680
|
isDevelopment2() && (oclif.default.settings.debug = !0);
|
|
151681
151681
|
try {
|
|
151682
151682
|
let config2 = new ShopifyConfig({ root: fileURLToPath2(options.moduleURL) });
|
|
@@ -151687,7 +151687,7 @@ async function runCLI(options) {
|
|
|
151687
151687
|
}
|
|
151688
151688
|
async function runCreateCLI(options) {
|
|
151689
151689
|
setupEnvironmentVariables(options);
|
|
151690
|
-
let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-
|
|
151690
|
+
let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-6HSGLS2Y.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-G6AAF6UV.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options.moduleURL))).content.name.replace("@shopify/create-", "");
|
|
151691
151691
|
if (process.argv.findIndex((arg) => arg.includes("init")) === -1) {
|
|
151692
151692
|
let initIndex2 = process.argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
|
|
151693
151693
|
process.argv.splice(initIndex2, 0, "init");
|
|
@@ -153302,35 +153302,45 @@ function setThemeStore(store) {
|
|
|
153302
153302
|
themeLocalStorage().set("themeStore", store);
|
|
153303
153303
|
}
|
|
153304
153304
|
function getDevelopmentTheme() {
|
|
153305
|
-
return outputDebug(outputContent`Getting development theme...`), developmentThemeLocalStorage().get(
|
|
153305
|
+
return outputDebug(outputContent`Getting development theme...`), developmentThemeLocalStorage().get(requireThemeStore());
|
|
153306
153306
|
}
|
|
153307
153307
|
function setDevelopmentTheme(theme) {
|
|
153308
|
-
outputDebug(outputContent`Setting development theme...`), developmentThemeLocalStorage().set(
|
|
153308
|
+
outputDebug(outputContent`Setting development theme...`), developmentThemeLocalStorage().set(requireThemeStore(), theme);
|
|
153309
153309
|
}
|
|
153310
153310
|
function removeDevelopmentTheme() {
|
|
153311
|
-
outputDebug(outputContent`Removing development theme...`), developmentThemeLocalStorage().delete(
|
|
153311
|
+
outputDebug(outputContent`Removing development theme...`), developmentThemeLocalStorage().delete(requireThemeStore());
|
|
153312
153312
|
}
|
|
153313
153313
|
function getREPLTheme() {
|
|
153314
|
-
return outputDebug(outputContent`Getting REPL theme...`), replThemeLocalStorage().get(
|
|
153314
|
+
return outputDebug(outputContent`Getting REPL theme...`), replThemeLocalStorage().get(requireThemeStore());
|
|
153315
153315
|
}
|
|
153316
153316
|
function setREPLTheme(theme) {
|
|
153317
|
-
outputDebug(outputContent`Setting REPL theme to ${theme}...`), replThemeLocalStorage().set(
|
|
153317
|
+
outputDebug(outputContent`Setting REPL theme to ${theme}...`), replThemeLocalStorage().set(requireThemeStore(), theme);
|
|
153318
153318
|
}
|
|
153319
153319
|
function removeREPLTheme() {
|
|
153320
|
-
outputDebug(outputContent`Removing REPL theme...`), replThemeLocalStorage().delete(
|
|
153320
|
+
outputDebug(outputContent`Removing REPL theme...`), replThemeLocalStorage().delete(requireThemeStore());
|
|
153321
153321
|
}
|
|
153322
153322
|
function getStorefrontPassword() {
|
|
153323
|
-
let themeStore =
|
|
153324
|
-
return outputDebug(outputContent`Getting storefront password for shop ${themeStore}...`), themeStorePasswordStorage().get(
|
|
153323
|
+
let themeStore = requireThemeStore();
|
|
153324
|
+
return outputDebug(outputContent`Getting storefront password for shop ${themeStore}...`), themeStorePasswordStorage().get(themeStore);
|
|
153325
153325
|
}
|
|
153326
153326
|
function setStorefrontPassword(password) {
|
|
153327
|
-
let themeStore =
|
|
153327
|
+
let themeStore = requireThemeStore();
|
|
153328
153328
|
outputDebug(outputContent`Setting storefront password for shop ${themeStore}...`), themeStorePasswordStorage().set(themeStore, password);
|
|
153329
153329
|
}
|
|
153330
153330
|
function removeStorefrontPassword() {
|
|
153331
|
-
let themeStore =
|
|
153331
|
+
let themeStore = requireThemeStore();
|
|
153332
153332
|
outputDebug(outputContent`Removing storefront password for ${themeStore}...`), themeStorePasswordStorage().delete(themeStore);
|
|
153333
153333
|
}
|
|
153334
|
+
function requireThemeStore() {
|
|
153335
|
+
let themeStore = getThemeStore();
|
|
153336
|
+
if (!themeStore)
|
|
153337
|
+
throw new BugError("Theme store is not set. This indicates an unexpected issue with the CLI. Please report this to the Shopify CLI team.", [
|
|
153338
|
+
"It may be possible to recover by running",
|
|
153339
|
+
{ command: "shopify theme list --store <store>" },
|
|
153340
|
+
"(setting the store flag to the store you wish to use) and then running the command again."
|
|
153341
|
+
]);
|
|
153342
|
+
return themeStore;
|
|
153343
|
+
}
|
|
153334
153344
|
|
|
153335
153345
|
// ../theme/dist/cli/utilities/theme-store.js
|
|
153336
153346
|
function ensureThemeStore(flags) {
|
|
@@ -155206,7 +155216,11 @@ async function getPatternsFromShopifyIgnore(root) {
|
|
|
155206
155216
|
return await fileExists(shopifyIgnorePath) ? (await readFile(shopifyIgnorePath, { encoding: "utf8" })).split(/(\r\n|\r|\n)/).map((line) => line.trim()).filter((line) => line && !line.startsWith("#")) : [];
|
|
155207
155217
|
}
|
|
155208
155218
|
function matchGlob2(key, pattern) {
|
|
155209
|
-
|
|
155219
|
+
let matchOpts = {
|
|
155220
|
+
matchBase: !0,
|
|
155221
|
+
noglobstar: !0
|
|
155222
|
+
};
|
|
155223
|
+
return matchGlob(key, pattern, matchOpts) ? !0 : shouldReplaceGlobPattern(pattern) ? matchGlob(key, pattern.replace("/*.", "/**/*."), matchOpts) : !1;
|
|
155210
155224
|
}
|
|
155211
155225
|
function raiseWarningForNonExplicitGlobPatterns(patterns) {
|
|
155212
155226
|
new Set(patterns).forEach((pattern) => {
|
|
@@ -155994,7 +156008,7 @@ function hotReloadScript() {
|
|
|
155994
156008
|
|
|
155995
156009
|
// ../theme/dist/cli/utilities/theme-environment/proxy.js
|
|
155996
156010
|
init_cjs_shims();
|
|
155997
|
-
var VANITY_CDN_PREFIX = "/cdn/", EXTENSION_CDN_PREFIX = "/ext/cdn/", IGNORED_ENDPOINTS = [
|
|
156011
|
+
var CART_PREFIX = "/cart/", VANITY_CDN_PREFIX = "/cdn/", EXTENSION_CDN_PREFIX = "/ext/cdn/", IGNORED_ENDPOINTS = [
|
|
155998
156012
|
"/.well-known",
|
|
155999
156013
|
"/shopify/monorail",
|
|
156000
156014
|
"/mini-profiler-resources",
|
|
@@ -156011,7 +156025,7 @@ function getProxyHandler(_theme, ctx) {
|
|
|
156011
156025
|
});
|
|
156012
156026
|
}
|
|
156013
156027
|
function canProxyRequest(event) {
|
|
156014
|
-
if (event.method !== "GET" || event.path.startsWith(VANITY_CDN_PREFIX) || event.path.startsWith(EXTENSION_CDN_PREFIX))
|
|
156028
|
+
if (event.method !== "GET" || event.path.startsWith(CART_PREFIX) || event.path.startsWith(VANITY_CDN_PREFIX) || event.path.startsWith(EXTENSION_CDN_PREFIX))
|
|
156015
156029
|
return !0;
|
|
156016
156030
|
let [pathname] = event.path.split("?"), extension = extname(pathname), acceptsType = event.headers.get("accept") ?? "*/*";
|
|
156017
156031
|
return extension === ".html" || acceptsType.includes("text/html") ? !1 : !!extension || acceptsType !== "*/*";
|
|
@@ -156098,7 +156112,14 @@ function proxyStorefrontRequest(event, ctx) {
|
|
|
156098
156112
|
// Important to return 3xx responses to the client
|
|
156099
156113
|
redirect: "manual"
|
|
156100
156114
|
},
|
|
156101
|
-
onResponse
|
|
156115
|
+
async onResponse(event2, response) {
|
|
156116
|
+
patchProxiedResponseHeaders(ctx, event2, response);
|
|
156117
|
+
let fileName = url.pathname.split("/").at(-1);
|
|
156118
|
+
if (ctx.localThemeFileSystem.files.has(`assets/${fileName}.liquid`)) {
|
|
156119
|
+
let body2 = await response.text();
|
|
156120
|
+
await send(event2, injectCdnProxy(body2, ctx));
|
|
156121
|
+
}
|
|
156122
|
+
}
|
|
156102
156123
|
}).catch(async (error) => {
|
|
156103
156124
|
let pathname = event.path.split("?")[0];
|
|
156104
156125
|
if (error.statusCode >= 500 && !pathname.endsWith(".js.map")) {
|
|
@@ -156112,9 +156133,6 @@ function proxyStorefrontRequest(event, ctx) {
|
|
|
156112
156133
|
});
|
|
156113
156134
|
}
|
|
156114
156135
|
|
|
156115
|
-
// ../theme/dist/cli/utilities/theme-environment/html.js
|
|
156116
|
-
init_cjs_shims();
|
|
156117
|
-
|
|
156118
156136
|
// ../theme/dist/cli/utilities/theme-ext-environment/theme-ext-server.js
|
|
156119
156137
|
init_cjs_shims();
|
|
156120
156138
|
|
|
@@ -156189,6 +156207,67 @@ function mountThemeExtensionFileSystem(root) {
|
|
|
156189
156207
|
};
|
|
156190
156208
|
}
|
|
156191
156209
|
|
|
156210
|
+
// ../theme/dist/cli/utilities/theme-environment/html.js
|
|
156211
|
+
init_cjs_shims();
|
|
156212
|
+
function getHtmlHandler(theme, ctx) {
|
|
156213
|
+
return defineEventHandler((event) => {
|
|
156214
|
+
outputInfo(`${event.method} ${event.path}`);
|
|
156215
|
+
let [browserPathname = "/", browserSearch = ""] = event.path.split("?");
|
|
156216
|
+
return render2(ctx.session, {
|
|
156217
|
+
method: event.method,
|
|
156218
|
+
path: browserPathname,
|
|
156219
|
+
query: [...new URLSearchParams(browserSearch)],
|
|
156220
|
+
themeId: String(theme.id),
|
|
156221
|
+
sectionId: "",
|
|
156222
|
+
headers: getProxyStorefrontHeaders(event),
|
|
156223
|
+
replaceExtensionTemplates: getExtensionInMemoryTemplates(ctx),
|
|
156224
|
+
replaceTemplates: getInMemoryTemplates(ctx, browserPathname, getCookie2(event, "localization")?.toLowerCase())
|
|
156225
|
+
}).then(async (response) => {
|
|
156226
|
+
let html = await patchRenderingResponse(ctx, event, response);
|
|
156227
|
+
return assertThemeId(response, html, String(theme.id)), ctx.options.liveReload !== "off" && (html = injectHotReloadScript(html)), html;
|
|
156228
|
+
}).catch(async (error) => {
|
|
156229
|
+
let headline = `Failed to render storefront with status ${error.statusCode} (${error.statusMessage}).`;
|
|
156230
|
+
error.data?.requestId && (headline += `
|
|
156231
|
+
Request ID: ${error.data.requestId}`), error.data?.url && (headline += `
|
|
156232
|
+
URL: ${error.data.url}`);
|
|
156233
|
+
let cause = error.cause;
|
|
156234
|
+
renderError({ headline, body: cause?.stack ?? error.stack ?? error.message }), setResponseStatus(event, error.statusCode ?? 502, error.statusMessage), setResponseHeader(event, "Content-Type", "text/html");
|
|
156235
|
+
let [title, ...rest] = headline.split(`
|
|
156236
|
+
`), errorPageHtml = getErrorPage({
|
|
156237
|
+
title,
|
|
156238
|
+
header: title,
|
|
156239
|
+
message: [...rest, cause?.message ?? error.message].join("<br>"),
|
|
156240
|
+
code: error.stack?.replace(`${error.message}
|
|
156241
|
+
`, "") ?? ""
|
|
156242
|
+
});
|
|
156243
|
+
return ctx.options.liveReload !== "off" && (errorPageHtml = injectHotReloadScript(errorPageHtml)), errorPageHtml;
|
|
156244
|
+
});
|
|
156245
|
+
});
|
|
156246
|
+
}
|
|
156247
|
+
function getErrorPage(options) {
|
|
156248
|
+
return (0, String.raw)`<html>
|
|
156249
|
+
<head>
|
|
156250
|
+
<title>${options.title ?? "Unknown error"}</title>
|
|
156251
|
+
</head>
|
|
156252
|
+
<body
|
|
156253
|
+
id="full-error-page"
|
|
156254
|
+
style="display: flex; flex-direction: column; align-items: center; padding-top: 20px; font-family: Arial"
|
|
156255
|
+
>
|
|
156256
|
+
<h2>${options.header}</h2>
|
|
156257
|
+
<p>${options.message}</p>
|
|
156258
|
+
<pre>${options.code}</pre>
|
|
156259
|
+
</body>
|
|
156260
|
+
</html>`;
|
|
156261
|
+
}
|
|
156262
|
+
function assertThemeId(response, html, expectedThemeId) {
|
|
156263
|
+
let obtainedThemeId = html.match(/Shopify\.theme\s*=\s*{[^}]+?"id":\s*"?(\d+)"?(}|,)/)?.[1];
|
|
156264
|
+
obtainedThemeId && obtainedThemeId !== expectedThemeId && (renderFatalError(new AbortError(`Theme ID mismatch: expected ${expectedThemeId} but got ${obtainedThemeId}.
|
|
156265
|
+
Request ID: ${response.headers.get("x-request-id")}
|
|
156266
|
+
URL: ${response.url}`, `This is likely related to an issue in upstream Shopify APIs.
|
|
156267
|
+
Please try again in a few minutes and report this issue:
|
|
156268
|
+
https://github.com/Shopify/cli/issues/new?template=bug-report.yml`)), process.exit(1));
|
|
156269
|
+
}
|
|
156270
|
+
|
|
156192
156271
|
// ../theme/dist/cli/utilities/theme-environment/local-assets.js
|
|
156193
156272
|
init_cjs_shims();
|
|
156194
156273
|
function getAssetsHandler(_theme, ctx) {
|
|
@@ -156321,80 +156400,6 @@ function getExtensionInMemoryTemplates(ctx) {
|
|
|
156321
156400
|
return replaceExtTemplates;
|
|
156322
156401
|
}
|
|
156323
156402
|
|
|
156324
|
-
// ../theme/dist/cli/utilities/theme-environment/html.js
|
|
156325
|
-
function getHtmlHandler(theme, ctx) {
|
|
156326
|
-
return defineEventHandler((event) => {
|
|
156327
|
-
outputInfo(`${event.method} ${event.path}`);
|
|
156328
|
-
let [browserPathname = "/", browserSearch = ""] = event.path.split("?");
|
|
156329
|
-
return render2(ctx.session, {
|
|
156330
|
-
method: event.method,
|
|
156331
|
-
path: browserPathname,
|
|
156332
|
-
query: [...new URLSearchParams(browserSearch)],
|
|
156333
|
-
themeId: String(theme.id),
|
|
156334
|
-
sectionId: "",
|
|
156335
|
-
headers: getProxyStorefrontHeaders(event),
|
|
156336
|
-
replaceExtensionTemplates: getExtensionInMemoryTemplates(ctx),
|
|
156337
|
-
replaceTemplates: getInMemoryTemplates(ctx, browserPathname, getCookie2(event, "localization")?.toLowerCase())
|
|
156338
|
-
}).then(async (response) => {
|
|
156339
|
-
let html = await patchRenderingResponse(ctx, event, response);
|
|
156340
|
-
return html = prettifySyntaxErrors(html), assertThemeId(response, html, String(theme.id)), ctx.options.liveReload !== "off" && (html = injectHotReloadScript(html)), html;
|
|
156341
|
-
}).catch(async (error) => {
|
|
156342
|
-
let headline = `Failed to render storefront with status ${error.statusCode} (${error.statusMessage}).`;
|
|
156343
|
-
error.data?.requestId && (headline += `
|
|
156344
|
-
Request ID: ${error.data.requestId}`), error.data?.url && (headline += `
|
|
156345
|
-
URL: ${error.data.url}`);
|
|
156346
|
-
let cause = error.cause;
|
|
156347
|
-
renderError({ headline, body: cause?.stack ?? error.stack ?? error.message }), setResponseStatus(event, error.statusCode ?? 502, error.statusMessage), setResponseHeader(event, "Content-Type", "text/html");
|
|
156348
|
-
let [title, ...rest] = headline.split(`
|
|
156349
|
-
`), errorPageHtml = getErrorPage({
|
|
156350
|
-
title,
|
|
156351
|
-
header: title,
|
|
156352
|
-
message: [...rest, cause?.message ?? error.message].join("<br>"),
|
|
156353
|
-
code: error.stack?.replace(`${error.message}
|
|
156354
|
-
`, "") ?? ""
|
|
156355
|
-
});
|
|
156356
|
-
return ctx.options.liveReload !== "off" && (errorPageHtml = injectHotReloadScript(errorPageHtml)), errorPageHtml;
|
|
156357
|
-
});
|
|
156358
|
-
});
|
|
156359
|
-
}
|
|
156360
|
-
function prettifySyntaxErrors(html) {
|
|
156361
|
-
return html.replace(/Liquid(?: syntax)? error \([^\n]+(?:\n|<)/g, getErrorSection);
|
|
156362
|
-
}
|
|
156363
|
-
function getErrorSection(error) {
|
|
156364
|
-
let html = String.raw, color = "orangered";
|
|
156365
|
-
return html`
|
|
156366
|
-
<div
|
|
156367
|
-
id="section-error"
|
|
156368
|
-
style="border: solid thick ${color}; background: color(from ${color} srgb r g b / 0.2); padding: 20px;"
|
|
156369
|
-
>
|
|
156370
|
-
<pre>${error}</pre>
|
|
156371
|
-
</div>
|
|
156372
|
-
`;
|
|
156373
|
-
}
|
|
156374
|
-
function getErrorPage(options) {
|
|
156375
|
-
return (0, String.raw)`<html>
|
|
156376
|
-
<head>
|
|
156377
|
-
<title>${options.title ?? "Unknown error"}</title>
|
|
156378
|
-
</head>
|
|
156379
|
-
<body
|
|
156380
|
-
id="full-error-page"
|
|
156381
|
-
style="display: flex; flex-direction: column; align-items: center; padding-top: 20px; font-family: Arial"
|
|
156382
|
-
>
|
|
156383
|
-
<h2>${options.header}</h2>
|
|
156384
|
-
<p>${options.message}</p>
|
|
156385
|
-
<pre>${options.code}</pre>
|
|
156386
|
-
</body>
|
|
156387
|
-
</html>`;
|
|
156388
|
-
}
|
|
156389
|
-
function assertThemeId(response, html, expectedThemeId) {
|
|
156390
|
-
let obtainedThemeId = html.match(/Shopify\.theme\s*=\s*{[^}]+?"id":\s*"?(\d+)"?(}|,)/)?.[1];
|
|
156391
|
-
obtainedThemeId && obtainedThemeId !== expectedThemeId && (renderFatalError(new AbortError(`Theme ID mismatch: expected ${expectedThemeId} but got ${obtainedThemeId}.
|
|
156392
|
-
Request ID: ${response.headers.get("x-request-id")}
|
|
156393
|
-
URL: ${response.url}`, `This is likely related to an issue in upstream Shopify APIs.
|
|
156394
|
-
Please try again in a few minutes and report this issue:
|
|
156395
|
-
https://github.com/Shopify/cli/issues/new?template=bug-report.yml`)), process.exit(1));
|
|
156396
|
-
}
|
|
156397
|
-
|
|
156398
156403
|
// ../theme/dist/cli/utilities/theme-environment/hot-reload/server.js
|
|
156399
156404
|
var import_theme_check_node4 = __toESM(require_dist5(), 1);
|
|
156400
156405
|
import EventEmitter4 from "node:events";
|
|
@@ -156502,8 +156507,7 @@ function getHotReloadHandler(theme, ctx) {
|
|
|
156502
156507
|
statusText: response.statusText,
|
|
156503
156508
|
data: { requestId: response.headers.get("x-request-id"), url: response.url }
|
|
156504
156509
|
});
|
|
156505
|
-
|
|
156506
|
-
return prettifySyntaxErrors(html);
|
|
156510
|
+
return patchRenderingResponse(ctx, event, response);
|
|
156507
156511
|
}).catch(async (error) => {
|
|
156508
156512
|
let headline = `Failed to render section on Hot Reload with status ${error.statusCode} (${error.statusMessage}).`;
|
|
156509
156513
|
error.data?.requestId && (headline += `
|
|
@@ -156770,7 +156774,9 @@ function createIntervalTask({ promise, titleGetter, timeout }) {
|
|
|
156770
156774
|
function buildDeleteJob(remoteChecksums, themeFileSystem, theme, session, options) {
|
|
156771
156775
|
if (options.nodelete)
|
|
156772
156776
|
return { progress: { current: 0, total: 0 }, promise: Promise.resolve() };
|
|
156773
|
-
let remoteFilesToBeDeleted = getRemoteFilesToBeDeleted(remoteChecksums, themeFileSystem), orderedFiles = orderFilesToBeDeleted(remoteFilesToBeDeleted), progress = { current: 0, total: orderedFiles.length }, promise = Promise.all(orderedFiles.map((file) => deleteThemeAsset(theme.id, file.key, session).
|
|
156777
|
+
let remoteFilesToBeDeleted = getRemoteFilesToBeDeleted(remoteChecksums, themeFileSystem), orderedFiles = orderFilesToBeDeleted(remoteFilesToBeDeleted), progress = { current: 0, total: orderedFiles.length }, promise = Promise.all(orderedFiles.map((file) => deleteThemeAsset(theme.id, file.key, session).catch((error) => {
|
|
156778
|
+
renderError({ headline: `Failed to delete file "${file.key}" from remote theme.`, body: error.message });
|
|
156779
|
+
}).finally(() => {
|
|
156774
156780
|
progress.current++;
|
|
156775
156781
|
}))).then(() => {
|
|
156776
156782
|
progress.current = progress.total;
|
|
@@ -157759,7 +157765,7 @@ function buildDeleteTasks(remoteChecksums, themeFileSystem, options) {
|
|
|
157759
157765
|
if (options.nodelete)
|
|
157760
157766
|
return [];
|
|
157761
157767
|
let remoteKeys = new Set(remoteChecksums.map((checksum) => checksum.key));
|
|
157762
|
-
return
|
|
157768
|
+
return themeFileSystem.applyIgnoreFilters([...themeFileSystem.files.values()]).map(({ key }) => key).filter((key) => !remoteKeys.has(key)).map((key) => ({
|
|
157763
157769
|
title: `Cleaning your local directory (removing ${key})`,
|
|
157764
157770
|
task: async () => themeFileSystem.delete(key)
|
|
157765
157771
|
}));
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
useDeviceAuth,
|
|
23
23
|
useEmbeddedThemeCLI,
|
|
24
24
|
useThemebundling
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-DJNRMCME.js";
|
|
26
26
|
import "./chunk-VZ5DQVYW.js";
|
|
27
27
|
import "./chunk-SNOECVP4.js";
|
|
28
28
|
import "./chunk-UBB7JKND.js";
|
|
@@ -33,8 +33,8 @@ import "./chunk-XVNW332R.js";
|
|
|
33
33
|
import "./chunk-BG6FYFQK.js";
|
|
34
34
|
import "./chunk-F27QYMO7.js";
|
|
35
35
|
import "./chunk-ZFVK6EQX.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-T2XKLQYZ.js";
|
|
37
|
+
import "./chunk-BB6N2XSA.js";
|
|
38
38
|
import "./chunk-PNN7RS7Y.js";
|
|
39
39
|
import "./chunk-POZ5MGPT.js";
|
|
40
40
|
export {
|
|
@@ -62,4 +62,4 @@ export {
|
|
|
62
62
|
useEmbeddedThemeCLI,
|
|
63
63
|
useThemebundling
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=local-
|
|
65
|
+
//# sourceMappingURL=local-TOVALPGH.js.map
|
|
@@ -28,8 +28,8 @@ import {
|
|
|
28
28
|
versionSatisfies,
|
|
29
29
|
writePackageJSON,
|
|
30
30
|
yarnLockfile
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-CXVVOJV3.js";
|
|
32
|
+
import "./chunk-DJNRMCME.js";
|
|
33
33
|
import "./chunk-VZ5DQVYW.js";
|
|
34
34
|
import "./chunk-SNOECVP4.js";
|
|
35
35
|
import "./chunk-UBB7JKND.js";
|
|
@@ -40,8 +40,8 @@ import "./chunk-XVNW332R.js";
|
|
|
40
40
|
import "./chunk-BG6FYFQK.js";
|
|
41
41
|
import "./chunk-F27QYMO7.js";
|
|
42
42
|
import "./chunk-ZFVK6EQX.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-T2XKLQYZ.js";
|
|
44
|
+
import "./chunk-BB6N2XSA.js";
|
|
45
45
|
import "./chunk-PNN7RS7Y.js";
|
|
46
46
|
import "./chunk-POZ5MGPT.js";
|
|
47
47
|
export {
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
writePackageJSON,
|
|
76
76
|
yarnLockfile
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=node-package-manager-
|
|
78
|
+
//# sourceMappingURL=node-package-manager-6HSGLS2Y.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolvePath,
|
|
14
14
|
sniffForJson,
|
|
15
15
|
sniffForPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BB6N2XSA.js";
|
|
17
17
|
import "./chunk-PNN7RS7Y.js";
|
|
18
18
|
import "./chunk-POZ5MGPT.js";
|
|
19
19
|
export {
|
|
@@ -32,4 +32,4 @@ export {
|
|
|
32
32
|
sniffForJson,
|
|
33
33
|
sniffForPath
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=path-
|
|
35
|
+
//# sourceMappingURL=path-G6AAF6UV.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
openURL,
|
|
5
5
|
sleep,
|
|
6
6
|
terminalSupportsPrompting
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DJNRMCME.js";
|
|
8
8
|
import "./chunk-VZ5DQVYW.js";
|
|
9
9
|
import "./chunk-SNOECVP4.js";
|
|
10
10
|
import "./chunk-UBB7JKND.js";
|
|
@@ -15,8 +15,8 @@ import "./chunk-XVNW332R.js";
|
|
|
15
15
|
import "./chunk-BG6FYFQK.js";
|
|
16
16
|
import "./chunk-F27QYMO7.js";
|
|
17
17
|
import "./chunk-ZFVK6EQX.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-T2XKLQYZ.js";
|
|
19
|
+
import "./chunk-BB6N2XSA.js";
|
|
20
20
|
import "./chunk-PNN7RS7Y.js";
|
|
21
21
|
import "./chunk-POZ5MGPT.js";
|
|
22
22
|
export {
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
sleep,
|
|
27
27
|
terminalSupportsPrompting
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=system-
|
|
29
|
+
//# sourceMappingURL=system-RP7KHMIF.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
renderText,
|
|
18
18
|
renderTextPrompt,
|
|
19
19
|
renderWarning
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DJNRMCME.js";
|
|
21
21
|
import "./chunk-VZ5DQVYW.js";
|
|
22
22
|
import "./chunk-SNOECVP4.js";
|
|
23
23
|
import "./chunk-UBB7JKND.js";
|
|
@@ -28,8 +28,8 @@ import "./chunk-XVNW332R.js";
|
|
|
28
28
|
import "./chunk-BG6FYFQK.js";
|
|
29
29
|
import "./chunk-F27QYMO7.js";
|
|
30
30
|
import "./chunk-ZFVK6EQX.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-T2XKLQYZ.js";
|
|
32
|
+
import "./chunk-BB6N2XSA.js";
|
|
33
33
|
import "./chunk-PNN7RS7Y.js";
|
|
34
34
|
import "./chunk-POZ5MGPT.js";
|
|
35
35
|
export {
|
|
@@ -52,4 +52,4 @@ export {
|
|
|
52
52
|
renderTextPrompt,
|
|
53
53
|
renderWarning
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=ui-
|
|
55
|
+
//# sourceMappingURL=ui-TW2LGB6E.js.map
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/create-app",
|
|
3
|
-
"version": "3.68.
|
|
3
|
+
"version": "3.68.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A CLI tool to create a new Shopify app.",
|
|
6
6
|
"keywords": [
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"esbuild": "0.19.8"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@shopify/cli-kit": "3.68.
|
|
51
|
-
"@shopify/app": "3.68.
|
|
50
|
+
"@shopify/cli-kit": "3.68.1",
|
|
51
|
+
"@shopify/app": "3.68.1",
|
|
52
52
|
"@types/node": "18.19.3",
|
|
53
53
|
"esbuild-plugin-copy": "^2.1.1",
|
|
54
54
|
"@vitest/coverage-istanbul": "^1.6.0"
|