@commercetools-frontend/mc-scripts 21.4.0 → 21.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.
|
@@ -22,7 +22,9 @@ const {
|
|
|
22
22
|
generateTemplate
|
|
23
23
|
} = require('@commercetools-frontend/mc-html-template');
|
|
24
24
|
|
|
25
|
-
const
|
|
25
|
+
const {
|
|
26
|
+
createMcDevAuthenticationMiddleware
|
|
27
|
+
} = require('@commercetools-frontend/mc-dev-authentication');
|
|
26
28
|
|
|
27
29
|
const {
|
|
28
30
|
packageLocation: applicationStaticAssetsPath
|
|
@@ -57,7 +59,7 @@ const pluginCustomApplication = applicationConfig => {
|
|
|
57
59
|
next();
|
|
58
60
|
}); // Handle auth routes for internal local development.
|
|
59
61
|
|
|
60
|
-
server.middlewares.use(
|
|
62
|
+
server.middlewares.use(createMcDevAuthenticationMiddleware(applicationConfig));
|
|
61
63
|
};
|
|
62
64
|
},
|
|
63
65
|
|
|
@@ -8,7 +8,9 @@ const {
|
|
|
8
8
|
processHeaders
|
|
9
9
|
} = require('@commercetools-frontend/mc-html-template');
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const {
|
|
12
|
+
createMcDevAuthenticationMiddleware
|
|
13
|
+
} = require('@commercetools-frontend/mc-dev-authentication');
|
|
12
14
|
|
|
13
15
|
const applicationConfig = processConfig();
|
|
14
16
|
const compiledHeaders = processHeaders(applicationConfig);
|
|
@@ -62,7 +64,7 @@ module.exports = ({
|
|
|
62
64
|
throw new Error('webpack-dev-server is not defined');
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
middlewares.push(
|
|
67
|
+
middlewares.push(createMcDevAuthenticationMiddleware(applicationConfig));
|
|
66
68
|
return middlewares;
|
|
67
69
|
}
|
|
68
70
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/mc-scripts",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.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": {
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"@babel/core": "^7.17.9",
|
|
30
30
|
"@babel/runtime": "^7.17.9",
|
|
31
31
|
"@babel/runtime-corejs3": "^7.17.9",
|
|
32
|
-
"@commercetools-frontend/application-config": "21.
|
|
32
|
+
"@commercetools-frontend/application-config": "21.5.0",
|
|
33
33
|
"@commercetools-frontend/assets": "21.0.0",
|
|
34
34
|
"@commercetools-frontend/babel-preset-mc-app": "21.3.4",
|
|
35
35
|
"@commercetools-frontend/constants": "21.3.4",
|
|
36
|
-
"@commercetools-frontend/mc-dev-authentication": "21.
|
|
37
|
-
"@commercetools-frontend/mc-html-template": "21.
|
|
36
|
+
"@commercetools-frontend/mc-dev-authentication": "21.5.0",
|
|
37
|
+
"@commercetools-frontend/mc-html-template": "21.5.0",
|
|
38
38
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
|
|
39
39
|
"@rollup/plugin-graphql": "1.1.0",
|
|
40
40
|
"@svgr/webpack": "6.2.1",
|