@commercetools-frontend/mc-scripts 25.0.0 → 25.1.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.
Files changed (76) hide show
  1. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.dev.js +1 -1
  2. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.prod.js +1 -1
  3. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.esm.js +1 -1
  4. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +14 -13
  5. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +14 -13
  6. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +14 -13
  7. package/dist/{build-1baf8a00.cjs.dev.js → build-0a5986d1.cjs.dev.js} +7 -7
  8. package/dist/{build-0b4c6b04.esm.js → build-dbcd0936.esm.js} +7 -7
  9. package/dist/{build-50f29fb0.cjs.prod.js → build-ec10df64.cjs.prod.js} +7 -7
  10. package/dist/{build-vite-e26f6c9f.cjs.dev.js → build-vite-16b1a575.cjs.dev.js} +8 -9
  11. package/dist/{build-vite-85211835.esm.js → build-vite-59e1f185.esm.js} +8 -9
  12. package/dist/{build-vite-4a6c90c2.cjs.prod.js → build-vite-5d317720.cjs.prod.js} +8 -9
  13. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
  14. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
  15. package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
  16. package/dist/{compile-html-adfef598.esm.js → compile-html-025cd493.esm.js} +2 -4
  17. package/dist/{compile-html-b80f9651.cjs.prod.js → compile-html-50fd05ec.cjs.prod.js} +2 -5
  18. package/dist/{compile-html-8679f721.cjs.dev.js → compile-html-f4ac88cc.cjs.dev.js} +2 -5
  19. package/dist/{config-sync-87ba9f28.cjs.prod.js → config-sync-ce05c66c.cjs.prod.js} +70 -78
  20. package/dist/{config-sync-27ca0c93.cjs.dev.js → config-sync-dbb43993.cjs.dev.js} +72 -80
  21. package/dist/{config-sync-ff4b1e5b.esm.js → config-sync-e7f53a98.esm.js} +71 -79
  22. package/dist/{create-postcss-config-e6dfba3f.esm.js → create-postcss-config-0a86560d.esm.js} +1 -1
  23. package/dist/{create-postcss-config-0e833724.cjs.dev.js → create-postcss-config-381b636b.cjs.dev.js} +1 -1
  24. package/dist/{create-postcss-config-34bab342.cjs.prod.js → create-postcss-config-91c09596.cjs.prod.js} +1 -1
  25. package/dist/{create-webpack-config-for-development-fe0945ce.cjs.prod.js → create-webpack-config-for-development-37677a49.cjs.prod.js} +6 -6
  26. package/dist/{create-webpack-config-for-development-2ac1d86f.cjs.dev.js → create-webpack-config-for-development-488742b2.cjs.dev.js} +6 -6
  27. package/dist/{create-webpack-config-for-development-be2722d6.esm.js → create-webpack-config-for-development-df3f7f7f.esm.js} +6 -6
  28. package/dist/{create-webpack-config-for-production-d2c41a9d.cjs.dev.js → create-webpack-config-for-production-46d817cc.cjs.dev.js} +7 -7
  29. package/dist/{create-webpack-config-for-production-2200e554.cjs.prod.js → create-webpack-config-for-production-aad64e2a.cjs.prod.js} +7 -7
  30. package/dist/{create-webpack-config-for-production-66c77849.esm.js → create-webpack-config-for-production-e22f78d2.esm.js} +7 -7
  31. package/dist/{credentials-storage-381abf27.cjs.prod.js → credentials-storage-0b89aa0e.cjs.prod.js} +1 -1
  32. package/dist/{credentials-storage-7285d7b4.esm.js → credentials-storage-4464313c.esm.js} +1 -1
  33. package/dist/{credentials-storage-de220814.cjs.dev.js → credentials-storage-cbb5c559.cjs.dev.js} +1 -1
  34. package/dist/{deployment-previews-set-3697be5e.cjs.dev.js → deployment-previews-set-4edd48db.cjs.dev.js} +22 -28
  35. package/dist/{deployment-previews-set-e92403f7.cjs.prod.js → deployment-previews-set-636fb1a3.cjs.prod.js} +22 -28
  36. package/dist/{deployment-previews-set-7f9fbfe5.esm.js → deployment-previews-set-bbef95d2.esm.js} +22 -27
  37. package/dist/{graphql-requests-bab5fcc3.cjs.dev.js → graphql-requests-0a6eeb3a.cjs.prod.js} +5 -8
  38. package/dist/{graphql-requests-d8bc2292.esm.js → graphql-requests-14074b2b.esm.js} +5 -8
  39. package/dist/{graphql-requests-8ef89149.cjs.prod.js → graphql-requests-23f7ddb1.cjs.dev.js} +5 -8
  40. package/dist/{i18n-message-complilation-8aec9d1b.esm.js → i18n-message-complilation-21d3b0aa.esm.js} +1 -1
  41. package/dist/{i18n-message-complilation-3f80e8d6.cjs.dev.js → i18n-message-complilation-7311cb29.cjs.dev.js} +1 -1
  42. package/dist/{i18n-message-complilation-393d344a.cjs.prod.js → i18n-message-complilation-7762da61.cjs.prod.js} +1 -1
  43. package/dist/{login-9ee43381.esm.js → login-1b222f33.esm.js} +27 -30
  44. package/dist/{login-5fd67aac.cjs.prod.js → login-54ebae96.cjs.prod.js} +28 -31
  45. package/dist/{login-9fac9eee.cjs.dev.js → login-a6fd5fbf.cjs.dev.js} +28 -31
  46. package/dist/{optimizations-ea21b802.cjs.prod.js → optimizations-7789145e.cjs.dev.js} +5 -8
  47. package/dist/{optimizations-ea71a24a.esm.js → optimizations-bf991634.esm.js} +5 -7
  48. package/dist/{optimizations-ebbeaf88.cjs.dev.js → optimizations-fb93514f.cjs.prod.js} +5 -8
  49. package/dist/{package-4bdd2ccf.esm.js → package-a34835d9.esm.js} +9 -9
  50. package/dist/{package-ff04bcf7.cjs.dev.js → package-d8b1f4c0.cjs.dev.js} +9 -9
  51. package/dist/{package-428d5001.cjs.prod.js → package-e1f7242c.cjs.prod.js} +9 -9
  52. package/dist/{paths-7bf7e88e.esm.js → paths-39f22b8b.esm.js} +4 -9
  53. package/dist/{paths-af1a725a.cjs.prod.js → paths-7768b440.cjs.prod.js} +4 -10
  54. package/dist/{paths-ec3e3a7d.cjs.dev.js → paths-b76fc753.cjs.dev.js} +4 -10
  55. package/dist/{serve-04a03d5f.cjs.dev.js → serve-38456e1b.cjs.dev.js} +7 -6
  56. package/dist/{serve-fb1a0f5a.esm.js → serve-be1f9439.esm.js} +6 -6
  57. package/dist/{serve-2a863026.cjs.prod.js → serve-cc4a766d.cjs.prod.js} +7 -6
  58. package/dist/{start-84cdf12b.cjs.prod.js → start-0be8a294.cjs.prod.js} +8 -9
  59. package/dist/{start-47ea5e04.cjs.dev.js → start-37ec4a7e.cjs.dev.js} +8 -9
  60. package/dist/{start-643a55bb.esm.js → start-890895df.esm.js} +8 -9
  61. package/dist/{start-vite-eea72ba9.cjs.dev.js → start-vite-068e9f73.cjs.dev.js} +3 -4
  62. package/dist/{start-vite-d548c121.cjs.prod.js → start-vite-29078b3a.cjs.prod.js} +3 -4
  63. package/dist/{start-vite-d649d1f3.esm.js → start-vite-7d1161e8.esm.js} +3 -4
  64. package/dist/{vite-plugin-svgr-53ef97c7.cjs.dev.js → vite-plugin-svgr-4034a834.cjs.prod.js} +4 -4
  65. package/dist/{vite-plugin-svgr-5de1cad9.cjs.prod.js → vite-plugin-svgr-7d06f400.cjs.dev.js} +4 -4
  66. package/dist/{vite-plugin-svgr-22c8d518.esm.js → vite-plugin-svgr-de6ee7da.esm.js} +4 -4
  67. package/package.json +9 -9
  68. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
  69. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
  70. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  71. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +6 -6
  72. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +6 -6
  73. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +6 -6
  74. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +1 -1
  75. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +1 -1
  76. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +1 -1
@@ -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 = "25.0.0";
8
+ var version = "25.1.0";
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 = "25.0.0";
8
+ var version = "25.1.0";
9
9
 
10
10
  // These exports are deprecated.
11
11
 
@@ -1,7 +1,7 @@
1
1
  export { v as vendorsToTranspile } from './vendors-to-transpile-7dc84a72.esm.js';
2
2
 
3
3
  // NOTE: This string will be replaced on build time with the package version.
4
- var version = "25.0.0";
4
+ var version = "25.1.0";
5
5
 
6
6
  // These exports are deprecated.
7
7
 
@@ -1,9 +1,8 @@
1
- import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
2
1
  import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
3
2
  import fs from 'fs';
4
3
  import chalk from 'chalk';
5
4
  import { compileHtml } from '@commercetools-frontend/mc-html-template';
6
- import { p as paths } from './paths-7bf7e88e.esm.js';
5
+ import { p as paths } from './paths-39f22b8b.esm.js';
7
6
  import '@babel/runtime-corejs3/core-js-stable/instance/find';
8
7
  import 'path';
9
8
  import './does-file-exist-32618334.esm.js';
@@ -24,8 +23,7 @@ async function run(options) {
24
23
  const transformerFn = require(transformerPath);
25
24
  transformerFn(compiled);
26
25
  } catch (error) {
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 : ''));
26
+ throw new Error(`Could not load transformer module "${options.transformer}"\n${error instanceof Error ? error.stack : ''}`);
29
27
  }
30
28
  } else if (options.printSecurityHeaders) {
31
29
  console.log(_JSON$stringify(compiled.headers));
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
4
3
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
5
4
  var fs = require('fs');
6
5
  var chalk = require('chalk');
7
6
  var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
8
- var paths = require('./paths-af1a725a.cjs.prod.js');
7
+ var paths = require('./paths-7768b440.cjs.prod.js');
9
8
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
10
9
  require('path');
11
10
  require('./does-file-exist-be53305d.cjs.prod.js');
@@ -13,7 +12,6 @@ require('node:fs');
13
12
 
14
13
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
15
14
 
16
- var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
17
15
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
18
16
  var fs__default = /*#__PURE__*/_interopDefault(fs);
19
17
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
@@ -33,8 +31,7 @@ async function run(options) {
33
31
  const transformerFn = require(transformerPath);
34
32
  transformerFn(compiled);
35
33
  } catch (error) {
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 : ''));
34
+ throw new Error(`Could not load transformer module "${options.transformer}"\n${error instanceof Error ? error.stack : ''}`);
38
35
  }
39
36
  } else if (options.printSecurityHeaders) {
40
37
  console.log(_JSON$stringify__default["default"](compiled.headers));
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
4
3
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
5
4
  var fs = require('fs');
6
5
  var chalk = require('chalk');
7
6
  var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
8
- var paths = require('./paths-ec3e3a7d.cjs.dev.js');
7
+ var paths = require('./paths-b76fc753.cjs.dev.js');
9
8
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
10
9
  require('path');
11
10
  require('./does-file-exist-eb86baca.cjs.dev.js');
@@ -13,7 +12,6 @@ require('node:fs');
13
12
 
14
13
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
15
14
 
16
- var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
17
15
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
18
16
  var fs__default = /*#__PURE__*/_interopDefault(fs);
19
17
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
@@ -33,8 +31,7 @@ async function run(options) {
33
31
  const transformerFn = require(transformerPath);
34
32
  transformerFn(compiled);
35
33
  } catch (error) {
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 : ''));
34
+ throw new Error(`Could not load transformer module "${options.transformer}"\n${error instanceof Error ? error.stack : ''}`);
38
35
  }
39
36
  } else if (options.printSecurityHeaders) {
40
37
  console.log(_JSON$stringify__default["default"](compiled.headers));
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
4
- var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
5
4
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
6
5
  var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
7
6
  var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -10,7 +9,7 @@ var chalk = require('chalk');
10
9
  var omit = require('lodash/omit');
11
10
  var prompts = require('prompts');
12
11
  var applicationConfig = require('@commercetools-frontend/application-config');
13
- var credentialsStorage$1 = require('./credentials-storage-381abf27.cjs.prod.js');
12
+ var credentialsStorage$1 = require('./credentials-storage-0b89aa0e.cjs.prod.js');
14
13
  var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
15
14
  var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
16
15
  var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
@@ -20,9 +19,10 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
20
19
  var _repeatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/repeat');
21
20
  var _Set = require('@babel/runtime-corejs3/core-js-stable/set');
22
21
  var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
22
+ var _bindInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/bind');
23
23
  var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
24
24
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
25
- var graphqlRequests = require('./graphql-requests-8ef89149.cjs.prod.js');
25
+ var graphqlRequests = require('./graphql-requests-0a6eeb3a.cjs.prod.js');
26
26
  require('@babel/runtime-corejs3/helpers/classCallCheck');
27
27
  require('@babel/runtime-corejs3/helpers/createClass');
28
28
  require('@babel/runtime-corejs3/core-js-stable/date/now');
@@ -35,11 +35,10 @@ require('graphql');
35
35
  require('graphql-request');
36
36
  require('@commercetools-frontend/constants');
37
37
  require('@commercetools/http-user-agent');
38
- require('./package-428d5001.cjs.prod.js');
38
+ require('./package-e1f7242c.cjs.prod.js');
39
39
 
40
40
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
41
41
 
42
- var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
43
42
  var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
44
43
  var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
45
44
  var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
@@ -55,11 +54,12 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
55
54
  var _repeatInstanceProperty__default = /*#__PURE__*/_interopDefault(_repeatInstanceProperty);
56
55
  var _Set__default = /*#__PURE__*/_interopDefault(_Set);
57
56
  var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
57
+ var _bindInstanceProperty__default = /*#__PURE__*/_interopDefault(_bindInstanceProperty);
58
58
  var _reduceInstanceProperty__default = /*#__PURE__*/_interopDefault(_reduceInstanceProperty);
59
59
  var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
60
60
 
61
61
  function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
62
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context21, _context22; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context21 = ownKeys(Object(t), !0)).call(_context21, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context22 = ownKeys(Object(t))).call(_context22, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
62
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context9 = ownKeys(Object(t), !0)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context0 = ownKeys(Object(t))).call(_context0, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
63
63
  const red = str => {
64
64
  return chalk__default["default"].red(str);
65
65
  };
@@ -79,21 +79,19 @@ const getStringDiff = _ref => {
79
79
  _ref$indentLevel = _ref.indentLevel,
80
80
  indentLevel = _ref$indentLevel === void 0 ? 0 : _ref$indentLevel;
81
81
  if (!previousValue && nextValue) {
82
- var _context2, _context3;
83
- return _concatInstanceProperty__default["default"](_context2 = _concatInstanceProperty__default["default"](_context3 = "".concat(indent(indentLevel))).call(_context3, label, " added: ")).call(_context2, green(nextValue));
82
+ return `${indent(indentLevel)}${label} added: ${green(nextValue)}`;
84
83
  }
85
84
  if (previousValue && !nextValue) {
86
- var _context4, _context5;
87
- return _concatInstanceProperty__default["default"](_context4 = _concatInstanceProperty__default["default"](_context5 = "".concat(indent(indentLevel))).call(_context5, label, " removed: ")).call(_context4, red(previousValue));
85
+ return `${indent(indentLevel)}${label} removed: ${red(previousValue)}`;
88
86
  }
89
87
  if (previousValue && nextValue && previousValue !== nextValue) {
90
- var _context6, _context7, _context8;
91
- return _concatInstanceProperty__default["default"](_context6 = _concatInstanceProperty__default["default"](_context7 = _concatInstanceProperty__default["default"](_context8 = "".concat(indent(indentLevel))).call(_context8, label, " changed: ")).call(_context7, red(previousValue), " => ")).call(_context6, green(nextValue));
88
+ return `${indent(indentLevel)}${label} changed: ${red(previousValue)} => ${green(nextValue)}`;
92
89
  }
93
90
  return null;
94
91
  };
95
92
  // NOTE: this assumes that the array values are scalar values (not objects).
96
93
  const getArrayDiff = _ref2 => {
94
+ var _context2, _context3;
97
95
  let previousValue = _ref2.previousValue,
98
96
  nextValue = _ref2.nextValue,
99
97
  label = _ref2.label,
@@ -101,7 +99,7 @@ const getArrayDiff = _ref2 => {
101
99
  indentLevel = _ref2$indentLevel === void 0 ? 0 : _ref2$indentLevel;
102
100
  const oldArraySet = new _Set__default["default"](previousValue);
103
101
  const arrayDiff = [];
104
- nextValue === null || nextValue === void 0 || _forEachInstanceProperty__default["default"](nextValue).call(nextValue, item => {
102
+ ((_context2 = nextValue) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _forEachInstanceProperty__default["default"](_context2), _context2))?.(item => {
105
103
  if (oldArraySet.has(item)) {
106
104
  oldArraySet.delete(item);
107
105
  } else {
@@ -122,7 +120,7 @@ const getArrayDiff = _ref2 => {
122
120
  return arrayDiff.join('\n');
123
121
  };
124
122
  const getPermissionsDiff = _ref3 => {
125
- var _context1;
123
+ var _context4;
126
124
  let previousValue = _ref3.previousValue,
127
125
  nextValue = _ref3.nextValue;
128
126
  const permissionDiff = ['permissions changed'];
@@ -135,12 +133,10 @@ const getPermissionsDiff = _ref3 => {
135
133
  }, {});
136
134
  const indentLevel = 1;
137
135
  _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newPermission => {
138
- var _context9;
139
- const currentDiff = [_concatInstanceProperty__default["default"](_context9 = "".concat(indent(indentLevel), "\"")).call(_context9, newPermission.name, "\" changed")];
136
+ const currentDiff = [`${indent(indentLevel)}"${newPermission.name}" changed`];
140
137
  // if the permission name is not in the old config, it means it is a new addition.
141
138
  if (!mappedOldPermissions[newPermission.name]) {
142
- var _context0;
143
- permissionDiff.push(_concatInstanceProperty__default["default"](_context0 = "".concat(indent(indentLevel), "\"")).call(_context0, green(newPermission.name), "\" was added"));
139
+ permissionDiff.push(`${indent(indentLevel)}"${green(newPermission.name)}" was added`);
144
140
  }
145
141
 
146
142
  // if permission name is in the old config, now we check if there was a change
@@ -157,22 +153,21 @@ const getPermissionsDiff = _ref3 => {
157
153
  });
158
154
 
159
155
  // if there are old permissions left, it means they were deleted in the new Permissions.
160
- _forEachInstanceProperty__default["default"](_context1 = _Object$keys__default["default"](mappedOldPermissions)).call(_context1, oldPermissionName => {
161
- var _context10;
162
- permissionDiff.push(_concatInstanceProperty__default["default"](_context10 = "".concat(indent(indentLevel), "\"")).call(_context10, red(oldPermissionName), "\" was removed"));
156
+ _forEachInstanceProperty__default["default"](_context4 = _Object$keys__default["default"](mappedOldPermissions)).call(_context4, oldPermissionName => {
157
+ permissionDiff.push(`${indent(indentLevel)}"${red(oldPermissionName)}" was removed`);
163
158
  });
164
159
  if (permissionDiff.length > 1) return permissionDiff.join('\n');
165
160
  return null;
166
161
  };
167
162
  const getLabelAllLocalesDiff = _ref5 => {
168
- var _context14;
163
+ var _context5;
169
164
  let _ref5$previousValue = _ref5.previousValue,
170
165
  previousValue = _ref5$previousValue === void 0 ? [] : _ref5$previousValue,
171
166
  _ref5$nextValue = _ref5.nextValue,
172
167
  nextValue = _ref5$nextValue === void 0 ? [] : _ref5$nextValue,
173
168
  _ref5$indentLevel = _ref5.indentLevel,
174
169
  indentLevel = _ref5$indentLevel === void 0 ? 0 : _ref5$indentLevel;
175
- const labelAllLocalesDiff = ["".concat(indent(indentLevel - 1), "labelAllLocales changed")];
170
+ const labelAllLocalesDiff = [`${indent(indentLevel - 1)}labelAllLocales changed`];
176
171
  const mappedOldLabelAllLocales = _reduceInstanceProperty__default["default"](previousValue).call(previousValue, (previousLabelAllLocale, _ref6) => {
177
172
  let locale = _ref6.locale,
178
173
  value = _ref6.value;
@@ -184,8 +179,7 @@ const getLabelAllLocalesDiff = _ref5 => {
184
179
  if (newLabelAllLocale.locale in mappedOldLabelAllLocales) {
185
180
  const oldLocaleValue = mappedOldLabelAllLocales[newLabelAllLocale.locale];
186
181
  if (oldLocaleValue !== newLabelAllLocale.value) {
187
- var _context11, _context12, _context13;
188
- labelAllLocalesDiff.push(_concatInstanceProperty__default["default"](_context11 = _concatInstanceProperty__default["default"](_context12 = _concatInstanceProperty__default["default"](_context13 = "".concat(indent(indentLevel), "locale \"")).call(_context13, newLabelAllLocale.locale, "\" changed: ")).call(_context12, red(oldLocaleValue), " => ")).call(_context11, green(newLabelAllLocale.value)));
182
+ labelAllLocalesDiff.push(`${indent(indentLevel)}locale "${newLabelAllLocale.locale}" changed: ${red(oldLocaleValue)} => ${green(newLabelAllLocale.value)}`);
189
183
  }
190
184
  delete mappedOldLabelAllLocales[newLabelAllLocale.locale];
191
185
  } else {
@@ -199,7 +193,7 @@ const getLabelAllLocalesDiff = _ref5 => {
199
193
  }
200
194
  }
201
195
  });
202
- _forEachInstanceProperty__default["default"](_context14 = _Object$keys__default["default"](mappedOldLabelAllLocales)).call(_context14, key => {
196
+ _forEachInstanceProperty__default["default"](_context5 = _Object$keys__default["default"](mappedOldLabelAllLocales)).call(_context5, key => {
203
197
  const localeDiff = getStringDiff({
204
198
  previousValue: key,
205
199
  label: 'locale',
@@ -213,14 +207,14 @@ const getLabelAllLocalesDiff = _ref5 => {
213
207
  return null;
214
208
  };
215
209
  const getTypeSettingsDiff = _ref7 => {
216
- var _context15;
210
+ var _context6;
217
211
  let previousValue = _ref7.previousValue,
218
212
  nextValue = _ref7.nextValue;
219
213
  const nonNullablePreviousValue = previousValue || {};
220
214
  const nonNullableNextValue = nextValue || {};
221
215
  const indentLevel = 1;
222
- const typeSettingsDiff = ["".concat(indent(indentLevel - 1), "type settings changed")];
223
- _forEachInstanceProperty__default["default"](_context15 = _Object$keys__default["default"](nonNullablePreviousValue)).call(_context15, key => {
216
+ const typeSettingsDiff = [`${indent(indentLevel - 1)}type settings changed`];
217
+ _forEachInstanceProperty__default["default"](_context6 = _Object$keys__default["default"](nonNullablePreviousValue)).call(_context6, key => {
224
218
  const typeSettingDiff = getStringDiff({
225
219
  previousValue: nonNullablePreviousValue[key],
226
220
  nextValue: nonNullableNextValue[key],
@@ -270,7 +264,7 @@ const getMainMenuLinkDiff = _ref9 => {
270
264
  indentLevel: 2
271
265
  });
272
266
  if (mainMenuLinkPermissionsDiff.length > 0) {
273
- mainMenuLinkDiff.push("".concat(indent(1), "permissions changed"));
267
+ mainMenuLinkDiff.push(`${indent(1)}permissions changed`);
274
268
  mainMenuLinkDiff.push(mainMenuLinkPermissionsDiff);
275
269
  }
276
270
  const menuLabelsDiff = getLabelAllLocalesDiff({
@@ -286,7 +280,7 @@ const getMainMenuLinkDiff = _ref9 => {
286
280
  return null;
287
281
  };
288
282
  const getSubmenuLinksDiff = _ref0 => {
289
- var _context20;
283
+ var _context8;
290
284
  let previousValue = _ref0.previousValue,
291
285
  nextValue = _ref0.nextValue;
292
286
  const submenuLinksDiff = ['submenuLink changed'];
@@ -297,17 +291,16 @@ const getSubmenuLinksDiff = _ref0 => {
297
291
  const previousOrder = getOrder(previousValue);
298
292
  const newOrder = getOrder(nextValue);
299
293
  if (previousOrder !== newOrder) {
300
- var _context16, _context17;
301
- submenuLinksDiff.push("".concat(indent(1), "submenu order changed"));
302
- submenuLinksDiff.push(_concatInstanceProperty__default["default"](_context16 = "".concat(indent(2), "previous order: [")).call(_context16, previousOrder, "]"));
303
- submenuLinksDiff.push(_concatInstanceProperty__default["default"](_context17 = "".concat(indent(2), "new order: [")).call(_context17, newOrder, "]"));
294
+ submenuLinksDiff.push(`${indent(1)}submenu order changed`);
295
+ submenuLinksDiff.push(`${indent(2)}previous order: [${previousOrder}]`);
296
+ submenuLinksDiff.push(`${indent(2)}new order: [${newOrder}]`);
304
297
  }
305
298
  _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newSubmenuLink => {
306
299
  const oldSubMenuLink = mappedSubmenuLinks[newSubmenuLink.uriPath];
307
300
  if (newSubmenuLink.uriPath in mappedSubmenuLinks) {
308
- var _context18, _context19;
309
- const submenuLinkDiff = [_concatInstanceProperty__default["default"](_context18 = "".concat(indent(1), "menu link \"")).call(_context18, newSubmenuLink.uriPath, "\" changed")];
310
- _forEachInstanceProperty__default["default"](_context19 = _Object$keys__default["default"](mappedSubmenuLinks[newSubmenuLink.uriPath])).call(_context19, key => {
301
+ var _context7;
302
+ const submenuLinkDiff = [`${indent(1)}menu link "${newSubmenuLink.uriPath}" changed`];
303
+ _forEachInstanceProperty__default["default"](_context7 = _Object$keys__default["default"](mappedSubmenuLinks[newSubmenuLink.uriPath])).call(_context7, key => {
311
304
  switch (key) {
312
305
  case 'defaultLabel':
313
306
  {
@@ -331,7 +324,7 @@ const getSubmenuLinksDiff = _ref0 => {
331
324
  indentLevel: 3
332
325
  });
333
326
  if (submenuLinkPermissionsDiff.length > 0) {
334
- submenuLinkDiff.push("".concat(indent(2), "permissions changed"));
327
+ submenuLinkDiff.push(`${indent(2)}permissions changed`);
335
328
  submenuLinkDiff.push(submenuLinkPermissionsDiff);
336
329
  }
337
330
  break;
@@ -366,7 +359,7 @@ const getSubmenuLinksDiff = _ref0 => {
366
359
  }
367
360
  }
368
361
  });
369
- _forEachInstanceProperty__default["default"](_context20 = _Object$keys__default["default"](mappedSubmenuLinks)).call(_context20, key => {
362
+ _forEachInstanceProperty__default["default"](_context8 = _Object$keys__default["default"](mappedSubmenuLinks)).call(_context8, key => {
370
363
  const linksDiff = getStringDiff({
371
364
  previousValue: key,
372
365
  label: 'menu link',
@@ -541,18 +534,17 @@ const getCustomViewConfigDiff = (oldConfig, newConfig) => {
541
534
 
542
535
  const credentialsStorage = new credentialsStorage$1.CredentialsStorage();
543
536
  const getMcUrlLink = _ref => {
544
- var _context, _context2, _context3;
545
537
  let mcApiUrl = _ref.mcApiUrl,
546
538
  organizationId = _ref.organizationId,
547
539
  customEntityId = _ref.customEntityId,
548
540
  isCustomView = _ref.isCustomView;
549
541
  const mcUrl = mcApiUrl.replace('mc-api', 'mc');
550
- const customEntityLink = _concatInstanceProperty__default["default"](_context = _concatInstanceProperty__default["default"](_context2 = _concatInstanceProperty__default["default"](_context3 = "".concat(mcUrl, "/account/organizations/")).call(_context3, organizationId, "/custom-")).call(_context2, isCustomView ? 'views' : 'applications', "/owned/")).call(_context, customEntityId);
542
+ const customEntityLink = `${mcUrl}/account/organizations/${organizationId}/custom-${isCustomView ? 'views' : 'applications'}/owned/${customEntityId}`;
551
543
  return customEntityLink;
552
544
  };
553
545
  const isCustomViewData = data => data.entryPointUriPath === undefined;
554
546
  async function createOrUpdateCustomApplication(_ref2) {
555
- var _context6;
547
+ var _context3;
556
548
  let mcApiUrl = _ref2.mcApiUrl,
557
549
  localCustomEntityData = _ref2.localCustomEntityData,
558
550
  applicationIdentifier = _ref2.applicationIdentifier,
@@ -563,14 +555,14 @@ async function createOrUpdateCustomApplication(_ref2) {
563
555
  applicationIdentifier
564
556
  });
565
557
  if (!fetchedCustomApplication) {
566
- var _context5;
558
+ var _context2;
567
559
  const userOrganizations = await graphqlRequests.fetchUserOrganizations({
568
560
  mcApiUrl,
569
561
  applicationIdentifier
570
562
  });
571
563
  let organizationId, organizationName;
572
564
  if (userOrganizations.total === 0) {
573
- 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 Custom Application to be configured to.");
565
+ 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 Custom Application to be configured to.`);
574
566
  }
575
567
  if (userOrganizations.total === 1) {
576
568
  const _userOrganizations$re = _slicedToArray(userOrganizations.results, 1),
@@ -578,8 +570,8 @@ async function createOrUpdateCustomApplication(_ref2) {
578
570
  organizationId = organization.id;
579
571
  organizationName = organization.name;
580
572
  } else {
581
- var _context4;
582
- const organizationChoices = _mapInstanceProperty__default["default"](_context4 = userOrganizations.results).call(_context4, organization => ({
573
+ var _context;
574
+ const organizationChoices = _mapInstanceProperty__default["default"](_context = userOrganizations.results).call(_context, organization => ({
583
575
  title: organization.name,
584
576
  value: organization.id
585
577
  }));
@@ -592,7 +584,7 @@ async function createOrUpdateCustomApplication(_ref2) {
592
584
  }),
593
585
  selectedOrganizationId = _await$prompts.organizationId;
594
586
  if (!selectedOrganizationId) {
595
- throw new Error("No Organization selected, aborting.");
587
+ throw new Error(`No Organization selected, aborting.`);
596
588
  }
597
589
  organizationId = selectedOrganizationId;
598
590
  organizationName = _findInstanceProperty__default["default"](organizationChoices).call(organizationChoices, _ref3 => {
@@ -603,7 +595,7 @@ async function createOrUpdateCustomApplication(_ref2) {
603
595
  const _await$prompts2 = await prompts__default["default"]({
604
596
  type: 'text',
605
597
  name: 'confirmation',
606
- message: _filterInstanceProperty__default["default"](_context5 = ["You are about to create a new Custom Application in the \"".concat(chalk__default["default"].green(organizationName), "\" organization. Are you sure you want to proceed?"), options.dryRun && chalk__default["default"].gray('Using "--dry-run", no data will be created.')]).call(_context5, Boolean).join('\n'),
598
+ message: _filterInstanceProperty__default["default"](_context2 = [`You are about to create a new Custom Application in the "${chalk__default["default"].green(organizationName)}" organization. Are you sure you want to proceed?`, options.dryRun && chalk__default["default"].gray('Using "--dry-run", no data will be created.')]).call(_context2, Boolean).join('\n'),
607
599
  initial: 'yes'
608
600
  }),
609
601
  confirmation = _await$prompts2.confirmation;
@@ -614,7 +606,7 @@ async function createOrUpdateCustomApplication(_ref2) {
614
606
  const data = omit__default["default"](localCustomEntityData, ['id']);
615
607
  if (options.dryRun) {
616
608
  console.log();
617
- console.log("The following payload would be used to create a new Custom Application.");
609
+ console.log(`The following payload would be used to create a new Custom Application.`);
618
610
  console.log();
619
611
  console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
620
612
  return;
@@ -638,8 +630,8 @@ async function createOrUpdateCustomApplication(_ref2) {
638
630
  organizationId,
639
631
  customEntityId: createdCustomApplication.id
640
632
  });
641
- console.log(chalk__default["default"].green("Custom Application created.\nPlease update the \"env.production.applicationId\" field in your local Custom Application config file with the following value: \"".concat(chalk__default["default"].green(createdCustomApplication.id), "\".")));
642
- console.log("You can inspect the Custom Application data in the Merchant Center at \"".concat(chalk__default["default"].gray(customAppLink), "\"."));
633
+ console.log(chalk__default["default"].green(`Custom Application created.\nPlease update the "env.production.applicationId" field in your local Custom Application config file with the following value: "${chalk__default["default"].green(createdCustomApplication.id)}".`));
634
+ console.log(`You can inspect the Custom Application data in the Merchant Center at "${chalk__default["default"].gray(customAppLink)}".`);
643
635
  return;
644
636
  }
645
637
  const customAppLink = getMcUrlLink({
@@ -649,8 +641,8 @@ async function createOrUpdateCustomApplication(_ref2) {
649
641
  });
650
642
  const configDiff = getCustomApplicationConfigDiff(fetchedCustomApplication.application, localCustomEntityData);
651
643
  if (!configDiff) {
652
- console.log(chalk__default["default"].green("Custom Application up-to-date."));
653
- console.log("You can inspect the Custom Application data in the Merchant Center at \"".concat(chalk__default["default"].gray(customAppLink), "\"."));
644
+ console.log(chalk__default["default"].green(`Custom Application up-to-date.`));
645
+ console.log(`You can inspect the Custom Application data in the Merchant Center at "${chalk__default["default"].gray(customAppLink)}".`);
654
646
  return;
655
647
  }
656
648
  console.log('Changes detected:');
@@ -659,7 +651,7 @@ async function createOrUpdateCustomApplication(_ref2) {
659
651
  const _await$prompts3 = await prompts__default["default"]({
660
652
  type: 'text',
661
653
  name: 'confirmation',
662
- message: _filterInstanceProperty__default["default"](_context6 = ["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?"), options.dryRun && chalk__default["default"].gray('Using "--dry-run", no data will be updated.')]).call(_context6, Boolean).join('\n'),
654
+ message: _filterInstanceProperty__default["default"](_context3 = [`You are about to update the Custom Application "${chalk__default["default"].green(localCustomEntityData.entryPointUriPath)}" with the changes above. Are you sure you want to proceed?`, options.dryRun && chalk__default["default"].gray('Using "--dry-run", no data will be updated.')]).call(_context3, Boolean).join('\n'),
663
655
  initial: 'yes'
664
656
  }),
665
657
  confirmation = _await$prompts3.confirmation;
@@ -670,7 +662,7 @@ async function createOrUpdateCustomApplication(_ref2) {
670
662
  const data = omit__default["default"](localCustomEntityData, ['id']);
671
663
  if (options.dryRun) {
672
664
  console.log();
673
- console.log("The following payload would be used to update the Custom Application \"".concat(chalk__default["default"].green(data.entryPointUriPath), "\"."));
665
+ console.log(`The following payload would be used to update the Custom Application "${chalk__default["default"].green(data.entryPointUriPath)}".`);
674
666
  console.log();
675
667
  console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
676
668
  return;
@@ -682,11 +674,11 @@ async function createOrUpdateCustomApplication(_ref2) {
682
674
  applicationId: fetchedCustomApplication.application.id,
683
675
  applicationIdentifier
684
676
  });
685
- console.log(chalk__default["default"].green("Custom Application updated."));
686
- console.log("You can inspect the Custom Application data in the Merchant Center at \"".concat(chalk__default["default"].gray(customAppLink), "\"."));
677
+ console.log(chalk__default["default"].green(`Custom Application updated.`));
678
+ console.log(`You can inspect the Custom Application data in the Merchant Center at "${chalk__default["default"].gray(customAppLink)}".`);
687
679
  }
688
680
  async function createOrUpdateCustomView(_ref4) {
689
- var _fetchedCustomView$cu, _context9, _fetchedCustomView$cu2;
681
+ var _context6;
690
682
  let mcApiUrl = _ref4.mcApiUrl,
691
683
  localCustomEntityData = _ref4.localCustomEntityData,
692
684
  customViewId = _ref4.customViewId,
@@ -698,7 +690,7 @@ async function createOrUpdateCustomView(_ref4) {
698
690
  applicationIdentifier
699
691
  });
700
692
  if (!fetchedCustomView) {
701
- var _context8;
693
+ var _context5;
702
694
  const userOrganizations = await graphqlRequests.fetchUserOrganizations({
703
695
  mcApiUrl,
704
696
  customViewId,
@@ -706,7 +698,7 @@ async function createOrUpdateCustomView(_ref4) {
706
698
  });
707
699
  let organizationId, organizationName;
708
700
  if (userOrganizations.total === 0) {
709
- 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 Custom View to be configured to.");
701
+ 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 Custom View to be configured to.`);
710
702
  }
711
703
  if (userOrganizations.total === 1) {
712
704
  const _userOrganizations$re2 = _slicedToArray(userOrganizations.results, 1),
@@ -714,8 +706,8 @@ async function createOrUpdateCustomView(_ref4) {
714
706
  organizationId = organization.id;
715
707
  organizationName = organization.name;
716
708
  } else {
717
- var _context7;
718
- const organizationChoices = _mapInstanceProperty__default["default"](_context7 = userOrganizations.results).call(_context7, organization => ({
709
+ var _context4;
710
+ const organizationChoices = _mapInstanceProperty__default["default"](_context4 = userOrganizations.results).call(_context4, organization => ({
719
711
  title: organization.name,
720
712
  value: organization.id
721
713
  }));
@@ -728,7 +720,7 @@ async function createOrUpdateCustomView(_ref4) {
728
720
  }),
729
721
  selectedOrganizationId = _await$prompts4.organizationId;
730
722
  if (!selectedOrganizationId) {
731
- throw new Error("No Organization selected, aborting.");
723
+ throw new Error(`No Organization selected, aborting.`);
732
724
  }
733
725
  organizationId = selectedOrganizationId;
734
726
  organizationName = _findInstanceProperty__default["default"](organizationChoices).call(organizationChoices, _ref5 => {
@@ -739,7 +731,7 @@ async function createOrUpdateCustomView(_ref4) {
739
731
  const _await$prompts5 = await prompts__default["default"]({
740
732
  type: 'text',
741
733
  name: 'confirmation',
742
- message: _filterInstanceProperty__default["default"](_context8 = ["You are about to create a new Custom View in the \"".concat(chalk__default["default"].green(organizationName), "\" organization. Are you sure you want to proceed?"), options.dryRun && chalk__default["default"].gray('Using "--dry-run", no data will be created.')]).call(_context8, Boolean).join('\n'),
734
+ message: _filterInstanceProperty__default["default"](_context5 = [`You are about to create a new Custom View in the "${chalk__default["default"].green(organizationName)}" organization. Are you sure you want to proceed?`, options.dryRun && chalk__default["default"].gray('Using "--dry-run", no data will be created.')]).call(_context5, Boolean).join('\n'),
743
735
  initial: 'yes'
744
736
  }),
745
737
  confirmation = _await$prompts5.confirmation;
@@ -750,7 +742,7 @@ async function createOrUpdateCustomView(_ref4) {
750
742
  const data = omit__default["default"](localCustomEntityData, ['id']);
751
743
  if (options.dryRun) {
752
744
  console.log();
753
- console.log("The following payload would be used to create a new Custom View.");
745
+ console.log(`The following payload would be used to create a new Custom View.`);
754
746
  console.log();
755
747
  console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
756
748
  return;
@@ -775,20 +767,20 @@ async function createOrUpdateCustomView(_ref4) {
775
767
  customEntityId: createdCustomView.id,
776
768
  isCustomView: true
777
769
  });
778
- console.log(chalk__default["default"].green("Custom View created.\nPlease update the \"env.production.customViewId\" field in your local Custom View config file with the following value: \"".concat(chalk__default["default"].green(createdCustomView.id), "\".")));
779
- console.log("You can inspect the Custom View data in the Merchant Center at \"".concat(chalk__default["default"].gray(customViewLink), "\"."));
770
+ console.log(chalk__default["default"].green(`Custom View created.\nPlease update the "env.production.customViewId" field in your local Custom View config file with the following value: "${chalk__default["default"].green(createdCustomView.id)}".`));
771
+ console.log(`You can inspect the Custom View data in the Merchant Center at "${chalk__default["default"].gray(customViewLink)}".`);
780
772
  return;
781
773
  }
782
774
  const customViewLink = getMcUrlLink({
783
775
  mcApiUrl,
784
776
  organizationId: fetchedCustomView.organizationId,
785
- customEntityId: (fetchedCustomView === null || fetchedCustomView === void 0 || (_fetchedCustomView$cu = fetchedCustomView.customView) === null || _fetchedCustomView$cu === void 0 ? void 0 : _fetchedCustomView$cu.id) || '',
777
+ customEntityId: fetchedCustomView?.customView?.id || '',
786
778
  isCustomView: true
787
779
  });
788
780
  const configDiff = getCustomViewConfigDiff(fetchedCustomView.customView, localCustomEntityData);
789
781
  if (!configDiff) {
790
- console.log(chalk__default["default"].green("Custom View up-to-date."));
791
- console.log("You can inspect the Custom View data in the Merchant Center at \"".concat(chalk__default["default"].gray(customViewLink), "\"."));
782
+ console.log(chalk__default["default"].green(`Custom View up-to-date.`));
783
+ console.log(`You can inspect the Custom View data in the Merchant Center at "${chalk__default["default"].gray(customViewLink)}".`);
792
784
  return;
793
785
  }
794
786
  console.log('Changes detected:');
@@ -797,7 +789,7 @@ async function createOrUpdateCustomView(_ref4) {
797
789
  const _await$prompts6 = await prompts__default["default"]({
798
790
  type: 'text',
799
791
  name: 'confirmation',
800
- message: _filterInstanceProperty__default["default"](_context9 = ["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?"), options.dryRun && chalk__default["default"].gray('Using "--dry-run", no data will be updated.')]).call(_context9, Boolean).join('\n'),
792
+ message: _filterInstanceProperty__default["default"](_context6 = [`You are about to update the Custom View "${chalk__default["default"].green(localCustomEntityData.defaultLabel)}" with the changes above. Are you sure you want to proceed?`, options.dryRun && chalk__default["default"].gray('Using "--dry-run", no data will be updated.')]).call(_context6, Boolean).join('\n'),
801
793
  initial: 'yes'
802
794
  }),
803
795
  confirmation = _await$prompts6.confirmation;
@@ -808,7 +800,7 @@ async function createOrUpdateCustomView(_ref4) {
808
800
  const data = omit__default["default"](localCustomEntityData, ['id']);
809
801
  if (options.dryRun) {
810
802
  console.log();
811
- console.log("The following payload would be used to update the Custom View \"".concat(chalk__default["default"].green(data.defaultLabel), "\"."));
803
+ console.log(`The following payload would be used to update the Custom View "${chalk__default["default"].green(data.defaultLabel)}".`);
812
804
  console.log();
813
805
  console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
814
806
  return;
@@ -817,11 +809,11 @@ async function createOrUpdateCustomView(_ref4) {
817
809
  mcApiUrl,
818
810
  organizationId: fetchedCustomView.organizationId,
819
811
  data: omit__default["default"](localCustomEntityData, ['id']),
820
- customViewId: (fetchedCustomView === null || fetchedCustomView === void 0 || (_fetchedCustomView$cu2 = fetchedCustomView.customView) === null || _fetchedCustomView$cu2 === void 0 ? void 0 : _fetchedCustomView$cu2.id) || '',
812
+ customViewId: fetchedCustomView?.customView?.id || '',
821
813
  applicationIdentifier
822
814
  });
823
- console.log(chalk__default["default"].green("Custom View updated."));
824
- console.log("You can inspect the Custom View data in the Merchant Center at \"".concat(chalk__default["default"].gray(customViewLink), "\"."));
815
+ console.log(chalk__default["default"].green(`Custom View updated.`));
816
+ console.log(`You can inspect the Custom View data in the Merchant Center at "${chalk__default["default"].gray(customViewLink)}".`);
825
817
  }
826
818
  async function run(options) {
827
819
  const applicationConfig$1 = await applicationConfig.processConfig();
@@ -830,11 +822,11 @@ async function run(options) {
830
822
  mcApiUrl = _applicationConfig$en.mcApiUrl,
831
823
  applicationIdentifier = _applicationConfig$en.applicationIdentifier,
832
824
  customViewId = _applicationConfig$en.customViewId;
833
- console.log("Using Merchant Center environment \"".concat(chalk__default["default"].green(mcApiUrl), "\"."));
825
+ console.log(`Using Merchant Center environment "${chalk__default["default"].green(mcApiUrl)}".`);
834
826
  console.log();
835
827
  const isSessionValid = credentialsStorage.isSessionValid(mcApiUrl);
836
828
  if (!isSessionValid) {
837
- throw new Error("You don't have a valid session. Please, run the \"mc-scripts login\" command to authenticate yourself.");
829
+ throw new Error(`You don't have a valid session. Please, run the "mc-scripts login" command to authenticate yourself.`);
838
830
  }
839
831
  if (isCustomViewData(localCustomEntityData)) {
840
832
  createOrUpdateCustomView({