@elliemae/pui-cli 9.0.0-next.67 → 9.0.0-next.69
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.
- package/app.tsconfig.json +3 -4
- package/dist/cjs/commands/lint.js +1 -1
- package/dist/cjs/commands/test.js +1 -1
- package/dist/cjs/lint-config/eslint.config.js +186 -194
- package/dist/cjs/release.config.js +2 -0
- package/dist/cjs/server/appRoutes.js +3 -1
- package/dist/cjs/server/csp.js +16 -12
- package/dist/cjs/server/index.js +24 -15
- package/dist/cjs/server/middlewares.js +11 -8
- package/dist/cjs/testing/jest.config.cjs +2 -1
- package/dist/cjs/testing/{extended/axe-core/index.js → mocks/frame.js} +7 -5
- package/dist/cjs/testing/mocks/iframe.js +3 -1
- package/dist/cjs/testing/setup-tests.js +9 -2
- package/dist/cjs/testing/vitest.config.js +0 -1
- package/dist/cjs/webpack/csp-plugin.js +3 -1
- package/dist/cjs/webpack/webpack.base.babel.js +5 -2
- package/dist/cjs/webpack/webpack.lib.base.babel.js +3 -1
- package/dist/esm/commands/lint.js +1 -1
- package/dist/esm/commands/test.js +1 -1
- package/dist/esm/lint-config/eslint.config.js +186 -194
- package/dist/esm/release.config.js +2 -0
- package/dist/esm/server/appRoutes.js +3 -1
- package/dist/esm/server/csp.js +16 -12
- package/dist/esm/server/index.js +24 -15
- package/dist/esm/server/middlewares.js +11 -8
- package/dist/esm/testing/jest.config.cjs +2 -1
- package/dist/esm/testing/mocks/frame.js +6 -0
- package/dist/esm/testing/mocks/iframe.js +3 -1
- package/dist/esm/testing/setup-tests.js +9 -2
- package/dist/esm/testing/vitest.config.js +0 -1
- package/dist/esm/webpack/csp-plugin.js +3 -1
- package/dist/esm/webpack/webpack.base.babel.js +5 -2
- package/dist/esm/webpack/webpack.lib.base.babel.js +3 -1
- package/dist/types/docusaurus.config.d.ts +0 -1
- package/dist/types/eslint.config.d.ts +1 -2
- package/dist/types/lib/babel.config.d.cts +0 -1
- package/dist/types/lib/build/vite.config.d.ts +0 -1
- package/dist/types/lib/cli.d.ts +0 -1
- package/dist/types/lib/commands/build.d.ts +0 -1
- package/dist/types/lib/commands/buildcdn.d.ts +0 -1
- package/dist/types/lib/commands/codemod.d.ts +0 -1
- package/dist/types/lib/commands/gendoc.d.ts +0 -1
- package/dist/types/lib/commands/lint.d.ts +0 -1
- package/dist/types/lib/commands/pack.d.ts +0 -1
- package/dist/types/lib/commands/start.d.ts +0 -1
- package/dist/types/lib/commands/storybook.d.ts +0 -1
- package/dist/types/lib/commands/test.d.ts +0 -1
- package/dist/types/lib/commands/tscheck.d.ts +0 -1
- package/dist/types/lib/commands/utils.d.ts +0 -1
- package/dist/types/lib/commands/version.d.ts +0 -1
- package/dist/types/lib/commands/vitest.d.ts +0 -1
- package/dist/types/lib/index.d.cts +0 -1
- package/dist/types/lib/index.d.ts +0 -1
- package/dist/types/lib/lint-config/commitlint.config.d.ts +0 -1
- package/dist/types/lib/lint-config/eslint.config.d.ts +2 -3
- package/dist/types/lib/lint-config/lint-staged.config.d.ts +0 -1
- package/dist/types/lib/lint-config/prettier.config.d.ts +0 -1
- package/dist/types/lib/lint-config/stylelint.config.d.ts +0 -1
- package/dist/types/lib/monorepo/delete-merged-tags.d.ts +0 -1
- package/dist/types/lib/monorepo/set-registry-version.d.ts +0 -1
- package/dist/types/lib/monorepo/set-workspace-version.d.ts +0 -1
- package/dist/types/lib/monorepo/utils.d.cts +0 -1
- package/dist/types/lib/monorepo/utils.d.ts +0 -1
- package/dist/types/lib/pui-config.d.ts +0 -1
- package/dist/types/lib/release.config.d.ts +0 -1
- package/dist/types/lib/server/appRoutes.d.ts +0 -1
- package/dist/types/lib/server/cert.d.ts +1 -2
- package/dist/types/lib/server/csp.d.ts +1 -2
- package/dist/types/lib/server/index.d.ts +0 -1
- package/dist/types/lib/server/logger.d.ts +0 -1
- package/dist/types/lib/server/middlewares.d.ts +0 -1
- package/dist/types/lib/server/utils.d.ts +0 -1
- package/dist/types/lib/server/wsServer.d.ts +0 -1
- package/dist/types/lib/testing/jest.config.d.cts +2 -2
- package/dist/types/lib/testing/jest.node.config.d.cts +2 -2
- package/dist/types/lib/testing/jest.polyfills.d.cts +0 -1
- package/dist/types/lib/testing/mocks/axios.d.ts +0 -1
- package/dist/types/lib/testing/mocks/cssModule.d.ts +0 -1
- package/dist/types/lib/testing/mocks/frame.d.ts +3 -0
- package/dist/types/lib/testing/mocks/html.d.ts +0 -1
- package/dist/types/lib/testing/mocks/iframe.d.ts +1 -1
- package/dist/types/lib/testing/mocks/image.d.ts +0 -1
- package/dist/types/lib/testing/mocks/matchMedia.d.ts +0 -1
- package/dist/types/lib/testing/mocks/pui-app-loader.d.ts +0 -1
- package/dist/types/lib/testing/mocks/pui-diagnostics.d.ts +0 -1
- package/dist/types/lib/testing/mocks/pui-user-monitoring.d.ts +0 -1
- package/dist/types/lib/testing/mocks/retry-axios.d.ts +0 -1
- package/dist/types/lib/testing/mocks/svg.d.ts +0 -1
- package/dist/types/lib/testing/mocks/webpack-hmr.d.ts +0 -1
- package/dist/types/lib/testing/resolver.d.cts +0 -1
- package/dist/types/lib/testing/setup-react-env.d.ts +0 -1
- package/dist/types/lib/testing/setup-tests.d.ts +0 -1
- package/dist/types/lib/testing/vitest.config.d.ts +1 -2
- package/dist/types/lib/transpile/esbuild.d.ts +0 -1
- package/dist/types/lib/transpile/react-shim.d.ts +0 -1
- package/dist/types/lib/transpile/swcrc.config.d.cts +0 -1
- package/dist/types/lib/typedoc.d.cts +0 -1
- package/dist/types/lib/update-notifier.d.ts +0 -1
- package/dist/types/lib/utils.d.cts +1 -2
- package/dist/types/lib/utils.d.ts +1 -2
- package/dist/types/lib/webpack/csp-plugin.d.ts +3 -2
- package/dist/types/lib/webpack/csp.d.ts +0 -1
- package/dist/types/lib/webpack/helpers.d.ts +0 -1
- package/dist/types/lib/webpack/interceptor-middleware.d.ts +0 -1
- package/dist/types/lib/webpack/webpack.base.babel.d.ts +0 -1
- package/dist/types/lib/webpack/webpack.dev.babel.d.ts +0 -1
- package/dist/types/lib/webpack/webpack.lib.base.babel.d.ts +0 -1
- package/dist/types/lib/webpack/webpack.lib.dev.babel.d.ts +0 -1
- package/dist/types/lib/webpack/webpack.lib.prod.babel.d.ts +0 -1
- package/dist/types/lib/webpack/webpack.prod.babel.d.ts +0 -1
- package/dist/types/lib/webpack/webpack.storybook.d.ts +0 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/library.tsconfig.json +6 -11
- package/package.json +163 -156
- package/dist/cjs/testing/ExtendedJSDomEnv.cjs +0 -46
- package/dist/cjs/testing/extended/axe-core/getMessageAndPass.js +0 -36
- package/dist/cjs/testing/extended/axe-core/reporter.js +0 -50
- package/dist/cjs/testing/extended/axe-core/shouldIgnoreNodeViolation.js +0 -31
- package/dist/cjs/testing/extended/axe-core/toHaveNoViolations.js +0 -42
- package/dist/esm/testing/ExtendedJSDomEnv.cjs +0 -46
- package/dist/esm/testing/extended/axe-core/getMessageAndPass.js +0 -16
- package/dist/esm/testing/extended/axe-core/index.js +0 -4
- package/dist/esm/testing/extended/axe-core/reporter.js +0 -30
- package/dist/esm/testing/extended/axe-core/shouldIgnoreNodeViolation.js +0 -11
- package/dist/esm/testing/extended/axe-core/toHaveNoViolations.js +0 -22
- package/dist/types/docusaurus.config.d.ts.map +0 -1
- package/dist/types/eslint.config.d.ts.map +0 -1
- package/dist/types/lib/babel.config.d.cts.map +0 -1
- package/dist/types/lib/build/vite.config.d.ts.map +0 -1
- package/dist/types/lib/cli.d.ts.map +0 -1
- package/dist/types/lib/commands/build.d.ts.map +0 -1
- package/dist/types/lib/commands/buildcdn.d.ts.map +0 -1
- package/dist/types/lib/commands/codemod.d.ts.map +0 -1
- package/dist/types/lib/commands/gendoc.d.ts.map +0 -1
- package/dist/types/lib/commands/lint.d.ts.map +0 -1
- package/dist/types/lib/commands/pack.d.ts.map +0 -1
- package/dist/types/lib/commands/start.d.ts.map +0 -1
- package/dist/types/lib/commands/storybook.d.ts.map +0 -1
- package/dist/types/lib/commands/test.d.ts.map +0 -1
- package/dist/types/lib/commands/tscheck.d.ts.map +0 -1
- package/dist/types/lib/commands/utils.d.ts.map +0 -1
- package/dist/types/lib/commands/version.d.ts.map +0 -1
- package/dist/types/lib/commands/vitest.d.ts.map +0 -1
- package/dist/types/lib/index.d.cts.map +0 -1
- package/dist/types/lib/index.d.ts.map +0 -1
- package/dist/types/lib/lint-config/commitlint.config.d.ts.map +0 -1
- package/dist/types/lib/lint-config/eslint.config.d.ts.map +0 -1
- package/dist/types/lib/lint-config/lint-staged.config.d.ts.map +0 -1
- package/dist/types/lib/lint-config/prettier.config.d.ts.map +0 -1
- package/dist/types/lib/lint-config/stylelint.config.d.ts.map +0 -1
- package/dist/types/lib/monorepo/delete-merged-tags.d.ts.map +0 -1
- package/dist/types/lib/monorepo/set-registry-version.d.ts.map +0 -1
- package/dist/types/lib/monorepo/set-workspace-version.d.ts.map +0 -1
- package/dist/types/lib/monorepo/utils.d.cts.map +0 -1
- package/dist/types/lib/monorepo/utils.d.ts.map +0 -1
- package/dist/types/lib/pui-config.d.ts.map +0 -1
- package/dist/types/lib/release.config.d.ts.map +0 -1
- package/dist/types/lib/server/appRoutes.d.ts.map +0 -1
- package/dist/types/lib/server/cert.d.ts.map +0 -1
- package/dist/types/lib/server/csp.d.ts.map +0 -1
- package/dist/types/lib/server/index.d.ts.map +0 -1
- package/dist/types/lib/server/logger.d.ts.map +0 -1
- package/dist/types/lib/server/middlewares.d.ts.map +0 -1
- package/dist/types/lib/server/utils.d.ts.map +0 -1
- package/dist/types/lib/server/wsServer.d.ts.map +0 -1
- package/dist/types/lib/testing/ExtendedJSDomEnv.d.cts +0 -6
- package/dist/types/lib/testing/ExtendedJSDomEnv.d.cts.map +0 -1
- package/dist/types/lib/testing/extended/axe-core/getMessageAndPass.d.ts +0 -9
- package/dist/types/lib/testing/extended/axe-core/getMessageAndPass.d.ts.map +0 -1
- package/dist/types/lib/testing/extended/axe-core/index.d.ts +0 -2
- package/dist/types/lib/testing/extended/axe-core/index.d.ts.map +0 -1
- package/dist/types/lib/testing/extended/axe-core/reporter.d.ts +0 -3
- package/dist/types/lib/testing/extended/axe-core/reporter.d.ts.map +0 -1
- package/dist/types/lib/testing/extended/axe-core/shouldIgnoreNodeViolation.d.ts +0 -3
- package/dist/types/lib/testing/extended/axe-core/shouldIgnoreNodeViolation.d.ts.map +0 -1
- package/dist/types/lib/testing/extended/axe-core/toHaveNoViolations.d.ts +0 -13
- package/dist/types/lib/testing/extended/axe-core/toHaveNoViolations.d.ts.map +0 -1
- package/dist/types/lib/testing/jest.config.d.cts.map +0 -1
- package/dist/types/lib/testing/jest.node.config.d.cts.map +0 -1
- package/dist/types/lib/testing/jest.polyfills.d.cts.map +0 -1
- package/dist/types/lib/testing/mocks/axios.d.ts.map +0 -1
- package/dist/types/lib/testing/mocks/cssModule.d.ts.map +0 -1
- package/dist/types/lib/testing/mocks/html.d.ts.map +0 -1
- package/dist/types/lib/testing/mocks/iframe.d.ts.map +0 -1
- package/dist/types/lib/testing/mocks/image.d.ts.map +0 -1
- package/dist/types/lib/testing/mocks/matchMedia.d.ts.map +0 -1
- package/dist/types/lib/testing/mocks/pui-app-loader.d.ts.map +0 -1
- package/dist/types/lib/testing/mocks/pui-diagnostics.d.ts.map +0 -1
- package/dist/types/lib/testing/mocks/pui-user-monitoring.d.ts.map +0 -1
- package/dist/types/lib/testing/mocks/retry-axios.d.ts.map +0 -1
- package/dist/types/lib/testing/mocks/svg.d.ts.map +0 -1
- package/dist/types/lib/testing/mocks/webpack-hmr.d.ts.map +0 -1
- package/dist/types/lib/testing/resolver.d.cts.map +0 -1
- package/dist/types/lib/testing/setup-react-env.d.ts.map +0 -1
- package/dist/types/lib/testing/setup-tests.d.ts.map +0 -1
- package/dist/types/lib/testing/vitest.config.d.ts.map +0 -1
- package/dist/types/lib/transpile/esbuild.d.ts.map +0 -1
- package/dist/types/lib/transpile/react-shim.d.ts.map +0 -1
- package/dist/types/lib/transpile/swcrc.config.d.cts.map +0 -1
- package/dist/types/lib/typedoc.d.cts.map +0 -1
- package/dist/types/lib/update-notifier.d.ts.map +0 -1
- package/dist/types/lib/utils.d.cts.map +0 -1
- package/dist/types/lib/utils.d.ts.map +0 -1
- package/dist/types/lib/webpack/csp-plugin.d.ts.map +0 -1
- package/dist/types/lib/webpack/csp.d.ts.map +0 -1
- package/dist/types/lib/webpack/helpers.d.ts.map +0 -1
- package/dist/types/lib/webpack/interceptor-middleware.d.ts.map +0 -1
- package/dist/types/lib/webpack/webpack.base.babel.d.ts.map +0 -1
- package/dist/types/lib/webpack/webpack.dev.babel.d.ts.map +0 -1
- package/dist/types/lib/webpack/webpack.lib.base.babel.d.ts.map +0 -1
- package/dist/types/lib/webpack/webpack.lib.dev.babel.d.ts.map +0 -1
- package/dist/types/lib/webpack/webpack.lib.prod.babel.d.ts.map +0 -1
- package/dist/types/lib/webpack/webpack.prod.babel.d.ts.map +0 -1
- package/dist/types/lib/webpack/webpack.storybook.d.ts.map +0 -1
|
@@ -63,6 +63,7 @@ const jestConfig = {
|
|
|
63
63
|
getMockFilePath('image.js'),
|
|
64
64
|
'.*\\.svg(?:\\?[a-zA-Z]+)?$': getMockFilePath('svg.js'),
|
|
65
65
|
'.*iframe\\.html(?:\\?[a-zA-Z]+)?$': getMockFilePath('iframe.js'),
|
|
66
|
+
'.*frame\\.html(?:\\?[a-zA-Z]+)?$': getMockFilePath('frame.js'),
|
|
66
67
|
'.*\\.html(?:\\?[a-zA-Z]+)?$': getMockFilePath('html.js'),
|
|
67
68
|
'@elliemae/pui-user-monitoring': getMockFilePath('pui-user-monitoring.js'),
|
|
68
69
|
'@elliemae/pui-app-loader': getMockFilePath('pui-app-loader.js'),
|
|
@@ -95,7 +96,7 @@ const jestConfig = {
|
|
|
95
96
|
resources: 'usable',
|
|
96
97
|
customExportConditions: [''],
|
|
97
98
|
},
|
|
98
|
-
testEnvironment:
|
|
99
|
+
testEnvironment: 'jsdom',
|
|
99
100
|
watchPlugins: [
|
|
100
101
|
'jest-watch-typeahead/filename',
|
|
101
102
|
'jest-watch-typeahead/testname',
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import "regenerator-runtime/runtime";
|
|
2
|
+
import { webcrypto } from "node:crypto";
|
|
2
3
|
import "@testing-library/jest-dom/jest-globals";
|
|
4
|
+
import jestAxe from "jest-axe";
|
|
3
5
|
import ResizeObserver from "resize-observer-polyfill";
|
|
4
|
-
import { toHaveNoViolations } from "./extended/axe-core";
|
|
5
6
|
import { addMatchMedia } from "./mocks/matchMedia.js";
|
|
6
7
|
import { logger } from "./mocks/pui-diagnostics.js";
|
|
8
|
+
Object.defineProperty(globalThis, "crypto", {
|
|
9
|
+
value: webcrypto
|
|
10
|
+
});
|
|
7
11
|
const originalError = console.error;
|
|
8
12
|
console.error = (...args) => {
|
|
9
13
|
const ignoreList = [
|
|
@@ -23,7 +27,7 @@ console.error = (...args) => {
|
|
|
23
27
|
return false;
|
|
24
28
|
return originalError(...args);
|
|
25
29
|
};
|
|
26
|
-
if (expect) expect.extend(toHaveNoViolations);
|
|
30
|
+
if (expect) expect.extend(jestAxe.toHaveNoViolations);
|
|
27
31
|
const addElementToBody = (element) => {
|
|
28
32
|
const documentEle = (window || {}).document;
|
|
29
33
|
if (!documentEle) return null;
|
|
@@ -67,3 +71,6 @@ global.it = (name, fn, timeout = void 0) => {
|
|
|
67
71
|
};
|
|
68
72
|
global.it.skip = originalTest.skip;
|
|
69
73
|
global.it.only = originalTest.only;
|
|
74
|
+
if (!global.performance.getEntriesByType) {
|
|
75
|
+
global.performance.getEntriesByType = jest.fn(() => []);
|
|
76
|
+
}
|
|
@@ -2,7 +2,6 @@ import { defineConfig, configDefaults } from "vitest/config";
|
|
|
2
2
|
import react from "@vitejs/plugin-react";
|
|
3
3
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
4
4
|
const vitestConfig = defineConfig({
|
|
5
|
-
// @ts-expect-error - `react` and `tsconfigPaths` are not part of the default config
|
|
6
5
|
plugins: [react(), tsconfigPaths()],
|
|
7
6
|
test: {
|
|
8
7
|
globals: true,
|
|
@@ -6,6 +6,8 @@ const defaultOptions = {
|
|
|
6
6
|
class CspPlugin {
|
|
7
7
|
#options = defaultOptions;
|
|
8
8
|
/**
|
|
9
|
+
*
|
|
10
|
+
* @param htmlWebpackPlugin
|
|
9
11
|
* @param {object} options Additional options for this module.
|
|
10
12
|
*/
|
|
11
13
|
constructor(options) {
|
|
@@ -13,7 +15,7 @@ class CspPlugin {
|
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* Processes HtmlWebpackPlugin's html data by adding the CSP
|
|
16
|
-
* @param
|
|
18
|
+
* @param compilation
|
|
17
19
|
* @param htmlPluginData
|
|
18
20
|
* @param htmlPluginData.html
|
|
19
21
|
* @param compileCb
|
|
@@ -8,6 +8,7 @@ import MomentLocalesPlugin from "moment-locales-webpack-plugin";
|
|
|
8
8
|
import { WebpackManifestPlugin } from "webpack-manifest-plugin";
|
|
9
9
|
import FaviconsWebpackPlugin from "favicons-webpack-plugin";
|
|
10
10
|
import browserslistToEsbuild from "browserslist-to-esbuild";
|
|
11
|
+
import DotEnvWebpack from "dotenv-webpack";
|
|
11
12
|
import {
|
|
12
13
|
excludeNodeModulesExcept,
|
|
13
14
|
modulesToTranspile,
|
|
@@ -27,6 +28,7 @@ const plugins = [
|
|
|
27
28
|
NODE_ENV: "development",
|
|
28
29
|
CI: "false"
|
|
29
30
|
}),
|
|
31
|
+
new DotEnvWebpack(),
|
|
30
32
|
new webpack.ProvidePlugin({
|
|
31
33
|
React: "react"
|
|
32
34
|
}),
|
|
@@ -49,6 +51,7 @@ const plugins = [
|
|
|
49
51
|
from: "node_modules/@elliemae/pui-user-monitoring/dist/public/js",
|
|
50
52
|
to: "./latest/js",
|
|
51
53
|
toType: "dir",
|
|
54
|
+
noErrorOnMissing: true,
|
|
52
55
|
info: { minimized: true }
|
|
53
56
|
},
|
|
54
57
|
// {
|
|
@@ -225,11 +228,11 @@ const baseConfig = (options) => ({
|
|
|
225
228
|
type: "asset"
|
|
226
229
|
},
|
|
227
230
|
{
|
|
228
|
-
test: /
|
|
231
|
+
test: /i?frame.html$/i,
|
|
229
232
|
resourceQuery: /resource/,
|
|
230
233
|
type: "asset/resource",
|
|
231
234
|
generator: {
|
|
232
|
-
filename: "latest/[name].[
|
|
235
|
+
filename: "latest/[name].[ext]"
|
|
233
236
|
},
|
|
234
237
|
exclude: excludeNodeModulesExcept(modulesToTranspile)
|
|
235
238
|
},
|
|
@@ -7,6 +7,7 @@ import PostcssPresetEnv from "postcss-preset-env";
|
|
|
7
7
|
import MomentLocalesPlugin from "moment-locales-webpack-plugin";
|
|
8
8
|
import ResolveTypeScriptPlugin from "resolve-typescript-plugin";
|
|
9
9
|
import browserslistToEsbuild from "browserslist-to-esbuild";
|
|
10
|
+
import DotEnvWebpack from "dotenv-webpack";
|
|
10
11
|
import {
|
|
11
12
|
excludeNodeModulesExcept,
|
|
12
13
|
getLibraryVariableName,
|
|
@@ -36,6 +37,7 @@ const plugins = [
|
|
|
36
37
|
ASSET_PATH: "/",
|
|
37
38
|
CI: "false"
|
|
38
39
|
}),
|
|
40
|
+
new DotEnvWebpack(),
|
|
39
41
|
new webpack.DefinePlugin({
|
|
40
42
|
APP_CONFIG: getAppConfig()
|
|
41
43
|
}),
|
|
@@ -149,7 +151,7 @@ const baseConfig = (options) => ({
|
|
|
149
151
|
type: "asset"
|
|
150
152
|
},
|
|
151
153
|
// {
|
|
152
|
-
// test: /(?<!\/
|
|
154
|
+
// test: /(?<!\/i?frame)\.html$/,
|
|
153
155
|
// exclude: excludeNodeModulesExcept(['@elliemae/*']),
|
|
154
156
|
// use: 'html-loader',
|
|
155
157
|
// },
|
package/dist/types/lib/cli.d.ts
CHANGED
|
@@ -37,4 +37,3 @@ export declare const isTypeScriptEnabled: () => boolean;
|
|
|
37
37
|
* @see {@link https://stackblitz.com/edit/node-gqcdb4?file=package.json stackblitz test}
|
|
38
38
|
*/
|
|
39
39
|
export declare const getUnspecifiedOptions: (options: Record<string, Record<string, unknown>>, command: string) => Record<string, string | boolean>;
|
|
40
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -10,4 +10,3 @@ export { jestConfig } from './testing/jest.config.cjs';
|
|
|
10
10
|
export { jestNodeConfig } from './testing/jest.node.config.cjs';
|
|
11
11
|
export { loadRoutes } from './server/appRoutes.js';
|
|
12
12
|
export { webpackFinal } from './webpack/webpack.storybook.js';
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const config:
|
|
1
|
+
import { Linter } from "eslint";
|
|
2
|
+
declare const config: Linter.Config<Linter.RulesRecord>[];
|
|
3
3
|
export { config };
|
|
4
|
-
//# sourceMappingURL=eslint.config.d.ts.map
|
|
@@ -7,7 +7,6 @@ interface CSPConfig {
|
|
|
7
7
|
res: Response<unknown, Record<string, unknown>>;
|
|
8
8
|
fileSystem?: typeof fs;
|
|
9
9
|
}
|
|
10
|
-
export declare const sendFileWithCSPNonce: ({ buildPath, page, nonceRegex, res, fileSystem, }: CSPConfig) => void
|
|
10
|
+
export declare const sendFileWithCSPNonce: ({ buildPath, page, nonceRegex, res, fileSystem, }: CSPConfig) => Promise<void>;
|
|
11
11
|
export declare const csp: (app: Application) => void;
|
|
12
12
|
export {};
|
|
13
|
-
//# sourceMappingURL=csp.d.ts.map
|
|
@@ -12,6 +12,7 @@ export namespace jestConfig {
|
|
|
12
12
|
'.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': string;
|
|
13
13
|
'.*\\.svg(?:\\?[a-zA-Z]+)?$': string;
|
|
14
14
|
'.*iframe\\.html(?:\\?[a-zA-Z]+)?$': string;
|
|
15
|
+
'.*frame\\.html(?:\\?[a-zA-Z]+)?$': string;
|
|
15
16
|
'.*\\.html(?:\\?[a-zA-Z]+)?$': string;
|
|
16
17
|
'@elliemae/pui-user-monitoring': string;
|
|
17
18
|
'@elliemae/pui-app-loader': string;
|
|
@@ -31,7 +32,7 @@ export namespace jestConfig {
|
|
|
31
32
|
};
|
|
32
33
|
let transformIgnorePatterns: string[];
|
|
33
34
|
namespace globals {
|
|
34
|
-
let APP_CONFIG: string |
|
|
35
|
+
let APP_CONFIG: string | NonSharedBuffer;
|
|
35
36
|
let __webpack_public_path__: string;
|
|
36
37
|
}
|
|
37
38
|
namespace testEnvironmentOptions {
|
|
@@ -44,4 +45,3 @@ export namespace jestConfig {
|
|
|
44
45
|
let testTimeout: number;
|
|
45
46
|
let prettierPath: null;
|
|
46
47
|
}
|
|
47
|
-
//# sourceMappingURL=jest.config.d.cts.map
|
|
@@ -16,6 +16,7 @@ export const jestNodeConfig: {
|
|
|
16
16
|
'.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': string;
|
|
17
17
|
'.*\\.svg(?:\\?[a-zA-Z]+)?$': string;
|
|
18
18
|
'.*iframe\\.html(?:\\?[a-zA-Z]+)?$': string;
|
|
19
|
+
'.*frame\\.html(?:\\?[a-zA-Z]+)?$': string;
|
|
19
20
|
'.*\\.html(?:\\?[a-zA-Z]+)?$': string;
|
|
20
21
|
'@elliemae/pui-user-monitoring': string;
|
|
21
22
|
'@elliemae/pui-app-loader': string;
|
|
@@ -32,7 +33,7 @@ export const jestNodeConfig: {
|
|
|
32
33
|
'^.+\\.[jt]sx?$': any[];
|
|
33
34
|
};
|
|
34
35
|
globals: {
|
|
35
|
-
APP_CONFIG: string |
|
|
36
|
+
APP_CONFIG: string | NonSharedBuffer;
|
|
36
37
|
__webpack_public_path__: string;
|
|
37
38
|
};
|
|
38
39
|
testEnvironmentOptions: {
|
|
@@ -44,4 +45,3 @@ export const jestNodeConfig: {
|
|
|
44
45
|
testTimeout: number;
|
|
45
46
|
prettierPath: null;
|
|
46
47
|
};
|
|
47
|
-
//# sourceMappingURL=jest.node.config.d.cts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export declare const vitestConfig: import("vite").UserConfig
|
|
2
|
-
//# sourceMappingURL=vitest.config.d.ts.map
|
|
1
|
+
export declare const vitestConfig: import("vite").UserConfig;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export const basePath: string;
|
|
2
|
-
export function getAppConfig(): "{}" |
|
|
2
|
+
export function getAppConfig(): "{}" | NonSharedBuffer;
|
|
3
3
|
export function isTypeScriptEnabled(): boolean;
|
|
4
4
|
export function isApp(): boolean;
|
|
5
|
-
//# sourceMappingURL=utils.d.cts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare const basePath: string;
|
|
2
2
|
export declare const isApp: () => boolean;
|
|
3
3
|
export declare const isHttps: () => boolean;
|
|
4
|
-
export declare const getAppConfig: () => "{}" |
|
|
5
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
4
|
+
export declare const getAppConfig: () => "{}" | NonSharedBuffer;
|
|
@@ -11,12 +11,14 @@ declare const defaultOptions: {
|
|
|
11
11
|
declare class CspPlugin {
|
|
12
12
|
#private;
|
|
13
13
|
/**
|
|
14
|
+
*
|
|
15
|
+
* @param htmlWebpackPlugin
|
|
14
16
|
* @param {object} options Additional options for this module.
|
|
15
17
|
*/
|
|
16
18
|
constructor(options?: typeof defaultOptions);
|
|
17
19
|
/**
|
|
18
20
|
* Processes HtmlWebpackPlugin's html data by adding the CSP
|
|
19
|
-
* @param
|
|
21
|
+
* @param compilation
|
|
20
22
|
* @param htmlPluginData
|
|
21
23
|
* @param htmlPluginData.html
|
|
22
24
|
* @param compileCb
|
|
@@ -30,4 +32,3 @@ declare class CspPlugin {
|
|
|
30
32
|
apply(compiler: webpack.Compiler): void;
|
|
31
33
|
}
|
|
32
34
|
export { CspPlugin };
|
|
33
|
-
//# sourceMappingURL=csp-plugin.d.ts.map
|
|
@@ -30,4 +30,3 @@ export declare const getCompressionPlugins: (isLibrary?: boolean) => Compression
|
|
|
30
30
|
export declare const filterByFilePresence: (patterns: ObjectPattern[]) => ObjectPattern[];
|
|
31
31
|
export declare const resolveExtensions: string[];
|
|
32
32
|
export declare const mainFields: string[];
|
|
33
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -8,4 +8,3 @@ type ReplacerFunction = (req: Request, res: Response) => {
|
|
|
8
8
|
export declare const interceptorMiddleware: (fn: ReplacerFunction) => (req: Request, res: Response, next: () => void) => void;
|
|
9
9
|
export declare const addCSPNonceMiddleware: (middlewares: Middleware[]) => void;
|
|
10
10
|
export {};
|
|
11
|
-
//# sourceMappingURL=interceptor-middleware.d.ts.map
|