@elliemae/pui-cli 7.12.2 → 7.14.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.
@@ -20,6 +20,12 @@ exports.tsBaseRules = {
20
20
  ignoreStatic: true,
21
21
  },
22
22
  ],
23
+ '@typescript-eslint/no-floating-promises': [
24
+ 'error',
25
+ {
26
+ ignoreIIFE: true,
27
+ },
28
+ ],
23
29
  };
24
30
 
25
31
  exports.tsBaseConfig = {
@@ -20,15 +20,28 @@ var pui_diagnostics_exports = {};
20
20
  __export(pui_diagnostics_exports, {
21
21
  Console: () => Console,
22
22
  LogLevel: () => LogLevel,
23
+ LogLevels: () => LogLevels,
23
24
  http: () => http,
24
25
  logUnhandledErrors: () => logUnhandledErrors,
25
26
  logger: () => logger,
27
+ redactPii: () => redactPii,
26
28
  webvitals: () => webvitals
27
29
  });
28
30
  module.exports = __toCommonJS(pui_diagnostics_exports);
31
+ const LogLevels = {
32
+ DEBUG: 10,
33
+ INFO: 20,
34
+ AUDIT: 30,
35
+ WARN: 40,
36
+ ERROR: 50,
37
+ FATAL: 60
38
+ };
29
39
  const logger = () => ({
30
40
  setLogLevel() {
31
41
  },
42
+ getLogLevel() {
43
+ return LogLevels.INFO;
44
+ },
32
45
  setOptions() {
33
46
  },
34
47
  info() {
@@ -67,3 +80,5 @@ const webvitals = () => {
67
80
  };
68
81
  const logUnhandledErrors = () => {
69
82
  };
83
+ const redactPii = () => {
84
+ };
@@ -45,7 +45,7 @@ console.error = (...args) => {
45
45
  };
46
46
  if (expect)
47
47
  expect.extend(import_jest_axe.default.toHaveNoViolations);
48
- jest.setTimeout(6e4);
48
+ jest.setTimeout(Number.parseInt(process.env.TEST_TIMEOUT, 10) || 6e4);
49
49
  const addElementToBody = (element) => {
50
50
  const documentEle = (window || {}).document;
51
51
  if (!documentEle)
@@ -20,6 +20,12 @@ exports.tsBaseRules = {
20
20
  ignoreStatic: true,
21
21
  },
22
22
  ],
23
+ '@typescript-eslint/no-floating-promises': [
24
+ 'error',
25
+ {
26
+ ignoreIIFE: true,
27
+ },
28
+ ],
23
29
  };
24
30
 
25
31
  exports.tsBaseConfig = {
@@ -1,6 +1,17 @@
1
+ const LogLevels = {
2
+ DEBUG: 10,
3
+ INFO: 20,
4
+ AUDIT: 30,
5
+ WARN: 40,
6
+ ERROR: 50,
7
+ FATAL: 60
8
+ };
1
9
  const logger = () => ({
2
10
  setLogLevel() {
3
11
  },
12
+ getLogLevel() {
13
+ return LogLevels.INFO;
14
+ },
4
15
  setOptions() {
5
16
  },
6
17
  info() {
@@ -39,11 +50,15 @@ const webvitals = () => {
39
50
  };
40
51
  const logUnhandledErrors = () => {
41
52
  };
53
+ const redactPii = () => {
54
+ };
42
55
  export {
43
56
  Console,
44
57
  LogLevel,
58
+ LogLevels,
45
59
  http,
46
60
  logUnhandledErrors,
47
61
  logger,
62
+ redactPii,
48
63
  webvitals
49
64
  };
@@ -26,7 +26,7 @@ console.error = (...args) => {
26
26
  };
27
27
  if (expect)
28
28
  expect.extend(jestAxe.toHaveNoViolations);
29
- jest.setTimeout(6e4);
29
+ jest.setTimeout(Number.parseInt(process.env.TEST_TIMEOUT, 10) || 6e4);
30
30
  const addElementToBody = (element) => {
31
31
  const documentEle = (window || {}).document;
32
32
  if (!documentEle)
@@ -15,6 +15,9 @@ export const tsBaseRules: {
15
15
  '@typescript-eslint/unbound-method': (string | {
16
16
  ignoreStatic: boolean;
17
17
  })[];
18
+ '@typescript-eslint/no-floating-promises': (string | {
19
+ ignoreIIFE: boolean;
20
+ })[];
18
21
  };
19
22
  export namespace tsBaseConfig {
20
23
  const files: string[];
@@ -16,6 +16,9 @@ export const tsConfig: {
16
16
  '@typescript-eslint/unbound-method': (string | {
17
17
  ignoreStatic: boolean;
18
18
  })[];
19
+ '@typescript-eslint/no-floating-promises': (string | {
20
+ ignoreIIFE: boolean;
21
+ })[];
19
22
  'prettier/prettier': (string | typeof import("../../prettier.config.cjs"))[];
20
23
  'arrow-body-style': (string | number)[];
21
24
  'class-methods-use-this': number;
@@ -47,6 +47,9 @@ export const tsReactConfig: {
47
47
  '@typescript-eslint/unbound-method': (string | {
48
48
  ignoreStatic: boolean;
49
49
  })[];
50
+ '@typescript-eslint/no-floating-promises': (string | {
51
+ ignoreIIFE: boolean;
52
+ })[];
50
53
  'prettier/prettier': (string | typeof import("../../prettier.config.cjs"))[];
51
54
  'arrow-body-style': (string | number)[];
52
55
  'class-methods-use-this': number;
@@ -1,5 +1,14 @@
1
+ export namespace LogLevels {
2
+ const DEBUG: number;
3
+ const INFO: number;
4
+ const AUDIT: number;
5
+ const WARN: number;
6
+ const ERROR: number;
7
+ const FATAL: number;
8
+ }
1
9
  export function logger(): {
2
10
  setLogLevel(): void;
11
+ getLogLevel(): number;
3
12
  setOptions(): void;
4
13
  info(): void;
5
14
  warn(): void;
@@ -26,3 +35,4 @@ export function http(): {
26
35
  };
27
36
  export function webvitals(): void;
28
37
  export function logUnhandledErrors(): void;
38
+ export function redactPii(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "7.12.2",
3
+ "version": "7.14.0",
4
4
  "description": "ICE MT UI Platform CLI",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -62,11 +62,11 @@
62
62
  "sonar56x": true
63
63
  },
64
64
  "dependencies": {
65
- "@axe-core/react": "~4.4.5",
65
+ "@axe-core/react": "~4.5.0",
66
66
  "@babel/cli": "~7.19.3",
67
67
  "@babel/core": "~7.19.6",
68
68
  "@babel/eslint-parser": "~7.19.1",
69
- "@babel/node": "~7.19.1",
69
+ "@babel/node": "~7.20.0",
70
70
  "@babel/plugin-proposal-class-properties": "~7.18.6",
71
71
  "@babel/plugin-proposal-export-default-from": "~7.18.10",
72
72
  "@babel/plugin-syntax-dynamic-import": "~7.8.3",
@@ -78,14 +78,14 @@
78
78
  "@babel/preset-env": "~7.19.4",
79
79
  "@babel/preset-react": "~7.18.6",
80
80
  "@babel/preset-typescript": "~7.18.6",
81
- "@babel/runtime": "~7.19.4",
82
- "@commitlint/cli": "~17.1.2",
83
- "@commitlint/config-conventional": "~17.1.0",
81
+ "@babel/runtime": "~7.20.1",
82
+ "@commitlint/cli": "~17.2.0",
83
+ "@commitlint/config-conventional": "~17.2.0",
84
84
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.5.0",
85
85
  "@faker-js/faker": "7.6.0",
86
- "@nrwl/cli": "15.0.1",
87
- "@nrwl/tao": "15.0.1",
88
- "@nrwl/workspace": "15.0.1",
86
+ "@nrwl/cli": "15.0.9",
87
+ "@nrwl/tao": "15.0.9",
88
+ "@nrwl/workspace": "15.0.9",
89
89
  "@pmmmwh/react-refresh-webpack-plugin": "~0.5.8",
90
90
  "@semantic-release/changelog": "~6.0.1",
91
91
  "@semantic-release/exec": "~6.0.3",
@@ -96,31 +96,31 @@
96
96
  "@storybook/addon-interactions": "~6.5.13",
97
97
  "@storybook/addon-links": "~6.5.13",
98
98
  "@storybook/addon-storysource": "~6.5.13",
99
- "@storybook/builder-vite": "~0.2.4",
99
+ "@storybook/builder-vite": "~0.2.5",
100
100
  "@storybook/builder-webpack5": "~6.5.13",
101
101
  "@storybook/manager-webpack5": "~6.5.13",
102
102
  "@storybook/react": "~6.5.13",
103
103
  "@storybook/theming": "~6.5.13",
104
104
  "@stylelint/postcss-css-in-js": "~0.38.0",
105
- "@svgr/webpack": "~6.5.0",
105
+ "@svgr/webpack": "~6.5.1",
106
106
  "@swc/cli": "~0.1.57",
107
- "@swc/core": "~1.3.10",
107
+ "@swc/core": "~1.3.14",
108
108
  "@swc/jest": "~0.2.23",
109
109
  "@testing-library/jest-dom": "~5.16.5",
110
110
  "@testing-library/react": "~13.4.0",
111
111
  "@testing-library/react-hooks": "~8.0.1",
112
112
  "@testing-library/user-event": "~14.4.3",
113
- "@types/jest": "~29.2.0",
114
- "@types/node": "~18.11.4",
113
+ "@types/jest": "~29.2.2",
114
+ "@types/node": "~18.11.9",
115
115
  "@types/rimraf": "~3.0.2",
116
116
  "@types/supertest": "~2.0.12",
117
117
  "@types/testing-library__jest-dom": "~5.14.5",
118
- "@typescript-eslint/eslint-plugin": "~5.41.0",
119
- "@typescript-eslint/parser": "~5.41.0",
120
- "@vitejs/plugin-react": "~2.1.0",
121
- "@vitest/coverage-c8": "~0.24.3",
122
- "autoprefixer": "~10.4.12",
123
- "axe-core": "~4.5.0",
118
+ "@typescript-eslint/eslint-plugin": "~5.42.0",
119
+ "@typescript-eslint/parser": "~5.42.0",
120
+ "@vitejs/plugin-react": "~2.2.0",
121
+ "@vitest/coverage-c8": "~0.24.5",
122
+ "autoprefixer": "~10.4.13",
123
+ "axe-core": "~4.5.1",
124
124
  "babel-plugin-date-fns": "~2.0.0",
125
125
  "babel-plugin-dynamic-import-node": "~2.3.3",
126
126
  "babel-plugin-import-remove-resource-query": "~1.0.0",
@@ -149,7 +149,7 @@
149
149
  "dotenv-webpack": "~8.0.1",
150
150
  "duplicate-package-checker-webpack-plugin": "~3.0.0",
151
151
  "enhanced-resolve": "5.10.0",
152
- "esbuild": "~0.15.12",
152
+ "esbuild": "~0.15.13",
153
153
  "esbuild-loader": "~2.20.0",
154
154
  "esbuild-plugin-svgr": "~1.0.1",
155
155
  "eslint": "~8.26.0",
@@ -165,14 +165,14 @@
165
165
  "eslint-plugin-eslint-comments": "~3.2.0",
166
166
  "eslint-plugin-import": "~2.26.0",
167
167
  "eslint-plugin-jest": "~27.1.3",
168
- "eslint-plugin-jsdoc": "~39.3.24",
168
+ "eslint-plugin-jsdoc": "~39.6.2",
169
169
  "eslint-plugin-jsx-a11y": "~6.6.1",
170
170
  "eslint-plugin-mdx": "~2.0.5",
171
171
  "eslint-plugin-prettier": "~4.2.1",
172
172
  "eslint-plugin-react": "~7.31.10",
173
173
  "eslint-plugin-react-hooks": "~4.6.0",
174
174
  "eslint-plugin-redux-saga": "~1.3.2",
175
- "eslint-plugin-storybook": "~0.6.6",
175
+ "eslint-plugin-storybook": "~0.6.7",
176
176
  "eslint-plugin-testing-library": "~5.9.1",
177
177
  "eslint-plugin-wdio": "~7.25.3",
178
178
  "execa": "~6.1.0",
@@ -184,7 +184,7 @@
184
184
  "fast-glob": "~3.2.12",
185
185
  "find-up": "~6.3.0",
186
186
  "find-up-cli": "~5.0.0",
187
- "happy-dom": "~7.6.0",
187
+ "happy-dom": "~7.6.6",
188
188
  "helmet-csp": "~3.4.0",
189
189
  "html-loader": "~4.2.0",
190
190
  "html-webpack-plugin": "~5.5.0",
@@ -193,14 +193,14 @@
193
193
  "husky-init": "~8.0.0",
194
194
  "imports-loader": "~4.0.1",
195
195
  "ip": "~1.1.8",
196
- "jest-axe": "~6.0.0",
197
- "jest-cli": "~29.2.1",
198
- "jest-environment-jsdom": "~29.2.1",
196
+ "jest-axe": "~7.0.0",
197
+ "jest-cli": "~29.2.2",
198
+ "jest-environment-jsdom": "~29.2.2",
199
199
  "jest-sonar-reporter": "~2.0.0",
200
200
  "jest-styled-components": "~7.1.1",
201
201
  "jest-watch-typeahead": "~2.2.0",
202
202
  "jscodeshift": "~0.14.0",
203
- "jsdoc": "~3.6.11",
203
+ "jsdoc": "~4.0.0",
204
204
  "lerna": "~6.0.1",
205
205
  "lint-staged": "~13.0.3",
206
206
  "mini-css-extract-plugin": "~2.6.1",
@@ -212,7 +212,7 @@
212
212
  "node-plop": "~0.31.0",
213
213
  "nodemon": "~2.0.20",
214
214
  "normalize-path": "~3.0.0",
215
- "npm-check-updates": "16.3.15",
215
+ "npm-check-updates": "16.3.16",
216
216
  "pino": "~8.7.0",
217
217
  "pino-pretty": "~9.1.1",
218
218
  "plop": "~3.1.1",
@@ -240,30 +240,30 @@
240
240
  "storybook-builder-vite": "~0.1.23",
241
241
  "storybook-react-router": "~1.0.8",
242
242
  "style-loader": "~3.3.1",
243
- "stylelint": "~14.14.0",
243
+ "stylelint": "~14.14.1",
244
244
  "stylelint-config-recommended": "~9.0.0",
245
245
  "stylelint-config-styled-components": "~0.1.1",
246
- "supertest": "~6.3.0",
246
+ "supertest": "~6.3.1",
247
247
  "swc-loader": "~0.2.3",
248
248
  "ts-node": "~10.9.1",
249
249
  "tsc-alias": "~1.7.0",
250
- "typedoc": "~0.23.18",
250
+ "typedoc": "~0.23.20",
251
251
  "typescript": "~4.8.4",
252
252
  "update-notifier": "~6.0.2",
253
253
  "url-loader": "~4.1.1",
254
254
  "uuid": "~9.0.0",
255
- "vite": "~3.1.8",
256
- "vitest": "~0.24.3",
255
+ "vite": "~3.2.2",
256
+ "vitest": "~0.24.5",
257
257
  "vite-tsconfig-paths": "~3.5.2",
258
258
  "webpack": "~5.74.0",
259
- "webpack-bundle-analyzer": "~4.6.1",
259
+ "webpack-bundle-analyzer": "~4.7.0",
260
260
  "webpack-cli": "~4.10.0",
261
261
  "webpack-dev-server": "~4.11.1",
262
262
  "webpack-manifest-plugin": "~5.0.0",
263
263
  "webpack-merge": "~5.8.0",
264
264
  "whatwg-fetch": "~3.6.2",
265
265
  "workbox-webpack-plugin": "~6.5.4",
266
- "yargs": "~17.6.0"
266
+ "yargs": "~17.6.2"
267
267
  },
268
268
  "devDependencies": {
269
269
  "react": "~18.2.0",