@elliemae/pui-cli 5.16.1 → 5.17.2

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.
@@ -19,7 +19,8 @@ async function lintJS(fix = false) {
19
19
  async function handler(argv) {
20
20
  if (argv.js) {
21
21
  // run typescript compilation
22
- if (isTypeScriptEnabled()) await exec('tsc');
22
+ if (isTypeScriptEnabled())
23
+ await exec('tsc --noEmit --emitDeclarationOnly false');
23
24
  try {
24
25
  await exec('rimraf ./reports/eslint.json');
25
26
  await lintJS(argv.fix);
package/lib/server/csp.js CHANGED
@@ -12,6 +12,8 @@ const sources = [
12
12
  '*.ellielabs.com',
13
13
  'http://pdx-col.eum-appdynamics.com',
14
14
  'https://pdx-col.eum-appdynamics.com/',
15
+ 'https://www.google-analytics.com',
16
+ 'https://www.googletagmanager.com',
15
17
  ];
16
18
 
17
19
  const sendFileWithCSPNonce = ({
@@ -1,3 +1,4 @@
1
+ /* eslint-disable max-lines */
1
2
  const webpack = require('webpack');
2
3
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
3
4
  const PostcssPresetEnv = require('postcss-preset-env');
@@ -120,10 +121,19 @@ module.exports = (options) => ({
120
121
  module: {
121
122
  rules: [
122
123
  {
123
- test: /\.(jpe?g|png|gif|ico|svg)$/,
124
- loader: 'image-webpack-loader',
124
+ test: /\.(jpe?g|png|gif|svg)$/,
125
+ use: [
126
+ 'file-loader',
127
+ {
128
+ loader: 'image-webpack-loader',
129
+ options: {
130
+ gifsicle: {
131
+ enabled: false,
132
+ },
133
+ },
134
+ },
135
+ ],
125
136
  enforce: 'pre',
126
- // eslint-disable-next-line max-lines
127
137
  },
128
138
  {
129
139
  test: /\.(js|ts|jsx|tsx)$/,
@@ -1,3 +1,4 @@
1
+ /* eslint-disable max-lines */
1
2
  const path = require('path');
2
3
  const webpack = require('webpack');
3
4
  const {
@@ -87,8 +88,18 @@ module.exports = (options) => ({
87
88
  module: {
88
89
  rules: [
89
90
  {
90
- test: /\.(jpe?g|png|gif|ico|svg)$/,
91
- loader: 'image-webpack-loader',
91
+ test: /\.(jpe?g|png|gif|svg)$/,
92
+ use: [
93
+ 'file-loader',
94
+ {
95
+ loader: 'image-webpack-loader',
96
+ options: {
97
+ gifsicle: {
98
+ enabled: false,
99
+ },
100
+ },
101
+ },
102
+ ],
92
103
  enforce: 'pre',
93
104
  },
94
105
  {
@@ -118,7 +129,6 @@ module.exports = (options) => ({
118
129
  loader: 'babel-loader',
119
130
  options: {
120
131
  cacheDirectory: true,
121
- // eslint-disable-next-line max-lines
122
132
  compact: !devMode,
123
133
  ...(options.babelQuery || {}),
124
134
  },
@@ -127,7 +137,21 @@ module.exports = (options) => ({
127
137
  {
128
138
  test: /\.exec\.js$/,
129
139
  exclude: /node_modules/,
130
- use: ['script-loader'],
140
+ use: [
141
+ {
142
+ loader: 'imports-loader',
143
+ options: {
144
+ wrapper: {
145
+ thisArg: 'window',
146
+ args: {
147
+ module: false,
148
+ exports: false,
149
+ define: false,
150
+ },
151
+ },
152
+ },
153
+ },
154
+ ],
131
155
  },
132
156
  {
133
157
  test: /\.css$/,
@@ -1,3 +1,4 @@
1
+ /* eslint-disable max-lines */
1
2
  const webpack = require('webpack');
2
3
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
3
4
  const CopyWebpackPlugin = require('copy-webpack-plugin');
@@ -59,8 +60,18 @@ const compressionPlugin = new CompressionPlugin({
59
60
 
60
61
  const getModulePreRules = () => [
61
62
  {
62
- test: /\.(jpe?g|png|gif|ico|svg)$/,
63
- loader: 'image-webpack-loader',
63
+ test: /\.(jpe?g|png|gif|svg)$/,
64
+ use: [
65
+ 'file-loader',
66
+ {
67
+ loader: 'image-webpack-loader',
68
+ options: {
69
+ gifsicle: {
70
+ enabled: false,
71
+ },
72
+ },
73
+ },
74
+ ],
64
75
  enforce: 'pre',
65
76
  },
66
77
  {
@@ -119,7 +130,6 @@ const getModuleRules = () => [
119
130
  {
120
131
  test: /\.(jpe?g|png|gif)$/i,
121
132
  exclude: excludeNodeModulesExcept(['@elliemae/*']),
122
- // eslint-disable-next-line max-lines
123
133
  type: 'asset',
124
134
  },
125
135
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "5.16.1",
3
+ "version": "5.17.2",
4
4
  "private": false,
5
5
  "description": "EllieMae Platform UI CLI",
6
6
  "sideEffects": false,
@@ -66,7 +66,7 @@
66
66
  "@commitlint/cli": "~15.0.0",
67
67
  "@commitlint/config-conventional": "~15.0.0",
68
68
  "@elliemae/browserslist-config-elliemae": "~1.2.1",
69
- "@pmmmwh/react-refresh-webpack-plugin": "~0.5.1",
69
+ "@pmmmwh/react-refresh-webpack-plugin": "~0.5.2",
70
70
  "@semantic-release/changelog": "~6.0.1",
71
71
  "@semantic-release/exec": "~6.0.2",
72
72
  "@semantic-release/git": "~10.0.1",
@@ -89,11 +89,11 @@
89
89
  "@storybook/theming": "~6.3.12",
90
90
  "@stylelint/postcss-css-in-js": "~0.37.2",
91
91
  "@svgr/webpack": "~5.5.0",
92
- "@testing-library/jest-dom": "~5.15.0",
92
+ "@testing-library/jest-dom": "~5.15.1",
93
93
  "@testing-library/react": "~12.1.2",
94
94
  "@testing-library/react-hooks": "~7.0.2",
95
- "@types/jest": "~27.0.2",
96
- "@types/node": "~16.11.7",
95
+ "@types/jest": "~27.0.3",
96
+ "@types/node": "~16.11.9",
97
97
  "@types/rimraf": "~3.0.2",
98
98
  "@types/testing-library__jest-dom": "~5.14.1",
99
99
  "@typescript-eslint/eslint-plugin": "~5.4.0",
@@ -131,7 +131,7 @@
131
131
  "dotenv": "~10.0.0",
132
132
  "dotenv-webpack": "~7.0.3",
133
133
  "duplicate-package-checker-webpack-plugin": "~3.0.0",
134
- "eslint": "~8.2.0",
134
+ "eslint": "~8.3.0",
135
135
  "eslint-config-airbnb": "~18.2.1",
136
136
  "eslint-config-airbnb-base": "~15.0.0",
137
137
  "eslint-config-airbnb-typescript": "~15.0.0",
@@ -143,21 +143,21 @@
143
143
  "eslint-plugin-compat": "~3.13.0",
144
144
  "eslint-plugin-eslint-comments": "~3.2.0",
145
145
  "eslint-plugin-import": "~2.25.3",
146
- "eslint-plugin-jest": "~25.2.4",
146
+ "eslint-plugin-jest": "~25.3.0",
147
147
  "eslint-plugin-jsdoc": "~37.0.3",
148
148
  "eslint-plugin-jsx-a11y": "~6.5.1",
149
149
  "eslint-plugin-mdx": "~1.16.0",
150
150
  "eslint-plugin-prettier": "~4.0.0",
151
- "eslint-plugin-react": "~7.27.0",
151
+ "eslint-plugin-react": "~7.27.1",
152
152
  "eslint-plugin-react-hooks": "~4.3.0",
153
153
  "eslint-plugin-redux-saga": "~1.2.1",
154
154
  "eslint-plugin-testing-library": "~5.0.0",
155
155
  "eslint-plugin-wdio": "~7.4.2",
156
156
  "execa": "~5.1.1",
157
157
  "express": "~4.17.1",
158
- "express-pino-logger": "~6.0.0",
158
+ "express-pino-logger": "~7.0.0",
159
159
  "file-loader": "~6.2.0",
160
- "fork-ts-checker-webpack-plugin": "~6.4.0",
160
+ "fork-ts-checker-webpack-plugin": "~6.4.2",
161
161
  "helmet-csp": "~3.4.0",
162
162
  "html-loader": "~3.0.1",
163
163
  "html-webpack-plugin": "~5.5.0",
@@ -165,19 +165,15 @@
165
165
  "husky": "~7.0.4",
166
166
  "husky-init": "~7.0.0",
167
167
  "image-webpack-loader": "~8.0.1",
168
- "imagemin-gifsicle": "~7.0.0",
169
- "imagemin-jpegtran": "~7.0.0",
170
- "imagemin-optipng": "~8.0.0",
171
- "imagemin-svgo": "~10.0.0",
172
168
  "imports-loader": "~3.1.1",
173
169
  "ip": "~1.1.5",
174
170
  "jest-axe": "~5.0.1",
175
171
  "jest-cli": "~27.3.1",
176
172
  "jest-sonar-reporter": "~2.0.0",
177
- "jest-styled-components": "~7.0.6",
173
+ "jest-styled-components": "~7.0.8",
178
174
  "jscodeshift": "~0.13.0",
179
175
  "jsdoc": "~3.6.7",
180
- "lint-staged": "~12.0.2",
176
+ "lint-staged": "~12.1.2",
181
177
  "mini-css-extract-plugin": "~2.4.5",
182
178
  "minimist": "~1.2.5",
183
179
  "moment": "~2.29.1",
@@ -187,7 +183,7 @@
187
183
  "nodemon": "~2.0.15",
188
184
  "npm-check-updates": "12.0.2",
189
185
  "null-loader": "~4.0.1",
190
- "pino": "~7.2.0",
186
+ "pino": "~7.4.0",
191
187
  "pino-pretty": "~7.2.0",
192
188
  "pinst": "~2.1.6",
193
189
  "plop": "~2.7.6",
@@ -197,7 +193,7 @@
197
193
  "postcss-markdown": "~1.1.0",
198
194
  "postcss-syntax": "~0.36.2",
199
195
  "postcss-loader": "~6.2.0",
200
- "postcss-preset-env": "~7.0.0",
196
+ "postcss-preset-env": "~7.0.1",
201
197
  "prettier": "~2.4.1",
202
198
  "pug": "~3.0.2",
203
199
  "pug-loader": "~2.4.0",
@@ -225,15 +221,15 @@
225
221
  "terser-webpack-plugin": "~5.2.5",
226
222
  "ts-node": "~10.4.0",
227
223
  "tsc-alias": "~1.4.1",
228
- "tsc-files": "~1.1.2",
229
- "tsconfig-paths": "~3.11.0",
224
+ "tsc-files": "~1.1.3",
225
+ "tsconfig-paths": "~3.12.0",
230
226
  "tsconfig-paths-webpack-plugin": "~3.5.2",
231
- "type-fest": "~2.5.4",
227
+ "type-fest": "~2.6.0",
232
228
  "typescript": "~4.5.2",
233
229
  "update-notifier": "~5.1.0",
234
230
  "url-loader": "~4.1.1",
235
231
  "uuid": "~8.3.2",
236
- "webpack": "~5.64.1",
232
+ "webpack": "~5.64.2",
237
233
  "webpack-bundle-analyzer": "~4.5.0",
238
234
  "webpack-cli": "~4.9.1",
239
235
  "webpack-dev-middleware": "~5.2.2",