@shopify/create-app 3.69.0 → 3.69.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-AVCU5ZOP.js → chunk-2KQ4LDTO.js} +9 -9
- package/dist/{chunk-G6AY2JW5.js → chunk-P7JUHQKL.js} +2 -2
- package/dist/{chunk-NQUHO34K.js → chunk-RARQUUYC.js} +28 -8
- package/dist/{chunk-BB6N2XSA.js → chunk-T2GATXSP.js} +2 -2
- package/dist/{chunk-XMQLNGN7.js → chunk-TH2T6E35.js} +6 -6
- package/dist/{chunk-CJOZ7NTT.js → chunk-VTDJL77Q.js} +6 -6
- package/dist/{chunk-UWDJJNDC.js → chunk-XMXXJYAD.js} +4 -4
- package/dist/{chunk-7N2ECBWK.js → chunk-XWGFZ4FB.js} +3 -3
- package/dist/{constants-GVJLI6RE.js → constants-T7JXE5K7.js} +3 -3
- package/dist/{custom-oclif-loader-FZACFF7D.js → custom-oclif-loader-ZOTPUMCE.js} +4 -4
- package/dist/{error-handler-R2NFQW6E.js → error-handler-WHMVXDIQ.js} +8 -8
- package/dist/hooks/postrun.js +6 -6
- package/dist/hooks/prerun.js +6 -6
- package/dist/index.js +23 -19
- package/dist/{local-G7IECLW7.js → local-PEZP7E77.js} +4 -4
- package/dist/{node-package-manager-5YDNPKRT.js → node-package-manager-HO3FW4GK.js} +5 -5
- package/dist/{path-G6AAF6UV.js → path-T2RCZTRE.js} +2 -2
- package/dist/{system-M33YAFGP.js → system-CMPJ36QP.js} +4 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-VEBUA4SR.js → ui-UYOJO4WW.js} +4 -4
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fanoutHooks,
|
|
3
3
|
reportAnalyticsEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VTDJL77Q.js";
|
|
5
5
|
import {
|
|
6
6
|
CLI_KIT_VERSION,
|
|
7
7
|
getEnvironmentData
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TH2T6E35.js";
|
|
9
9
|
import {
|
|
10
10
|
runWithRateLimit
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XMXXJYAD.js";
|
|
12
12
|
import {
|
|
13
13
|
AbortSilentError,
|
|
14
14
|
CancelExecution,
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
outputInfo,
|
|
22
22
|
printEventsJson,
|
|
23
23
|
require_stacktracey,
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
shouldReportErrorAsUnexpected
|
|
25
|
+
} from "./chunk-RARQUUYC.js";
|
|
26
26
|
import {
|
|
27
27
|
require_lib
|
|
28
28
|
} from "./chunk-AZIUHI45.js";
|
|
@@ -32,14 +32,14 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
bugsnagApiKey,
|
|
34
34
|
reportingRateLimit
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-P7JUHQKL.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-T2GATXSP.js";
|
|
43
43
|
import {
|
|
44
44
|
__commonJS,
|
|
45
45
|
__require,
|
|
@@ -2053,7 +2053,7 @@ async function errorHandler(error, config) {
|
|
|
2053
2053
|
}
|
|
2054
2054
|
var reportError = async (error, config) => {
|
|
2055
2055
|
let exitMode = "expected_error";
|
|
2056
|
-
|
|
2056
|
+
shouldReportErrorAsUnexpected(error) && (exitMode = "unexpected_error"), config !== void 0 && await reportAnalyticsEvent({ config, errorMessage: error instanceof Error ? error.message : void 0, exitMode }), await sendErrorToBugsnag(error, exitMode);
|
|
2057
2057
|
};
|
|
2058
2058
|
async function sendErrorToBugsnag(error, exitMode) {
|
|
2059
2059
|
if (import_core.settings.debug)
|
|
@@ -2145,4 +2145,4 @@ export {
|
|
|
2145
2145
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
2146
2146
|
addBugsnagMetadata
|
|
2147
2147
|
};
|
|
2148
|
-
//# sourceMappingURL=chunk-
|
|
2148
|
+
//# sourceMappingURL=chunk-2KQ4LDTO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
joinPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T2GATXSP.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -112,4 +112,4 @@ export {
|
|
|
112
112
|
bugsnagApiKey,
|
|
113
113
|
reportingRateLimit
|
|
114
114
|
};
|
|
115
|
-
//# sourceMappingURL=chunk-
|
|
115
|
+
//# sourceMappingURL=chunk-P7JUHQKL.js.map
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
environmentVariables,
|
|
17
17
|
pathConstants
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-P7JUHQKL.js";
|
|
19
19
|
import {
|
|
20
20
|
cwd,
|
|
21
21
|
joinPath,
|
|
22
22
|
normalizePath,
|
|
23
23
|
relativizePath,
|
|
24
24
|
sniffForPath
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-T2GATXSP.js";
|
|
26
26
|
import {
|
|
27
27
|
__commonJS,
|
|
28
28
|
__esm,
|
|
@@ -29668,7 +29668,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
29668
29668
|
try {
|
|
29669
29669
|
await getAndSet();
|
|
29670
29670
|
} catch (error) {
|
|
29671
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
29671
|
+
let { sendErrorToBugsnag } = await import("./error-handler-WHMVXDIQ.js");
|
|
29672
29672
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
29673
29673
|
}
|
|
29674
29674
|
}, durationStack = [];
|
|
@@ -31425,7 +31425,7 @@ This usually happens when running a command non-interactively, for example in a
|
|
|
31425
31425
|
}
|
|
31426
31426
|
|
|
31427
31427
|
// ../cli-kit/dist/public/node/error.js
|
|
31428
|
-
var import_core2 = __toESM(require_lib()), import_ts_error = __toESM(require_cjs()), FatalErrorType;
|
|
31428
|
+
var import_core2 = __toESM(require_lib(), 1), import_ts_error = __toESM(require_cjs(), 1), FatalErrorType;
|
|
31429
31429
|
(function(FatalErrorType2) {
|
|
31430
31430
|
FatalErrorType2[FatalErrorType2.Abort = 0] = "Abort", FatalErrorType2[FatalErrorType2.AbortSilent = 1] = "AbortSilent", FatalErrorType2[FatalErrorType2.Bug = 2] = "Bug";
|
|
31431
31431
|
})(FatalErrorType || (FatalErrorType = {}));
|
|
@@ -31491,12 +31491,32 @@ function isFatal(error) {
|
|
|
31491
31491
|
return !1;
|
|
31492
31492
|
}
|
|
31493
31493
|
}
|
|
31494
|
-
function
|
|
31495
|
-
|
|
31494
|
+
function shouldReportErrorAsUnexpected(error) {
|
|
31495
|
+
if (!isFatal(error)) {
|
|
31496
|
+
if (error instanceof Error) {
|
|
31497
|
+
let message = error.message;
|
|
31498
|
+
return !errorMessageImpliesEnvironmentIssue(message);
|
|
31499
|
+
}
|
|
31500
|
+
return !0;
|
|
31501
|
+
}
|
|
31502
|
+
return error.type === FatalErrorType.Bug;
|
|
31496
31503
|
}
|
|
31497
31504
|
function cleanSingleStackTracePath(filePath) {
|
|
31498
31505
|
return normalizePath(filePath).replace("file:/", "/").replace(/^\/?[A-Z]:/, "");
|
|
31499
31506
|
}
|
|
31507
|
+
function errorMessageImpliesEnvironmentIssue(message) {
|
|
31508
|
+
return [
|
|
31509
|
+
"EPERM: operation not permitted, scandir",
|
|
31510
|
+
"EACCES: permission denied",
|
|
31511
|
+
"EPERM: operation not permitted, symlink",
|
|
31512
|
+
"This version of npm supports the following node versions",
|
|
31513
|
+
"EBUSY: resource busy or locked, rmdir",
|
|
31514
|
+
"getaddrinfo ENOTFOUND",
|
|
31515
|
+
"Client network socket disconnected before secure TLS connection was established",
|
|
31516
|
+
"spawn EPERM",
|
|
31517
|
+
"socket hang up"
|
|
31518
|
+
].some((issueMessage) => message.includes(issueMessage));
|
|
31519
|
+
}
|
|
31500
31520
|
|
|
31501
31521
|
// ../cli-kit/dist/public/node/system.js
|
|
31502
31522
|
async function openURL(url) {
|
|
@@ -31718,7 +31738,7 @@ export {
|
|
|
31718
31738
|
BugError,
|
|
31719
31739
|
handler,
|
|
31720
31740
|
errorMapper,
|
|
31721
|
-
|
|
31741
|
+
shouldReportErrorAsUnexpected,
|
|
31722
31742
|
cleanSingleStackTracePath,
|
|
31723
31743
|
import_ts_error,
|
|
31724
31744
|
AbortController,
|
|
@@ -31845,4 +31865,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
31845
31865
|
* LICENSE file in the root directory of this source tree.
|
|
31846
31866
|
*)
|
|
31847
31867
|
*/
|
|
31848
|
-
//# sourceMappingURL=chunk-
|
|
31868
|
+
//# sourceMappingURL=chunk-RARQUUYC.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());
|
|
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-T2GATXSP.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
removeSession,
|
|
13
13
|
setCachedPartnerAccountStatus,
|
|
14
14
|
setSession
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XMXXJYAD.js";
|
|
16
16
|
import {
|
|
17
17
|
AbortError,
|
|
18
18
|
BugError,
|
|
@@ -44,16 +44,16 @@ import {
|
|
|
44
44
|
spinFqdn,
|
|
45
45
|
stringifyMessage,
|
|
46
46
|
themeToken
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-RARQUUYC.js";
|
|
48
48
|
import {
|
|
49
49
|
defaultThemeKitAccessDomain,
|
|
50
50
|
environmentVariables,
|
|
51
51
|
sessionConstants,
|
|
52
52
|
systemEnvironmentVariables
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-P7JUHQKL.js";
|
|
54
54
|
import {
|
|
55
55
|
cwd
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-T2GATXSP.js";
|
|
57
57
|
import {
|
|
58
58
|
__commonJS,
|
|
59
59
|
__require,
|
|
@@ -29291,7 +29291,7 @@ var require_lib3 = __commonJS({
|
|
|
29291
29291
|
|
|
29292
29292
|
// ../cli-kit/dist/public/common/version.js
|
|
29293
29293
|
init_cjs_shims();
|
|
29294
|
-
var CLI_KIT_VERSION = "3.69.
|
|
29294
|
+
var CLI_KIT_VERSION = "3.69.1";
|
|
29295
29295
|
|
|
29296
29296
|
// ../cli-kit/dist/private/node/analytics.js
|
|
29297
29297
|
init_cjs_shims();
|
|
@@ -34657,4 +34657,4 @@ mime-types/index.js:
|
|
|
34657
34657
|
* MIT Licensed
|
|
34658
34658
|
*)
|
|
34659
34659
|
*/
|
|
34660
|
-
//# sourceMappingURL=chunk-
|
|
34660
|
+
//# sourceMappingURL=chunk-TH2T6E35.js.map
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
getLastSeenUserIdAfterAuth,
|
|
7
7
|
getSensitiveEnvironmentData,
|
|
8
8
|
platformAndArch
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TH2T6E35.js";
|
|
10
10
|
import {
|
|
11
11
|
require_semver,
|
|
12
12
|
runWithRateLimit
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XMXXJYAD.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-RARQUUYC.js";
|
|
45
45
|
import {
|
|
46
46
|
envPaths,
|
|
47
47
|
pathConstants,
|
|
48
48
|
reportingRateLimit
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-P7JUHQKL.js";
|
|
50
50
|
import {
|
|
51
51
|
cwd,
|
|
52
52
|
dirname,
|
|
53
53
|
joinPath
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-T2GATXSP.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-VTDJL77Q.js.map
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
require_get_stream,
|
|
18
18
|
runWithTimer,
|
|
19
19
|
writeFile
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RARQUUYC.js";
|
|
21
21
|
import {
|
|
22
22
|
envPaths
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-P7JUHQKL.js";
|
|
24
24
|
import {
|
|
25
25
|
dirname,
|
|
26
26
|
joinPath
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-T2GATXSP.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-XMXXJYAD.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
packageManagerFromUserAgent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XMXXJYAD.js";
|
|
4
4
|
import {
|
|
5
5
|
currentProcessIsGlobal,
|
|
6
6
|
inferPackageManagerForGlobalCLI,
|
|
7
7
|
outputContent,
|
|
8
8
|
outputToken
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RARQUUYC.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-XWGFZ4FB.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-P7JUHQKL.js";
|
|
11
|
+
import "./chunk-T2GATXSP.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-T7JXE5K7.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
execaSync,
|
|
3
3
|
fileExistsSync
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RARQUUYC.js";
|
|
5
5
|
import {
|
|
6
6
|
require_lib
|
|
7
7
|
} from "./chunk-AZIUHI45.js";
|
|
@@ -12,12 +12,12 @@ import "./chunk-XVNW332R.js";
|
|
|
12
12
|
import "./chunk-L7M22NDW.js";
|
|
13
13
|
import "./chunk-MX4RJDBM.js";
|
|
14
14
|
import "./chunk-NB4NLOEJ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-P7JUHQKL.js";
|
|
16
16
|
import {
|
|
17
17
|
cwd,
|
|
18
18
|
joinPath,
|
|
19
19
|
sniffForPath
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-T2GATXSP.js";
|
|
21
21
|
import "./chunk-PNN7RS7Y.js";
|
|
22
22
|
import {
|
|
23
23
|
__toESM,
|
|
@@ -45,4 +45,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
|
|
|
45
45
|
export {
|
|
46
46
|
ShopifyConfig
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=custom-oclif-loader-
|
|
48
|
+
//# sourceMappingURL=custom-oclif-loader-ZOTPUMCE.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-2KQ4LDTO.js";
|
|
8
|
+
import "./chunk-VTDJL77Q.js";
|
|
9
|
+
import "./chunk-TH2T6E35.js";
|
|
10
10
|
import "./chunk-VSLR7ET4.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-XMXXJYAD.js";
|
|
12
|
+
import "./chunk-RARQUUYC.js";
|
|
13
13
|
import "./chunk-AZIUHI45.js";
|
|
14
14
|
import "./chunk-SNOECVP4.js";
|
|
15
15
|
import "./chunk-UBB7JKND.js";
|
|
@@ -19,8 +19,8 @@ import "./chunk-XVNW332R.js";
|
|
|
19
19
|
import "./chunk-L7M22NDW.js";
|
|
20
20
|
import "./chunk-MX4RJDBM.js";
|
|
21
21
|
import "./chunk-NB4NLOEJ.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-P7JUHQKL.js";
|
|
23
|
+
import "./chunk-T2GATXSP.js";
|
|
24
24
|
import "./chunk-PNN7RS7Y.js";
|
|
25
25
|
import "./chunk-POZ5MGPT.js";
|
|
26
26
|
export {
|
|
@@ -30,4 +30,4 @@ export {
|
|
|
30
30
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
31
31
|
sendErrorToBugsnag
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=error-handler-
|
|
33
|
+
//# sourceMappingURL=error-handler-WHMVXDIQ.js.map
|
package/dist/hooks/postrun.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reportAnalyticsEvent
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-VTDJL77Q.js";
|
|
4
4
|
import {
|
|
5
5
|
getNextDeprecationDate
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-TH2T6E35.js";
|
|
7
7
|
import "../chunk-VSLR7ET4.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-XMXXJYAD.js";
|
|
9
9
|
import {
|
|
10
10
|
addSensitiveMetadata,
|
|
11
11
|
getAllSensitiveMetadata,
|
|
12
12
|
outputDebug,
|
|
13
13
|
renderWarning
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-RARQUUYC.js";
|
|
15
15
|
import "../chunk-AZIUHI45.js";
|
|
16
16
|
import "../chunk-SNOECVP4.js";
|
|
17
17
|
import "../chunk-UBB7JKND.js";
|
|
@@ -20,8 +20,8 @@ import "../chunk-XVNW332R.js";
|
|
|
20
20
|
import "../chunk-L7M22NDW.js";
|
|
21
21
|
import "../chunk-MX4RJDBM.js";
|
|
22
22
|
import "../chunk-NB4NLOEJ.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-P7JUHQKL.js";
|
|
24
|
+
import "../chunk-T2GATXSP.js";
|
|
25
25
|
import "../chunk-PNN7RS7Y.js";
|
|
26
26
|
import {
|
|
27
27
|
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-XWGFZ4FB.js";
|
|
4
4
|
import {
|
|
5
5
|
CLI_KIT_VERSION,
|
|
6
6
|
startAnalytics
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-TH2T6E35.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-XMXXJYAD.js";
|
|
14
14
|
import {
|
|
15
15
|
initDemoRecorder,
|
|
16
16
|
outputDebug,
|
|
17
17
|
outputWarn
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-RARQUUYC.js";
|
|
19
19
|
import "../chunk-AZIUHI45.js";
|
|
20
20
|
import "../chunk-SNOECVP4.js";
|
|
21
21
|
import "../chunk-UBB7JKND.js";
|
|
@@ -24,8 +24,8 @@ import "../chunk-XVNW332R.js";
|
|
|
24
24
|
import "../chunk-L7M22NDW.js";
|
|
25
25
|
import "../chunk-MX4RJDBM.js";
|
|
26
26
|
import "../chunk-NB4NLOEJ.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-P7JUHQKL.js";
|
|
28
|
+
import "../chunk-T2GATXSP.js";
|
|
29
29
|
import "../chunk-PNN7RS7Y.js";
|
|
30
30
|
import {
|
|
31
31
|
init_cjs_shims
|
package/dist/index.js
CHANGED
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
errorHandler,
|
|
9
9
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
10
10
|
require_end_of_stream
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2KQ4LDTO.js";
|
|
12
12
|
import {
|
|
13
13
|
execCLI2,
|
|
14
14
|
fanoutHooks,
|
|
15
15
|
getListOfTunnelPlugins,
|
|
16
16
|
reportAnalyticsEvent,
|
|
17
17
|
version
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VTDJL77Q.js";
|
|
19
19
|
import {
|
|
20
20
|
getOutputUpdateCLIReminder
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XWGFZ4FB.js";
|
|
22
22
|
import {
|
|
23
23
|
CLI_KIT_VERSION,
|
|
24
24
|
ClientError,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
setNextDeprecationDate,
|
|
65
65
|
username,
|
|
66
66
|
z
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-TH2T6E35.js";
|
|
68
68
|
import "./chunk-VSLR7ET4.js";
|
|
69
69
|
import {
|
|
70
70
|
LocalStorage,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
usesWorkspaces,
|
|
87
87
|
versionSatisfies,
|
|
88
88
|
writePackageJSON
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-XMXXJYAD.js";
|
|
90
90
|
import {
|
|
91
91
|
AbortController as AbortController2,
|
|
92
92
|
AbortError,
|
|
@@ -256,7 +256,7 @@ import {
|
|
|
256
256
|
use_stdin_default,
|
|
257
257
|
writeFile,
|
|
258
258
|
writeFileSync
|
|
259
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-RARQUUYC.js";
|
|
260
260
|
import {
|
|
261
261
|
require_brace_expansion,
|
|
262
262
|
require_lib
|
|
@@ -285,7 +285,7 @@ import {
|
|
|
285
285
|
import "./chunk-NB4NLOEJ.js";
|
|
286
286
|
import {
|
|
287
287
|
logsFolder
|
|
288
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-P7JUHQKL.js";
|
|
289
289
|
import {
|
|
290
290
|
basename,
|
|
291
291
|
cwd,
|
|
@@ -299,7 +299,7 @@ import {
|
|
|
299
299
|
relativizePath,
|
|
300
300
|
resolvePath,
|
|
301
301
|
sniffForJson
|
|
302
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-T2GATXSP.js";
|
|
303
303
|
import "./chunk-PNN7RS7Y.js";
|
|
304
304
|
import {
|
|
305
305
|
__commonJS,
|
|
@@ -142145,7 +142145,10 @@ var MAX_EXTENSION_HANDLE_LENGTH = 50, MetafieldSchema = z.object({
|
|
|
142145
142145
|
module: z.string(),
|
|
142146
142146
|
metafields: z.array(MetafieldSchema).optional(),
|
|
142147
142147
|
default_placement: z.string().optional(),
|
|
142148
|
-
capabilities: TargetCapabilitiesSchema.optional()
|
|
142148
|
+
capabilities: TargetCapabilitiesSchema.optional(),
|
|
142149
|
+
preloads: z.object({
|
|
142150
|
+
chat: z.string().optional()
|
|
142151
|
+
}).optional()
|
|
142149
142152
|
}), NewExtensionPointsSchema = z.array(NewExtensionPointSchema), ApiVersionSchema = z.string(), FieldSchema = z.object({
|
|
142150
142153
|
key: z.string().optional(),
|
|
142151
142154
|
name: z.string().optional(),
|
|
@@ -146518,14 +146521,14 @@ var PublicApiVersions = {
|
|
|
146518
146521
|
|
|
146519
146522
|
// ../cli-kit/dist/public/node/api/admin.js
|
|
146520
146523
|
async function adminRequest(query, session, variables) {
|
|
146521
|
-
let api = "Admin", version2 = await fetchLatestSupportedApiVersion(session),
|
|
146524
|
+
let api = "Admin", version2 = await fetchLatestSupportedApiVersion(session), store = await normalizeStoreFqdn(session.storeFqdn), url = adminUrl(store, version2);
|
|
146522
146525
|
return graphqlRequest({ query, api, url, token: session.token, variables });
|
|
146523
146526
|
}
|
|
146524
146527
|
async function adminRequestDoc(query, session, variables, version2, responseOptions) {
|
|
146525
146528
|
let apiVersion = version2;
|
|
146526
146529
|
version2 || (apiVersion = await fetchLatestSupportedApiVersion(session));
|
|
146527
|
-
let opts = {
|
|
146528
|
-
url: adminUrl(
|
|
146530
|
+
let store = await normalizeStoreFqdn(session.storeFqdn), opts = {
|
|
146531
|
+
url: adminUrl(store, apiVersion),
|
|
146529
146532
|
api: "Admin",
|
|
146530
146533
|
token: session.token
|
|
146531
146534
|
};
|
|
@@ -146544,12 +146547,12 @@ async function fetchApiVersions(session) {
|
|
|
146544
146547
|
if (error instanceof ClientError && error.response.status === 403) {
|
|
146545
146548
|
let storeName = session.storeFqdn.replace(".myshopify.com", "");
|
|
146546
146549
|
throw new AbortError(outputContent`Looks like you don't have access this dev store: (${outputToken.link(storeName, `https://${session.storeFqdn}`)})`, outputContent`If you're not the owner, create a dev store staff account for yourself`);
|
|
146547
|
-
}
|
|
146548
|
-
|
|
146550
|
+
} else
|
|
146551
|
+
throw error instanceof ClientError ? new BugError(`Unknown client error connecting to your store ${session.storeFqdn}: ${error.message} ${error.response.status} ${error.response.data}`) : new BugError(`Unknown error connecting to your store ${session.storeFqdn}: ${error instanceof Error ? error.message : String(error)}`);
|
|
146549
146552
|
}
|
|
146550
146553
|
}
|
|
146551
146554
|
function adminUrl(store, version2) {
|
|
146552
|
-
return `https://${store}/admin/api/${version2
|
|
146555
|
+
return `https://${store}/admin/api/${version2 ?? "unstable"}/graphql.json`;
|
|
146553
146556
|
}
|
|
146554
146557
|
async function restRequest(method, path, session, requestBody, searchParams = {}, apiVersion = "unstable") {
|
|
146555
146558
|
let url = restRequestUrl(session, apiVersion, path, searchParams), body = restRequestBody(requestBody), headers = restRequestHeaders(session), response = await fetch2(url, {
|
|
@@ -146602,7 +146605,8 @@ var dependency5 = "@shopify/checkout-ui-extensions", validatePoints = (config2)
|
|
|
146602
146605
|
module: targeting.module,
|
|
146603
146606
|
metafields: targeting.metafields ?? config2.metafields ?? [],
|
|
146604
146607
|
default_placement_reference: targeting.default_placement,
|
|
146605
|
-
capabilities: targeting.capabilities
|
|
146608
|
+
capabilities: targeting.capabilities,
|
|
146609
|
+
preloads: targeting.preloads ?? {}
|
|
146606
146610
|
}));
|
|
146607
146611
|
return { ...config2, extension_points: extensionPoints };
|
|
146608
146612
|
}), uiExtensionSpec = createExtensionSpecification({
|
|
@@ -152058,7 +152062,7 @@ import { fileURLToPath as fileURLToPath2 } from "url";
|
|
|
152058
152062
|
async function warnIfOldNodeVersion() {
|
|
152059
152063
|
let nodeVersion = process.versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
152060
152064
|
if (nodeMajorVersion < 18) {
|
|
152061
|
-
let { renderWarning: renderWarning2 } = await import("./ui-
|
|
152065
|
+
let { renderWarning: renderWarning2 } = await import("./ui-UYOJO4WW.js");
|
|
152062
152066
|
renderWarning2({
|
|
152063
152067
|
headline: "Upgrade to a supported Node version now.",
|
|
152064
152068
|
body: [
|
|
@@ -152083,7 +152087,7 @@ function forceNoColor() {
|
|
|
152083
152087
|
}
|
|
152084
152088
|
async function runCLI(options) {
|
|
152085
152089
|
setupEnvironmentVariables(options), forceNoColor(), await warnIfOldNodeVersion();
|
|
152086
|
-
let { errorHandler: errorHandler2 } = await import("./error-handler-
|
|
152090
|
+
let { errorHandler: errorHandler2 } = await import("./error-handler-WHMVXDIQ.js"), { isDevelopment: isDevelopment2 } = await import("./local-PEZP7E77.js"), oclif = await import("./lib-H5ZGVBFQ.js"), { ShopifyConfig } = await import("./custom-oclif-loader-ZOTPUMCE.js");
|
|
152087
152091
|
isDevelopment2() && (oclif.default.settings.debug = !0);
|
|
152088
152092
|
try {
|
|
152089
152093
|
let config2 = new ShopifyConfig({ root: fileURLToPath2(options.moduleURL) });
|
|
@@ -152094,7 +152098,7 @@ async function runCLI(options) {
|
|
|
152094
152098
|
}
|
|
152095
152099
|
async function runCreateCLI(options) {
|
|
152096
152100
|
setupEnvironmentVariables(options);
|
|
152097
|
-
let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-
|
|
152101
|
+
let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-HO3FW4GK.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-T2RCZTRE.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options.moduleURL))).content.name.replace("@shopify/create-", "");
|
|
152098
152102
|
if (process.argv.findIndex((arg) => arg.includes("init")) === -1) {
|
|
152099
152103
|
let initIndex2 = process.argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
|
|
152100
152104
|
process.argv.splice(initIndex2, 0, "init");
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
themeToken,
|
|
22
22
|
useEmbeddedThemeCLI,
|
|
23
23
|
useThemebundling
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-RARQUUYC.js";
|
|
25
25
|
import "./chunk-AZIUHI45.js";
|
|
26
26
|
import "./chunk-SNOECVP4.js";
|
|
27
27
|
import "./chunk-UBB7JKND.js";
|
|
@@ -30,8 +30,8 @@ import "./chunk-XVNW332R.js";
|
|
|
30
30
|
import "./chunk-L7M22NDW.js";
|
|
31
31
|
import "./chunk-MX4RJDBM.js";
|
|
32
32
|
import "./chunk-NB4NLOEJ.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-P7JUHQKL.js";
|
|
34
|
+
import "./chunk-T2GATXSP.js";
|
|
35
35
|
import "./chunk-PNN7RS7Y.js";
|
|
36
36
|
import "./chunk-POZ5MGPT.js";
|
|
37
37
|
export {
|
|
@@ -58,4 +58,4 @@ export {
|
|
|
58
58
|
useEmbeddedThemeCLI,
|
|
59
59
|
useThemebundling
|
|
60
60
|
};
|
|
61
|
-
//# sourceMappingURL=local-
|
|
61
|
+
//# sourceMappingURL=local-PEZP7E77.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-XMXXJYAD.js";
|
|
32
|
+
import "./chunk-RARQUUYC.js";
|
|
33
33
|
import "./chunk-AZIUHI45.js";
|
|
34
34
|
import "./chunk-SNOECVP4.js";
|
|
35
35
|
import "./chunk-UBB7JKND.js";
|
|
@@ -38,8 +38,8 @@ import "./chunk-XVNW332R.js";
|
|
|
38
38
|
import "./chunk-L7M22NDW.js";
|
|
39
39
|
import "./chunk-MX4RJDBM.js";
|
|
40
40
|
import "./chunk-NB4NLOEJ.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-P7JUHQKL.js";
|
|
42
|
+
import "./chunk-T2GATXSP.js";
|
|
43
43
|
import "./chunk-PNN7RS7Y.js";
|
|
44
44
|
import "./chunk-POZ5MGPT.js";
|
|
45
45
|
export {
|
|
@@ -73,4 +73,4 @@ export {
|
|
|
73
73
|
writePackageJSON,
|
|
74
74
|
yarnLockfile
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=node-package-manager-
|
|
76
|
+
//# sourceMappingURL=node-package-manager-HO3FW4GK.js.map
|