@cyberskill/shared 3.2.0 → 3.3.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.
- package/dist/config/commitlint/index.js +8 -9
- package/dist/config/commitlint/index.js.map +1 -1
- package/dist/config/config.type.js +8 -5
- package/dist/config/config.type.js.map +1 -1
- package/dist/config/config.util.js +33 -42
- package/dist/config/config.util.js.map +1 -1
- package/dist/config/env/env.constant.js +6 -5
- package/dist/config/env/env.constant.js.map +1 -1
- package/dist/config/env/env.util.js +26 -27
- package/dist/config/env/env.util.js.map +1 -1
- package/dist/config/env/index.js +2 -7
- package/dist/config/eslint/index.js +23 -19
- package/dist/config/eslint/index.js.map +1 -1
- package/dist/config/graphql-codegen/graphql-codegen.util.js +30 -38
- package/dist/config/graphql-codegen/graphql-codegen.util.js.map +1 -1
- package/dist/config/graphql-codegen/index.js +2 -5
- package/dist/config/index.js +3 -7
- package/dist/config/lint-staged/index.js +8 -7
- package/dist/config/lint-staged/index.js.map +1 -1
- package/dist/config/storybook/index.js +2 -6
- package/dist/config/storybook/storybook.main.js +19 -18
- package/dist/config/storybook/storybook.main.js.map +1 -1
- package/dist/config/storybook/storybook.preview.js +31 -37
- package/dist/config/storybook/storybook.preview.js.map +1 -1
- package/dist/config/vitest/index.js +3 -7
- package/dist/config/vitest/vitest.e2e.js +14 -17
- package/dist/config/vitest/vitest.e2e.js.map +1 -1
- package/dist/config/vitest/vitest.unit.js +31 -32
- package/dist/config/vitest/vitest.unit.js.map +1 -1
- package/dist/constant/common.js +6 -5
- package/dist/constant/common.js.map +1 -1
- package/dist/constant/index.js +3 -7
- package/dist/constant/response-status.d.ts +186 -186
- package/dist/constant/response-status.js +254 -253
- package/dist/constant/response-status.js.map +1 -1
- package/dist/node/apollo-server/apollo-server.util.js +27 -29
- package/dist/node/apollo-server/apollo-server.util.js.map +1 -1
- package/dist/node/apollo-server/index.js +2 -7
- package/dist/node/cli/index.js +112 -113
- package/dist/node/cli/index.js.map +1 -1
- package/dist/node/command/command.type.js +8 -5
- package/dist/node/command/command.type.js.map +1 -1
- package/dist/node/command/command.util.js +136 -149
- package/dist/node/command/command.util.js.map +1 -1
- package/dist/node/command/index.js +3 -12
- package/dist/node/express/express.type.d.ts +11 -0
- package/dist/node/express/express.type.js +2 -0
- package/dist/node/express/express.util.js +74 -65
- package/dist/node/express/express.util.js.map +1 -1
- package/dist/node/express/index.js +3 -14
- package/dist/node/fs/fs.util.js +27 -51
- package/dist/node/fs/fs.util.js.map +1 -1
- package/dist/node/fs/index.js +2 -19
- package/dist/node/log/index.js +2 -8
- package/dist/node/log/log.type.js +8 -5
- package/dist/node/log/log.type.js.map +1 -1
- package/dist/node/log/log.util.js +51 -68
- package/dist/node/log/log.util.js.map +1 -1
- package/dist/node/mongo/index.js +8 -26
- package/dist/node/mongo/mongo.constant.js +6 -6
- package/dist/node/mongo/mongo.constant.js.map +1 -1
- package/dist/node/mongo/mongo.controller.mongoose.d.ts +6 -1
- package/dist/node/mongo/mongo.controller.mongoose.js +333 -467
- package/dist/node/mongo/mongo.controller.mongoose.js.map +1 -1
- package/dist/node/mongo/mongo.controller.native.js +153 -212
- package/dist/node/mongo/mongo.controller.native.js.map +1 -1
- package/dist/node/mongo/mongo.dynamic-populate.js +164 -192
- package/dist/node/mongo/mongo.dynamic-populate.js.map +1 -1
- package/dist/node/mongo/mongo.populate.js +229 -262
- package/dist/node/mongo/mongo.populate.js.map +1 -1
- package/dist/node/mongo/mongo.type.js +8 -17
- package/dist/node/mongo/mongo.type.js.map +1 -1
- package/dist/node/mongo/mongo.util.js +134 -293
- package/dist/node/mongo/mongo.util.js.map +1 -1
- package/dist/node/package/index.js +3 -11
- package/dist/node/package/package.type.js +8 -5
- package/dist/node/package/package.type.js.map +1 -1
- package/dist/node/package/package.util.js +216 -225
- package/dist/node/package/package.util.js.map +1 -1
- package/dist/node/path/index.js +3 -58
- package/dist/node/path/path.constant.js +211 -298
- package/dist/node/path/path.constant.js.map +1 -1
- package/dist/node/path/path.util.js +13 -16
- package/dist/node/path/path.util.js.map +1 -1
- package/dist/node/storage/index.js +3 -10
- package/dist/node/storage/storage.constant.js +6 -8
- package/dist/node/storage/storage.constant.js.map +1 -1
- package/dist/node/storage/storage.util.js +127 -178
- package/dist/node/storage/storage.util.js.map +1 -1
- package/dist/node/upload/index.js +4 -16
- package/dist/node/upload/upload.constant.js +58 -32
- package/dist/node/upload/upload.constant.js.map +1 -1
- package/dist/node/upload/upload.type.js +8 -5
- package/dist/node/upload/upload.type.js.map +1 -1
- package/dist/node/upload/upload.util.js +125 -137
- package/dist/node/upload/upload.util.js.map +1 -1
- package/dist/node/ws/index.js +2 -6
- package/dist/node/ws/ws.type.d.ts +7 -8
- package/dist/node/ws/ws.util.js +46 -44
- package/dist/node/ws/ws.util.js.map +1 -1
- package/dist/node_modules/.pnpm/vitest@4.1.0_@types_node@25.5.0_jsdom@29.0.0_@noble_hashes@1.8.0__vite@8.0.0_@types_nod_53aa4254f295b3c40bb8f17b6ab226b5/node_modules/vitest/dist/config.js +8 -0
- package/dist/node_modules/.pnpm/vitest@4.1.0_@types_node@25.5.0_jsdom@29.0.0_@noble_hashes@1.8.0__vite@8.0.0_@types_nod_53aa4254f295b3c40bb8f17b6ab226b5/node_modules/vitest/dist/config.js.map +1 -0
- package/dist/react/apollo-client/apollo-client.component.js +16 -18
- package/dist/react/apollo-client/apollo-client.component.js.map +1 -1
- package/dist/react/apollo-client/apollo-client.constant.js +6 -5
- package/dist/react/apollo-client/apollo-client.constant.js.map +1 -1
- package/dist/react/apollo-client/apollo-client.context.js +10 -13
- package/dist/react/apollo-client/apollo-client.context.js.map +1 -1
- package/dist/react/apollo-client/apollo-client.module.scss.js +8 -7
- package/dist/react/apollo-client/apollo-client.module.scss.js.map +1 -1
- package/dist/react/apollo-client/apollo-client.util.js +57 -75
- package/dist/react/apollo-client/apollo-client.util.js.map +1 -1
- package/dist/react/apollo-client/index.js +7 -30
- package/dist/react/apollo-client/links/index.js +2 -5
- package/dist/react/apollo-client/links/upload.js +63 -107
- package/dist/react/apollo-client/links/upload.js.map +1 -1
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.component.js +14 -16
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.component.js.map +1 -1
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.rsc.js +8 -7
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.rsc.js.map +1 -1
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.js +14 -14
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.js.map +1 -1
- package/dist/react/apollo-client-nextjs/index.js +3 -7
- package/dist/react/apollo-error/apollo-error.component.js +57 -69
- package/dist/react/apollo-error/apollo-error.component.js.map +1 -1
- package/dist/react/apollo-error/apollo-error.context.js +7 -6
- package/dist/react/apollo-error/apollo-error.context.js.map +1 -1
- package/dist/react/apollo-error/apollo-error.hook.js +10 -10
- package/dist/react/apollo-error/apollo-error.hook.js.map +1 -1
- package/dist/react/apollo-error/apollo-error.module.scss.js +15 -11
- package/dist/react/apollo-error/apollo-error.module.scss.js.map +1 -1
- package/dist/react/apollo-error/apollo-error.provider.js +31 -25
- package/dist/react/apollo-error/apollo-error.provider.js.map +1 -1
- package/dist/react/apollo-error/apollo-error.util.js +14 -16
- package/dist/react/apollo-error/apollo-error.util.js.map +1 -1
- package/dist/react/apollo-error/index.js +5 -15
- package/dist/react/i18next/i18next.hook.js +7 -6
- package/dist/react/i18next/i18next.hook.js.map +1 -1
- package/dist/react/i18next/i18next.util.js +9 -8
- package/dist/react/i18next/i18next.util.js.map +1 -1
- package/dist/react/i18next/index.js +3 -7
- package/dist/react/loading/index.js +3 -9
- package/dist/react/loading/loading.component.js +47 -48
- package/dist/react/loading/loading.component.js.map +1 -1
- package/dist/react/loading/loading.context.js +7 -6
- package/dist/react/loading/loading.context.js.map +1 -1
- package/dist/react/loading/loading.hook.js +11 -11
- package/dist/react/loading/loading.hook.js.map +1 -1
- package/dist/react/loading/loading.module.scss.js +18 -15
- package/dist/react/loading/loading.module.scss.js.map +1 -1
- package/dist/react/loading/loading.provider.js +26 -18
- package/dist/react/loading/loading.provider.js.map +1 -1
- package/dist/react/log/index.js +2 -6
- package/dist/react/log/log.util.d.ts +8 -0
- package/dist/react/log/log.util.js +33 -29
- package/dist/react/log/log.util.js.map +1 -1
- package/dist/react/next-intl/index.js +6 -14
- package/dist/react/next-intl/next-intl.constant.js +16 -15
- package/dist/react/next-intl/next-intl.constant.js.map +1 -1
- package/dist/react/next-intl/next-intl.context.js +7 -6
- package/dist/react/next-intl/next-intl.context.js.map +1 -1
- package/dist/react/next-intl/next-intl.hoc.js +20 -23
- package/dist/react/next-intl/next-intl.hoc.js.map +1 -1
- package/dist/react/next-intl/next-intl.hook.js +13 -14
- package/dist/react/next-intl/next-intl.hook.js.map +1 -1
- package/dist/react/next-intl/next-intl.provider.js +28 -23
- package/dist/react/next-intl/next-intl.provider.js.map +1 -1
- package/dist/react/storage/index.js +3 -7
- package/dist/react/storage/storage.hook.js +61 -58
- package/dist/react/storage/storage.hook.js.map +1 -1
- package/dist/react/storage/storage.util.js +36 -68
- package/dist/react/storage/storage.util.js.map +1 -1
- package/dist/react/toast/index.js +2 -6
- package/dist/react/userback/index.js +2 -5
- package/dist/react/userback/userback.component.js +27 -27
- package/dist/react/userback/userback.component.js.map +1 -1
- package/dist/style.css +2 -1
- package/dist/typescript/common.type.js +8 -5
- package/dist/typescript/common.type.js.map +1 -1
- package/dist/typescript/index.js +2 -5
- package/dist/util/common/common.util.js +119 -48
- package/dist/util/common/common.util.js.map +1 -1
- package/dist/util/common/index.js +2 -9
- package/dist/util/index.js +6 -27
- package/dist/util/object/index.d.ts +3 -0
- package/dist/util/object/index.js +2 -10
- package/dist/util/object/object.util.js +94 -128
- package/dist/util/object/object.util.js.map +1 -1
- package/dist/util/serializer/index.js +2 -5
- package/dist/util/serializer/serializer.util.js +73 -78
- package/dist/util/serializer/serializer.util.js.map +1 -1
- package/dist/util/string/index.d.ts +3 -0
- package/dist/util/string/index.js +2 -10
- package/dist/util/string/string.util.js +59 -71
- package/dist/util/string/string.util.js.map +1 -1
- package/dist/util/validate/index.d.ts +3 -0
- package/dist/util/validate/index.js +2 -5
- package/dist/util/validate/validate.util.js +13 -39
- package/dist/util/validate/validate.util.js.map +1 -1
- package/package.json +29 -27
- package/dist/config/env/index.js.map +0 -1
- package/dist/config/graphql-codegen/index.js.map +0 -1
- package/dist/config/index.js.map +0 -1
- package/dist/config/storybook/index.js.map +0 -1
- package/dist/config/vitest/index.js.map +0 -1
- package/dist/constant/index.js.map +0 -1
- package/dist/node/apollo-server/index.js.map +0 -1
- package/dist/node/command/index.js.map +0 -1
- package/dist/node/express/index.js.map +0 -1
- package/dist/node/fs/index.js.map +0 -1
- package/dist/node/log/index.js.map +0 -1
- package/dist/node/mongo/index.js.map +0 -1
- package/dist/node/package/index.js.map +0 -1
- package/dist/node/path/index.js.map +0 -1
- package/dist/node/storage/index.js.map +0 -1
- package/dist/node/upload/index.js.map +0 -1
- package/dist/node/ws/index.js.map +0 -1
- package/dist/node_modules/.pnpm/vitest@4.0.18_@types_node@25.3.5_jiti@2.6.1_jsdom@28.1.0_@noble_hashes@1.8.0__sass@1.97.3_tsx@4.21.0_yaml@2.8.2/node_modules/vitest/dist/config.js +0 -7
- package/dist/node_modules/.pnpm/vitest@4.0.18_@types_node@25.3.5_jiti@2.6.1_jsdom@28.1.0_@noble_hashes@1.8.0__sass@1.97.3_tsx@4.21.0_yaml@2.8.2/node_modules/vitest/dist/config.js.map +0 -1
- package/dist/react/apollo-client/index.js.map +0 -1
- package/dist/react/apollo-client/links/index.js.map +0 -1
- package/dist/react/apollo-client-nextjs/index.js.map +0 -1
- package/dist/react/apollo-error/index.js.map +0 -1
- package/dist/react/i18next/index.js.map +0 -1
- package/dist/react/loading/index.js.map +0 -1
- package/dist/react/log/index.js.map +0 -1
- package/dist/react/next-intl/index.js.map +0 -1
- package/dist/react/storage/index.js.map +0 -1
- package/dist/react/toast/index.js.map +0 -1
- package/dist/react/userback/index.js.map +0 -1
- package/dist/typescript/index.js.map +0 -1
- package/dist/util/common/index.js.map +0 -1
- package/dist/util/index.js.map +0 -1
- package/dist/util/object/index.js.map +0 -1
- package/dist/util/serializer/index.js.map +0 -1
- package/dist/util/string/index.js.map +0 -1
- package/dist/util/validate/index.js.map +0 -1
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { vitestE2E as
|
|
2
|
-
import { vitestUnit as
|
|
3
|
-
export {
|
|
4
|
-
o as vitestE2E,
|
|
5
|
-
i as vitestUnit
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { vitestE2E as e } from "./vitest.e2e.js";
|
|
2
|
+
import { vitestUnit as t } from "./vitest.unit.js";
|
|
3
|
+
export { e as vitestE2E, t as vitestUnit };
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineConfig as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
return i(r(t, e));
|
|
1
|
+
import { deepMerge as e } from "../../util/object/object.util.js";
|
|
2
|
+
import { defineConfig as t } from "../../node_modules/.pnpm/vitest@4.1.0_@types_node@25.5.0_jsdom@29.0.0_@noble_hashes@1.8.0__vite@8.0.0_@types_nod_53aa4254f295b3c40bb8f17b6ab226b5/node_modules/vitest/dist/config.js";
|
|
3
|
+
import n from "@vitejs/plugin-react-swc";
|
|
4
|
+
//#region src/config/vitest/vitest.e2e.ts
|
|
5
|
+
function r(r) {
|
|
6
|
+
return t(e({
|
|
7
|
+
plugins: [n()],
|
|
8
|
+
test: { include: ["**/*.test.e2e.?(c|m)[jt]s?(x)"] }
|
|
9
|
+
}, r));
|
|
12
10
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=vitest.e2e.js.map
|
|
11
|
+
var i = r({});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { i as default, r as vitestE2E };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=vitest.e2e.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vitest.e2e.js","sources":["../../../src/config/vitest/vitest.e2e.ts"],"sourcesContent":["import type { UserConfig } from 'vite';\n\nimport react from '@vitejs/plugin-react-swc';\nimport { defineConfig } from 'vitest/config';\n\nimport { deepMerge } from '../../util/object/index.js';\n\n/**\n * Creates a Vitest configuration for end-to-end testing with browser automation.\n * This function generates a Vitest configuration specifically designed for E2E testing\n * using Playwright with multiple browser instances. It includes React support and\n * browser automation capabilities for comprehensive end-to-end testing.\n *\n * The configuration includes:\n * - React SWC plugin for fast React compilation\n * - Browser automation with Playwright provider\n * - Multiple browser instances (Chromium, Firefox, WebKit)\n * - E2E test file pattern matching\n * - Configurable options merging\n *\n * @param options - Additional Vite configuration options to merge with the E2E config.\n * @returns A Vitest configuration object optimized for end-to-end testing with browser automation.\n */\nexport function vitestE2E(options: UserConfig) {\n const config = {\n plugins: [react()],\n test: {\n include: ['**/*.test.e2e.?(c|m)[jt]s?(x)'],\n },\n };\n\n return defineConfig(deepMerge(config as any, options as any) as UserConfig);\n}\n\nexport default vitestE2E({});\n"],"
|
|
1
|
+
{"version":3,"file":"vitest.e2e.js","names":[],"sources":["../../../src/config/vitest/vitest.e2e.ts"],"sourcesContent":["import type { UserConfig } from 'vite';\n\nimport react from '@vitejs/plugin-react-swc';\nimport { defineConfig } from 'vitest/config';\n\nimport { deepMerge } from '../../util/object/index.js';\n\n/**\n * Creates a Vitest configuration for end-to-end testing with browser automation.\n * This function generates a Vitest configuration specifically designed for E2E testing\n * using Playwright with multiple browser instances. It includes React support and\n * browser automation capabilities for comprehensive end-to-end testing.\n *\n * The configuration includes:\n * - React SWC plugin for fast React compilation\n * - Browser automation with Playwright provider\n * - Multiple browser instances (Chromium, Firefox, WebKit)\n * - E2E test file pattern matching\n * - Configurable options merging\n *\n * @param options - Additional Vite configuration options to merge with the E2E config.\n * @returns A Vitest configuration object optimized for end-to-end testing with browser automation.\n */\nexport function vitestE2E(options: UserConfig) {\n const config = {\n plugins: [react()],\n test: {\n include: ['**/*.test.e2e.?(c|m)[jt]s?(x)'],\n },\n };\n\n return defineConfig(deepMerge(config as any, options as any) as UserConfig);\n}\n\nexport default vitestE2E({});\n"],"mappings":";;;;AAuBA,SAAgB,EAAU,GAAqB;AAQ3C,QAAO,EAAa,EAPL;EACX,SAAS,CAAC,GAAO,CAAC;EAClB,MAAM,EACF,SAAS,CAAC,gCAAgC,EAC7C;EACJ,EAE4C,EAAe,CAAe;;AAG/E,IAAA,IAAe,EAAU,EAAE,CAAC"}
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineConfig as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { deepMerge as e } from "../../util/object/object.util.js";
|
|
2
|
+
import { defineConfig as t } from "../../node_modules/.pnpm/vitest@4.1.0_@types_node@25.5.0_jsdom@29.0.0_@noble_hashes@1.8.0__vite@8.0.0_@types_nod_53aa4254f295b3c40bb8f17b6ab226b5/node_modules/vitest/dist/config.js";
|
|
3
|
+
import n from "@vitejs/plugin-react-swc";
|
|
4
|
+
//#region src/config/vitest/vitest.unit.ts
|
|
5
|
+
function r(r) {
|
|
6
|
+
return t(e({
|
|
7
|
+
plugins: [n()],
|
|
8
|
+
test: {
|
|
9
|
+
globals: !0,
|
|
10
|
+
environment: "jsdom",
|
|
11
|
+
pool: "vmThreads",
|
|
12
|
+
include: ["**/*.test.unit.?(c|m)[jt]s?(x)"],
|
|
13
|
+
setupFiles: ["./vitest.unit.setup.ts"],
|
|
14
|
+
coverage: {
|
|
15
|
+
provider: "istanbul",
|
|
16
|
+
reporter: ["text", "lcov"],
|
|
17
|
+
reportsDirectory: "./coverage",
|
|
18
|
+
thresholds: {
|
|
19
|
+
statements: 80,
|
|
20
|
+
branches: 80,
|
|
21
|
+
functions: 80,
|
|
22
|
+
lines: 80
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}, r));
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
//# sourceMappingURL=vitest.unit.js.map
|
|
28
|
+
var i = r({});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { i as default, r as vitestUnit };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=vitest.unit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vitest.unit.js","sources":["../../../src/config/vitest/vitest.unit.ts"],"sourcesContent":["import type { UserConfig } from 'vite';\n\nimport react from '@vitejs/plugin-react-swc';\nimport { defineConfig } from 'vitest/config';\n\nimport { deepMerge } from '../../util/object/index.js';\n\n/**\n * Creates a Vitest configuration for unit testing with React support.\n * This function generates a Vitest configuration specifically designed for unit testing\n * React components and JavaScript/TypeScript modules. It includes JSDOM environment\n * for DOM simulation and comprehensive testing setup.\n *\n * The configuration includes:\n * - React SWC plugin for fast React compilation\n * - JSDOM environment for DOM simulation\n * - Global test functions availability\n * - VM threads pool for parallel test execution\n * - Unit test file pattern matching\n * - Setup files for testing library configuration\n * - Configurable options merging\n *\n * @param options - Additional Vite configuration options to merge with the unit test config.\n * @returns A Vitest configuration object optimized for unit testing with React and DOM support.\n */\nexport function vitestUnit(options: UserConfig) {\n const config = {\n plugins: [react()],\n test: {\n globals: true,\n environment: 'jsdom',\n pool: 'vmThreads',\n include: ['**/*.test.unit.?(c|m)[jt]s?(x)'],\n setupFiles: ['./vitest.unit.setup.ts'],\n coverage: {\n provider: 'istanbul',\n reporter: ['text', 'lcov'],\n reportsDirectory: './coverage',\n thresholds: {\n statements: 80,\n branches: 80,\n functions: 80,\n lines: 80,\n },\n },\n },\n };\n\n return defineConfig(deepMerge(config as any, options as any) as UserConfig);\n}\n\nexport default vitestUnit({});\n"],"
|
|
1
|
+
{"version":3,"file":"vitest.unit.js","names":[],"sources":["../../../src/config/vitest/vitest.unit.ts"],"sourcesContent":["import type { UserConfig } from 'vite';\n\nimport react from '@vitejs/plugin-react-swc';\nimport { defineConfig } from 'vitest/config';\n\nimport { deepMerge } from '../../util/object/index.js';\n\n/**\n * Creates a Vitest configuration for unit testing with React support.\n * This function generates a Vitest configuration specifically designed for unit testing\n * React components and JavaScript/TypeScript modules. It includes JSDOM environment\n * for DOM simulation and comprehensive testing setup.\n *\n * The configuration includes:\n * - React SWC plugin for fast React compilation\n * - JSDOM environment for DOM simulation\n * - Global test functions availability\n * - VM threads pool for parallel test execution\n * - Unit test file pattern matching\n * - Setup files for testing library configuration\n * - Configurable options merging\n *\n * @param options - Additional Vite configuration options to merge with the unit test config.\n * @returns A Vitest configuration object optimized for unit testing with React and DOM support.\n */\nexport function vitestUnit(options: UserConfig) {\n const config = {\n plugins: [react()],\n test: {\n globals: true,\n environment: 'jsdom',\n pool: 'vmThreads',\n include: ['**/*.test.unit.?(c|m)[jt]s?(x)'],\n setupFiles: ['./vitest.unit.setup.ts'],\n coverage: {\n provider: 'istanbul',\n reporter: ['text', 'lcov'],\n reportsDirectory: './coverage',\n thresholds: {\n statements: 80,\n branches: 80,\n functions: 80,\n lines: 80,\n },\n },\n },\n };\n\n return defineConfig(deepMerge(config as any, options as any) as UserConfig);\n}\n\nexport default vitestUnit({});\n"],"mappings":";;;;AAyBA,SAAgB,EAAW,GAAqB;AAuB5C,QAAO,EAAa,EAtBL;EACX,SAAS,CAAC,GAAO,CAAC;EAClB,MAAM;GACF,SAAS;GACT,aAAa;GACb,MAAM;GACN,SAAS,CAAC,iCAAiC;GAC3C,YAAY,CAAC,yBAAyB;GACtC,UAAU;IACN,UAAU;IACV,UAAU,CAAC,QAAQ,OAAO;IAC1B,kBAAkB;IAClB,YAAY;KACR,YAAY;KACZ,UAAU;KACV,WAAW;KACX,OAAO;KACV;IACJ;GACJ;EACJ,EAE4C,EAAe,CAAe;;AAG/E,IAAA,IAAe,EAAW,EAAE,CAAC"}
|
package/dist/constant/common.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
1
|
+
//#region src/constant/common.ts
|
|
2
|
+
var e = typeof window < "u";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as IS_BROWSER };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sources":["../../src/constant/common.ts"],"sourcesContent":["/**\n * Indicates if the current environment is a browser (as opposed to Node.js).\n * This constant is true if the global `window` object is defined, false otherwise.\n */\nexport const IS_BROWSER = typeof window !== 'undefined';\n"],"
|
|
1
|
+
{"version":3,"file":"common.js","names":[],"sources":["../../src/constant/common.ts"],"sourcesContent":["/**\n * Indicates if the current environment is a browser (as opposed to Node.js).\n * This constant is true if the global `window` object is defined, false otherwise.\n */\nexport const IS_BROWSER = typeof window !== 'undefined';\n"],"mappings":";AAIA,IAAa,IAAa,OAAO,SAAW"}
|
package/dist/constant/index.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { IS_BROWSER as
|
|
2
|
-
import { RESPONSE_STATUS as
|
|
3
|
-
export {
|
|
4
|
-
r as IS_BROWSER,
|
|
5
|
-
R as RESPONSE_STATUS
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { IS_BROWSER as e } from "./common.js";
|
|
2
|
+
import { RESPONSE_STATUS as t } from "./response-status.js";
|
|
3
|
+
export { e as IS_BROWSER, t as RESPONSE_STATUS };
|
|
@@ -1,250 +1,250 @@
|
|
|
1
1
|
export declare const RESPONSE_STATUS: {
|
|
2
|
-
GRAPHQL_PARSE_FAILED: {
|
|
3
|
-
CODE:
|
|
4
|
-
MESSAGE: string;
|
|
2
|
+
readonly GRAPHQL_PARSE_FAILED: {
|
|
3
|
+
readonly CODE: "GRAPHQL_PARSE_FAILED";
|
|
4
|
+
readonly MESSAGE: "The GraphQL operation string contains a syntax error.";
|
|
5
5
|
};
|
|
6
|
-
GRAPHQL_VALIDATION_FAILED: {
|
|
7
|
-
CODE:
|
|
8
|
-
MESSAGE:
|
|
6
|
+
readonly GRAPHQL_VALIDATION_FAILED: {
|
|
7
|
+
readonly CODE: "GRAPHQL_VALIDATION_FAILED";
|
|
8
|
+
readonly MESSAGE: "The GraphQL operation is not valid against the server's schema.";
|
|
9
9
|
};
|
|
10
|
-
BAD_USER_INPUT: {
|
|
11
|
-
CODE:
|
|
12
|
-
MESSAGE:
|
|
10
|
+
readonly BAD_USER_INPUT: {
|
|
11
|
+
readonly CODE: "BAD_USER_INPUT";
|
|
12
|
+
readonly MESSAGE: "The GraphQL operation includes an invalid value for a field argument.";
|
|
13
13
|
};
|
|
14
|
-
PERSISTED_QUERY_NOT_FOUND: {
|
|
15
|
-
CODE:
|
|
16
|
-
MESSAGE: string;
|
|
14
|
+
readonly PERSISTED_QUERY_NOT_FOUND: {
|
|
15
|
+
readonly CODE: "PERSISTED_QUERY_NOT_FOUND";
|
|
16
|
+
readonly MESSAGE: "A client sent the hash of a query string to execute via automatic persisted queries, but the query was not in the APQ cache.";
|
|
17
17
|
};
|
|
18
|
-
PERSISTED_QUERY_NOT_SUPPORTED: {
|
|
19
|
-
CODE:
|
|
20
|
-
MESSAGE: string;
|
|
18
|
+
readonly PERSISTED_QUERY_NOT_SUPPORTED: {
|
|
19
|
+
readonly CODE: "PERSISTED_QUERY_NOT_SUPPORTED";
|
|
20
|
+
readonly MESSAGE: "A client sent the hash of a query string to execute via automatic persisted queries, but the server has disabled APQ.";
|
|
21
21
|
};
|
|
22
|
-
OPERATION_RESOLUTION_FAILURE: {
|
|
23
|
-
CODE:
|
|
24
|
-
MESSAGE:
|
|
22
|
+
readonly OPERATION_RESOLUTION_FAILURE: {
|
|
23
|
+
readonly CODE: "OPERATION_RESOLUTION_FAILURE";
|
|
24
|
+
readonly MESSAGE: "The request was parsed successfully and is valid against the server's schema, but the server couldn't resolve which operation to run. This occurs when a request containing multiple named operations doesn't specify which operation to run (i.e.,operationName), or if the named operation isn't included in the request.";
|
|
25
25
|
};
|
|
26
|
-
CONTINUE: {
|
|
27
|
-
CODE:
|
|
28
|
-
MESSAGE:
|
|
26
|
+
readonly CONTINUE: {
|
|
27
|
+
readonly CODE: 100;
|
|
28
|
+
readonly MESSAGE: "Continue";
|
|
29
29
|
};
|
|
30
|
-
SWITCHING_PROTOCOLS: {
|
|
31
|
-
CODE:
|
|
32
|
-
MESSAGE:
|
|
30
|
+
readonly SWITCHING_PROTOCOLS: {
|
|
31
|
+
readonly CODE: 101;
|
|
32
|
+
readonly MESSAGE: "Switching Protocols";
|
|
33
33
|
};
|
|
34
|
-
PROCESSING: {
|
|
35
|
-
CODE:
|
|
36
|
-
MESSAGE:
|
|
34
|
+
readonly PROCESSING: {
|
|
35
|
+
readonly CODE: 102;
|
|
36
|
+
readonly MESSAGE: "Processing";
|
|
37
37
|
};
|
|
38
|
-
OK: {
|
|
39
|
-
CODE:
|
|
40
|
-
MESSAGE:
|
|
38
|
+
readonly OK: {
|
|
39
|
+
readonly CODE: 200;
|
|
40
|
+
readonly MESSAGE: "OK";
|
|
41
41
|
};
|
|
42
|
-
CREATED: {
|
|
43
|
-
CODE:
|
|
44
|
-
MESSAGE:
|
|
42
|
+
readonly CREATED: {
|
|
43
|
+
readonly CODE: 201;
|
|
44
|
+
readonly MESSAGE: "Created";
|
|
45
45
|
};
|
|
46
|
-
ACCEPTED: {
|
|
47
|
-
CODE:
|
|
48
|
-
MESSAGE:
|
|
46
|
+
readonly ACCEPTED: {
|
|
47
|
+
readonly CODE: 202;
|
|
48
|
+
readonly MESSAGE: "Accepted";
|
|
49
49
|
};
|
|
50
|
-
NON_AUTHORITATIVE_INFORMATION: {
|
|
51
|
-
CODE:
|
|
52
|
-
MESSAGE:
|
|
50
|
+
readonly NON_AUTHORITATIVE_INFORMATION: {
|
|
51
|
+
readonly CODE: 203;
|
|
52
|
+
readonly MESSAGE: "Non Authoritative Information";
|
|
53
53
|
};
|
|
54
|
-
NO_CONTENT: {
|
|
55
|
-
CODE:
|
|
56
|
-
MESSAGE:
|
|
54
|
+
readonly NO_CONTENT: {
|
|
55
|
+
readonly CODE: 204;
|
|
56
|
+
readonly MESSAGE: "No Content";
|
|
57
57
|
};
|
|
58
|
-
RESET_CONTENT: {
|
|
59
|
-
CODE:
|
|
60
|
-
MESSAGE:
|
|
58
|
+
readonly RESET_CONTENT: {
|
|
59
|
+
readonly CODE: 205;
|
|
60
|
+
readonly MESSAGE: "Reset Content";
|
|
61
61
|
};
|
|
62
|
-
PARTIAL_CONTENT: {
|
|
63
|
-
CODE:
|
|
64
|
-
MESSAGE:
|
|
62
|
+
readonly PARTIAL_CONTENT: {
|
|
63
|
+
readonly CODE: 206;
|
|
64
|
+
readonly MESSAGE: "Partial Content";
|
|
65
65
|
};
|
|
66
|
-
MULTI_STATUS: {
|
|
67
|
-
CODE:
|
|
68
|
-
MESSAGE:
|
|
66
|
+
readonly MULTI_STATUS: {
|
|
67
|
+
readonly CODE: 207;
|
|
68
|
+
readonly MESSAGE: "Multi-Status";
|
|
69
69
|
};
|
|
70
|
-
MULTIPLE_CHOICES: {
|
|
71
|
-
CODE:
|
|
72
|
-
MESSAGE:
|
|
70
|
+
readonly MULTIPLE_CHOICES: {
|
|
71
|
+
readonly CODE: 300;
|
|
72
|
+
readonly MESSAGE: "Multiple Choices";
|
|
73
73
|
};
|
|
74
|
-
MOVED_PERMANENTLY: {
|
|
75
|
-
CODE:
|
|
76
|
-
MESSAGE:
|
|
74
|
+
readonly MOVED_PERMANENTLY: {
|
|
75
|
+
readonly CODE: 301;
|
|
76
|
+
readonly MESSAGE: "Moved Permanently";
|
|
77
77
|
};
|
|
78
|
-
MOVED_TEMPORARILY: {
|
|
79
|
-
CODE:
|
|
80
|
-
MESSAGE:
|
|
78
|
+
readonly MOVED_TEMPORARILY: {
|
|
79
|
+
readonly CODE: 302;
|
|
80
|
+
readonly MESSAGE: "Moved Temporarily";
|
|
81
81
|
};
|
|
82
|
-
SEE_OTHER: {
|
|
83
|
-
CODE:
|
|
84
|
-
MESSAGE:
|
|
82
|
+
readonly SEE_OTHER: {
|
|
83
|
+
readonly CODE: 303;
|
|
84
|
+
readonly MESSAGE: "See Other";
|
|
85
85
|
};
|
|
86
|
-
NOT_MODIFIED: {
|
|
87
|
-
CODE:
|
|
88
|
-
MESSAGE:
|
|
86
|
+
readonly NOT_MODIFIED: {
|
|
87
|
+
readonly CODE: 304;
|
|
88
|
+
readonly MESSAGE: "Not Modified";
|
|
89
89
|
};
|
|
90
|
-
USE_PROXY: {
|
|
91
|
-
CODE:
|
|
92
|
-
MESSAGE:
|
|
90
|
+
readonly USE_PROXY: {
|
|
91
|
+
readonly CODE: 305;
|
|
92
|
+
readonly MESSAGE: "Use Proxy";
|
|
93
93
|
};
|
|
94
|
-
TEMPORARY_REDIRECT: {
|
|
95
|
-
CODE:
|
|
96
|
-
MESSAGE:
|
|
94
|
+
readonly TEMPORARY_REDIRECT: {
|
|
95
|
+
readonly CODE: 307;
|
|
96
|
+
readonly MESSAGE: "Temporary Redirect";
|
|
97
97
|
};
|
|
98
|
-
PERMANENT_REDIRECT: {
|
|
99
|
-
CODE:
|
|
100
|
-
MESSAGE:
|
|
98
|
+
readonly PERMANENT_REDIRECT: {
|
|
99
|
+
readonly CODE: 308;
|
|
100
|
+
readonly MESSAGE: "Permanent Redirect";
|
|
101
101
|
};
|
|
102
|
-
BAD_REQUEST: {
|
|
103
|
-
CODE:
|
|
104
|
-
MESSAGE:
|
|
102
|
+
readonly BAD_REQUEST: {
|
|
103
|
+
readonly CODE: 400;
|
|
104
|
+
readonly MESSAGE: "Bad Request";
|
|
105
105
|
};
|
|
106
|
-
UNAUTHORIZED: {
|
|
107
|
-
CODE:
|
|
108
|
-
MESSAGE:
|
|
106
|
+
readonly UNAUTHORIZED: {
|
|
107
|
+
readonly CODE: 401;
|
|
108
|
+
readonly MESSAGE: "Unauthorized";
|
|
109
109
|
};
|
|
110
|
-
PAYMENT_REQUIRED: {
|
|
111
|
-
CODE:
|
|
112
|
-
MESSAGE:
|
|
110
|
+
readonly PAYMENT_REQUIRED: {
|
|
111
|
+
readonly CODE: 402;
|
|
112
|
+
readonly MESSAGE: "Payment Required";
|
|
113
113
|
};
|
|
114
|
-
FORBIDDEN: {
|
|
115
|
-
CODE:
|
|
116
|
-
MESSAGE:
|
|
114
|
+
readonly FORBIDDEN: {
|
|
115
|
+
readonly CODE: 403;
|
|
116
|
+
readonly MESSAGE: "Forbidden";
|
|
117
117
|
};
|
|
118
|
-
NOT_FOUND: {
|
|
119
|
-
CODE:
|
|
120
|
-
MESSAGE:
|
|
118
|
+
readonly NOT_FOUND: {
|
|
119
|
+
readonly CODE: 404;
|
|
120
|
+
readonly MESSAGE: "Not Found";
|
|
121
121
|
};
|
|
122
|
-
METHOD_NOT_ALLOWED: {
|
|
123
|
-
CODE:
|
|
124
|
-
MESSAGE:
|
|
122
|
+
readonly METHOD_NOT_ALLOWED: {
|
|
123
|
+
readonly CODE: 405;
|
|
124
|
+
readonly MESSAGE: "Method Not Allowed";
|
|
125
125
|
};
|
|
126
|
-
NOT_ACCEPTABLE: {
|
|
127
|
-
CODE:
|
|
128
|
-
MESSAGE:
|
|
126
|
+
readonly NOT_ACCEPTABLE: {
|
|
127
|
+
readonly CODE: 406;
|
|
128
|
+
readonly MESSAGE: "Not Acceptable";
|
|
129
129
|
};
|
|
130
|
-
PROXY_AUTHENTICATION_REQUIRED: {
|
|
131
|
-
CODE:
|
|
132
|
-
MESSAGE:
|
|
130
|
+
readonly PROXY_AUTHENTICATION_REQUIRED: {
|
|
131
|
+
readonly CODE: 407;
|
|
132
|
+
readonly MESSAGE: "Proxy Authentication Required";
|
|
133
133
|
};
|
|
134
|
-
REQUEST_TIMEOUT: {
|
|
135
|
-
CODE:
|
|
136
|
-
MESSAGE:
|
|
134
|
+
readonly REQUEST_TIMEOUT: {
|
|
135
|
+
readonly CODE: 408;
|
|
136
|
+
readonly MESSAGE: "Request Timeout";
|
|
137
137
|
};
|
|
138
|
-
CONFLICT: {
|
|
139
|
-
CODE:
|
|
140
|
-
MESSAGE:
|
|
138
|
+
readonly CONFLICT: {
|
|
139
|
+
readonly CODE: 409;
|
|
140
|
+
readonly MESSAGE: "Conflict";
|
|
141
141
|
};
|
|
142
|
-
GONE: {
|
|
143
|
-
CODE:
|
|
144
|
-
MESSAGE:
|
|
142
|
+
readonly GONE: {
|
|
143
|
+
readonly CODE: 410;
|
|
144
|
+
readonly MESSAGE: "Gone";
|
|
145
145
|
};
|
|
146
|
-
LENGTH_REQUIRED: {
|
|
147
|
-
CODE:
|
|
148
|
-
MESSAGE:
|
|
146
|
+
readonly LENGTH_REQUIRED: {
|
|
147
|
+
readonly CODE: 411;
|
|
148
|
+
readonly MESSAGE: "Length Required";
|
|
149
149
|
};
|
|
150
|
-
PRECONDITION_FAILED: {
|
|
151
|
-
CODE:
|
|
152
|
-
MESSAGE:
|
|
150
|
+
readonly PRECONDITION_FAILED: {
|
|
151
|
+
readonly CODE: 412;
|
|
152
|
+
readonly MESSAGE: "Precondition Failed";
|
|
153
153
|
};
|
|
154
|
-
REQUEST_TOO_LONG: {
|
|
155
|
-
CODE:
|
|
156
|
-
MESSAGE:
|
|
154
|
+
readonly REQUEST_TOO_LONG: {
|
|
155
|
+
readonly CODE: 413;
|
|
156
|
+
readonly MESSAGE: "Request Entity Too Large";
|
|
157
157
|
};
|
|
158
|
-
REQUEST_URI_TOO_LONG: {
|
|
159
|
-
CODE:
|
|
160
|
-
MESSAGE:
|
|
158
|
+
readonly REQUEST_URI_TOO_LONG: {
|
|
159
|
+
readonly CODE: 414;
|
|
160
|
+
readonly MESSAGE: "Request-URI Too Long";
|
|
161
161
|
};
|
|
162
|
-
UNSUPPORTED_MEDIA_TYPE: {
|
|
163
|
-
CODE:
|
|
164
|
-
MESSAGE:
|
|
162
|
+
readonly UNSUPPORTED_MEDIA_TYPE: {
|
|
163
|
+
readonly CODE: 415;
|
|
164
|
+
readonly MESSAGE: "Unsupported Media Type";
|
|
165
165
|
};
|
|
166
|
-
REQUESTED_RANGE_NOT_SATISFIABLE: {
|
|
167
|
-
CODE:
|
|
168
|
-
MESSAGE:
|
|
166
|
+
readonly REQUESTED_RANGE_NOT_SATISFIABLE: {
|
|
167
|
+
readonly CODE: 416;
|
|
168
|
+
readonly MESSAGE: "Requested Range Not Satisfiable";
|
|
169
169
|
};
|
|
170
|
-
EXPECTATION_FAILED: {
|
|
171
|
-
CODE:
|
|
172
|
-
MESSAGE:
|
|
170
|
+
readonly EXPECTATION_FAILED: {
|
|
171
|
+
readonly CODE: 417;
|
|
172
|
+
readonly MESSAGE: "Expectation Failed";
|
|
173
173
|
};
|
|
174
|
-
IM_A_TEAPOT: {
|
|
175
|
-
CODE:
|
|
176
|
-
MESSAGE:
|
|
174
|
+
readonly IM_A_TEAPOT: {
|
|
175
|
+
readonly CODE: 418;
|
|
176
|
+
readonly MESSAGE: "I'm a teapot";
|
|
177
177
|
};
|
|
178
|
-
INSUFFICIENT_SPACE_ON_RESOURCE: {
|
|
179
|
-
CODE:
|
|
180
|
-
MESSAGE:
|
|
178
|
+
readonly INSUFFICIENT_SPACE_ON_RESOURCE: {
|
|
179
|
+
readonly CODE: 419;
|
|
180
|
+
readonly MESSAGE: "Insufficient Space on Resource";
|
|
181
181
|
};
|
|
182
|
-
METHOD_FAILURE: {
|
|
183
|
-
CODE:
|
|
184
|
-
MESSAGE:
|
|
182
|
+
readonly METHOD_FAILURE: {
|
|
183
|
+
readonly CODE: 420;
|
|
184
|
+
readonly MESSAGE: "Method Failure";
|
|
185
185
|
};
|
|
186
|
-
MISDIRECTED_REQUEST: {
|
|
187
|
-
CODE:
|
|
188
|
-
MESSAGE:
|
|
186
|
+
readonly MISDIRECTED_REQUEST: {
|
|
187
|
+
readonly CODE: 421;
|
|
188
|
+
readonly MESSAGE: "Misdirected Request";
|
|
189
189
|
};
|
|
190
|
-
UNPROCESSABLE_ENTITY: {
|
|
191
|
-
CODE:
|
|
192
|
-
MESSAGE:
|
|
190
|
+
readonly UNPROCESSABLE_ENTITY: {
|
|
191
|
+
readonly CODE: 422;
|
|
192
|
+
readonly MESSAGE: "Unprocessable Entity";
|
|
193
193
|
};
|
|
194
|
-
LOCKED: {
|
|
195
|
-
CODE:
|
|
196
|
-
MESSAGE:
|
|
194
|
+
readonly LOCKED: {
|
|
195
|
+
readonly CODE: 423;
|
|
196
|
+
readonly MESSAGE: "Locked";
|
|
197
197
|
};
|
|
198
|
-
FAILED_DEPENDENCY: {
|
|
199
|
-
CODE:
|
|
200
|
-
MESSAGE:
|
|
198
|
+
readonly FAILED_DEPENDENCY: {
|
|
199
|
+
readonly CODE: 424;
|
|
200
|
+
readonly MESSAGE: "Failed Dependency";
|
|
201
201
|
};
|
|
202
|
-
PRECONDITION_REQUIRED: {
|
|
203
|
-
CODE:
|
|
204
|
-
MESSAGE:
|
|
202
|
+
readonly PRECONDITION_REQUIRED: {
|
|
203
|
+
readonly CODE: 428;
|
|
204
|
+
readonly MESSAGE: "Precondition Required";
|
|
205
205
|
};
|
|
206
|
-
TOO_MANY_REQUESTS: {
|
|
207
|
-
CODE:
|
|
208
|
-
MESSAGE:
|
|
206
|
+
readonly TOO_MANY_REQUESTS: {
|
|
207
|
+
readonly CODE: 429;
|
|
208
|
+
readonly MESSAGE: "Too Many Requests";
|
|
209
209
|
};
|
|
210
|
-
REQUEST_HEADER_FIELDS_TOO_LARGE: {
|
|
211
|
-
CODE:
|
|
212
|
-
MESSAGE:
|
|
210
|
+
readonly REQUEST_HEADER_FIELDS_TOO_LARGE: {
|
|
211
|
+
readonly CODE: 431;
|
|
212
|
+
readonly MESSAGE: "Request Header Fields Too Large";
|
|
213
213
|
};
|
|
214
|
-
UNAVAILABLE_FOR_LEGAL_REASONS: {
|
|
215
|
-
CODE:
|
|
216
|
-
MESSAGE:
|
|
214
|
+
readonly UNAVAILABLE_FOR_LEGAL_REASONS: {
|
|
215
|
+
readonly CODE: 451;
|
|
216
|
+
readonly MESSAGE: "Unavailable For Legal Reasons";
|
|
217
217
|
};
|
|
218
|
-
INTERNAL_SERVER_ERROR: {
|
|
219
|
-
CODE:
|
|
220
|
-
MESSAGE:
|
|
218
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
219
|
+
readonly CODE: 500;
|
|
220
|
+
readonly MESSAGE: "Internal Server Error";
|
|
221
221
|
};
|
|
222
|
-
NOT_IMPLEMENTED: {
|
|
223
|
-
CODE:
|
|
224
|
-
MESSAGE:
|
|
222
|
+
readonly NOT_IMPLEMENTED: {
|
|
223
|
+
readonly CODE: 501;
|
|
224
|
+
readonly MESSAGE: "Not Implemented";
|
|
225
225
|
};
|
|
226
|
-
BAD_GATEWAY: {
|
|
227
|
-
CODE:
|
|
228
|
-
MESSAGE:
|
|
226
|
+
readonly BAD_GATEWAY: {
|
|
227
|
+
readonly CODE: 502;
|
|
228
|
+
readonly MESSAGE: "Bad Gateway";
|
|
229
229
|
};
|
|
230
|
-
SERVICE_UNAVAILABLE: {
|
|
231
|
-
CODE:
|
|
232
|
-
MESSAGE:
|
|
230
|
+
readonly SERVICE_UNAVAILABLE: {
|
|
231
|
+
readonly CODE: 503;
|
|
232
|
+
readonly MESSAGE: "Service Unavailable";
|
|
233
233
|
};
|
|
234
|
-
GATEWAY_TIMEOUT: {
|
|
235
|
-
CODE:
|
|
236
|
-
MESSAGE:
|
|
234
|
+
readonly GATEWAY_TIMEOUT: {
|
|
235
|
+
readonly CODE: 504;
|
|
236
|
+
readonly MESSAGE: "Gateway Timeout";
|
|
237
237
|
};
|
|
238
|
-
HTTP_VERSION_NOT_SUPPORTED: {
|
|
239
|
-
CODE:
|
|
240
|
-
MESSAGE:
|
|
238
|
+
readonly HTTP_VERSION_NOT_SUPPORTED: {
|
|
239
|
+
readonly CODE: 505;
|
|
240
|
+
readonly MESSAGE: "HTTP Version Not Supported";
|
|
241
241
|
};
|
|
242
|
-
INSUFFICIENT_STORAGE: {
|
|
243
|
-
CODE:
|
|
244
|
-
MESSAGE:
|
|
242
|
+
readonly INSUFFICIENT_STORAGE: {
|
|
243
|
+
readonly CODE: 507;
|
|
244
|
+
readonly MESSAGE: "Insufficient Storage";
|
|
245
245
|
};
|
|
246
|
-
NETWORK_AUTHENTICATION_REQUIRED: {
|
|
247
|
-
CODE:
|
|
248
|
-
MESSAGE:
|
|
246
|
+
readonly NETWORK_AUTHENTICATION_REQUIRED: {
|
|
247
|
+
readonly CODE: 511;
|
|
248
|
+
readonly MESSAGE: "Network Authentication Required";
|
|
249
249
|
};
|
|
250
250
|
};
|