@commercetools-frontend/mc-scripts 20.10.3 → 20.10.4

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.
@@ -64,7 +64,7 @@ module.exports = ({
64
64
  onBeforeSetupMiddleware({
65
65
  app
66
66
  }) {
67
- var _applicationConfig$en;
67
+ var _applicationConfig$en, _applicationConfig$en2;
68
68
 
69
69
  app.set('views', devAuthentication.views);
70
70
  app.set('view engine', devAuthentication.config.viewEngine); // This lets us open files from the runtime error overlay.
@@ -79,12 +79,13 @@ module.exports = ({
79
79
  data: null,
80
80
  error: fakeApolloError
81
81
  }));
82
- }); // Handle login page for OIDC workflow when developing against a local MC API.
82
+ });
83
83
 
84
- if ((_applicationConfig$en = applicationConfig.env.__DEVELOPMENT__.oidc) !== null && _applicationConfig$en !== void 0 && _applicationConfig$en.authorizeUrl) {
85
- var _applicationConfig$en2;
84
+ if ((_applicationConfig$en = applicationConfig.env.__DEVELOPMENT__) !== null && _applicationConfig$en !== void 0 && (_applicationConfig$en2 = _applicationConfig$en.oidc) !== null && _applicationConfig$en2 !== void 0 && _applicationConfig$en2.authorizeUrl) {
85
+ var _applicationConfig$en3, _applicationConfig$en4;
86
86
 
87
- if ((_applicationConfig$en2 = applicationConfig.env.__DEVELOPMENT__.oidc) !== null && _applicationConfig$en2 !== void 0 && _applicationConfig$en2.authorizeUrl.startsWith('http://localhost')) {
87
+ // Handle login page for OIDC workflow when developing against a local MC API.
88
+ if ((_applicationConfig$en3 = applicationConfig.env.__DEVELOPMENT__) !== null && _applicationConfig$en3 !== void 0 && (_applicationConfig$en4 = _applicationConfig$en3.oidc) !== null && _applicationConfig$en4 !== void 0 && _applicationConfig$en4.authorizeUrl.startsWith('http://localhost')) {
88
89
  app.use('/login/authorize', devAuthentication.middlewares.createLoginMiddleware(applicationConfig.env));
89
90
  }
90
91
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/mc-scripts",
3
- "version": "20.10.3",
3
+ "version": "20.10.4",
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": {
@@ -32,45 +32,45 @@
32
32
  "dependencies": {
33
33
  "@babel/runtime": "7.15.4",
34
34
  "@babel/runtime-corejs3": "7.15.4",
35
- "@commercetools-frontend/application-config": "20.10.3",
35
+ "@commercetools-frontend/application-config": "20.10.4",
36
36
  "@commercetools-frontend/assets": "20.10.1",
37
- "@commercetools-frontend/babel-preset-mc-app": "20.10.3",
37
+ "@commercetools-frontend/babel-preset-mc-app": "20.10.4",
38
38
  "@commercetools-frontend/mc-dev-authentication": "20.10.3",
39
- "@commercetools-frontend/mc-html-template": "20.10.3",
39
+ "@commercetools-frontend/mc-html-template": "20.10.4",
40
40
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.1",
41
41
  "@svgr/webpack": "5.5.0",
42
42
  "autoprefixer": "10.3.7",
43
- "babel-loader": "8.2.2",
44
- "browserslist": "4.17.3",
45
- "core-js": "3.18.2",
43
+ "babel-loader": "8.2.3",
44
+ "browserslist": "4.17.5",
45
+ "core-js": "3.19.0",
46
46
  "css-loader": "5.2.7",
47
47
  "css-minimizer-webpack-plugin": "3.1.1",
48
48
  "dotenv": "10.0.0",
49
49
  "dotenv-expand": "5.1.0",
50
50
  "fs-extra": "10.0.0",
51
51
  "graphql-tag": "^2.11.0",
52
- "html-webpack-plugin": "5.3.2",
52
+ "html-webpack-plugin": "5.5.0",
53
53
  "json-loader": "0.5.7",
54
54
  "mini-css-extract-plugin": "1.6.2",
55
55
  "moment-locales-webpack-plugin": "1.2.0",
56
56
  "mri": "1.2.0",
57
- "postcss": "8.3.9",
57
+ "postcss": "8.3.11",
58
58
  "postcss-color-mod-function": "3.0.3",
59
59
  "postcss-custom-media": "8.0.0",
60
60
  "postcss-custom-properties": "11.0.0",
61
61
  "postcss-import": "14.0.2",
62
- "postcss-loader": "6.1.1",
63
- "postcss-reporter": "7.0.3",
62
+ "postcss-loader": "6.2.0",
63
+ "postcss-reporter": "7.0.4",
64
64
  "react-dev-utils": "11.0.4",
65
65
  "react-refresh": "0.10.0",
66
66
  "serve-handler": "6.1.3",
67
67
  "shelljs": "0.8.4",
68
- "style-loader": "3.3.0",
68
+ "style-loader": "3.3.1",
69
69
  "svg-url-loader": "7.1.1",
70
70
  "terser-webpack-plugin": "5.2.4",
71
71
  "thread-loader": "3.0.4",
72
- "webpack": "5.58.1",
73
- "webpack-bundle-analyzer": "4.4.2",
72
+ "webpack": "5.60.0",
73
+ "webpack-bundle-analyzer": "4.5.0",
74
74
  "webpack-dev-server": "4.3.1",
75
75
  "webpackbar": "5.0.0-3"
76
76
  },