@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
|
@@ -14,8 +14,7 @@ var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
|
14
14
|
function normalizeWindowsPath(input = "") {
|
|
15
15
|
return input && input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
16
16
|
}
|
|
17
|
-
var _UNC_REGEX = /^[/\\]{2}/, _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE = /^[A-Za-z]:$/, _ROOT_FOLDER_RE = /^\/([A-Za-z]:)
|
|
18
|
-
var delimiter = ":", normalize = function(path2) {
|
|
17
|
+
var _UNC_REGEX = /^[/\\]{2}/, _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE = /^[A-Za-z]:$/, _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/, sep = "/", delimiter = ":", normalize = function(path2) {
|
|
19
18
|
if (path2.length === 0)
|
|
20
19
|
return ".";
|
|
21
20
|
path2 = normalizeWindowsPath(path2);
|
|
@@ -176,6 +175,7 @@ function sanitizeRelativePath(input, warn) {
|
|
|
176
175
|
}
|
|
177
176
|
|
|
178
177
|
export {
|
|
178
|
+
sep,
|
|
179
179
|
delimiter,
|
|
180
180
|
join,
|
|
181
181
|
joinPath,
|
|
@@ -196,4 +196,4 @@ export {
|
|
|
196
196
|
sniffForJson,
|
|
197
197
|
sanitizeRelativePath
|
|
198
198
|
};
|
|
199
|
-
//# sourceMappingURL=chunk-
|
|
199
|
+
//# sourceMappingURL=chunk-ACS6S42W.js.map
|
|
@@ -1,22 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
fetch,
|
|
3
3
|
jsonOutputEnabled,
|
|
4
4
|
z
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-STHW3YIX.js";
|
|
6
6
|
import {
|
|
7
|
-
cacheRetrieve,
|
|
8
|
-
cacheStore,
|
|
9
7
|
versionSatisfies
|
|
10
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IGDZPTDH.js";
|
|
9
|
+
import {
|
|
10
|
+
CLI_KIT_VERSION
|
|
11
|
+
} from "./chunk-ANIFE3UR.js";
|
|
12
|
+
import {
|
|
13
|
+
cacheRetrieve,
|
|
14
|
+
cacheStore
|
|
15
|
+
} from "./chunk-YUPQUA3D.js";
|
|
11
16
|
import {
|
|
12
|
-
AbortSilentError,
|
|
13
17
|
exec,
|
|
14
|
-
isTruthy,
|
|
15
|
-
outputDebug,
|
|
16
18
|
renderError,
|
|
17
19
|
renderInfo,
|
|
18
20
|
renderWarning
|
|
19
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YIHECXVH.js";
|
|
22
|
+
import {
|
|
23
|
+
AbortSilentError
|
|
24
|
+
} from "./chunk-JUV7D377.js";
|
|
25
|
+
import {
|
|
26
|
+
outputDebug
|
|
27
|
+
} from "./chunk-LNOZTAML.js";
|
|
28
|
+
import {
|
|
29
|
+
isTruthy
|
|
30
|
+
} from "./chunk-4CS37CS5.js";
|
|
20
31
|
import {
|
|
21
32
|
init_cjs_shims
|
|
22
33
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -84,7 +95,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
|
|
|
84
95
|
throw new AbortSilentError();
|
|
85
96
|
let errorMessage = `Error showing notifications: ${error.message}`;
|
|
86
97
|
outputDebug(errorMessage);
|
|
87
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
98
|
+
let { sendErrorToBugsnag } = await import("./error-handler-KHJE653Z.js");
|
|
88
99
|
await sendErrorToBugsnag(errorMessage, "unexpected_error");
|
|
89
100
|
}
|
|
90
101
|
}
|
|
@@ -121,6 +132,21 @@ async function getNotifications() {
|
|
|
121
132
|
let notifications = JSON.parse(rawNotifications);
|
|
122
133
|
return NotificationsSchema.parse(notifications);
|
|
123
134
|
}
|
|
135
|
+
async function fetchNotifications() {
|
|
136
|
+
outputDebug("Fetching notifications...");
|
|
137
|
+
let response = await fetch(url(), void 0, {
|
|
138
|
+
useNetworkLevelRetry: !1,
|
|
139
|
+
useAbortSignal: !0,
|
|
140
|
+
timeoutMs: 3 * 1e3
|
|
141
|
+
});
|
|
142
|
+
if (response.status !== 200)
|
|
143
|
+
throw new Error(`Failed to fetch notifications: ${response.statusText}`);
|
|
144
|
+
let rawNotifications = await response.text(), notifications = JSON.parse(rawNotifications), result = NotificationsSchema.parse(notifications);
|
|
145
|
+
return await cacheNotifications(rawNotifications), result;
|
|
146
|
+
}
|
|
147
|
+
async function cacheNotifications(notifications) {
|
|
148
|
+
cacheStore(`notifications-${url()}`, notifications), outputDebug(`Notifications from ${url()} stored in the cache`);
|
|
149
|
+
}
|
|
124
150
|
function fetchNotificationsInBackground(currentCommand, argv = process.argv, environment = process.env) {
|
|
125
151
|
if (skipNotifications(currentCommand, environment) || !argv[0] || !argv[1])
|
|
126
152
|
return;
|
|
@@ -168,10 +194,19 @@ function filterByFrequency(notification) {
|
|
|
168
194
|
return (/* @__PURE__ */ new Date()).getTime() - Number(lastShown) > 168 * 3600 * 1e3;
|
|
169
195
|
}
|
|
170
196
|
}
|
|
197
|
+
function stringifyFilters(notification) {
|
|
198
|
+
let filters = [];
|
|
199
|
+
return notification.minDate && filters.push(`from ${notification.minDate}`), notification.maxDate && filters.push(`to ${notification.maxDate}`), notification.minVersion && filters.push(`from v${notification.minVersion}`), notification.maxVersion && filters.push(`to v${notification.maxVersion}`), notification.frequency === "once" && filters.push("show only once"), notification.frequency === "once_a_day" && filters.push("show once a day"), notification.frequency === "once_a_week" && filters.push("show once a week"), notification.surface && filters.push(`surface = ${notification.surface}`), notification.commands && filters.push(`commands = ${notification.commands.join(", ")}`), filters.join(`
|
|
200
|
+
`);
|
|
201
|
+
}
|
|
171
202
|
|
|
172
203
|
export {
|
|
173
204
|
setCurrentCommandId,
|
|
174
205
|
showNotificationsIfNeeded,
|
|
175
|
-
|
|
206
|
+
getNotifications,
|
|
207
|
+
fetchNotifications,
|
|
208
|
+
fetchNotificationsInBackground,
|
|
209
|
+
filterNotifications,
|
|
210
|
+
stringifyFilters
|
|
176
211
|
};
|
|
177
|
-
//# sourceMappingURL=chunk-
|
|
212
|
+
//# sourceMappingURL=chunk-DHAC6KEL.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS,
|
|
3
|
+
init_cjs_shims
|
|
4
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
5
|
+
|
|
6
|
+
// ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
7
|
+
var require_has_flag = __commonJS({
|
|
8
|
+
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module) {
|
|
9
|
+
"use strict";
|
|
10
|
+
init_cjs_shims();
|
|
11
|
+
module.exports = (flag, argv = process.argv) => {
|
|
12
|
+
let prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--", position = argv.indexOf(prefix + flag), terminatorPosition = argv.indexOf("--");
|
|
13
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
require_has_flag
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chunk-DJW2W7VA.js.map
|