@elliemae/pui-cli 7.24.0 → 7.25.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.
@@ -34,6 +34,7 @@ __export(csp_exports, {
34
34
  module.exports = __toCommonJS(csp_exports);
35
35
  var import_node_fs = __toESM(require("node:fs"), 1);
36
36
  var import_node_path = __toESM(require("node:path"), 1);
37
+ var import_express = __toESM(require("express"), 1);
37
38
  var import_helmet_csp = __toESM(require("helmet-csp"), 1);
38
39
  var import_crypto = __toESM(require("crypto"), 1);
39
40
  const CSP_REPORT_URI = "/diagnostics/v1/csp";
@@ -96,6 +97,7 @@ const csp = (app) => {
96
97
  reportOnly: true
97
98
  })
98
99
  );
100
+ app.use(CSP_REPORT_URI, import_express.default.json({ type: "application/csp-report" }));
99
101
  app.use(CSP_REPORT_URI, (req, res) => {
100
102
  console.log("CSP Violation: ", req.body);
101
103
  res.status(204).end();
@@ -57,7 +57,6 @@ const setupDefaultMiddlewares = (app) => {
57
57
  app.use(import_express.default.urlencoded({ extended: false }));
58
58
  app.use(import_express.default.text({ type: "text/plain" }));
59
59
  app.use(import_express.default.json({ type: "application/json" }));
60
- app.use(import_express.default.json({ type: "application/csp-report" }));
61
60
  };
62
61
  const setupAdditionalMiddlewars = (app, options = {}) => {
63
62
  const { buildPath = paths.buildPath, basePath = paths.basePath } = options;
@@ -105,6 +105,7 @@ const devConfig = {
105
105
  template: !(0, import_helpers.isAppLoaderEnabled)() ? "app/index.html" : "app/index-app-loader.html",
106
106
  emui: {
107
107
  appVersion,
108
+ basePath,
108
109
  globalScriptPath,
109
110
  userMonScriptPath,
110
111
  appLoaderScriptPath,
@@ -1,5 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
+ import express from "express";
3
4
  import cspPolicy from "helmet-csp";
4
5
  import crypto from "crypto";
5
6
  const CSP_REPORT_URI = "/diagnostics/v1/csp";
@@ -62,6 +63,7 @@ const csp = (app) => {
62
63
  reportOnly: true
63
64
  })
64
65
  );
66
+ app.use(CSP_REPORT_URI, express.json({ type: "application/csp-report" }));
65
67
  app.use(CSP_REPORT_URI, (req, res) => {
66
68
  console.log("CSP Violation: ", req.body);
67
69
  res.status(204).end();
@@ -23,7 +23,6 @@ const setupDefaultMiddlewares = (app) => {
23
23
  app.use(express.urlencoded({ extended: false }));
24
24
  app.use(express.text({ type: "text/plain" }));
25
25
  app.use(express.json({ type: "application/json" }));
26
- app.use(express.json({ type: "application/csp-report" }));
27
26
  };
28
27
  const setupAdditionalMiddlewars = (app, options = {}) => {
29
28
  const { buildPath = paths.buildPath, basePath = paths.basePath } = options;
@@ -75,6 +75,7 @@ const devConfig = {
75
75
  template: !isAppLoaderEnabled() ? "app/index.html" : "app/index-app-loader.html",
76
76
  emui: {
77
77
  appVersion,
78
+ basePath,
78
79
  globalScriptPath,
79
80
  userMonScriptPath,
80
81
  appLoaderScriptPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "7.24.0",
3
+ "version": "7.25.0",
4
4
  "description": "ICE MT UI Platform CLI",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -79,13 +79,13 @@
79
79
  "@babel/preset-react": "~7.18.6",
80
80
  "@babel/preset-typescript": "~7.18.6",
81
81
  "@babel/runtime": "~7.20.7",
82
- "@commitlint/cli": "~17.4.1",
83
- "@commitlint/config-conventional": "~17.4.0",
82
+ "@commitlint/cli": "~17.4.2",
83
+ "@commitlint/config-conventional": "~17.4.2",
84
84
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.6.0",
85
85
  "@faker-js/faker": "7.6.0",
86
- "@nrwl/cli": "15.4.5",
87
- "@nrwl/tao": "15.4.5",
88
- "@nrwl/workspace": "15.4.5",
86
+ "@nrwl/cli": "15.5.1",
87
+ "@nrwl/tao": "15.5.1",
88
+ "@nrwl/workspace": "15.5.1",
89
89
  "@pmmmwh/react-refresh-webpack-plugin": "~0.5.10",
90
90
  "@semantic-release/changelog": "~6.0.2",
91
91
  "@semantic-release/exec": "~6.0.3",
@@ -96,7 +96,7 @@
96
96
  "@storybook/addon-interactions": "~6.5.15",
97
97
  "@storybook/addon-links": "~6.5.15",
98
98
  "@storybook/addon-storysource": "~6.5.15",
99
- "@storybook/builder-vite": "~0.2.7",
99
+ "@storybook/builder-vite": "~0.3.0",
100
100
  "@storybook/builder-webpack5": "~6.5.15",
101
101
  "@storybook/manager-webpack5": "~6.5.15",
102
102
  "@storybook/react": "~6.5.15",
@@ -104,7 +104,7 @@
104
104
  "@stylelint/postcss-css-in-js": "~0.38.0",
105
105
  "@svgr/webpack": "~6.5.1",
106
106
  "@swc/cli": "~0.1.59",
107
- "@swc/core": "~1.3.25",
107
+ "@swc/core": "~1.3.27",
108
108
  "@swc/jest": "~0.2.24",
109
109
  "@testing-library/jest-dom": "~5.16.5",
110
110
  "@testing-library/react": "~13.4.0",
@@ -117,10 +117,10 @@
117
117
  "@types/supertest": "~2.0.12",
118
118
  "@types/uuid": "~9.0.0",
119
119
  "@types/testing-library__jest-dom": "~5.14.5",
120
- "@typescript-eslint/eslint-plugin": "~5.48.1",
121
- "@typescript-eslint/parser": "~5.48.1",
120
+ "@typescript-eslint/eslint-plugin": "~5.48.2",
121
+ "@typescript-eslint/parser": "~5.48.2",
122
122
  "@vitejs/plugin-react": "~3.0.1",
123
- "@vitest/coverage-c8": "~0.27.0",
123
+ "@vitest/coverage-c8": "~0.27.2",
124
124
  "autoprefixer": "~10.4.13",
125
125
  "axe-core": "~4.6.2",
126
126
  "babel-plugin-date-fns": "~2.0.0",
@@ -151,27 +151,27 @@
151
151
  "dotenv-webpack": "~8.0.1",
152
152
  "duplicate-package-checker-webpack-plugin": "~3.0.0",
153
153
  "enhanced-resolve": "5.12.0",
154
- "esbuild": "~0.16.16",
155
- "esbuild-loader": "~2.20.0",
154
+ "esbuild": "~0.17.2",
155
+ "esbuild-loader": "~2.21.0",
156
156
  "esbuild-plugin-svgr": "~1.0.1",
157
- "eslint": "~8.31.0",
157
+ "eslint": "~8.32.0",
158
158
  "eslint-config-airbnb": "~19.0.4",
159
159
  "eslint-config-airbnb-base": "~15.0.0",
160
160
  "eslint-config-airbnb-typescript": "~17.0.0",
161
161
  "eslint-config-prettier": "~8.6.0",
162
162
  "eslint-config-react-app": "~7.0.1",
163
- "eslint-import-resolver-babel-module": "~5.3.1",
164
- "eslint-import-resolver-typescript": "~3.5.2",
163
+ "eslint-import-resolver-babel-module": "~5.3.2",
164
+ "eslint-import-resolver-typescript": "~3.5.3",
165
165
  "eslint-import-resolver-webpack": "~0.13.2",
166
166
  "eslint-plugin-compat": "~4.0.2",
167
167
  "eslint-plugin-eslint-comments": "~3.2.0",
168
- "eslint-plugin-import": "~2.26.0",
168
+ "eslint-plugin-import": "~2.27.5",
169
169
  "eslint-plugin-jest": "~27.2.1",
170
170
  "eslint-plugin-jsdoc": "~39.6.4",
171
- "eslint-plugin-jsx-a11y": "~6.7.0",
171
+ "eslint-plugin-jsx-a11y": "~6.7.1",
172
172
  "eslint-plugin-mdx": "~2.0.5",
173
173
  "eslint-plugin-prettier": "~4.2.1",
174
- "eslint-plugin-react": "~7.31.11",
174
+ "eslint-plugin-react": "~7.32.1",
175
175
  "eslint-plugin-react-hooks": "~4.6.0",
176
176
  "eslint-plugin-redux-saga": "~1.3.2",
177
177
  "eslint-plugin-storybook": "~0.6.10",
@@ -186,7 +186,7 @@
186
186
  "fast-glob": "~3.2.12",
187
187
  "find-up": "~6.3.0",
188
188
  "find-up-cli": "~5.0.0",
189
- "happy-dom": "~8.1.3",
189
+ "happy-dom": "~8.1.4",
190
190
  "helmet-csp": "~3.4.0",
191
191
  "html-loader": "~4.2.0",
192
192
  "html-webpack-plugin": "~5.5.0",
@@ -203,7 +203,7 @@
203
203
  "jest-watch-typeahead": "~2.2.1",
204
204
  "jscodeshift": "~0.14.0",
205
205
  "jsdoc": "~4.0.0",
206
- "lerna": "~6.4.0",
206
+ "lerna": "~6.4.1",
207
207
  "lint-staged": "~13.1.0",
208
208
  "mini-css-extract-plugin": "~2.7.2",
209
209
  "minimist": "~1.2.7",
@@ -225,7 +225,7 @@
225
225
  "postcss-markdown": "~1.2.0",
226
226
  "postcss-preset-env": "~7.8.3",
227
227
  "postcss-syntax": "~0.36.2",
228
- "prettier": "~2.8.2",
228
+ "prettier": "~2.8.3",
229
229
  "pug": "~3.0.2",
230
230
  "pug-loader": "~2.4.0",
231
231
  "raf": "~3.4.1",
@@ -234,7 +234,7 @@
234
234
  "react-test-renderer": "~18.2.0",
235
235
  "resize-observer-polyfill": "~1.5.1",
236
236
  "resolve-typescript-plugin": "~2.0.0",
237
- "rimraf": "~3.0.2",
237
+ "rimraf": "~4.1.0",
238
238
  "semantic-release": "~19.0.5",
239
239
  "slackify-markdown": "~4.3.1",
240
240
  "speed-measure-webpack-plugin": "~1.5.0",
@@ -255,7 +255,7 @@
255
255
  "url-loader": "~4.1.1",
256
256
  "uuid": "~9.0.0",
257
257
  "vite": "~4.0.4",
258
- "vitest": "~0.27.0",
258
+ "vitest": "~0.27.2",
259
259
  "vite-tsconfig-paths": "~4.0.3",
260
260
  "webpack": "~5.75.0",
261
261
  "webpack-bundle-analyzer": "~4.7.0",