@shopify/create-app 3.91.1 → 3.92.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-NTSWA5QE.js → chunk-6VIP6FXG.js} +5 -5
- package/dist/{chunk-XKZES4F6.js → chunk-CCWLFNWN.js} +110 -166
- package/dist/{chunk-Y2JP6WFP.js → chunk-CFNYEDC6.js} +14 -1
- package/dist/{chunk-VGSXEE45.js → chunk-QYFBWGDH.js} +3 -3
- package/dist/{chunk-7WLIB5CO.js → chunk-QZMFOTZO.js} +33 -10
- package/dist/{chunk-NSOYPXEP.js → chunk-RIXXPHKS.js} +17157 -13637
- package/dist/{chunk-D7M6DPGX.js → chunk-Z4EMJFGP.js} +7755 -6908
- package/dist/{custom-oclif-loader-O5NHEHOX.js → custom-oclif-loader-N6CT4XKA.js} +4 -4
- package/dist/{devtools-BAOTGU3O.js → devtools-PI7DMKVT.js} +4 -4
- package/dist/{error-handler-LIQZ7B4V.js → error-handler-SDB6N5WP.js} +6 -6
- package/dist/hooks/postrun.js +6 -6
- package/dist/hooks/prerun.js +6 -6
- package/dist/index.js +25445 -30077
- package/dist/index.test.js +7 -7
- package/dist/{lib-YAB2PPNZ.js → lib-7YQ4OA7Q.js} +2 -2
- package/dist/{local-EM7FKRTJ.js → local-ZY5T7LWJ.js} +4 -4
- package/dist/{node-package-manager-DKTBERVR.js → node-package-manager-BU2KNU5H.js} +5 -5
- package/dist/{path-COZT77T2.js → path-4PMUDKKD.js} +4 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-A2SGHP45.js → ui-5EPBXHCW.js} +4 -4
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
BugError,
|
|
5
5
|
captureOutput,
|
|
6
6
|
envPaths,
|
|
7
|
+
environmentVariables,
|
|
7
8
|
exec,
|
|
8
9
|
fileExists,
|
|
9
10
|
fileHasWritePermissions,
|
|
@@ -20,14 +21,14 @@ import {
|
|
|
20
21
|
runWithTimer,
|
|
21
22
|
unixFileIsOwnedByCurrentUser,
|
|
22
23
|
writeFile
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-RIXXPHKS.js";
|
|
24
25
|
import {
|
|
25
26
|
require_semver
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-Z4EMJFGP.js";
|
|
27
28
|
import {
|
|
28
29
|
dirname,
|
|
29
30
|
joinPath
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CFNYEDC6.js";
|
|
31
32
|
import {
|
|
32
33
|
__commonJS,
|
|
33
34
|
__require,
|
|
@@ -9016,6 +9017,19 @@ init_cjs_shims();
|
|
|
9016
9017
|
// ../cli-kit/dist/private/node/conf-store.js
|
|
9017
9018
|
init_cjs_shims();
|
|
9018
9019
|
|
|
9020
|
+
// ../cli-kit/dist/private/node/context/service.js
|
|
9021
|
+
init_cjs_shims();
|
|
9022
|
+
var Environment;
|
|
9023
|
+
(function(Environment2) {
|
|
9024
|
+
Environment2.Local = "local", Environment2.Production = "production";
|
|
9025
|
+
})(Environment || (Environment = {}));
|
|
9026
|
+
function serviceEnvironment(env = process.env) {
|
|
9027
|
+
return env[environmentVariables.serviceEnv] === "local" ? Environment.Local : Environment.Production;
|
|
9028
|
+
}
|
|
9029
|
+
function isLocalEnvironment(env = process.env) {
|
|
9030
|
+
return serviceEnvironment(env) === Environment.Local;
|
|
9031
|
+
}
|
|
9032
|
+
|
|
9019
9033
|
// ../cli-kit/dist/public/node/local-storage.js
|
|
9020
9034
|
init_cjs_shims();
|
|
9021
9035
|
|
|
@@ -9876,23 +9890,29 @@ var _instance;
|
|
|
9876
9890
|
function cliKitStore() {
|
|
9877
9891
|
return _instance || (_instance = new LocalStorage({ projectName: `shopify-cli-kit${isUnitTest() ? "-test" : ""}` })), _instance;
|
|
9878
9892
|
}
|
|
9893
|
+
function sessionStoreKey() {
|
|
9894
|
+
return isLocalEnvironment() ? "devSessionStore" : "sessionStore";
|
|
9895
|
+
}
|
|
9896
|
+
function currentSessionIdKey() {
|
|
9897
|
+
return isLocalEnvironment() ? "currentDevSessionId" : "currentSessionId";
|
|
9898
|
+
}
|
|
9879
9899
|
function getSessions(config = cliKitStore()) {
|
|
9880
|
-
return outputDebug(outputContent`Getting session store...`), config.get(
|
|
9900
|
+
return outputDebug(outputContent`Getting session store...`), config.get(sessionStoreKey());
|
|
9881
9901
|
}
|
|
9882
9902
|
function setSessions(session, config = cliKitStore()) {
|
|
9883
|
-
outputDebug(outputContent`Setting session store...`), config.set(
|
|
9903
|
+
outputDebug(outputContent`Setting session store...`), config.set(sessionStoreKey(), session);
|
|
9884
9904
|
}
|
|
9885
9905
|
function removeSessions(config = cliKitStore()) {
|
|
9886
|
-
outputDebug(outputContent`Removing session store...`), config.delete(
|
|
9906
|
+
outputDebug(outputContent`Removing session store...`), config.delete(sessionStoreKey());
|
|
9887
9907
|
}
|
|
9888
9908
|
function getCurrentSessionId(config = cliKitStore()) {
|
|
9889
|
-
return outputDebug(outputContent`Getting current session ID...`), config.get(
|
|
9909
|
+
return outputDebug(outputContent`Getting current session ID...`), config.get(currentSessionIdKey());
|
|
9890
9910
|
}
|
|
9891
9911
|
function setCurrentSessionId(sessionId, config = cliKitStore()) {
|
|
9892
|
-
outputDebug(outputContent`Setting current session ID...`), config.set(
|
|
9912
|
+
outputDebug(outputContent`Setting current session ID...`), config.set(currentSessionIdKey(), sessionId);
|
|
9893
9913
|
}
|
|
9894
9914
|
function removeCurrentSessionId(config = cliKitStore()) {
|
|
9895
|
-
outputDebug(outputContent`Removing current session ID...`), config.delete(
|
|
9915
|
+
outputDebug(outputContent`Removing current session ID...`), config.delete(currentSessionIdKey());
|
|
9896
9916
|
}
|
|
9897
9917
|
async function cacheRetrieveOrRepopulate(key, fn, timeout, config = cliKitStore()) {
|
|
9898
9918
|
let cached = cacheRetrieve(key, config);
|
|
@@ -13921,6 +13941,9 @@ function inferPackageManager(optionsPackageManager, env = process.env) {
|
|
|
13921
13941
|
}
|
|
13922
13942
|
|
|
13923
13943
|
export {
|
|
13944
|
+
Environment,
|
|
13945
|
+
serviceEnvironment,
|
|
13946
|
+
isLocalEnvironment,
|
|
13924
13947
|
require_ajv,
|
|
13925
13948
|
LocalStorage,
|
|
13926
13949
|
getSessions,
|
|
@@ -13996,4 +14019,4 @@ deep-extend/lib/deep-extend.js:
|
|
|
13996
14019
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
13997
14020
|
*)
|
|
13998
14021
|
*/
|
|
13999
|
-
//# sourceMappingURL=chunk-
|
|
14022
|
+
//# sourceMappingURL=chunk-QZMFOTZO.js.map
|