@elliemae/pui-cli 7.0.0-alpha.5 → 7.0.0-alpha.8

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.
Files changed (94) hide show
  1. package/dist/cjs/cli-commands/{tsc.js → tscheck.js} +26 -44
  2. package/dist/cjs/cli.js +2 -0
  3. package/dist/cjs/lint/lint-staged.config.js +1 -6
  4. package/dist/cjs/monorepo/utils.cjs +2 -1
  5. package/dist/cjs/server/index.js +1 -1
  6. package/dist/cjs/server/{middlewares/index.js → middlewares.js} +18 -7
  7. package/dist/cjs/testing/jest.config.cjs +8 -8
  8. package/dist/cjs/{typescript/tsc-files/utils.js → testing/mocks/axios.js} +18 -12
  9. package/dist/cjs/testing/mocks/cssModule.js +23 -0
  10. package/dist/cjs/testing/mocks/html.js +23 -0
  11. package/dist/cjs/testing/mocks/image.js +23 -0
  12. package/dist/cjs/testing/mocks/matchMedia.js +43 -0
  13. package/dist/cjs/testing/mocks/pui-app-loader.js +24 -0
  14. package/dist/cjs/testing/mocks/pui-diagnostics.js +68 -0
  15. package/dist/cjs/testing/mocks/pui-user-monitoring.js +30 -0
  16. package/dist/cjs/testing/mocks/retry-axios.js +27 -0
  17. package/dist/cjs/{server/middlewares/addProdMiddlewares.js → testing/mocks/svg.js} +8 -23
  18. package/dist/cjs/testing/mocks/webpack-hmr.js +24 -0
  19. package/dist/cjs/testing/setup-tests.js +3 -3
  20. package/dist/cjs/webpack/webpack.dev.babel.js +1 -1
  21. package/dist/cjs/webpack/webpack.prod.babel.js +2 -2
  22. package/dist/esm/cli-commands/tscheck.js +65 -0
  23. package/dist/esm/cli.js +2 -0
  24. package/dist/esm/lint/lint-staged.config.js +1 -5
  25. package/dist/esm/monorepo/utils.cjs +2 -1
  26. package/dist/esm/server/index.js +1 -1
  27. package/dist/esm/server/middlewares.js +46 -0
  28. package/dist/esm/testing/jest.config.cjs +8 -8
  29. package/dist/esm/testing/mocks/{axios.cjs → axios.js} +8 -5
  30. package/dist/esm/testing/mocks/cssModule.js +4 -0
  31. package/dist/esm/testing/mocks/html.js +4 -0
  32. package/dist/esm/testing/mocks/image.js +4 -0
  33. package/dist/esm/testing/mocks/matchMedia.js +24 -0
  34. package/dist/esm/testing/mocks/pui-app-loader.js +5 -0
  35. package/dist/esm/testing/mocks/pui-diagnostics.js +49 -0
  36. package/dist/esm/testing/mocks/pui-user-monitoring.js +11 -0
  37. package/dist/esm/testing/mocks/retry-axios.js +8 -0
  38. package/dist/esm/testing/mocks/svg.js +7 -0
  39. package/dist/esm/testing/mocks/webpack-hmr.js +5 -0
  40. package/dist/esm/testing/setup-tests.js +2 -2
  41. package/dist/esm/webpack/webpack.dev.babel.js +1 -1
  42. package/dist/esm/webpack/webpack.prod.babel.js +2 -2
  43. package/dist/types/cli-commands/tscheck.d.ts +14 -0
  44. package/dist/types/server/{middlewares/index.d.ts → middlewares.d.ts} +1 -1
  45. package/dist/types/testing/jest.config.d.cts +1 -1
  46. package/dist/types/testing/jest.node.config.d.cts +1 -1
  47. package/dist/types/testing/mocks/axios.d.ts +17 -0
  48. package/dist/types/testing/mocks/cssModule.d.ts +2 -0
  49. package/dist/types/testing/mocks/html.d.ts +2 -0
  50. package/dist/types/testing/mocks/image.d.ts +2 -0
  51. package/dist/types/testing/mocks/matchMedia.d.ts +1 -0
  52. package/dist/types/testing/mocks/{pui-app-loader.d.cts → pui-app-loader.d.ts} +0 -0
  53. package/dist/types/testing/mocks/{pui-diagnostics.d.cts → pui-diagnostics.d.ts} +0 -0
  54. package/dist/types/testing/mocks/{pui-user-monitoring.d.cts → pui-user-monitoring.d.ts} +0 -0
  55. package/dist/types/testing/mocks/{retry-axios.d.cts → retry-axios.d.ts} +0 -0
  56. package/dist/types/testing/mocks/{svg.d.cts → svg.d.ts} +0 -0
  57. package/dist/types/testing/mocks/{webpack-hmr.d.cts → webpack-hmr.d.ts} +0 -0
  58. package/package.json +7 -6
  59. package/dist/cjs/testing/mocks/axios.cjs +0 -15
  60. package/dist/cjs/testing/mocks/cssModule.cjs +0 -1
  61. package/dist/cjs/testing/mocks/html.cjs +0 -1
  62. package/dist/cjs/testing/mocks/image.cjs +0 -1
  63. package/dist/cjs/testing/mocks/matchMedia.cjs +0 -24
  64. package/dist/cjs/testing/mocks/pui-app-loader.cjs +0 -1
  65. package/dist/cjs/testing/mocks/pui-diagnostics.cjs +0 -28
  66. package/dist/cjs/testing/mocks/pui-user-monitoring.cjs +0 -3
  67. package/dist/cjs/testing/mocks/retry-axios.cjs +0 -3
  68. package/dist/cjs/testing/mocks/svg.cjs +0 -5
  69. package/dist/cjs/testing/mocks/webpack-hmr.cjs +0 -1
  70. package/dist/cjs/typescript/tsc-files/index.js +0 -68
  71. package/dist/esm/cli-commands/tsc.js +0 -83
  72. package/dist/esm/server/middlewares/addProdMiddlewares.js +0 -22
  73. package/dist/esm/server/middlewares/index.js +0 -35
  74. package/dist/esm/testing/mocks/cssModule.cjs +0 -1
  75. package/dist/esm/testing/mocks/html.cjs +0 -1
  76. package/dist/esm/testing/mocks/image.cjs +0 -1
  77. package/dist/esm/testing/mocks/matchMedia.cjs +0 -24
  78. package/dist/esm/testing/mocks/pui-app-loader.cjs +0 -1
  79. package/dist/esm/testing/mocks/pui-diagnostics.cjs +0 -28
  80. package/dist/esm/testing/mocks/pui-user-monitoring.cjs +0 -3
  81. package/dist/esm/testing/mocks/retry-axios.cjs +0 -3
  82. package/dist/esm/testing/mocks/svg.cjs +0 -5
  83. package/dist/esm/testing/mocks/webpack-hmr.cjs +0 -1
  84. package/dist/esm/typescript/tsc-files/index.js +0 -55
  85. package/dist/esm/typescript/tsc-files/utils.js +0 -12
  86. package/dist/types/cli-commands/tsc.d.ts +0 -20
  87. package/dist/types/server/middlewares/addProdMiddlewares.d.ts +0 -1
  88. package/dist/types/testing/mocks/axios.d.cts +0 -14
  89. package/dist/types/testing/mocks/cssModule.d.cts +0 -2
  90. package/dist/types/testing/mocks/html.d.cts +0 -2
  91. package/dist/types/testing/mocks/image.d.cts +0 -2
  92. package/dist/types/testing/mocks/matchMedia.d.cts +0 -2
  93. package/dist/types/typescript/tsc-files/index.d.ts +0 -1
  94. package/dist/types/typescript/tsc-files/utils.d.ts +0 -3
@@ -1,68 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
- var __getProtoOf = Object.getPrototypeOf;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __spreadValues = (a, b) => {
13
- for (var prop in b || (b = {}))
14
- if (__hasOwnProp.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- if (__getOwnPropSymbols)
17
- for (var prop of __getOwnPropSymbols(b)) {
18
- if (__propIsEnum.call(b, prop))
19
- __defNormalProp(a, prop, b[prop]);
20
- }
21
- return a;
22
- };
23
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
- var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") {
26
- for (let key of __getOwnPropNames(from))
27
- if (!__hasOwnProp.call(to, key) && key !== except)
28
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
- }
30
- return to;
31
- };
32
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
33
- var import_execa = require("execa");
34
- var import_node_fs = __toESM(require("node:fs"), 1);
35
- var import_node_path = __toESM(require("node:path"), 1);
36
- var import_utils = require("./utils.js");
37
- const args = process.argv.slice(2);
38
- const argsProjectIndex = args.findIndex((arg) => ["-p", "--project"].includes(arg));
39
- const argsProjectValue = argsProjectIndex !== -1 ? args[argsProjectIndex + 1] : void 0;
40
- const files = args.filter((file) => /\.(ts|tsx)$/.test(file));
41
- if (files.length === 0) {
42
- process.exit(0);
43
- }
44
- const remainingArgsToForward = args.slice().filter((arg) => !files.includes(arg));
45
- if (argsProjectIndex !== -1) {
46
- remainingArgsToForward.splice(argsProjectIndex, 2);
47
- }
48
- const tsconfigPath = argsProjectValue || (0, import_utils.resolveFromRoot)("tsconfig.json");
49
- const tsconfigContent = import_node_fs.default.readFileSync(tsconfigPath).toString();
50
- let tsconfig = {};
51
- eval(`tsconfig = ${tsconfigContent}`);
52
- const tmpTsconfigPath = (0, import_utils.resolveFromRoot)(`tsconfig.${(0, import_utils.randomChars)()}.json`);
53
- const tmpTsconfig = __spreadProps(__spreadValues({}, tsconfig), {
54
- compilerOptions: __spreadProps(__spreadValues({}, tsconfig.compilerOptions), {
55
- skipLibCheck: true
56
- }),
57
- files,
58
- include: ["app", "lib"]
59
- });
60
- import_node_fs.default.writeFileSync(tmpTsconfigPath, JSON.stringify(tmpTsconfig, null, 2));
61
- let status = 0;
62
- try {
63
- import_execa.execa.sync(import_node_path.default.resolve(process.cwd(), `./node_modules/.bin/tsc${process.platform === "win32" ? ".cmd" : ""}`), ["-p", tmpTsconfigPath, ...remainingArgsToForward], { stdio: "inherit" });
64
- } catch (ex) {
65
- status = ex.exitCode;
66
- }
67
- import_node_fs.default.unlinkSync(tmpTsconfigPath);
68
- process.exit(status);
@@ -1,83 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import path from "node:path";
21
- import yargs from "yargs";
22
- import { spawnSync } from "child_process";
23
- import fs from "fs";
24
- import { logInfo, logError } from "./utils.js";
25
- const randomChars = () => Math.random().toString(36).slice(2);
26
- const resolveFromRoot = (...paths) => path.join(process.cwd(), ...paths);
27
- const validateTypescript = async () => {
28
- const args = process.argv.slice(2);
29
- const argsProjectIndex = args.findIndex((arg) => ["-p", "--project"].includes(arg));
30
- const argsProjectValue = argsProjectIndex !== -1 ? args[argsProjectIndex + 1] : void 0;
31
- const files = args.filter((file) => /\.(ts|tsx)$/.test(file));
32
- if (files.length === 0) {
33
- process.exit(0);
34
- }
35
- const remainingArgsToForward = args.slice().filter((arg) => !files.includes(arg));
36
- if (argsProjectIndex !== -1) {
37
- remainingArgsToForward.splice(argsProjectIndex, 2);
38
- }
39
- const tsconfigPath = argsProjectValue || resolveFromRoot("tsconfig.json");
40
- const tsconfigContent = fs.readFileSync(tsconfigPath).toString();
41
- let tsconfig = {};
42
- eval(`tsconfig = ${tsconfigContent}`);
43
- const tmpTsconfigPath = resolveFromRoot(`tsconfig.${randomChars()}.json`);
44
- const tmpTsconfig = __spreadProps(__spreadValues({}, tsconfig), {
45
- compilerOptions: __spreadProps(__spreadValues({}, tsconfig.compilerOptions), {
46
- skipLibCheck: true
47
- }),
48
- files,
49
- include: ["shared/typings"]
50
- });
51
- fs.writeFileSync(tmpTsconfigPath, JSON.stringify(tmpTsconfig, null, 2));
52
- const { status } = spawnSync("tsc", ["-p", tmpTsconfigPath, ...remainingArgsToForward], { stdio: "inherit" });
53
- fs.unlinkSync(tmpTsconfigPath);
54
- process.exit(status);
55
- };
56
- const tscCmd = {
57
- handler: async (argv) => {
58
- try {
59
- await validateTypescript(argv.p);
60
- logInfo("Typescript validation started");
61
- } catch (err) {
62
- logError("Typescript validation failed", err);
63
- yargs().exit(-1, err);
64
- }
65
- },
66
- command: "tsc [options]",
67
- describe: "validate typescript code",
68
- builder: {
69
- project: {
70
- alias: "p",
71
- type: "boolean",
72
- default: false
73
- },
74
- docs: {
75
- type: "boolean",
76
- default: false
77
- }
78
- }
79
- };
80
- export {
81
- tscCmd,
82
- validateTypescript
83
- };
@@ -1,22 +0,0 @@
1
- import compression from "compression";
2
- import expressStaticGzip from "express-static-gzip";
3
- import { sendFileWithCSPNonce } from "../csp.js";
4
- import { getPaths } from "../../webpack/helpers.js";
5
- const paths = getPaths();
6
- const addProdMiddlewares = (app, options = {}) => {
7
- const { buildPath = paths.buildPath, basePath = paths.basePath } = options;
8
- app.use(compression());
9
- app.get(basePath, (req, res) => {
10
- sendFileWithCSPNonce({ buildPath, res });
11
- });
12
- app.use(basePath, expressStaticGzip(buildPath, {
13
- index: false,
14
- enableBrotli: true,
15
- orderPreference: ["br"]
16
- }));
17
- app.use(expressStaticGzip("cdn"));
18
- app.get("*", (req, res) => sendFileWithCSPNonce({ buildPath, res }));
19
- };
20
- export {
21
- addProdMiddlewares
22
- };
@@ -1,35 +0,0 @@
1
- import express from "express";
2
- import cors from "cors";
3
- import expressPinoLogger from "express-pino-logger";
4
- import { csp } from "../csp.js";
5
- import { addProdMiddlewares } from "./addProdMiddlewares.js";
6
- const setupDefaultMiddlewares = (app) => {
7
- const pino = expressPinoLogger({
8
- transport: {
9
- target: "pino-pretty",
10
- options: {
11
- colorize: true
12
- }
13
- }
14
- });
15
- pino.logger.level = "warn";
16
- app.use(pino);
17
- app.use(cors());
18
- app.options("*", cors());
19
- csp(app);
20
- app.use(express.urlencoded({ extended: false }));
21
- app.use(express.text({ type: "text/plain" }));
22
- app.use(express.json({ type: "application/json" }));
23
- app.use(express.json({ type: "application/csp-report" }));
24
- };
25
- const setupAdditionalMiddlewars = (app, options) => {
26
- const isProd = false;
27
- if (isProd) {
28
- addProdMiddlewares(app, options);
29
- }
30
- return app;
31
- };
32
- export {
33
- setupAdditionalMiddlewars,
34
- setupDefaultMiddlewares
35
- };
@@ -1 +0,0 @@
1
- module.exports = 'CSS_MODULE';
@@ -1 +0,0 @@
1
- module.exports = 'HTML_MODULE';
@@ -1 +0,0 @@
1
- module.exports = 'IMAGE_MOCK';
@@ -1,24 +0,0 @@
1
- /**
2
- *
3
- */
4
- export default () => {
5
- Object.defineProperty(window, 'matchMedia', {
6
- writable: true,
7
- value: jest.fn().mockImplementation((query) => ({
8
- matches: false,
9
- media: query,
10
- onchange: null,
11
- addListener: jest.fn(), // Deprecated
12
- removeListener: jest.fn(), // Deprecated
13
- addEventListener: jest.fn(),
14
- removeEventListener: jest.fn(),
15
- dispatchEvent: jest.fn(),
16
- })),
17
- });
18
-
19
- Object.defineProperty(window, 'getComputedStyle', {
20
- value: () => ({
21
- getPropertyValue: () => {},
22
- }),
23
- });
24
- };
@@ -1 +0,0 @@
1
- export const load = () => {};
@@ -1,28 +0,0 @@
1
- export const logger = () => ({
2
- setLogLevel() {},
3
- setOptions() {},
4
- info() {},
5
- warn() {},
6
- error() {},
7
- trace() {},
8
- debug() {},
9
- audit() {},
10
- fatal() {},
11
- });
12
- export const LogLevel = {
13
- info: 'info',
14
- debug: 'debug',
15
- trace: 'trace',
16
- warn: 'warn',
17
- error: 'error',
18
- audit: 'audit',
19
- fatal: 'fatal',
20
- };
21
- export const Console = () => ({
22
- log: () => {},
23
- });
24
- export const http = () => ({
25
- log() {},
26
- });
27
- export const webvitals = () => {};
28
- export const logUnhandledErrors = () => {};
@@ -1,3 +0,0 @@
1
- export const setCustomUserData = () => {};
2
- export const setCustomVirtualPageName = () => {};
3
- export const startVirtualPageMonitoringWithAutoEnd = () => {};
@@ -1,3 +0,0 @@
1
- export const attach = jest.fn();
2
- export const detach = jest.fn();
3
- export const getConfig = jest.fn();
@@ -1,5 +0,0 @@
1
- // eslint-disable-next-line no-unused-vars
2
- import * as React from 'react';
3
-
4
- export default 'SvgrURL';
5
- export const ReactComponent = 'div';
@@ -1 +0,0 @@
1
- exports.enableHotReloading = () => {};
@@ -1,55 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { execa } from "execa";
21
- import fs from "node:fs";
22
- import path from "node:path";
23
- import { randomChars, resolveFromRoot } from "./utils.js";
24
- const args = process.argv.slice(2);
25
- const argsProjectIndex = args.findIndex((arg) => ["-p", "--project"].includes(arg));
26
- const argsProjectValue = argsProjectIndex !== -1 ? args[argsProjectIndex + 1] : void 0;
27
- const files = args.filter((file) => /\.(ts|tsx)$/.test(file));
28
- if (files.length === 0) {
29
- process.exit(0);
30
- }
31
- const remainingArgsToForward = args.slice().filter((arg) => !files.includes(arg));
32
- if (argsProjectIndex !== -1) {
33
- remainingArgsToForward.splice(argsProjectIndex, 2);
34
- }
35
- const tsconfigPath = argsProjectValue || resolveFromRoot("tsconfig.json");
36
- const tsconfigContent = fs.readFileSync(tsconfigPath).toString();
37
- let tsconfig = {};
38
- eval(`tsconfig = ${tsconfigContent}`);
39
- const tmpTsconfigPath = resolveFromRoot(`tsconfig.${randomChars()}.json`);
40
- const tmpTsconfig = __spreadProps(__spreadValues({}, tsconfig), {
41
- compilerOptions: __spreadProps(__spreadValues({}, tsconfig.compilerOptions), {
42
- skipLibCheck: true
43
- }),
44
- files,
45
- include: ["app", "lib"]
46
- });
47
- fs.writeFileSync(tmpTsconfigPath, JSON.stringify(tmpTsconfig, null, 2));
48
- let status = 0;
49
- try {
50
- execa.sync(path.resolve(process.cwd(), `./node_modules/.bin/tsc${process.platform === "win32" ? ".cmd" : ""}`), ["-p", tmpTsconfigPath, ...remainingArgsToForward], { stdio: "inherit" });
51
- } catch (ex) {
52
- status = ex.exitCode;
53
- }
54
- fs.unlinkSync(tmpTsconfigPath);
55
- process.exit(status);
@@ -1,12 +0,0 @@
1
- import { dirname, join } from "node:path";
2
- const randomChars = () => Math.random().toString(36).slice(2);
3
- const resolveFromModule = (moduleName, ...paths) => {
4
- const modulePath = dirname(require.resolve(`${moduleName}/package.json`));
5
- return join(modulePath, ...paths);
6
- };
7
- const resolveFromRoot = (...paths) => join(process.cwd(), ...paths);
8
- export {
9
- randomChars,
10
- resolveFromModule,
11
- resolveFromRoot
12
- };
@@ -1,20 +0,0 @@
1
- export function validateTypescript(): Promise<never>;
2
- export namespace tscCmd {
3
- function handler(argv: any): Promise<void>;
4
- const command: string;
5
- const describe: string;
6
- namespace builder {
7
- namespace project {
8
- export const alias: string;
9
- export const type: string;
10
- const _default: boolean;
11
- export { _default as default };
12
- }
13
- namespace docs {
14
- const type_1: string;
15
- export { type_1 as type };
16
- const _default_1: boolean;
17
- export { _default_1 as default };
18
- }
19
- }
20
- }
@@ -1 +0,0 @@
1
- export function addProdMiddlewares(app: any, options?: {}): void;
@@ -1,14 +0,0 @@
1
- export const defaults: {};
2
- export namespace interceptors {
3
- namespace request {
4
- const use: jest.Mock<any, any>;
5
- }
6
- namespace response {
7
- const use_1: jest.Mock<any, any>;
8
- export { use_1 as use };
9
- }
10
- }
11
- export const create: jest.Mock<any, any>;
12
- export const get: jest.Mock<any, any>;
13
- export const post: jest.Mock<any, any>;
14
- export const put: jest.Mock<any, any>;
@@ -1,2 +0,0 @@
1
- declare const _exports: string;
2
- export = _exports;
@@ -1,2 +0,0 @@
1
- declare const _exports: string;
2
- export = _exports;
@@ -1,2 +0,0 @@
1
- declare const _exports: string;
2
- export = _exports;
@@ -1,2 +0,0 @@
1
- declare function _default(): void;
2
- export default _default;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export function randomChars(): string;
2
- export function resolveFromModule(moduleName: any, ...paths: any[]): string;
3
- export function resolveFromRoot(...paths: any[]): string;