@commercetools-frontend/mc-scripts 27.4.2 → 27.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +12 -10
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +12 -10
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +12 -10
- package/dist/{build-cebaad1c.cjs.prod.js → build-2dde4016.cjs.prod.js} +3 -3
- package/dist/{build-2b934f0c.esm.js → build-51b09598.esm.js} +3 -3
- package/dist/{build-b59ae957.cjs.dev.js → build-7a3a4b48.cjs.dev.js} +3 -3
- 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/{config-sync-3be9dd65.esm.js → config-sync-38bb2049.esm.js} +3 -3
- package/dist/{config-sync-6707192b.cjs.prod.js → config-sync-74ddb92a.cjs.prod.js} +3 -3
- package/dist/{config-sync-ci-eaa2c74c.cjs.prod.js → config-sync-ci-0d638a98.cjs.prod.js} +3 -3
- package/dist/{config-sync-ci-3fabd319.cjs.dev.js → config-sync-ci-f083fe23.cjs.dev.js} +3 -3
- package/dist/{config-sync-ci-ceed6879.esm.js → config-sync-ci-f2adf187.esm.js} +3 -3
- package/dist/{config-sync-7bd473d2.cjs.dev.js → config-sync-eac5312f.cjs.dev.js} +3 -3
- package/dist/{config-sync-helpers-9e7101ca.cjs.dev.js → config-sync-helpers-165afb6b.cjs.dev.js} +1 -1
- package/dist/{config-sync-helpers-2f9ce5e7.cjs.prod.js → config-sync-helpers-1dad1481.cjs.prod.js} +1 -1
- package/dist/{config-sync-helpers-4c1e6ef7.esm.js → config-sync-helpers-2bf06642.esm.js} +1 -1
- package/dist/{create-postcss-config-7cebb3e2.cjs.dev.js → create-postcss-config-1b021fb2.cjs.dev.js} +1 -1
- package/dist/{create-postcss-config-82c6d99e.cjs.prod.js → create-postcss-config-434fe673.cjs.prod.js} +1 -1
- package/dist/{create-postcss-config-040fa794.esm.js → create-postcss-config-505c5a4e.esm.js} +1 -1
- package/dist/{create-webpack-config-for-development-9d0b5ccd.cjs.prod.js → create-webpack-config-for-development-1db101e2.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-development-835be72f.cjs.dev.js → create-webpack-config-for-development-65abeb3f.cjs.dev.js} +1 -1
- package/dist/{create-webpack-config-for-development-5fba3c63.esm.js → create-webpack-config-for-development-fd981a20.esm.js} +1 -1
- package/dist/{create-webpack-config-for-production-ffeb4a22.cjs.dev.js → create-webpack-config-for-production-010a6fb4.cjs.dev.js} +1 -1
- package/dist/{create-webpack-config-for-production-8c3f894b.cjs.prod.js → create-webpack-config-for-production-a239ba22.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-production-1c770191.esm.js → create-webpack-config-for-production-bb66207f.esm.js} +1 -1
- package/dist/declarations/src/types.d.ts +3 -0
- package/dist/{deployment-previews-set-add2d9c6.esm.js → deployment-previews-set-6ceff6a3.esm.js} +2 -2
- package/dist/{deployment-previews-set-6dd7e367.cjs.prod.js → deployment-previews-set-beeaeb6d.cjs.prod.js} +2 -2
- package/dist/{deployment-previews-set-68c37d9d.cjs.dev.js → deployment-previews-set-c4f8a461.cjs.dev.js} +2 -2
- package/dist/{graphql-requests-5e31d639.cjs.prod.js → graphql-requests-4c97fe92.cjs.prod.js} +1 -1
- package/dist/{graphql-requests-c07e7b8f.esm.js → graphql-requests-53a1f5dd.esm.js} +1 -1
- package/dist/{graphql-requests-24e04c13.cjs.dev.js → graphql-requests-86c87041.cjs.dev.js} +1 -1
- package/dist/{login-af2522fd.esm.js → login-1e4ddcda.esm.js} +1 -1
- package/dist/{login-a1ad5f07.cjs.dev.js → login-382b51ea.cjs.dev.js} +1 -1
- package/dist/{login-c05816f1.cjs.prod.js → login-c151a059.cjs.prod.js} +1 -1
- package/dist/{package-14789720.esm.js → package-02f0532d.esm.js} +12 -12
- package/dist/{package-d75d6b9f.cjs.prod.js → package-c8f39856.cjs.dev.js} +12 -12
- package/dist/{package-6dcc2c4f.cjs.dev.js → package-dfc9c56b.cjs.prod.js} +12 -12
- package/dist/{serve-4062385a.esm.js → serve-00294d34.esm.js} +28 -21
- package/dist/{serve-b9ac0b0c.cjs.dev.js → serve-81db9f2e.cjs.dev.js} +28 -21
- package/dist/{serve-5a455e72.cjs.prod.js → serve-d62433a1.cjs.prod.js} +28 -21
- package/dist/{start-f93cb36f.cjs.dev.js → start-32bc9eca.cjs.dev.js} +3 -3
- package/dist/{start-f52d8e68.cjs.prod.js → start-5eb60c74.cjs.prod.js} +3 -3
- package/dist/{start-c9b32028.esm.js → start-6fc3b235.esm.js} +3 -3
- package/package.json +12 -12
- 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 +4 -4
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +4 -4
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +4 -4
package/dist/{deployment-previews-set-add2d9c6.esm.js → deployment-previews-set-6ceff6a3.esm.js}
RENAMED
|
@@ -6,7 +6,7 @@ import chalk from 'chalk';
|
|
|
6
6
|
import prompts from 'prompts';
|
|
7
7
|
import { processConfig } from '@commercetools-frontend/application-config';
|
|
8
8
|
import { C as CredentialsStorage } from './credentials-storage-67deadc3.esm.js';
|
|
9
|
-
import { d as fetchCustomApplication, g as updateCustomApplicationDeploymentPreview, h as createCustomApplicationDeploymentPreview } from './graphql-requests-
|
|
9
|
+
import { d as fetchCustomApplication, g as updateCustomApplicationDeploymentPreview, h as createCustomApplicationDeploymentPreview } from './graphql-requests-53a1f5dd.esm.js';
|
|
10
10
|
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
11
11
|
import '@babel/runtime-corejs3/helpers/createClass';
|
|
12
12
|
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
@@ -28,7 +28,7 @@ import 'graphql';
|
|
|
28
28
|
import 'graphql-request';
|
|
29
29
|
import '@commercetools-frontend/constants';
|
|
30
30
|
import '@commercetools/http-user-agent';
|
|
31
|
-
import './package-
|
|
31
|
+
import './package-02f0532d.esm.js';
|
|
32
32
|
|
|
33
33
|
const credentialsStorage = new CredentialsStorage();
|
|
34
34
|
const validateUrl = function () {
|
|
@@ -8,7 +8,7 @@ var chalk = require('chalk');
|
|
|
8
8
|
var prompts = require('prompts');
|
|
9
9
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
10
10
|
var credentialsStorage$1 = require('./credentials-storage-ea1c16dc.cjs.prod.js');
|
|
11
|
-
var graphqlRequests = require('./graphql-requests-
|
|
11
|
+
var graphqlRequests = require('./graphql-requests-4c97fe92.cjs.prod.js');
|
|
12
12
|
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
13
13
|
require('@babel/runtime-corejs3/helpers/createClass');
|
|
14
14
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
@@ -30,7 +30,7 @@ require('graphql');
|
|
|
30
30
|
require('graphql-request');
|
|
31
31
|
require('@commercetools-frontend/constants');
|
|
32
32
|
require('@commercetools/http-user-agent');
|
|
33
|
-
require('./package-
|
|
33
|
+
require('./package-dfc9c56b.cjs.prod.js');
|
|
34
34
|
|
|
35
35
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
36
36
|
|
|
@@ -8,7 +8,7 @@ var chalk = require('chalk');
|
|
|
8
8
|
var prompts = require('prompts');
|
|
9
9
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
10
10
|
var credentialsStorage$1 = require('./credentials-storage-fd195144.cjs.dev.js');
|
|
11
|
-
var graphqlRequests = require('./graphql-requests-
|
|
11
|
+
var graphqlRequests = require('./graphql-requests-86c87041.cjs.dev.js');
|
|
12
12
|
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
13
13
|
require('@babel/runtime-corejs3/helpers/createClass');
|
|
14
14
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
@@ -30,7 +30,7 @@ require('graphql');
|
|
|
30
30
|
require('graphql-request');
|
|
31
31
|
require('@commercetools-frontend/constants');
|
|
32
32
|
require('@commercetools/http-user-agent');
|
|
33
|
-
require('./package-
|
|
33
|
+
require('./package-c8f39856.cjs.dev.js');
|
|
34
34
|
|
|
35
35
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
36
36
|
|
package/dist/{graphql-requests-5e31d639.cjs.prod.js → graphql-requests-4c97fe92.cjs.prod.js}
RENAMED
|
@@ -16,7 +16,7 @@ var graphqlRequest = require('graphql-request');
|
|
|
16
16
|
var constants = require('@commercetools-frontend/constants');
|
|
17
17
|
var credentialsStorage$1 = require('./credentials-storage-ea1c16dc.cjs.prod.js');
|
|
18
18
|
var createHttpUserAgent = require('@commercetools/http-user-agent');
|
|
19
|
-
var _package = require('./package-
|
|
19
|
+
var _package = require('./package-dfc9c56b.cjs.prod.js');
|
|
20
20
|
|
|
21
21
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
22
22
|
|
|
@@ -14,7 +14,7 @@ import { GraphQLClient, ClientError } from 'graphql-request';
|
|
|
14
14
|
import { GRAPHQL_TARGETS, SUPPORTED_HEADERS } from '@commercetools-frontend/constants';
|
|
15
15
|
import { C as CredentialsStorage } from './credentials-storage-67deadc3.esm.js';
|
|
16
16
|
import createHttpUserAgent from '@commercetools/http-user-agent';
|
|
17
|
-
import { p as pkgJson } from './package-
|
|
17
|
+
import { p as pkgJson } from './package-02f0532d.esm.js';
|
|
18
18
|
|
|
19
19
|
const userAgent = createHttpUserAgent({
|
|
20
20
|
name: 'graphql-request',
|
|
@@ -16,7 +16,7 @@ var graphqlRequest = require('graphql-request');
|
|
|
16
16
|
var constants = require('@commercetools-frontend/constants');
|
|
17
17
|
var credentialsStorage$1 = require('./credentials-storage-fd195144.cjs.dev.js');
|
|
18
18
|
var createHttpUserAgent = require('@commercetools/http-user-agent');
|
|
19
|
-
var _package = require('./package-
|
|
19
|
+
var _package = require('./package-c8f39856.cjs.dev.js');
|
|
20
20
|
|
|
21
21
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
22
22
|
|
|
@@ -13,7 +13,7 @@ import crypto from 'node:crypto';
|
|
|
13
13
|
import process, { exit } from 'node:process';
|
|
14
14
|
import chalk from 'chalk';
|
|
15
15
|
import { processConfig } from '@commercetools-frontend/application-config';
|
|
16
|
-
import { p as pkgJson } from './package-
|
|
16
|
+
import { p as pkgJson } from './package-02f0532d.esm.js';
|
|
17
17
|
import http from 'node:http';
|
|
18
18
|
import jwtDecode from 'jwt-decode';
|
|
19
19
|
import { C as CredentialsStorage } from './credentials-storage-67deadc3.esm.js';
|
|
@@ -15,7 +15,7 @@ var crypto = require('node:crypto');
|
|
|
15
15
|
var process = require('node:process');
|
|
16
16
|
var chalk = require('chalk');
|
|
17
17
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
18
|
-
var _package = require('./package-
|
|
18
|
+
var _package = require('./package-c8f39856.cjs.dev.js');
|
|
19
19
|
var http = require('node:http');
|
|
20
20
|
var jwtDecode = require('jwt-decode');
|
|
21
21
|
var credentialsStorage$1 = require('./credentials-storage-fd195144.cjs.dev.js');
|
|
@@ -15,7 +15,7 @@ var crypto = require('node:crypto');
|
|
|
15
15
|
var process = require('node:process');
|
|
16
16
|
var chalk = require('chalk');
|
|
17
17
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
18
|
-
var _package = require('./package-
|
|
18
|
+
var _package = require('./package-dfc9c56b.cjs.prod.js');
|
|
19
19
|
var http = require('node:http');
|
|
20
20
|
var jwtDecode = require('jwt-decode');
|
|
21
21
|
var credentialsStorage$1 = require('./credentials-storage-ea1c16dc.cjs.prod.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var pkgJson = {
|
|
2
2
|
name: "@commercetools-frontend/mc-scripts",
|
|
3
|
-
version: "27.
|
|
3
|
+
version: "27.5.0",
|
|
4
4
|
description: "Configuration and scripts for developing a MC application",
|
|
5
5
|
bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
repository: {
|
|
@@ -61,13 +61,13 @@ var pkgJson = {
|
|
|
61
61
|
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
62
62
|
"@babel/runtime": "^7.22.15",
|
|
63
63
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
64
|
-
"@commercetools-frontend/application-components": "27.
|
|
65
|
-
"@commercetools-frontend/application-config": "27.
|
|
66
|
-
"@commercetools-frontend/assets": "27.
|
|
67
|
-
"@commercetools-frontend/babel-preset-mc-app": "27.
|
|
68
|
-
"@commercetools-frontend/constants": "27.
|
|
69
|
-
"@commercetools-frontend/mc-dev-authentication": "27.
|
|
70
|
-
"@commercetools-frontend/mc-html-template": "27.
|
|
64
|
+
"@commercetools-frontend/application-components": "27.5.0",
|
|
65
|
+
"@commercetools-frontend/application-config": "27.5.0",
|
|
66
|
+
"@commercetools-frontend/assets": "27.5.0",
|
|
67
|
+
"@commercetools-frontend/babel-preset-mc-app": "27.5.0",
|
|
68
|
+
"@commercetools-frontend/constants": "27.5.0",
|
|
69
|
+
"@commercetools-frontend/mc-dev-authentication": "27.5.0",
|
|
70
|
+
"@commercetools-frontend/mc-html-template": "27.5.0",
|
|
71
71
|
"@commercetools/http-user-agent": "3.0.0",
|
|
72
72
|
"@emotion/babel-plugin": "^11.13.5",
|
|
73
73
|
"@formatjs/cli-lib": "^6.3.8",
|
|
@@ -91,7 +91,7 @@ var pkgJson = {
|
|
|
91
91
|
commander: "^13.1.0",
|
|
92
92
|
"core-js": "^3.32.2",
|
|
93
93
|
"css-loader": "6.11.0",
|
|
94
|
-
"css-minimizer-webpack-plugin": "
|
|
94
|
+
"css-minimizer-webpack-plugin": "^8.0.0",
|
|
95
95
|
dotenv: "16.6.1",
|
|
96
96
|
"dotenv-expand": "8.0.3",
|
|
97
97
|
"fs-extra": "10.1.0",
|
|
@@ -108,7 +108,7 @@ var pkgJson = {
|
|
|
108
108
|
"moment-locales-webpack-plugin": "1.2.0",
|
|
109
109
|
"node-fetch": "2.7.0",
|
|
110
110
|
open: "^10.1.0",
|
|
111
|
-
postcss: "8.5.
|
|
111
|
+
postcss: "^8.5.12",
|
|
112
112
|
"postcss-custom-media": "8.0.2",
|
|
113
113
|
"postcss-custom-properties": "12.1.4",
|
|
114
114
|
"postcss-import": "14.1.0",
|
|
@@ -125,7 +125,7 @@ var pkgJson = {
|
|
|
125
125
|
sirv: "^3.0.2",
|
|
126
126
|
"style-loader": "3.3.4",
|
|
127
127
|
"svg-url-loader": "7.1.1",
|
|
128
|
-
"terser-webpack-plugin": "5.
|
|
128
|
+
"terser-webpack-plugin": "^5.5.0",
|
|
129
129
|
"thread-loader": "3.0.4",
|
|
130
130
|
url: "^0.11.0",
|
|
131
131
|
vite: "~6.4.2",
|
|
@@ -150,7 +150,7 @@ var pkgJson = {
|
|
|
150
150
|
rimraf: "6.0.1"
|
|
151
151
|
},
|
|
152
152
|
engines: {
|
|
153
|
-
node: "
|
|
153
|
+
node: "20.x || >=22.0.0"
|
|
154
154
|
},
|
|
155
155
|
peerDependencies: {
|
|
156
156
|
puppeteer: ">=20.0.0"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var pkgJson = {
|
|
4
4
|
name: "@commercetools-frontend/mc-scripts",
|
|
5
|
-
version: "27.
|
|
5
|
+
version: "27.5.0",
|
|
6
6
|
description: "Configuration and scripts for developing a MC application",
|
|
7
7
|
bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
8
8
|
repository: {
|
|
@@ -63,13 +63,13 @@ var pkgJson = {
|
|
|
63
63
|
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
64
64
|
"@babel/runtime": "^7.22.15",
|
|
65
65
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
66
|
-
"@commercetools-frontend/application-components": "27.
|
|
67
|
-
"@commercetools-frontend/application-config": "27.
|
|
68
|
-
"@commercetools-frontend/assets": "27.
|
|
69
|
-
"@commercetools-frontend/babel-preset-mc-app": "27.
|
|
70
|
-
"@commercetools-frontend/constants": "27.
|
|
71
|
-
"@commercetools-frontend/mc-dev-authentication": "27.
|
|
72
|
-
"@commercetools-frontend/mc-html-template": "27.
|
|
66
|
+
"@commercetools-frontend/application-components": "27.5.0",
|
|
67
|
+
"@commercetools-frontend/application-config": "27.5.0",
|
|
68
|
+
"@commercetools-frontend/assets": "27.5.0",
|
|
69
|
+
"@commercetools-frontend/babel-preset-mc-app": "27.5.0",
|
|
70
|
+
"@commercetools-frontend/constants": "27.5.0",
|
|
71
|
+
"@commercetools-frontend/mc-dev-authentication": "27.5.0",
|
|
72
|
+
"@commercetools-frontend/mc-html-template": "27.5.0",
|
|
73
73
|
"@commercetools/http-user-agent": "3.0.0",
|
|
74
74
|
"@emotion/babel-plugin": "^11.13.5",
|
|
75
75
|
"@formatjs/cli-lib": "^6.3.8",
|
|
@@ -93,7 +93,7 @@ var pkgJson = {
|
|
|
93
93
|
commander: "^13.1.0",
|
|
94
94
|
"core-js": "^3.32.2",
|
|
95
95
|
"css-loader": "6.11.0",
|
|
96
|
-
"css-minimizer-webpack-plugin": "
|
|
96
|
+
"css-minimizer-webpack-plugin": "^8.0.0",
|
|
97
97
|
dotenv: "16.6.1",
|
|
98
98
|
"dotenv-expand": "8.0.3",
|
|
99
99
|
"fs-extra": "10.1.0",
|
|
@@ -110,7 +110,7 @@ var pkgJson = {
|
|
|
110
110
|
"moment-locales-webpack-plugin": "1.2.0",
|
|
111
111
|
"node-fetch": "2.7.0",
|
|
112
112
|
open: "^10.1.0",
|
|
113
|
-
postcss: "8.5.
|
|
113
|
+
postcss: "^8.5.12",
|
|
114
114
|
"postcss-custom-media": "8.0.2",
|
|
115
115
|
"postcss-custom-properties": "12.1.4",
|
|
116
116
|
"postcss-import": "14.1.0",
|
|
@@ -127,7 +127,7 @@ var pkgJson = {
|
|
|
127
127
|
sirv: "^3.0.2",
|
|
128
128
|
"style-loader": "3.3.4",
|
|
129
129
|
"svg-url-loader": "7.1.1",
|
|
130
|
-
"terser-webpack-plugin": "5.
|
|
130
|
+
"terser-webpack-plugin": "^5.5.0",
|
|
131
131
|
"thread-loader": "3.0.4",
|
|
132
132
|
url: "^0.11.0",
|
|
133
133
|
vite: "~6.4.2",
|
|
@@ -152,7 +152,7 @@ var pkgJson = {
|
|
|
152
152
|
rimraf: "6.0.1"
|
|
153
153
|
},
|
|
154
154
|
engines: {
|
|
155
|
-
node: "
|
|
155
|
+
node: "20.x || >=22.0.0"
|
|
156
156
|
},
|
|
157
157
|
peerDependencies: {
|
|
158
158
|
puppeteer: ">=20.0.0"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var pkgJson = {
|
|
4
4
|
name: "@commercetools-frontend/mc-scripts",
|
|
5
|
-
version: "27.
|
|
5
|
+
version: "27.5.0",
|
|
6
6
|
description: "Configuration and scripts for developing a MC application",
|
|
7
7
|
bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
8
8
|
repository: {
|
|
@@ -63,13 +63,13 @@ var pkgJson = {
|
|
|
63
63
|
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
64
64
|
"@babel/runtime": "^7.22.15",
|
|
65
65
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
66
|
-
"@commercetools-frontend/application-components": "27.
|
|
67
|
-
"@commercetools-frontend/application-config": "27.
|
|
68
|
-
"@commercetools-frontend/assets": "27.
|
|
69
|
-
"@commercetools-frontend/babel-preset-mc-app": "27.
|
|
70
|
-
"@commercetools-frontend/constants": "27.
|
|
71
|
-
"@commercetools-frontend/mc-dev-authentication": "27.
|
|
72
|
-
"@commercetools-frontend/mc-html-template": "27.
|
|
66
|
+
"@commercetools-frontend/application-components": "27.5.0",
|
|
67
|
+
"@commercetools-frontend/application-config": "27.5.0",
|
|
68
|
+
"@commercetools-frontend/assets": "27.5.0",
|
|
69
|
+
"@commercetools-frontend/babel-preset-mc-app": "27.5.0",
|
|
70
|
+
"@commercetools-frontend/constants": "27.5.0",
|
|
71
|
+
"@commercetools-frontend/mc-dev-authentication": "27.5.0",
|
|
72
|
+
"@commercetools-frontend/mc-html-template": "27.5.0",
|
|
73
73
|
"@commercetools/http-user-agent": "3.0.0",
|
|
74
74
|
"@emotion/babel-plugin": "^11.13.5",
|
|
75
75
|
"@formatjs/cli-lib": "^6.3.8",
|
|
@@ -93,7 +93,7 @@ var pkgJson = {
|
|
|
93
93
|
commander: "^13.1.0",
|
|
94
94
|
"core-js": "^3.32.2",
|
|
95
95
|
"css-loader": "6.11.0",
|
|
96
|
-
"css-minimizer-webpack-plugin": "
|
|
96
|
+
"css-minimizer-webpack-plugin": "^8.0.0",
|
|
97
97
|
dotenv: "16.6.1",
|
|
98
98
|
"dotenv-expand": "8.0.3",
|
|
99
99
|
"fs-extra": "10.1.0",
|
|
@@ -110,7 +110,7 @@ var pkgJson = {
|
|
|
110
110
|
"moment-locales-webpack-plugin": "1.2.0",
|
|
111
111
|
"node-fetch": "2.7.0",
|
|
112
112
|
open: "^10.1.0",
|
|
113
|
-
postcss: "8.5.
|
|
113
|
+
postcss: "^8.5.12",
|
|
114
114
|
"postcss-custom-media": "8.0.2",
|
|
115
115
|
"postcss-custom-properties": "12.1.4",
|
|
116
116
|
"postcss-import": "14.1.0",
|
|
@@ -127,7 +127,7 @@ var pkgJson = {
|
|
|
127
127
|
sirv: "^3.0.2",
|
|
128
128
|
"style-loader": "3.3.4",
|
|
129
129
|
"svg-url-loader": "7.1.1",
|
|
130
|
-
"terser-webpack-plugin": "5.
|
|
130
|
+
"terser-webpack-plugin": "^5.5.0",
|
|
131
131
|
"thread-loader": "3.0.4",
|
|
132
132
|
url: "^0.11.0",
|
|
133
133
|
vite: "~6.4.2",
|
|
@@ -152,7 +152,7 @@ var pkgJson = {
|
|
|
152
152
|
rimraf: "6.0.1"
|
|
153
153
|
},
|
|
154
154
|
engines: {
|
|
155
|
-
node: "
|
|
155
|
+
node: "20.x || >=22.0.0"
|
|
156
156
|
},
|
|
157
157
|
peerDependencies: {
|
|
158
158
|
puppeteer: ">=20.0.0"
|
|
@@ -19,6 +19,7 @@ async function run() {
|
|
|
19
19
|
const port = options.port ?? DEFAULT_PORT;
|
|
20
20
|
const publicPath = options.publicPath ?? paths.appBuild;
|
|
21
21
|
const applicationConfig = options.applicationConfig ?? (await processConfig());
|
|
22
|
+
const handleAuthRoutes = options.handleAuthRoutes ?? true;
|
|
22
23
|
const isLocalMcApi = _startsWithInstanceProperty(_context = applicationConfig.env.mcApiUrl).call(_context, 'http://localhost');
|
|
23
24
|
|
|
24
25
|
// `single: true` gives us the SPA fallback — any unmatched path is served as
|
|
@@ -29,28 +30,34 @@ async function run() {
|
|
|
29
30
|
etag: true
|
|
30
31
|
});
|
|
31
32
|
const server = http.createServer((request, response) => {
|
|
32
|
-
var
|
|
33
|
-
//
|
|
34
|
-
// `
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
var _context0, _context1;
|
|
34
|
+
// Apps that own the `/login*` / `/logout*` routes themselves (e.g.
|
|
35
|
+
// `application-authentication`) opt out via `handleAuthRoutes: false` so
|
|
36
|
+
// those paths flow through to the SPA fallback like any other route.
|
|
37
|
+
if (handleAuthRoutes) {
|
|
38
|
+
var _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9;
|
|
39
|
+
// Localhost-only: inline replacement for the login/logout UI that
|
|
40
|
+
// `mc-dev-authentication` used to ship as static HTML (#3734).
|
|
41
|
+
if (isLocalMcApi && ((_context2 = request.url) == null ? void 0 : _bindInstanceProperty(_context3 = Function.call).call(_context3, _startsWithInstanceProperty(_context2), _context2))?.('/login/authorize')) {
|
|
42
|
+
const redirectTo = new _URL(request.url, applicationConfig.env.mcApiUrl);
|
|
43
|
+
response.writeHead(301, {
|
|
44
|
+
Location: redirectTo.toString()
|
|
45
|
+
}).end();
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (isLocalMcApi && ((_context4 = request.url) == null ? void 0 : _bindInstanceProperty(_context5 = Function.call).call(_context5, _startsWithInstanceProperty(_context4), _context4))?.('/logout')) {
|
|
49
|
+
response.end('Please clear your session storage.');
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
46
52
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
// Preserve the pre-swap contract: any other `/login*` or `/logout*`
|
|
54
|
+
// request (bare `/login`, non-localhost auth callbacks, etc.) must NOT
|
|
55
|
+
// fall back to the SPA — that would mask OAuth callback
|
|
56
|
+
// misconfigurations by rendering the app on a URL the backend owns.
|
|
57
|
+
if (((_context6 = request.url) == null ? void 0 : _bindInstanceProperty(_context7 = Function.call).call(_context7, _startsWithInstanceProperty(_context6), _context6))?.('/login') || ((_context8 = request.url) == null ? void 0 : _bindInstanceProperty(_context9 = Function.call).call(_context9, _startsWithInstanceProperty(_context8), _context8))?.('/logout')) {
|
|
58
|
+
response.writeHead(404).end();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
54
61
|
}
|
|
55
62
|
|
|
56
63
|
// Absorb `/favicon*` variants (e.g. `/favicon.ico`, `/favicon-32x32.png`)
|
|
@@ -30,6 +30,7 @@ async function run() {
|
|
|
30
30
|
const port = options.port ?? DEFAULT_PORT;
|
|
31
31
|
const publicPath = options.publicPath ?? paths.paths.appBuild;
|
|
32
32
|
const applicationConfig$1 = options.applicationConfig ?? (await applicationConfig.processConfig());
|
|
33
|
+
const handleAuthRoutes = options.handleAuthRoutes ?? true;
|
|
33
34
|
const isLocalMcApi = _startsWithInstanceProperty__default["default"](_context = applicationConfig$1.env.mcApiUrl).call(_context, 'http://localhost');
|
|
34
35
|
|
|
35
36
|
// `single: true` gives us the SPA fallback — any unmatched path is served as
|
|
@@ -40,28 +41,34 @@ async function run() {
|
|
|
40
41
|
etag: true
|
|
41
42
|
});
|
|
42
43
|
const server = http__default["default"].createServer((request, response) => {
|
|
43
|
-
var
|
|
44
|
-
//
|
|
45
|
-
// `
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
var _context0, _context1;
|
|
45
|
+
// Apps that own the `/login*` / `/logout*` routes themselves (e.g.
|
|
46
|
+
// `application-authentication`) opt out via `handleAuthRoutes: false` so
|
|
47
|
+
// those paths flow through to the SPA fallback like any other route.
|
|
48
|
+
if (handleAuthRoutes) {
|
|
49
|
+
var _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9;
|
|
50
|
+
// Localhost-only: inline replacement for the login/logout UI that
|
|
51
|
+
// `mc-dev-authentication` used to ship as static HTML (#3734).
|
|
52
|
+
if (isLocalMcApi && ((_context2 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _startsWithInstanceProperty__default["default"](_context2), _context2))?.('/login/authorize')) {
|
|
53
|
+
const redirectTo = new _URL__default["default"](request.url, applicationConfig$1.env.mcApiUrl);
|
|
54
|
+
response.writeHead(301, {
|
|
55
|
+
Location: redirectTo.toString()
|
|
56
|
+
}).end();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (isLocalMcApi && ((_context4 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context5 = Function.call).call(_context5, _startsWithInstanceProperty__default["default"](_context4), _context4))?.('/logout')) {
|
|
60
|
+
response.end('Please clear your session storage.');
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
57
63
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
// Preserve the pre-swap contract: any other `/login*` or `/logout*`
|
|
65
|
+
// request (bare `/login`, non-localhost auth callbacks, etc.) must NOT
|
|
66
|
+
// fall back to the SPA — that would mask OAuth callback
|
|
67
|
+
// misconfigurations by rendering the app on a URL the backend owns.
|
|
68
|
+
if (((_context6 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context7 = Function.call).call(_context7, _startsWithInstanceProperty__default["default"](_context6), _context6))?.('/login') || ((_context8 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context9 = Function.call).call(_context9, _startsWithInstanceProperty__default["default"](_context8), _context8))?.('/logout')) {
|
|
69
|
+
response.writeHead(404).end();
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
// Absorb `/favicon*` variants (e.g. `/favicon.ico`, `/favicon-32x32.png`)
|
|
@@ -30,6 +30,7 @@ async function run() {
|
|
|
30
30
|
const port = options.port ?? DEFAULT_PORT;
|
|
31
31
|
const publicPath = options.publicPath ?? paths.paths.appBuild;
|
|
32
32
|
const applicationConfig$1 = options.applicationConfig ?? (await applicationConfig.processConfig());
|
|
33
|
+
const handleAuthRoutes = options.handleAuthRoutes ?? true;
|
|
33
34
|
const isLocalMcApi = _startsWithInstanceProperty__default["default"](_context = applicationConfig$1.env.mcApiUrl).call(_context, 'http://localhost');
|
|
34
35
|
|
|
35
36
|
// `single: true` gives us the SPA fallback — any unmatched path is served as
|
|
@@ -40,28 +41,34 @@ async function run() {
|
|
|
40
41
|
etag: true
|
|
41
42
|
});
|
|
42
43
|
const server = http__default["default"].createServer((request, response) => {
|
|
43
|
-
var
|
|
44
|
-
//
|
|
45
|
-
// `
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
var _context0, _context1;
|
|
45
|
+
// Apps that own the `/login*` / `/logout*` routes themselves (e.g.
|
|
46
|
+
// `application-authentication`) opt out via `handleAuthRoutes: false` so
|
|
47
|
+
// those paths flow through to the SPA fallback like any other route.
|
|
48
|
+
if (handleAuthRoutes) {
|
|
49
|
+
var _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9;
|
|
50
|
+
// Localhost-only: inline replacement for the login/logout UI that
|
|
51
|
+
// `mc-dev-authentication` used to ship as static HTML (#3734).
|
|
52
|
+
if (isLocalMcApi && ((_context2 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _startsWithInstanceProperty__default["default"](_context2), _context2))?.('/login/authorize')) {
|
|
53
|
+
const redirectTo = new _URL__default["default"](request.url, applicationConfig$1.env.mcApiUrl);
|
|
54
|
+
response.writeHead(301, {
|
|
55
|
+
Location: redirectTo.toString()
|
|
56
|
+
}).end();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (isLocalMcApi && ((_context4 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context5 = Function.call).call(_context5, _startsWithInstanceProperty__default["default"](_context4), _context4))?.('/logout')) {
|
|
60
|
+
response.end('Please clear your session storage.');
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
57
63
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
// Preserve the pre-swap contract: any other `/login*` or `/logout*`
|
|
65
|
+
// request (bare `/login`, non-localhost auth callbacks, etc.) must NOT
|
|
66
|
+
// fall back to the SPA — that would mask OAuth callback
|
|
67
|
+
// misconfigurations by rendering the app on a URL the backend owns.
|
|
68
|
+
if (((_context6 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context7 = Function.call).call(_context7, _startsWithInstanceProperty__default["default"](_context6), _context6))?.('/login') || ((_context8 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context9 = Function.call).call(_context9, _startsWithInstanceProperty__default["default"](_context8), _context8))?.('/logout')) {
|
|
69
|
+
response.writeHead(404).end();
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
// Absorb `/favicon*` variants (e.g. `/favicon.ico`, `/favicon-32x32.png`)
|
|
@@ -9,7 +9,7 @@ var openBrowser = require('react-dev-utils/openBrowser');
|
|
|
9
9
|
var WebpackDevServerUtils = require('react-dev-utils/WebpackDevServerUtils');
|
|
10
10
|
var webpack = require('webpack');
|
|
11
11
|
var WebpackDevServer = require('webpack-dev-server');
|
|
12
|
-
var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-
|
|
12
|
+
var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-65abeb3f.cjs.dev.js');
|
|
13
13
|
var paths = require('./paths-b76fc753.cjs.dev.js');
|
|
14
14
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
15
15
|
var mcDevAuthentication = require('@commercetools-frontend/mc-dev-authentication');
|
|
@@ -36,9 +36,9 @@ require('webpackbar');
|
|
|
36
36
|
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
37
37
|
require('@babel/runtime-corejs3/helpers/createClass');
|
|
38
38
|
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
39
|
-
require('./create-postcss-config-
|
|
39
|
+
require('./create-postcss-config-1b021fb2.cjs.dev.js');
|
|
40
40
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
41
|
-
require('./package-
|
|
41
|
+
require('./package-c8f39856.cjs.dev.js');
|
|
42
42
|
require('./optimizations-56be74d6.cjs.dev.js');
|
|
43
43
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
44
44
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
@@ -9,7 +9,7 @@ var openBrowser = require('react-dev-utils/openBrowser');
|
|
|
9
9
|
var WebpackDevServerUtils = require('react-dev-utils/WebpackDevServerUtils');
|
|
10
10
|
var webpack = require('webpack');
|
|
11
11
|
var WebpackDevServer = require('webpack-dev-server');
|
|
12
|
-
var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-
|
|
12
|
+
var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-1db101e2.cjs.prod.js');
|
|
13
13
|
var paths = require('./paths-7768b440.cjs.prod.js');
|
|
14
14
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
15
15
|
var mcDevAuthentication = require('@commercetools-frontend/mc-dev-authentication');
|
|
@@ -36,9 +36,9 @@ require('webpackbar');
|
|
|
36
36
|
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
37
37
|
require('@babel/runtime-corejs3/helpers/createClass');
|
|
38
38
|
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
39
|
-
require('./create-postcss-config-
|
|
39
|
+
require('./create-postcss-config-434fe673.cjs.prod.js');
|
|
40
40
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
41
|
-
require('./package-
|
|
41
|
+
require('./package-dfc9c56b.cjs.prod.js');
|
|
42
42
|
require('./optimizations-da5a0cfa.cjs.prod.js');
|
|
43
43
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
44
44
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
@@ -7,7 +7,7 @@ import openBrowser from 'react-dev-utils/openBrowser';
|
|
|
7
7
|
import { choosePort, prepareUrls, createCompiler } from 'react-dev-utils/WebpackDevServerUtils';
|
|
8
8
|
import webpack from 'webpack';
|
|
9
9
|
import WebpackDevServer from 'webpack-dev-server';
|
|
10
|
-
import { c as createWebpackConfigForDevelopment } from './create-webpack-config-for-development-
|
|
10
|
+
import { c as createWebpackConfigForDevelopment } from './create-webpack-config-for-development-fd981a20.esm.js';
|
|
11
11
|
import { p as paths } from './paths-39f22b8b.esm.js';
|
|
12
12
|
import { processConfig } from '@commercetools-frontend/application-config';
|
|
13
13
|
import { createMcDevAuthenticationMiddleware } from '@commercetools-frontend/mc-dev-authentication';
|
|
@@ -34,9 +34,9 @@ import 'webpackbar';
|
|
|
34
34
|
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
35
35
|
import '@babel/runtime-corejs3/helpers/createClass';
|
|
36
36
|
import '@babel/runtime-corejs3/core-js-stable/object/assign';
|
|
37
|
-
import './create-postcss-config-
|
|
37
|
+
import './create-postcss-config-505c5a4e.esm.js';
|
|
38
38
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
39
|
-
import './package-
|
|
39
|
+
import './package-02f0532d.esm.js';
|
|
40
40
|
import './optimizations-54382f7b.esm.js';
|
|
41
41
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
42
42
|
import '@babel/runtime-corejs3/core-js-stable/object/entries';
|