@commercetools-frontend/mc-scripts 27.9.0 → 27.9.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/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.dev.js +1 -1
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.prod.js +1 -1
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.esm.js +1 -1
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +17 -17
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +17 -17
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +17 -17
- package/dist/{build-1d64eec3.esm.js → build-5a0c84e7.esm.js} +8 -8
- package/dist/{build-bfc565e1.cjs.dev.js → build-b9cbc1d1.cjs.dev.js} +8 -8
- package/dist/{build-ffa10fc4.cjs.prod.js → build-cdeab3a8.cjs.prod.js} +8 -8
- package/dist/{build-vite-e4eeb1a3.cjs.dev.js → build-vite-0e8f3463.cjs.dev.js} +16 -14
- package/dist/{build-vite-377f721f.cjs.prod.js → build-vite-aa0e7242.cjs.prod.js} +16 -14
- package/dist/{build-vite-2ea8a241.esm.js → build-vite-ce3c4fb6.esm.js} +16 -14
- package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
- package/dist/{compile-html-f4ac88cc.cjs.dev.js → compile-html-8679f721.cjs.dev.js} +5 -2
- package/dist/{compile-html-025cd493.esm.js → compile-html-adfef598.esm.js} +4 -2
- package/dist/{compile-html-50fd05ec.cjs.prod.js → compile-html-b80f9651.cjs.prod.js} +5 -2
- package/dist/{config-sync-5a7916dc.cjs.dev.js → config-sync-2b56a941.cjs.dev.js} +17 -17
- package/dist/{config-sync-df11a5bf.cjs.prod.js → config-sync-41bc7f5e.cjs.prod.js} +17 -17
- package/dist/{config-sync-be573249.esm.js → config-sync-7031a7de.esm.js} +17 -17
- package/dist/{config-sync-ci-a34b7b54.esm.js → config-sync-ci-1866c188.esm.js} +25 -20
- package/dist/{config-sync-ci-1d706e60.cjs.dev.js → config-sync-ci-6d12f2f3.cjs.dev.js} +27 -22
- package/dist/{config-sync-ci-9bb94255.cjs.prod.js → config-sync-ci-ea943de9.cjs.prod.js} +27 -22
- package/dist/{config-sync-helpers-5fbe31c5.cjs.dev.js → config-sync-helpers-36985f8c.cjs.dev.js} +57 -48
- package/dist/{config-sync-helpers-aaaa44ef.cjs.prod.js → config-sync-helpers-79ccaaad.cjs.prod.js} +55 -46
- package/dist/{config-sync-helpers-876b7d09.esm.js → config-sync-helpers-875ef4a4.esm.js} +56 -47
- package/dist/{create-postcss-config-3a80caef.cjs.dev.js → create-postcss-config-13cb1cb8.cjs.dev.js} +1 -1
- package/dist/{create-postcss-config-7d0b0ae1.cjs.prod.js → create-postcss-config-1eeb3d9d.cjs.prod.js} +1 -1
- package/dist/{create-postcss-config-a9f7c8a8.esm.js → create-postcss-config-390e8a52.esm.js} +1 -1
- package/dist/{create-webpack-config-for-development-ee3e94e6.cjs.prod.js → create-webpack-config-for-development-6608b4e4.cjs.prod.js} +15 -10
- package/dist/{create-webpack-config-for-development-a81db65f.cjs.dev.js → create-webpack-config-for-development-9a3a3a93.cjs.dev.js} +15 -10
- package/dist/{create-webpack-config-for-development-34ec7d5c.esm.js → create-webpack-config-for-development-dd95f3d5.esm.js} +15 -9
- package/dist/{create-webpack-config-for-production-585f2e76.cjs.dev.js → create-webpack-config-for-production-29b34b8c.cjs.dev.js} +8 -8
- package/dist/{create-webpack-config-for-production-f1317617.cjs.prod.js → create-webpack-config-for-production-2e6e5036.cjs.prod.js} +8 -8
- package/dist/{create-webpack-config-for-production-633d3891.esm.js → create-webpack-config-for-production-31bb3d24.esm.js} +8 -8
- package/dist/{credentials-storage-fd195144.cjs.dev.js → credentials-storage-1826f1a2.cjs.dev.js} +1 -1
- package/dist/{credentials-storage-ea1c16dc.cjs.prod.js → credentials-storage-60a63c81.cjs.prod.js} +1 -1
- package/dist/{credentials-storage-67deadc3.esm.js → credentials-storage-bfaa78f0.esm.js} +1 -1
- package/dist/{deployment-previews-set-ee6978a8.esm.js → deployment-previews-set-410cecf1.esm.js} +27 -22
- package/dist/{deployment-previews-set-5aeb990a.cjs.dev.js → deployment-previews-set-a04efad3.cjs.dev.js} +28 -22
- package/dist/{deployment-previews-set-d96668d6.cjs.prod.js → deployment-previews-set-bebd7a04.cjs.prod.js} +28 -22
- package/dist/{graphql-requests-d1683e27.cjs.dev.js → graphql-requests-1ea68584.cjs.dev.js} +8 -5
- package/dist/{graphql-requests-8a5d602b.cjs.prod.js → graphql-requests-98b1b779.cjs.prod.js} +8 -5
- package/dist/{graphql-requests-1bd861af.esm.js → graphql-requests-c491206a.esm.js} +8 -5
- package/dist/{i18n-message-complilation-7311cb29.cjs.dev.js → i18n-message-complilation-393d344a.cjs.prod.js} +1 -1
- package/dist/{i18n-message-complilation-7762da61.cjs.prod.js → i18n-message-complilation-3f80e8d6.cjs.dev.js} +1 -1
- package/dist/{i18n-message-complilation-21d3b0aa.esm.js → i18n-message-complilation-8aec9d1b.esm.js} +1 -1
- package/dist/{login-d51248e8.cjs.prod.js → login-a99d14e6.cjs.prod.js} +38 -60
- package/dist/{login-79d02906.esm.js → login-b935aede.esm.js} +37 -58
- package/dist/{login-62b53ebe.cjs.dev.js → login-cd99208a.cjs.dev.js} +38 -60
- package/dist/{optimizations-da5a0cfa.cjs.prod.js → optimizations-09a6638c.cjs.prod.js} +8 -5
- package/dist/{optimizations-54382f7b.esm.js → optimizations-1b3f8157.esm.js} +7 -5
- package/dist/{optimizations-56be74d6.cjs.dev.js → optimizations-640ffcac.cjs.dev.js} +8 -5
- package/dist/{package-5371f8ba.esm.js → package-15124b28.esm.js} +3 -4
- package/dist/{package-af294ed4.cjs.dev.js → package-90af7dfe.cjs.prod.js} +3 -4
- package/dist/{package-3539c84a.cjs.prod.js → package-98adb0d5.cjs.dev.js} +3 -4
- package/dist/{paths-39f22b8b.esm.js → paths-7bf7e88e.esm.js} +9 -4
- package/dist/{paths-7768b440.cjs.prod.js → paths-af1a725a.cjs.prod.js} +10 -4
- package/dist/{paths-b76fc753.cjs.dev.js → paths-ec3e3a7d.cjs.dev.js} +10 -4
- package/dist/{serve-b1c12985.cjs.dev.js → serve-760fc169.cjs.dev.js} +13 -14
- package/dist/{serve-3837602d.cjs.prod.js → serve-87ef7d4f.cjs.prod.js} +13 -14
- package/dist/{serve-22475fec.esm.js → serve-ddf30b4c.esm.js} +13 -13
- package/dist/{start-6fe0ccd2.esm.js → start-08895b5f.esm.js} +11 -13
- package/dist/{start-6e03b662.cjs.dev.js → start-a0945fde.cjs.dev.js} +11 -13
- package/dist/{start-bea9b61d.cjs.prod.js → start-d9bd5dfb.cjs.prod.js} +11 -13
- package/dist/{start-vite-dd8a1e26.cjs.prod.js → start-vite-00514c35.cjs.prod.js} +5 -4
- package/dist/{start-vite-698c9e82.cjs.dev.js → start-vite-10e49e5c.cjs.dev.js} +5 -4
- package/dist/{start-vite-4b0df191.esm.js → start-vite-745d3123.esm.js} +5 -4
- package/dist/{try-load-nimbus-plugins-d502a5fe.cjs.dev.js → try-load-nimbus-plugins-06ce5d83.cjs.dev.js} +1 -1
- package/dist/{try-load-nimbus-plugins-2f528d8f.esm.js → try-load-nimbus-plugins-526dccbd.esm.js} +1 -1
- package/dist/{try-load-nimbus-plugins-a713d7d3.cjs.prod.js → try-load-nimbus-plugins-59c3a594.cjs.prod.js} +1 -1
- package/dist/{vite-plugin-svgr-de6ee7da.esm.js → vite-plugin-svgr-22c8d518.esm.js} +4 -4
- package/dist/{vite-plugin-svgr-4034a834.cjs.prod.js → vite-plugin-svgr-53ef97c7.cjs.dev.js} +4 -4
- package/dist/{vite-plugin-svgr-7d06f400.cjs.dev.js → vite-plugin-svgr-5de1cad9.cjs.prod.js} +4 -4
- package/package.json +32 -31
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +7 -8
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +7 -8
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +7 -8
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +1 -1
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +1 -1
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +1 -1
|
@@ -12,8 +12,8 @@ var vite = require('vite');
|
|
|
12
12
|
var viteBundleAnalyzer = require('vite-bundle-analyzer');
|
|
13
13
|
var assets = require('@commercetools-frontend/assets');
|
|
14
14
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
15
|
-
var paths = require('./paths-
|
|
16
|
-
var tryLoadNimbusPlugins = require('./try-load-nimbus-plugins-
|
|
15
|
+
var paths = require('./paths-ec3e3a7d.cjs.dev.js');
|
|
16
|
+
var tryLoadNimbusPlugins = require('./try-load-nimbus-plugins-06ce5d83.cjs.dev.js');
|
|
17
17
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
18
18
|
var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
19
19
|
var _Map = require('@babel/runtime-corejs3/core-js-stable/map');
|
|
@@ -25,11 +25,11 @@ var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/inst
|
|
|
25
25
|
var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/sort');
|
|
26
26
|
var cliLib = require('@formatjs/cli-lib');
|
|
27
27
|
var pluginutils = require('@rollup/pluginutils');
|
|
28
|
-
var i18nMessageComplilation = require('./i18n-message-complilation-
|
|
28
|
+
var i18nMessageComplilation = require('./i18n-message-complilation-3f80e8d6.cjs.dev.js');
|
|
29
29
|
var fs = require('node:fs');
|
|
30
30
|
var path = require('node:path');
|
|
31
31
|
var glob = require('glob');
|
|
32
|
-
var vitePluginSvgr = require('./vite-plugin-svgr-
|
|
32
|
+
var vitePluginSvgr = require('./vite-plugin-svgr-53ef97c7.cjs.dev.js');
|
|
33
33
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
34
34
|
require('fs');
|
|
35
35
|
require('./does-file-exist-eb86baca.cjs.dev.js');
|
|
@@ -79,8 +79,9 @@ function nonNullable(value) {
|
|
|
79
79
|
* ↔ `app-shell` under `manualChunks`.
|
|
80
80
|
*/
|
|
81
81
|
function pluginChunkCycleCheck() {
|
|
82
|
+
var _options$onCycle;
|
|
82
83
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
83
|
-
const onCycle = options.onCycle
|
|
84
|
+
const onCycle = (_options$onCycle = options.onCycle) !== null && _options$onCycle !== void 0 ? _options$onCycle : 'error';
|
|
84
85
|
return {
|
|
85
86
|
name: 'vite-plugin-chunk-cycle-check',
|
|
86
87
|
apply: 'build',
|
|
@@ -89,8 +90,8 @@ function pluginChunkCycleCheck() {
|
|
|
89
90
|
generateBundle(_, bundle) {
|
|
90
91
|
const cycles = findChunkCycles(bundle);
|
|
91
92
|
if (cycles.length === 0) return;
|
|
92
|
-
const formatted = _mapInstanceProperty__default["default"](cycles).call(cycles, cycle =>
|
|
93
|
-
const message =
|
|
93
|
+
const formatted = _mapInstanceProperty__default["default"](cycles).call(cycles, cycle => " ".concat(cycle.join(' → '))).join('\n');
|
|
94
|
+
const message = "Detected circular imports between output chunks:\n".concat(formatted, "\n") + "\nChunk cycles produce TDZ runtime errors (e.g. \"X is undefined\") " + "because Rollup emits real ESM and one chunk can observe another " + "chunk's not-yet-initialized top-level vars mid-evaluation. " + "Review `output.manualChunks` or any plugin assigning chunks.";
|
|
94
95
|
if (onCycle === 'error') {
|
|
95
96
|
this.error(message);
|
|
96
97
|
} else {
|
|
@@ -125,7 +126,8 @@ function findChunkCycles(bundle) {
|
|
|
125
126
|
const visit = node => {
|
|
126
127
|
color.set(node, GRAY);
|
|
127
128
|
pathStack.push(node);
|
|
128
|
-
for (const next of graph.get(node)
|
|
129
|
+
for (const next of (_graph$get = graph.get(node)) !== null && _graph$get !== void 0 ? _graph$get : []) {
|
|
130
|
+
var _graph$get;
|
|
129
131
|
// Imports may reference assets or chunks outside our map (e.g. CSS).
|
|
130
132
|
if (!graph.has(next)) continue;
|
|
131
133
|
const nextColor = color.get(next);
|
|
@@ -156,7 +158,7 @@ function findChunkCycles(bundle) {
|
|
|
156
158
|
// This script/function is injected into the `index.html` and used by Vite
|
|
157
159
|
// on runtime to build the assets URL (for example when using a separate CDN for the assets).
|
|
158
160
|
// Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
|
|
159
|
-
const dynamicBaseAssetsCode =
|
|
161
|
+
const dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
|
|
160
162
|
function vitePluginDynamicBaseAssetsGlobals() {
|
|
161
163
|
return {
|
|
162
164
|
name: 'dynamic-base-assets-globals',
|
|
@@ -226,10 +228,10 @@ function pluginPostCleanup(options) {
|
|
|
226
228
|
fs__default["default"].unlinkSync(filePath);
|
|
227
229
|
totalFilesDeleted++;
|
|
228
230
|
if (verbose) {
|
|
229
|
-
console.log(
|
|
231
|
+
console.log("[post-cleanup] Deleted: ".concat(file));
|
|
230
232
|
}
|
|
231
233
|
} catch (error) {
|
|
232
|
-
console.warn(
|
|
234
|
+
console.warn("[post-cleanup] Failed to delete ".concat(file, ":"), error);
|
|
233
235
|
}
|
|
234
236
|
}
|
|
235
237
|
}
|
|
@@ -254,7 +256,7 @@ async function run() {
|
|
|
254
256
|
const html = mcHtmlTemplate.generateTemplate({
|
|
255
257
|
// Define the module entry point (path relative from the `/public` folder).
|
|
256
258
|
// NOTE: that this is different from the development configuration.
|
|
257
|
-
scriptImports: [
|
|
259
|
+
scriptImports: ["<script type=\"module\" src=\"/".concat(appEntryPoint, "\" defer></script>")]
|
|
258
260
|
});
|
|
259
261
|
// Write `index.html` (template) into the `/public` folder.
|
|
260
262
|
fs__default$1["default"].writeFileSync(paths.paths.appIndexHtml, html, {
|
|
@@ -304,7 +306,7 @@ async function run() {
|
|
|
304
306
|
switch (hostType) {
|
|
305
307
|
case 'html':
|
|
306
308
|
{
|
|
307
|
-
return
|
|
309
|
+
return "__CDN_URL__".concat(filename);
|
|
308
310
|
}
|
|
309
311
|
case 'css':
|
|
310
312
|
// Vite does not support `{ runtime: ... }` for assets referenced from CSS
|
|
@@ -314,7 +316,7 @@ async function run() {
|
|
|
314
316
|
};
|
|
315
317
|
default:
|
|
316
318
|
return {
|
|
317
|
-
runtime:
|
|
319
|
+
runtime: "window.__toCdnUrl(".concat(_JSON$stringify__default["default"](filename), ")")
|
|
318
320
|
};
|
|
319
321
|
}
|
|
320
322
|
}
|
|
@@ -12,8 +12,8 @@ var vite = require('vite');
|
|
|
12
12
|
var viteBundleAnalyzer = require('vite-bundle-analyzer');
|
|
13
13
|
var assets = require('@commercetools-frontend/assets');
|
|
14
14
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
15
|
-
var paths = require('./paths-
|
|
16
|
-
var tryLoadNimbusPlugins = require('./try-load-nimbus-plugins-
|
|
15
|
+
var paths = require('./paths-af1a725a.cjs.prod.js');
|
|
16
|
+
var tryLoadNimbusPlugins = require('./try-load-nimbus-plugins-59c3a594.cjs.prod.js');
|
|
17
17
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
18
18
|
var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
19
19
|
var _Map = require('@babel/runtime-corejs3/core-js-stable/map');
|
|
@@ -25,11 +25,11 @@ var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/inst
|
|
|
25
25
|
var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/sort');
|
|
26
26
|
var cliLib = require('@formatjs/cli-lib');
|
|
27
27
|
var pluginutils = require('@rollup/pluginutils');
|
|
28
|
-
var i18nMessageComplilation = require('./i18n-message-complilation-
|
|
28
|
+
var i18nMessageComplilation = require('./i18n-message-complilation-393d344a.cjs.prod.js');
|
|
29
29
|
var fs = require('node:fs');
|
|
30
30
|
var path = require('node:path');
|
|
31
31
|
var glob = require('glob');
|
|
32
|
-
var vitePluginSvgr = require('./vite-plugin-svgr-
|
|
32
|
+
var vitePluginSvgr = require('./vite-plugin-svgr-5de1cad9.cjs.prod.js');
|
|
33
33
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
34
34
|
require('fs');
|
|
35
35
|
require('./does-file-exist-be53305d.cjs.prod.js');
|
|
@@ -79,8 +79,9 @@ function nonNullable(value) {
|
|
|
79
79
|
* ↔ `app-shell` under `manualChunks`.
|
|
80
80
|
*/
|
|
81
81
|
function pluginChunkCycleCheck() {
|
|
82
|
+
var _options$onCycle;
|
|
82
83
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
83
|
-
const onCycle = options.onCycle
|
|
84
|
+
const onCycle = (_options$onCycle = options.onCycle) !== null && _options$onCycle !== void 0 ? _options$onCycle : 'error';
|
|
84
85
|
return {
|
|
85
86
|
name: 'vite-plugin-chunk-cycle-check',
|
|
86
87
|
apply: 'build',
|
|
@@ -89,8 +90,8 @@ function pluginChunkCycleCheck() {
|
|
|
89
90
|
generateBundle(_, bundle) {
|
|
90
91
|
const cycles = findChunkCycles(bundle);
|
|
91
92
|
if (cycles.length === 0) return;
|
|
92
|
-
const formatted = _mapInstanceProperty__default["default"](cycles).call(cycles, cycle =>
|
|
93
|
-
const message =
|
|
93
|
+
const formatted = _mapInstanceProperty__default["default"](cycles).call(cycles, cycle => " ".concat(cycle.join(' → '))).join('\n');
|
|
94
|
+
const message = "Detected circular imports between output chunks:\n".concat(formatted, "\n") + "\nChunk cycles produce TDZ runtime errors (e.g. \"X is undefined\") " + "because Rollup emits real ESM and one chunk can observe another " + "chunk's not-yet-initialized top-level vars mid-evaluation. " + "Review `output.manualChunks` or any plugin assigning chunks.";
|
|
94
95
|
if (onCycle === 'error') {
|
|
95
96
|
this.error(message);
|
|
96
97
|
} else {
|
|
@@ -125,7 +126,8 @@ function findChunkCycles(bundle) {
|
|
|
125
126
|
const visit = node => {
|
|
126
127
|
color.set(node, GRAY);
|
|
127
128
|
pathStack.push(node);
|
|
128
|
-
for (const next of graph.get(node)
|
|
129
|
+
for (const next of (_graph$get = graph.get(node)) !== null && _graph$get !== void 0 ? _graph$get : []) {
|
|
130
|
+
var _graph$get;
|
|
129
131
|
// Imports may reference assets or chunks outside our map (e.g. CSS).
|
|
130
132
|
if (!graph.has(next)) continue;
|
|
131
133
|
const nextColor = color.get(next);
|
|
@@ -156,7 +158,7 @@ function findChunkCycles(bundle) {
|
|
|
156
158
|
// This script/function is injected into the `index.html` and used by Vite
|
|
157
159
|
// on runtime to build the assets URL (for example when using a separate CDN for the assets).
|
|
158
160
|
// Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
|
|
159
|
-
const dynamicBaseAssetsCode =
|
|
161
|
+
const dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
|
|
160
162
|
function vitePluginDynamicBaseAssetsGlobals() {
|
|
161
163
|
return {
|
|
162
164
|
name: 'dynamic-base-assets-globals',
|
|
@@ -226,10 +228,10 @@ function pluginPostCleanup(options) {
|
|
|
226
228
|
fs__default["default"].unlinkSync(filePath);
|
|
227
229
|
totalFilesDeleted++;
|
|
228
230
|
if (verbose) {
|
|
229
|
-
console.log(
|
|
231
|
+
console.log("[post-cleanup] Deleted: ".concat(file));
|
|
230
232
|
}
|
|
231
233
|
} catch (error) {
|
|
232
|
-
console.warn(
|
|
234
|
+
console.warn("[post-cleanup] Failed to delete ".concat(file, ":"), error);
|
|
233
235
|
}
|
|
234
236
|
}
|
|
235
237
|
}
|
|
@@ -254,7 +256,7 @@ async function run() {
|
|
|
254
256
|
const html = mcHtmlTemplate.generateTemplate({
|
|
255
257
|
// Define the module entry point (path relative from the `/public` folder).
|
|
256
258
|
// NOTE: that this is different from the development configuration.
|
|
257
|
-
scriptImports: [
|
|
259
|
+
scriptImports: ["<script type=\"module\" src=\"/".concat(appEntryPoint, "\" defer></script>")]
|
|
258
260
|
});
|
|
259
261
|
// Write `index.html` (template) into the `/public` folder.
|
|
260
262
|
fs__default$1["default"].writeFileSync(paths.paths.appIndexHtml, html, {
|
|
@@ -304,7 +306,7 @@ async function run() {
|
|
|
304
306
|
switch (hostType) {
|
|
305
307
|
case 'html':
|
|
306
308
|
{
|
|
307
|
-
return
|
|
309
|
+
return "__CDN_URL__".concat(filename);
|
|
308
310
|
}
|
|
309
311
|
case 'css':
|
|
310
312
|
// Vite does not support `{ runtime: ... }` for assets referenced from CSS
|
|
@@ -314,7 +316,7 @@ async function run() {
|
|
|
314
316
|
};
|
|
315
317
|
default:
|
|
316
318
|
return {
|
|
317
|
-
runtime:
|
|
319
|
+
runtime: "window.__toCdnUrl(".concat(_JSON$stringify__default["default"](filename), ")")
|
|
318
320
|
};
|
|
319
321
|
}
|
|
320
322
|
}
|
|
@@ -10,8 +10,8 @@ import { build } from 'vite';
|
|
|
10
10
|
import { analyzer } from 'vite-bundle-analyzer';
|
|
11
11
|
import { packageLocation } from '@commercetools-frontend/assets';
|
|
12
12
|
import { generateTemplate } from '@commercetools-frontend/mc-html-template';
|
|
13
|
-
import { p as paths } from './paths-
|
|
14
|
-
import { a as loadNimbusVitePlugin } from './try-load-nimbus-plugins-
|
|
13
|
+
import { p as paths } from './paths-7bf7e88e.esm.js';
|
|
14
|
+
import { a as loadNimbusVitePlugin } from './try-load-nimbus-plugins-526dccbd.esm.js';
|
|
15
15
|
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
16
16
|
import _Object$values from '@babel/runtime-corejs3/core-js-stable/object/values';
|
|
17
17
|
import _Map from '@babel/runtime-corejs3/core-js-stable/map';
|
|
@@ -23,11 +23,11 @@ import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instan
|
|
|
23
23
|
import _sortInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/sort';
|
|
24
24
|
import { compile } from '@formatjs/cli-lib';
|
|
25
25
|
import { createFilter } from '@rollup/pluginutils';
|
|
26
|
-
import { g as getI18nMessageFormat, h as handleMessageCompilationError } from './i18n-message-complilation-
|
|
26
|
+
import { g as getI18nMessageFormat, h as handleMessageCompilationError } from './i18n-message-complilation-8aec9d1b.esm.js';
|
|
27
27
|
import fs from 'node:fs';
|
|
28
28
|
import path from 'node:path';
|
|
29
29
|
import { globSync } from 'glob';
|
|
30
|
-
import { v as vitePluginSvgr } from './vite-plugin-svgr-
|
|
30
|
+
import { v as vitePluginSvgr } from './vite-plugin-svgr-22c8d518.esm.js';
|
|
31
31
|
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
32
32
|
import 'fs';
|
|
33
33
|
import './does-file-exist-32618334.esm.js';
|
|
@@ -56,8 +56,9 @@ function nonNullable(value) {
|
|
|
56
56
|
* ↔ `app-shell` under `manualChunks`.
|
|
57
57
|
*/
|
|
58
58
|
function pluginChunkCycleCheck() {
|
|
59
|
+
var _options$onCycle;
|
|
59
60
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
60
|
-
const onCycle = options.onCycle
|
|
61
|
+
const onCycle = (_options$onCycle = options.onCycle) !== null && _options$onCycle !== void 0 ? _options$onCycle : 'error';
|
|
61
62
|
return {
|
|
62
63
|
name: 'vite-plugin-chunk-cycle-check',
|
|
63
64
|
apply: 'build',
|
|
@@ -66,8 +67,8 @@ function pluginChunkCycleCheck() {
|
|
|
66
67
|
generateBundle(_, bundle) {
|
|
67
68
|
const cycles = findChunkCycles(bundle);
|
|
68
69
|
if (cycles.length === 0) return;
|
|
69
|
-
const formatted = _mapInstanceProperty(cycles).call(cycles, cycle =>
|
|
70
|
-
const message =
|
|
70
|
+
const formatted = _mapInstanceProperty(cycles).call(cycles, cycle => " ".concat(cycle.join(' → '))).join('\n');
|
|
71
|
+
const message = "Detected circular imports between output chunks:\n".concat(formatted, "\n") + "\nChunk cycles produce TDZ runtime errors (e.g. \"X is undefined\") " + "because Rollup emits real ESM and one chunk can observe another " + "chunk's not-yet-initialized top-level vars mid-evaluation. " + "Review `output.manualChunks` or any plugin assigning chunks.";
|
|
71
72
|
if (onCycle === 'error') {
|
|
72
73
|
this.error(message);
|
|
73
74
|
} else {
|
|
@@ -102,7 +103,8 @@ function findChunkCycles(bundle) {
|
|
|
102
103
|
const visit = node => {
|
|
103
104
|
color.set(node, GRAY);
|
|
104
105
|
pathStack.push(node);
|
|
105
|
-
for (const next of graph.get(node)
|
|
106
|
+
for (const next of (_graph$get = graph.get(node)) !== null && _graph$get !== void 0 ? _graph$get : []) {
|
|
107
|
+
var _graph$get;
|
|
106
108
|
// Imports may reference assets or chunks outside our map (e.g. CSS).
|
|
107
109
|
if (!graph.has(next)) continue;
|
|
108
110
|
const nextColor = color.get(next);
|
|
@@ -133,7 +135,7 @@ function findChunkCycles(bundle) {
|
|
|
133
135
|
// This script/function is injected into the `index.html` and used by Vite
|
|
134
136
|
// on runtime to build the assets URL (for example when using a separate CDN for the assets).
|
|
135
137
|
// Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
|
|
136
|
-
const dynamicBaseAssetsCode =
|
|
138
|
+
const dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
|
|
137
139
|
function vitePluginDynamicBaseAssetsGlobals() {
|
|
138
140
|
return {
|
|
139
141
|
name: 'dynamic-base-assets-globals',
|
|
@@ -203,10 +205,10 @@ function pluginPostCleanup(options) {
|
|
|
203
205
|
fs.unlinkSync(filePath);
|
|
204
206
|
totalFilesDeleted++;
|
|
205
207
|
if (verbose) {
|
|
206
|
-
console.log(
|
|
208
|
+
console.log("[post-cleanup] Deleted: ".concat(file));
|
|
207
209
|
}
|
|
208
210
|
} catch (error) {
|
|
209
|
-
console.warn(
|
|
211
|
+
console.warn("[post-cleanup] Failed to delete ".concat(file, ":"), error);
|
|
210
212
|
}
|
|
211
213
|
}
|
|
212
214
|
}
|
|
@@ -231,7 +233,7 @@ async function run() {
|
|
|
231
233
|
const html = generateTemplate({
|
|
232
234
|
// Define the module entry point (path relative from the `/public` folder).
|
|
233
235
|
// NOTE: that this is different from the development configuration.
|
|
234
|
-
scriptImports: [
|
|
236
|
+
scriptImports: ["<script type=\"module\" src=\"/".concat(appEntryPoint, "\" defer></script>")]
|
|
235
237
|
});
|
|
236
238
|
// Write `index.html` (template) into the `/public` folder.
|
|
237
239
|
fs$1.writeFileSync(paths.appIndexHtml, html, {
|
|
@@ -281,7 +283,7 @@ async function run() {
|
|
|
281
283
|
switch (hostType) {
|
|
282
284
|
case 'html':
|
|
283
285
|
{
|
|
284
|
-
return
|
|
286
|
+
return "__CDN_URL__".concat(filename);
|
|
285
287
|
}
|
|
286
288
|
case 'css':
|
|
287
289
|
// Vite does not support `{ runtime: ... }` for assets referenced from CSS
|
|
@@ -291,7 +293,7 @@ async function run() {
|
|
|
291
293
|
};
|
|
292
294
|
default:
|
|
293
295
|
return {
|
|
294
|
-
runtime:
|
|
296
|
+
runtime: "window.__toCdnUrl(".concat(_JSON$stringify(filename), ")")
|
|
295
297
|
};
|
|
296
298
|
}
|
|
297
299
|
}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vendorsToTranspile = require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
|
|
6
6
|
|
|
7
7
|
// NOTE: This string will be replaced on build time with the package version.
|
|
8
|
-
var version = "27.9.
|
|
8
|
+
var version = "27.9.1";
|
|
9
9
|
|
|
10
10
|
// These exports are deprecated.
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
|
|
6
6
|
|
|
7
7
|
// NOTE: This string will be replaced on build time with the package version.
|
|
8
|
-
var version = "27.9.
|
|
8
|
+
var version = "27.9.1";
|
|
9
9
|
|
|
10
10
|
// These exports are deprecated.
|
|
11
11
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
3
4
|
var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
4
5
|
var fs = require('fs');
|
|
5
6
|
var chalk = require('chalk');
|
|
6
7
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
7
|
-
var paths = require('./paths-
|
|
8
|
+
var paths = require('./paths-ec3e3a7d.cjs.dev.js');
|
|
8
9
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
9
10
|
require('path');
|
|
10
11
|
require('./does-file-exist-eb86baca.cjs.dev.js');
|
|
@@ -12,6 +13,7 @@ require('node:fs');
|
|
|
12
13
|
|
|
13
14
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
14
15
|
|
|
16
|
+
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
15
17
|
var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
16
18
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
17
19
|
var chalk__default = /*#__PURE__*/_interopDefault(chalk);
|
|
@@ -31,7 +33,8 @@ async function run(options) {
|
|
|
31
33
|
const transformerFn = require(transformerPath);
|
|
32
34
|
transformerFn(compiled);
|
|
33
35
|
} catch (error) {
|
|
34
|
-
|
|
36
|
+
var _context;
|
|
37
|
+
throw new Error(_concatInstanceProperty__default["default"](_context = "Could not load transformer module \"".concat(options.transformer, "\"\n")).call(_context, error instanceof Error ? error.stack : ''));
|
|
35
38
|
}
|
|
36
39
|
} else if (options.printSecurityHeaders) {
|
|
37
40
|
console.log(_JSON$stringify__default["default"](compiled.headers));
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
1
2
|
import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
2
3
|
import fs from 'fs';
|
|
3
4
|
import chalk from 'chalk';
|
|
4
5
|
import { compileHtml } from '@commercetools-frontend/mc-html-template';
|
|
5
|
-
import { p as paths } from './paths-
|
|
6
|
+
import { p as paths } from './paths-7bf7e88e.esm.js';
|
|
6
7
|
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
7
8
|
import 'path';
|
|
8
9
|
import './does-file-exist-32618334.esm.js';
|
|
@@ -23,7 +24,8 @@ async function run(options) {
|
|
|
23
24
|
const transformerFn = require(transformerPath);
|
|
24
25
|
transformerFn(compiled);
|
|
25
26
|
} catch (error) {
|
|
26
|
-
|
|
27
|
+
var _context;
|
|
28
|
+
throw new Error(_concatInstanceProperty(_context = "Could not load transformer module \"".concat(options.transformer, "\"\n")).call(_context, error instanceof Error ? error.stack : ''));
|
|
27
29
|
}
|
|
28
30
|
} else if (options.printSecurityHeaders) {
|
|
29
31
|
console.log(_JSON$stringify(compiled.headers));
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
3
4
|
var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
4
5
|
var fs = require('fs');
|
|
5
6
|
var chalk = require('chalk');
|
|
6
7
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
7
|
-
var paths = require('./paths-
|
|
8
|
+
var paths = require('./paths-af1a725a.cjs.prod.js');
|
|
8
9
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
9
10
|
require('path');
|
|
10
11
|
require('./does-file-exist-be53305d.cjs.prod.js');
|
|
@@ -12,6 +13,7 @@ require('node:fs');
|
|
|
12
13
|
|
|
13
14
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
14
15
|
|
|
16
|
+
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
15
17
|
var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
16
18
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
17
19
|
var chalk__default = /*#__PURE__*/_interopDefault(chalk);
|
|
@@ -31,7 +33,8 @@ async function run(options) {
|
|
|
31
33
|
const transformerFn = require(transformerPath);
|
|
32
34
|
transformerFn(compiled);
|
|
33
35
|
} catch (error) {
|
|
34
|
-
|
|
36
|
+
var _context;
|
|
37
|
+
throw new Error(_concatInstanceProperty__default["default"](_context = "Could not load transformer module \"".concat(options.transformer, "\"\n")).call(_context, error instanceof Error ? error.stack : ''));
|
|
35
38
|
}
|
|
36
39
|
} else if (options.printSecurityHeaders) {
|
|
37
40
|
console.log(_JSON$stringify__default["default"](compiled.headers));
|
|
@@ -7,9 +7,10 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
|
|
|
7
7
|
var chalk = require('chalk');
|
|
8
8
|
var prompts = require('prompts');
|
|
9
9
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
10
|
-
var configSyncHelpers = require('./config-sync-helpers-
|
|
11
|
-
var credentialsStorage$1 = require('./credentials-storage-
|
|
12
|
-
var graphqlRequests = require('./graphql-requests-
|
|
10
|
+
var configSyncHelpers = require('./config-sync-helpers-36985f8c.cjs.dev.js');
|
|
11
|
+
var credentialsStorage$1 = require('./credentials-storage-1826f1a2.cjs.dev.js');
|
|
12
|
+
var graphqlRequests = require('./graphql-requests-1ea68584.cjs.dev.js');
|
|
13
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
13
14
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
14
15
|
require('lodash/omit');
|
|
15
16
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -21,7 +22,6 @@ require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
21
22
|
require('@babel/runtime-corejs3/core-js-stable/instance/repeat');
|
|
22
23
|
require('@babel/runtime-corejs3/core-js-stable/set');
|
|
23
24
|
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
24
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
25
25
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
26
26
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
27
27
|
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
@@ -36,7 +36,7 @@ require('graphql');
|
|
|
36
36
|
require('graphql-request');
|
|
37
37
|
require('@commercetools-frontend/constants');
|
|
38
38
|
require('@commercetools/http-user-agent');
|
|
39
|
-
require('./package-
|
|
39
|
+
require('./package-98adb0d5.cjs.dev.js');
|
|
40
40
|
|
|
41
41
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
42
42
|
|
|
@@ -59,7 +59,7 @@ async function promptForOrganization(_ref) {
|
|
|
59
59
|
customViewId
|
|
60
60
|
});
|
|
61
61
|
if (userOrganizations.total === 0) {
|
|
62
|
-
throw new Error(
|
|
62
|
+
throw new Error("It seems you are not an admin of any Organization. Please make sure to be part of the Administrators team of the Organization you want the ".concat(entityType, " to be configured to."));
|
|
63
63
|
}
|
|
64
64
|
if (userOrganizations.total === 1) {
|
|
65
65
|
const _userOrganizations$re = _slicedToArray(userOrganizations.results, 1),
|
|
@@ -82,7 +82,7 @@ async function promptForOrganization(_ref) {
|
|
|
82
82
|
}),
|
|
83
83
|
selectedOrganizationId = _await$prompts.organizationId;
|
|
84
84
|
if (!selectedOrganizationId) {
|
|
85
|
-
throw new Error(
|
|
85
|
+
throw new Error("No Organization selected, aborting.");
|
|
86
86
|
}
|
|
87
87
|
const organizationName = _findInstanceProperty__default["default"](organizationChoices).call(organizationChoices, _ref2 => {
|
|
88
88
|
let value = _ref2.value;
|
|
@@ -130,7 +130,7 @@ async function createOrUpdateCustomApplication(_ref4) {
|
|
|
130
130
|
entityType: 'Custom Application'
|
|
131
131
|
});
|
|
132
132
|
const confirmed = await confirmAction({
|
|
133
|
-
message:
|
|
133
|
+
message: "You are about to create a new Custom Application in the \"".concat(chalk__default["default"].green(organization.name), "\" organization. Are you sure you want to proceed?"),
|
|
134
134
|
dryRun: options.dryRun,
|
|
135
135
|
dryRunMessage: 'Using "--dry-run", no data will be created.'
|
|
136
136
|
});
|
|
@@ -148,15 +148,15 @@ async function createOrUpdateCustomApplication(_ref4) {
|
|
|
148
148
|
|
|
149
149
|
// Check for changes
|
|
150
150
|
if (!status.configDiff) {
|
|
151
|
-
console.log(chalk__default["default"].green(
|
|
152
|
-
console.log(
|
|
151
|
+
console.log(chalk__default["default"].green("Custom Application up-to-date."));
|
|
152
|
+
console.log("You can inspect the Custom Application data in the Merchant Center at \"".concat(chalk__default["default"].gray(status.link), "\"."));
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
155
|
console.log('Changes detected:');
|
|
156
156
|
console.log(status.configDiff);
|
|
157
157
|
console.log();
|
|
158
158
|
const confirmed = await confirmAction({
|
|
159
|
-
message:
|
|
159
|
+
message: "You are about to update the Custom Application \"".concat(chalk__default["default"].green(localCustomEntityData.entryPointUriPath), "\" with the changes above. Are you sure you want to proceed?"),
|
|
160
160
|
dryRun: options.dryRun,
|
|
161
161
|
dryRunMessage: 'Using "--dry-run", no data will be updated.'
|
|
162
162
|
});
|
|
@@ -191,7 +191,7 @@ async function createOrUpdateCustomView(_ref5) {
|
|
|
191
191
|
entityType: 'Custom View'
|
|
192
192
|
});
|
|
193
193
|
const confirmed = await confirmAction({
|
|
194
|
-
message:
|
|
194
|
+
message: "You are about to create a new Custom View in the \"".concat(chalk__default["default"].green(organization.name), "\" organization. Are you sure you want to proceed?"),
|
|
195
195
|
dryRun: options.dryRun,
|
|
196
196
|
dryRunMessage: 'Using "--dry-run", no data will be created.'
|
|
197
197
|
});
|
|
@@ -209,15 +209,15 @@ async function createOrUpdateCustomView(_ref5) {
|
|
|
209
209
|
|
|
210
210
|
// Check for changes
|
|
211
211
|
if (!status.configDiff) {
|
|
212
|
-
console.log(chalk__default["default"].green(
|
|
213
|
-
console.log(
|
|
212
|
+
console.log(chalk__default["default"].green("Custom View up-to-date."));
|
|
213
|
+
console.log("You can inspect the Custom View data in the Merchant Center at \"".concat(chalk__default["default"].gray(status.link), "\"."));
|
|
214
214
|
return;
|
|
215
215
|
}
|
|
216
216
|
console.log('Changes detected:');
|
|
217
217
|
console.log(status.configDiff);
|
|
218
218
|
console.log();
|
|
219
219
|
const confirmed = await confirmAction({
|
|
220
|
-
message:
|
|
220
|
+
message: "You are about to update the Custom View \"".concat(chalk__default["default"].green(localCustomEntityData.defaultLabel), "\" with the changes above. Are you sure you want to proceed?"),
|
|
221
221
|
dryRun: options.dryRun,
|
|
222
222
|
dryRunMessage: 'Using "--dry-run", no data will be updated.'
|
|
223
223
|
});
|
|
@@ -238,11 +238,11 @@ async function run(options) {
|
|
|
238
238
|
mcApiUrl = _applicationConfig$en.mcApiUrl,
|
|
239
239
|
applicationIdentifier = _applicationConfig$en.applicationIdentifier,
|
|
240
240
|
customViewId = _applicationConfig$en.customViewId;
|
|
241
|
-
console.log(
|
|
241
|
+
console.log("Using Merchant Center environment \"".concat(chalk__default["default"].green(mcApiUrl), "\"."));
|
|
242
242
|
console.log();
|
|
243
243
|
const isSessionValid = credentialsStorage.isSessionValid(mcApiUrl);
|
|
244
244
|
if (!isSessionValid) {
|
|
245
|
-
throw new Error(
|
|
245
|
+
throw new Error("You don't have a valid session. Please, run the \"mc-scripts login\" command to authenticate yourself.");
|
|
246
246
|
}
|
|
247
247
|
if (configSyncHelpers.isCustomViewData(localCustomEntityData)) {
|
|
248
248
|
await createOrUpdateCustomView({
|