keq 2.9.0 → 2.10.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.
Files changed (151) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/esm/src/constant.d.ts +2 -0
  3. package/dist/esm/src/constant.js +2 -0
  4. package/dist/esm/src/core.d.ts +30 -0
  5. package/dist/esm/src/core.js +162 -53
  6. package/dist/esm/src/exception/abort.exception.d.ts +3 -0
  7. package/dist/esm/src/exception/abort.exception.js +6 -0
  8. package/dist/esm/src/index.d.ts +1 -0
  9. package/dist/esm/src/index.js +1 -0
  10. package/dist/esm/src/is/is-abort-signal.d.ts +1 -0
  11. package/dist/esm/src/is/is-abort-signal.js +8 -0
  12. package/dist/esm/src/middlewares/fetch-arguments-middleware.js +5 -1
  13. package/dist/esm/src/middlewares/retry-middleware.js +20 -3
  14. package/dist/esm/src/middlewares/timeout-middleware.js +3 -1
  15. package/dist/esm/src/types/keq-context.d.ts +10 -1
  16. package/dist/esm/src/types/keq-context.js +1 -1
  17. package/dist/umd/src/constant.d.ts +2 -0
  18. package/dist/umd/src/constant.js +3 -1
  19. package/dist/umd/src/core.d.ts +30 -0
  20. package/dist/umd/src/core.js +162 -53
  21. package/dist/umd/src/exception/abort.exception.d.ts +3 -0
  22. package/dist/umd/src/exception/abort.exception.js +20 -0
  23. package/dist/umd/src/index.d.ts +1 -0
  24. package/dist/umd/src/index.js +4 -2
  25. package/dist/umd/src/is/is-abort-signal.d.ts +1 -0
  26. package/dist/umd/src/is/is-abort-signal.js +22 -0
  27. package/dist/umd/src/middlewares/fetch-arguments-middleware.js +4 -0
  28. package/dist/umd/src/middlewares/retry-middleware.js +21 -4
  29. package/dist/umd/src/middlewares/timeout-middleware.js +4 -2
  30. package/dist/umd/src/types/keq-context.d.ts +10 -1
  31. package/package.json +10 -13
  32. package/.claude/settings.local.json +0 -26
  33. package/packages/cache/.turbo/turbo-build.log +0 -29
  34. package/packages/cache/dist/index.d.mts +0 -354
  35. package/packages/cache/dist/index.d.mts.map +0 -1
  36. package/packages/cache/dist/index.d.ts +0 -353
  37. package/packages/cache/dist/index.d.ts.map +0 -1
  38. package/packages/cache/dist/index.js +0 -1271
  39. package/packages/cache/dist/index.js.map +0 -1
  40. package/packages/cache/dist/index.mjs +0 -1237
  41. package/packages/cache/dist/index.mjs.map +0 -1
  42. package/packages/cli/.turbo/turbo-build.log +0 -91
  43. package/packages/cli/dist/cli.cjs +0 -1364
  44. package/packages/cli/dist/cli.cjs.map +0 -1
  45. package/packages/cli/dist/cli.d.cts +0 -1
  46. package/packages/cli/dist/cli.d.mts +0 -1
  47. package/packages/cli/dist/cli.mjs +0 -1359
  48. package/packages/cli/dist/cli.mjs.map +0 -1
  49. package/packages/cli/dist/compiler-0Kli6UCr.cjs +0 -738
  50. package/packages/cli/dist/compiler-0Kli6UCr.cjs.map +0 -1
  51. package/packages/cli/dist/compiler-C3AE8j54.mjs +0 -715
  52. package/packages/cli/dist/compiler-C3AE8j54.mjs.map +0 -1
  53. package/packages/cli/dist/index.cjs +0 -20
  54. package/packages/cli/dist/index.cjs.map +0 -1
  55. package/packages/cli/dist/index.d.cts +0 -17
  56. package/packages/cli/dist/index.d.cts.map +0 -1
  57. package/packages/cli/dist/index.d.mts +0 -17
  58. package/packages/cli/dist/index.d.mts.map +0 -1
  59. package/packages/cli/dist/index.mjs +0 -10
  60. package/packages/cli/dist/index.mjs.map +0 -1
  61. package/packages/cli/dist/init-BNhD2oCI.mjs +0 -168
  62. package/packages/cli/dist/init-BNhD2oCI.mjs.map +0 -1
  63. package/packages/cli/dist/init-DqxLcRSQ.cjs +0 -170
  64. package/packages/cli/dist/init-DqxLcRSQ.cjs.map +0 -1
  65. package/packages/cli/dist/logger-D7PyVZo3.cjs +0 -46
  66. package/packages/cli/dist/logger-D7PyVZo3.cjs.map +0 -1
  67. package/packages/cli/dist/logger-QLBHySQ3.mjs +0 -12
  68. package/packages/cli/dist/logger-QLBHySQ3.mjs.map +0 -1
  69. package/packages/cli/dist/micro-function.translator-BmJZzkKh.cjs +0 -16
  70. package/packages/cli/dist/micro-function.translator-BmJZzkKh.cjs.map +0 -1
  71. package/packages/cli/dist/micro-function.translator-CDfkj4Tt.mjs +0 -11
  72. package/packages/cli/dist/micro-function.translator-CDfkj4Tt.mjs.map +0 -1
  73. package/packages/cli/dist/mock-command-Bp1LxSls.mjs +0 -350
  74. package/packages/cli/dist/mock-command-Bp1LxSls.mjs.map +0 -1
  75. package/packages/cli/dist/mock-command-WZcfy5Iq.cjs +0 -353
  76. package/packages/cli/dist/mock-command-WZcfy5Iq.cjs.map +0 -1
  77. package/packages/cli/dist/plugins-CgMhaNZq.cjs +0 -3558
  78. package/packages/cli/dist/plugins-CgMhaNZq.cjs.map +0 -1
  79. package/packages/cli/dist/plugins-DCvJ8iHR.mjs +0 -3280
  80. package/packages/cli/dist/plugins-DCvJ8iHR.mjs.map +0 -1
  81. package/packages/cli/dist/plugins.cjs +0 -36
  82. package/packages/cli/dist/plugins.d.cts +0 -2
  83. package/packages/cli/dist/plugins.d.mts +0 -2
  84. package/packages/cli/dist/plugins.mjs +0 -2
  85. package/packages/cli/dist/runtime-config-BWQlPhiB.d.cts +0 -780
  86. package/packages/cli/dist/runtime-config-BWQlPhiB.d.cts.map +0 -1
  87. package/packages/cli/dist/runtime-config-CrzK-Ucf.d.mts +0 -780
  88. package/packages/cli/dist/runtime-config-CrzK-Ucf.d.mts.map +0 -1
  89. package/packages/cli/dist/translators.cjs +0 -14
  90. package/packages/cli/dist/translators.cjs.map +0 -1
  91. package/packages/cli/dist/translators.d.cts +0 -14
  92. package/packages/cli/dist/translators.d.cts.map +0 -1
  93. package/packages/cli/dist/translators.d.mts +0 -14
  94. package/packages/cli/dist/translators.d.mts.map +0 -1
  95. package/packages/cli/dist/translators.mjs +0 -12
  96. package/packages/cli/dist/translators.mjs.map +0 -1
  97. package/packages/cli/node_modules/.bin/eslint +0 -21
  98. package/packages/cli/node_modules/.bin/jiti +0 -21
  99. package/packages/cli/node_modules/.bin/js-yaml +0 -21
  100. package/packages/cli/node_modules/.bin/jsf +0 -21
  101. package/packages/cli/node_modules/.bin/jsonpath +0 -21
  102. package/packages/cli/node_modules/.bin/jsonpath-plus +0 -21
  103. package/packages/cli/node_modules/.bin/semver +0 -21
  104. package/packages/cli/node_modules/.bin/tsc +0 -21
  105. package/packages/cli/node_modules/.bin/tsserver +0 -21
  106. package/packages/exception/.turbo/turbo-build.log +0 -29
  107. package/packages/exception/dist/index.d.mts +0 -21
  108. package/packages/exception/dist/index.d.mts.map +0 -1
  109. package/packages/exception/dist/index.d.ts +0 -21
  110. package/packages/exception/dist/index.d.ts.map +0 -1
  111. package/packages/exception/dist/index.js +0 -104
  112. package/packages/exception/dist/index.js.map +0 -1
  113. package/packages/exception/dist/index.mjs +0 -99
  114. package/packages/exception/dist/index.mjs.map +0 -1
  115. package/packages/headers/.turbo/turbo-build.log +0 -29
  116. package/packages/headers/dist/index.d.mts +0 -46
  117. package/packages/headers/dist/index.d.mts.map +0 -1
  118. package/packages/headers/dist/index.d.ts +0 -46
  119. package/packages/headers/dist/index.d.ts.map +0 -1
  120. package/packages/headers/dist/index.js +0 -81
  121. package/packages/headers/dist/index.js.map +0 -1
  122. package/packages/headers/dist/index.mjs +0 -75
  123. package/packages/headers/dist/index.mjs.map +0 -1
  124. package/packages/keq/.turbo/turbo-build.log +0 -29
  125. package/packages/keq/dist/index.d.mts +0 -962
  126. package/packages/keq/dist/index.d.mts.map +0 -1
  127. package/packages/keq/dist/index.d.ts +0 -962
  128. package/packages/keq/dist/index.d.ts.map +0 -1
  129. package/packages/keq/dist/index.js +0 -1876
  130. package/packages/keq/dist/index.js.map +0 -1
  131. package/packages/keq/dist/index.mjs +0 -1814
  132. package/packages/keq/dist/index.mjs.map +0 -1
  133. package/packages/nestjs/.turbo/turbo-build.log +0 -29
  134. package/packages/nestjs/dist/index.d.mts +0 -52
  135. package/packages/nestjs/dist/index.d.mts.map +0 -1
  136. package/packages/nestjs/dist/index.d.ts +0 -52
  137. package/packages/nestjs/dist/index.d.ts.map +0 -1
  138. package/packages/nestjs/dist/index.js +0 -166
  139. package/packages/nestjs/dist/index.js.map +0 -1
  140. package/packages/nestjs/dist/index.mjs +0 -136
  141. package/packages/nestjs/dist/index.mjs.map +0 -1
  142. package/packages/test/.turbo/turbo-build.log +0 -6
  143. package/packages/url/.turbo/turbo-build.log +0 -29
  144. package/packages/url/dist/index.d.mts +0 -9
  145. package/packages/url/dist/index.d.mts.map +0 -1
  146. package/packages/url/dist/index.d.ts +0 -9
  147. package/packages/url/dist/index.d.ts.map +0 -1
  148. package/packages/url/dist/index.js +0 -43
  149. package/packages/url/dist/index.js.map +0 -1
  150. package/packages/url/dist/index.mjs +0 -40
  151. package/packages/url/dist/index.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime-config-CrzK-Ucf.d.mts","names":[],"sources":["../src/constants/file-naming-style.ts","../src/models/anchor.ts","../src/models/artifact.ts","../src/types/address.ts","../src/models/module-definition.ts","../src/models/schema-definition.ts","../src/models/response-definition.ts","../src/models/operation-definition.ts","../src/models/api-document_v3_1.ts","../src/models/asset.ts","../src/utils/matcher.ts","../src/compiler/tasks/setup/index.ts","../src/compiler/tasks/types/task-wrapper.ts","../src/types/generator.ts","../src/types/translator.ts","../src/compiler/types/compiler-hooks.ts","../src/compiler/types/compiler-context.ts","../src/plugins/eslint/constants/metadata-storage.ts","../src/plugins/eslint/eslint.plugin.ts","../src/plugins/prettier/constants/metadata-storage.ts","../src/plugins/prettier/prettier.plugin.ts","../src/plugins/body-fallback/constants/metadata-storage.ts","../src/plugins/body-fallback/index.ts","../src/plugins/generate-declaration/generators/operation-declaration/operation.generator.ts","../src/plugins/generate-declaration/generators/schema-declaration/schema.generator.ts","../src/plugins/generate-declaration/generators/response-declaration/response.generator.ts","../src/plugins/generate-declaration/constants/metadata-storage.ts","../src/plugins/generate-declaration/generate-declaration.plugin.ts","../src/plugins/use-valibot/constants/metadata-storage.ts","../src/plugins/use-valibot/use-valibot.plugin.ts","../src/plugins/generate-micro-function/constants/metadata-storage.ts","../src/plugins/generate-micro-function/generate-micro-function.plugin.ts","../src/plugins/generate-micro-function/generators/micro_function/micro-function.generator.ts","../src/plugins/generate-micro-function/generators/request/request.generator.ts","../src/plugins/generate-nestjs-module/constants/metadata-storage.ts","../src/plugins/generate-nestjs-module/generate-nestjs-module.ts","../src/plugins/generate-nestjs-module/generators/nestjs-module.generator.ts","../src/plugins/chinese-to-pinyin/constants/metadata-storage.ts","../src/plugins/chinese-to-pinyin/chinese-to-pinyin.plugin.ts","../src/plugins/download-http-file/constants/metadata-storage.ts","../src/plugins/download-http-file/download-http-file.plugin.ts","../src/plugins/download-local-file/constants/metadata-storage.ts","../src/plugins/download-local-file/download-local-file.plugin.ts","../src/plugins/shaking/constants/metadata-storage.ts","../src/plugins/shaking/shaking.plugin.ts","../src/plugins/terminal-select/types/filter-mode.ts","../src/plugins/terminal-select/constants/metadata-storage.ts","../src/plugins/terminal-select/terminal-select.plugin.ts","../src/plugins/initialize/initialize.plugin.ts","../src/plugins/overwrite-operation-id/overwrite-operation-id.plugin.ts","../src/plugins/overwrite-schema-name/overwrite-schema-name.plugin.ts","../src/plugins/overwrite-query-options/overwrite-query-options.plugin.ts","../src/plugins/overwrite-additional-properties/constants/metadata-storage.ts","../src/plugins/overwrite-additional-properties/overwrite-additional-properties.plugin.ts","../src/plugins/clean/clean.plugin.ts","../src/plugins/lint-schema/lint-schema.plugin.ts","../src/plugins/springdoc-compat/springdoc-compat.plugin.ts","../src/plugins/mock/mock.plugin.ts","../src/compiler/compiler.ts","../src/types/plugin.ts","../src/types/runtime-config.ts"],"mappings":";;;;;;;;;;;;aAGY,eAAA;;EAEV,SAAA;;EAEA,WAAA;;EAEA,YAAA;EANyB;EAQzB,OAAA;EARyB;EAUzB,UAAA;EANA;EAQA,MAAA;EAJA;EAMA,SAAA;EAFA;EAIA,UAAA;EAAA;EAEA,QAAA;EAEA;E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A,EAAS,eAAA;EAET,KAAA,EAAO,aAAA;cAqBE,OAAA,EAAS,OAAA;EAgBZ,GAAA,CAAA,GAAO,OAAA;AAAA;;;UCzEE,MAAA;EACf,KAAA,CAAM,QAAA,EAAU,QAAA;AAAA;;;cC6CL,SAAA,uBAAS,OAAA;;;;UAwFpB,oBAAA,CAAA,OAAA;E5DtIU;;;;IAEV;;;;;;;IAcA;;;;IAQA;;;;;;;ICzBe;;;;;;;;EAQR;;;;;;;;;;;;;;;;;;;;;EAoDA;;;;EAcqB;;;;;;;EChET;;;;;;;;K0D+HT,SAAA,GAAY,YAAA,QAAoB,SAAA;AAAA,KAChC,aAAA,GAAgB,YAAA,QAAoB,SAAA"}
@@ -1,14 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_plugins = require("./plugins-CgMhaNZq.cjs");
3
- const require_micro_function_translator = require("./micro-function.translator-BmJZzkKh.cjs");
4
- //#region src/translators/nestjs.translator.ts
5
- var NestjsTranslator = class {
6
- apply() {
7
- return [new require_plugins.GenerateDeclarationPlugin(), new require_plugins.GenerateNestjsModulePlugin()];
8
- }
9
- };
10
- //#endregion
11
- exports.MicroFunctionTranslator = require_micro_function_translator.MicroFunctionTranslator;
12
- exports.NestjsTranslator = NestjsTranslator;
13
-
14
- //# sourceMappingURL=translators.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translators.cjs","names":["GenerateDeclarationPlugin","GenerateNestjsModulePlugin"],"sources":["../src/translators/nestjs.translator.ts"],"sourcesContent":["import { GenerateDeclarationPlugin, GenerateNestjsModulePlugin } from '~/plugins/index.js'\nimport { Translator, Plugin } from '~/types/index.js'\n\n\nexport class NestjsTranslator implements Translator {\n apply(): Plugin[] {\n return [\n new GenerateDeclarationPlugin(),\n new GenerateNestjsModulePlugin(),\n ]\n }\n}\n"],"mappings":";;;;AAIA,IAAa,mBAAb,MAAoD;CAClD,QAAkB;AAChB,SAAO,CACL,IAAIA,gBAAAA,2BAA2B,EAC/B,IAAIC,gBAAAA,4BAA4B,CACjC"}
@@ -1,14 +0,0 @@
1
- import { J as Translator, n as Plugin } from "./runtime-config-BWQlPhiB.cjs";
2
-
3
- //#region src/translators/nestjs.translator.d.ts
4
- declare class NestjsTranslator implements Translator {
5
- apply(): Plugin[];
6
- }
7
- //#endregion
8
- //#region src/translators/micro-function.translator.d.ts
9
- declare class MicroFunctionTranslator implements Translator {
10
- apply(): Plugin[];
11
- }
12
- //#endregion
13
- export { MicroFunctionTranslator, NestjsTranslator };
14
- //# sourceMappingURL=translators.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translators.d.cts","names":[],"sources":["../src/translators/nestjs.translator.ts","../src/translators/micro-function.translator.ts"],"mappings":";;;cAIa,gBAAA,YAA4B,UAAA;EACvC,KAAA,CAAA,GAAS,MAAA;AAAA;;;cCDE,uBAAA,YAAmC,UAAA;EAC9C,KAAA,CAAA,GAAS,MAAA;AAAA"}
@@ -1,14 +0,0 @@
1
- import { J as Translator, n as Plugin } from "./runtime-config-CrzK-Ucf.mjs";
2
-
3
- //#region src/translators/nestjs.translator.d.ts
4
- declare class NestjsTranslator implements Translator {
5
- apply(): Plugin[];
6
- }
7
- //#endregion
8
- //#region src/translators/micro-function.translator.d.ts
9
- declare class MicroFunctionTranslator implements Translator {
10
- apply(): Plugin[];
11
- }
12
- //#endregion
13
- export { MicroFunctionTranslator, NestjsTranslator };
14
- //# sourceMappingURL=translators.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translators.d.mts","names":[],"sources":["../src/translators/nestjs.translator.ts","../src/translators/micro-function.translator.ts"],"mappings":";;;cAIa,gBAAA,YAA4B,UAAA;EACvC,KAAA,CAAA,GAAS,MAAA;AAAA;;;cCDE,uBAAA,YAAmC,UAAA;EAC9C,KAAA,CAAA,GAAS,MAAA;AAAA"}
@@ -1,12 +0,0 @@
1
- import { E as GenerateDeclarationPlugin, h as GenerateNestjsModulePlugin } from "./plugins-DCvJ8iHR.mjs";
2
- import { t as MicroFunctionTranslator } from "./micro-function.translator-CDfkj4Tt.mjs";
3
- //#region src/translators/nestjs.translator.ts
4
- var NestjsTranslator = class {
5
- apply() {
6
- return [new GenerateDeclarationPlugin(), new GenerateNestjsModulePlugin()];
7
- }
8
- };
9
- //#endregion
10
- export { MicroFunctionTranslator, NestjsTranslator };
11
-
12
- //# sourceMappingURL=translators.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translators.mjs","names":[],"sources":["../src/translators/nestjs.translator.ts"],"sourcesContent":["import { GenerateDeclarationPlugin, GenerateNestjsModulePlugin } from '~/plugins/index.js'\nimport { Translator, Plugin } from '~/types/index.js'\n\n\nexport class NestjsTranslator implements Translator {\n apply(): Plugin[] {\n return [\n new GenerateDeclarationPlugin(),\n new GenerateNestjsModulePlugin(),\n ]\n }\n}\n"],"mappings":";;;AAIA,IAAa,mBAAb,MAAoD;CAClD,QAAkB;AAChB,SAAO,CACL,IAAI,2BAA2B,EAC/B,IAAI,4BAA4B,CACjC"}
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/eslint@10.2.1_jiti@2.6.1/node_modules/eslint/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/eslint@10.2.1_jiti@2.6.1/node_modules/eslint/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/eslint@10.2.1_jiti@2.6.1/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/eslint@10.2.1_jiti@2.6.1/node_modules/eslint/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/eslint@10.2.1_jiti@2.6.1/node_modules/eslint/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/eslint@10.2.1_jiti@2.6.1/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
19
- else
20
- exec node "$basedir/../eslint/bin/eslint.js" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jiti@2.6.1/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jiti@2.6.1/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
19
- else
20
- exec node "$basedir/../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/js-yaml@4.1.1/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/js-yaml@4.1.1/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../js-yaml/bin/js-yaml.js" "$@"
19
- else
20
- exec node "$basedir/../js-yaml/bin/js-yaml.js" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/json-schema-faker@0.6.1/node_modules/json-schema-faker/dist/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/json-schema-faker@0.6.1/node_modules/json-schema-faker/dist/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/json-schema-faker@0.6.1/node_modules/json-schema-faker/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/json-schema-faker@0.6.1/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/json-schema-faker@0.6.1/node_modules/json-schema-faker/dist/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/json-schema-faker@0.6.1/node_modules/json-schema-faker/dist/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/json-schema-faker@0.6.1/node_modules/json-schema-faker/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/json-schema-faker@0.6.1/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../json-schema-faker/dist/bin/cli.js" "$@"
19
- else
20
- exec node "$basedir/../json-schema-faker/dist/bin/cli.js" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jsonpath-plus@10.4.0/node_modules/jsonpath-plus/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jsonpath-plus@10.4.0/node_modules/jsonpath-plus/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jsonpath-plus@10.4.0/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jsonpath-plus@10.4.0/node_modules/jsonpath-plus/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jsonpath-plus@10.4.0/node_modules/jsonpath-plus/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jsonpath-plus@10.4.0/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../jsonpath-plus/bin/jsonpath-cli.js" "$@"
19
- else
20
- exec node "$basedir/../jsonpath-plus/bin/jsonpath-cli.js" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jsonpath-plus@10.4.0/node_modules/jsonpath-plus/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jsonpath-plus@10.4.0/node_modules/jsonpath-plus/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jsonpath-plus@10.4.0/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jsonpath-plus@10.4.0/node_modules/jsonpath-plus/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jsonpath-plus@10.4.0/node_modules/jsonpath-plus/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/jsonpath-plus@10.4.0/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../jsonpath-plus/bin/jsonpath-cli.js" "$@"
19
- else
20
- exec node "$basedir/../jsonpath-plus/bin/jsonpath-cli.js" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/semver@7.7.4/node_modules/semver/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/semver@7.7.4/node_modules/semver/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/semver@7.7.4/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/semver@7.7.4/node_modules/semver/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/semver@7.7.4/node_modules/semver/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/semver@7.7.4/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../semver/bin/semver.js" "$@"
19
- else
20
- exec node "$basedir/../semver/bin/semver.js" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/typescript@6.0.3/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/typescript@6.0.3/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsc" "$@"
19
- else
20
- exec node "$basedir/../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsc" "$@"
21
- fi
@@ -1,21 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
10
- esac
11
-
12
- if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/typescript@6.0.3/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules"
14
- else
15
- export NODE_PATH="/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/typescript@6.0.3/node_modules:/Users/10009313/Shein/workspace/@keq/keq/node_modules/.pnpm/node_modules:$NODE_PATH"
16
- fi
17
- if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsserver" "$@"
19
- else
20
- exec node "$basedir/../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsserver" "$@"
21
- fi
@@ -1,29 +0,0 @@
1
-
2
- 
3
- > @keq-request/exception@5.0.0-beta.10 build /Users/10009313/Shein/workspace/@keq/keq/packages/exception
4
- > tsdown
5
-
6
- ℹ tsdown v0.21.10 powered by rolldown v1.0.0-rc.17
7
- ℹ config file: /Users/10009313/Shein/workspace/@keq/keq/packages/exception/tsdown.config.ts
8
- (node:38118) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/10009313/Shein/workspace/@keq/keq/packages/exception/tsdown.config.ts?no-cache=a874c6a1-2b2d-461f-8b9a-6a76bf74e876 is not specified and it doesn't parse as CommonJS.
9
- Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
10
- To eliminate this warning, add "type": "module" to /Users/10009313/Shein/workspace/@keq/keq/packages/exception/package.json.
11
- (Use `node --trace-warnings ...` to show where the warning was created)
12
- ℹ entry: src/index.ts
13
- ℹ targets: chrome91, firefox90, safari15, edge91, node20
14
- ℹ tsconfig: tsconfig.lib.json
15
- ℹ Build start
16
- ℹ Cleaning 8 files
17
- ℹ [CJS] dist/index.js 3.85 kB │ gzip: 1.06 kB
18
- ℹ [CJS] dist/index.js.map 8.27 kB │ gzip: 2.03 kB
19
- ℹ [CJS] 2 files, total: 12.12 kB
20
- ℹ [CJS] dist/index.d.ts.map 0.49 kB │ gzip: 0.27 kB
21
- ℹ [CJS] dist/index.d.ts 0.90 kB │ gzip: 0.35 kB
22
- ℹ [CJS] 2 files, total: 1.39 kB
23
- ✔ Build complete in 1264ms
24
- ℹ [ESM] dist/index.mjs 4.06 kB │ gzip: 1.05 kB
25
- ℹ [ESM] dist/index.mjs.map 7.57 kB │ gzip: 1.92 kB
26
- ℹ [ESM] dist/index.d.mts.map 0.49 kB │ gzip: 0.28 kB
27
- ℹ [ESM] dist/index.d.mts 0.90 kB │ gzip: 0.36 kB
28
- ℹ [ESM] 4 files, total: 13.02 kB
29
- ✔ Build complete in 1266ms
@@ -1,21 +0,0 @@
1
- import { KeqContext, KeqMiddleware } from "keq";
2
- import { Promisable } from "type-fest";
3
-
4
- //#region src/throw-exception.d.ts
5
- type Check = (ctx: KeqContext) => Promisable<void>;
6
- declare function throwException(check: Check): KeqMiddleware;
7
- //#endregion
8
- //#region src/catch-exception.d.ts
9
- declare function catchException(handler: (e: unknown) => Promisable<void>): KeqMiddleware;
10
- //#endregion
11
- //#region src/validate-status-code.d.ts
12
- declare function validateStatusCode(): KeqMiddleware;
13
- //#endregion
14
- //#region src/create-exception-by-status-code.d.ts
15
- declare function createExceptionByStatusCode(response: Response): Error;
16
- //#endregion
17
- //#region src/clarify-fetch-failed.d.ts
18
- declare function clarifyFetchFailed(): KeqMiddleware;
19
- //#endregion
20
- export { Check, catchException, clarifyFetchFailed, createExceptionByStatusCode, throwException, validateStatusCode };
21
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/throw-exception.ts","../src/catch-exception.ts","../src/validate-status-code.ts","../src/create-exception-by-status-code.ts","../src/clarify-fetch-failed.ts"],"mappings":";;;;KAIY,KAAA,IAAS,GAAA,EAAK,UAAA,KAAe,UAAA;AAAA,iBAEzB,cAAA,CAAe,KAAA,EAAO,KAAA,GAAQ,aAAA;;;iBCF9B,cAAA,CAAe,OAAA,GAAU,CAAA,cAAe,UAAA,SAAmB,aAAA;;;iBCD3D,kBAAA,CAAA,GAAsB,aAAA;;;iBCqBtB,2BAAA,CAA4B,QAAA,EAAU,QAAA,GAAW,KAAA;;;iBCtBjD,kBAAA,CAAA,GAAsB,aAAA"}
@@ -1,21 +0,0 @@
1
- import { KeqContext, KeqMiddleware } from "keq";
2
- import { Promisable } from "type-fest";
3
-
4
- //#region src/throw-exception.d.ts
5
- type Check = (ctx: KeqContext) => Promisable<void>;
6
- declare function throwException(check: Check): KeqMiddleware;
7
- //#endregion
8
- //#region src/catch-exception.d.ts
9
- declare function catchException(handler: (e: unknown) => Promisable<void>): KeqMiddleware;
10
- //#endregion
11
- //#region src/validate-status-code.d.ts
12
- declare function validateStatusCode(): KeqMiddleware;
13
- //#endregion
14
- //#region src/create-exception-by-status-code.d.ts
15
- declare function createExceptionByStatusCode(response: Response): Error;
16
- //#endregion
17
- //#region src/clarify-fetch-failed.d.ts
18
- declare function clarifyFetchFailed(): KeqMiddleware;
19
- //#endregion
20
- export { Check, catchException, clarifyFetchFailed, createExceptionByStatusCode, throwException, validateStatusCode };
21
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/throw-exception.ts","../src/catch-exception.ts","../src/validate-status-code.ts","../src/create-exception-by-status-code.ts","../src/clarify-fetch-failed.ts"],"mappings":";;;;KAIY,KAAA,IAAS,GAAA,EAAK,UAAA,KAAe,UAAA;AAAA,iBAEzB,cAAA,CAAe,KAAA,EAAO,KAAA,GAAQ,aAAA;;;iBCF9B,cAAA,CAAe,OAAA,GAAU,CAAA,cAAe,UAAA,SAAmB,aAAA;;;iBCD3D,kBAAA,CAAA,GAAsB,aAAA;;;iBCqBtB,2BAAA,CAA4B,QAAA,EAAU,QAAA,GAAW,KAAA;;;iBCtBjD,kBAAA,CAAA,GAAsB,aAAA"}
@@ -1,104 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- let keq = require("keq");
3
- //#region src/throw-exception.ts
4
- function throwException(check) {
5
- return async function throwException(ctx, next) {
6
- await next();
7
- await check(ctx);
8
- };
9
- }
10
- //#endregion
11
- //#region src/catch-exception.ts
12
- function catchException(handler) {
13
- return async function catchException(ctx, next) {
14
- try {
15
- await next();
16
- } catch (err) {
17
- await handler(err);
18
- }
19
- };
20
- }
21
- //#endregion
22
- //#region src/create-exception-by-status-code.ts
23
- function createExceptionByStatusCode(response) {
24
- const { status, statusText } = response;
25
- if (status >= 400 && status < 500) switch (status) {
26
- case 400: return new keq.BadRequestException(statusText, { response });
27
- case 401: return new keq.UnauthorizedException(statusText, { response });
28
- case 403: return new keq.ForbiddenException(statusText, { response });
29
- case 404: return new keq.NotFoundedException(statusText, { response });
30
- case 405: return new keq.MethodNotAllowedException(statusText, { response });
31
- case 406: return new keq.NotAcceptableException(statusText, { response });
32
- case 407: return new keq.ProxyAuthenticationRequiredException(statusText, { response });
33
- case 408: return new keq.RequestTimeoutException(statusText, { response });
34
- case 409: return new keq.ConflictException(statusText, { response });
35
- case 412: return new keq.PreconditionFailedException(statusText, { response });
36
- case 413: return new keq.ContentTooLargeException(statusText, { response });
37
- case 414: return new keq.UriTooLongException(statusText, { response });
38
- case 415: return new keq.UnsupportedMediaTypeException(statusText, { response });
39
- case 418: return new keq.ImATeapotException(statusText, { response });
40
- case 429: return new keq.TooManyRequestsException(statusText, { response });
41
- default: return new keq.RequestException(status, statusText, {
42
- fatal: true,
43
- response
44
- });
45
- }
46
- if (status >= 500) switch (status) {
47
- case 500: return new keq.InternalServerErrorException(statusText, { response });
48
- case 501: return new keq.NotImplementedException(statusText, { response });
49
- case 502: return new keq.BadGatewayException(statusText, { response });
50
- case 503: return new keq.ServiceUnavailableException(statusText, { response });
51
- case 504: return new keq.GatewayTimeoutException(statusText, { response });
52
- default: return new keq.RequestException(status, statusText, {
53
- fatal: false,
54
- response
55
- });
56
- }
57
- return new keq.RequestException(status, statusText, {
58
- fatal: false,
59
- response
60
- });
61
- }
62
- //#endregion
63
- //#region src/validate-status-code.ts
64
- function validateStatusCode() {
65
- return async function validateStatusCode(context, next) {
66
- await next();
67
- const response = context.response;
68
- if (!response) return;
69
- const { status } = response;
70
- if (status >= 200 && status < 300) return;
71
- if (status >= 300 && status < 400) return;
72
- throw createExceptionByStatusCode(response);
73
- };
74
- }
75
- //#endregion
76
- //#region src/clarify-fetch-failed.ts
77
- function clarifyFetchFailed() {
78
- return async function clarifyFetchFailedMiddleware(ctx, next) {
79
- try {
80
- await next();
81
- } catch (error) {
82
- throw resolveCause(error);
83
- }
84
- };
85
- }
86
- function resolveCause(error) {
87
- if (!(error instanceof Error)) return error;
88
- const causes = [];
89
- let current = error.cause;
90
- while (current instanceof Error) {
91
- causes.push(current.message);
92
- current = current.cause;
93
- }
94
- if (!causes.length) return error;
95
- return new error.constructor(`${error.message}: ${causes.join(" - ")}`, { cause: error.cause });
96
- }
97
- //#endregion
98
- exports.catchException = catchException;
99
- exports.clarifyFetchFailed = clarifyFetchFailed;
100
- exports.createExceptionByStatusCode = createExceptionByStatusCode;
101
- exports.throwException = throwException;
102
- exports.validateStatusCode = validateStatusCode;
103
-
104
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["BadRequestException","UnauthorizedException","ForbiddenException","NotFoundedException","MethodNotAllowedException","NotAcceptableException","ProxyAuthenticationRequiredException","RequestTimeoutException","ConflictException","PreconditionFailedException","ContentTooLargeException","UriTooLongException","UnsupportedMediaTypeException","ImATeapotException","TooManyRequestsException","RequestException","InternalServerErrorException","NotImplementedException","BadGatewayException","ServiceUnavailableException","GatewayTimeoutException"],"sources":["../src/throw-exception.ts","../src/catch-exception.ts","../src/create-exception-by-status-code.ts","../src/validate-status-code.ts","../src/clarify-fetch-failed.ts"],"sourcesContent":["import { KeqContext, KeqMiddleware } from 'keq'\nimport { Promisable } from 'type-fest'\n\n\nexport type Check = (ctx: KeqContext) => Promisable<void>\n\nexport function throwException(check: Check): KeqMiddleware {\n return async function throwException(ctx, next) {\n await next()\n\n await check(ctx)\n }\n}\n","import { KeqMiddleware } from 'keq'\nimport { Promisable } from 'type-fest'\n\n\nexport function catchException(handler: (e: unknown) => Promisable<void>): KeqMiddleware {\n return async function catchException(ctx, next) {\n try {\n await next()\n } catch (err) {\n await handler(err)\n }\n }\n}\n","import {\n BadGatewayException,\n BadRequestException,\n ConflictException,\n ForbiddenException,\n GatewayTimeoutException,\n InternalServerErrorException,\n NotAcceptableException,\n NotFoundedException,\n PreconditionFailedException,\n RequestException,\n ServiceUnavailableException,\n UnauthorizedException,\n ImATeapotException,\n MethodNotAllowedException,\n UriTooLongException,\n ContentTooLargeException,\n ProxyAuthenticationRequiredException,\n RequestTimeoutException,\n TooManyRequestsException,\n NotImplementedException,\n UnsupportedMediaTypeException,\n} from 'keq'\n\nexport function createExceptionByStatusCode(response: Response): Error {\n const { status, statusText } = response\n\n // 4xx client errors\n if (status >= 400 && status < 500) {\n switch (status) {\n case 400:\n return new BadRequestException(statusText, { response })\n case 401:\n return new UnauthorizedException(statusText, { response })\n case 403:\n return new ForbiddenException(statusText, { response })\n case 404:\n return new NotFoundedException(statusText, { response })\n case 405:\n return new MethodNotAllowedException(statusText, { response })\n case 406:\n return new NotAcceptableException(statusText, { response })\n case 407:\n return new ProxyAuthenticationRequiredException(statusText, { response })\n case 408:\n return new RequestTimeoutException(statusText, { response })\n case 409:\n return new ConflictException(statusText, { response })\n case 412:\n return new PreconditionFailedException(statusText, { response })\n case 413:\n return new ContentTooLargeException(statusText, { response })\n case 414:\n return new UriTooLongException(statusText, { response })\n case 415:\n return new UnsupportedMediaTypeException(statusText, { response })\n case 418:\n return new ImATeapotException(statusText, { response })\n case 429:\n return new TooManyRequestsException(statusText, { response })\n default:\n // Other 4xx errors, don't retry by default\n return new RequestException(status, statusText, { fatal: true, response })\n }\n }\n\n // 5xx server errors\n if (status >= 500) {\n switch (status) {\n case 500:\n return new InternalServerErrorException(statusText, { response })\n case 501:\n return new NotImplementedException(statusText, { response })\n case 502:\n return new BadGatewayException(statusText, { response })\n case 503:\n return new ServiceUnavailableException(statusText, { response })\n case 504:\n return new GatewayTimeoutException(statusText, { response })\n default:\n // Other 5xx errors, retry by default\n return new RequestException(status, statusText, { fatal: false, response })\n }\n }\n\n return new RequestException(status, statusText, { fatal: false, response })\n}\n","import { KeqMiddleware } from 'keq'\nimport { createExceptionByStatusCode } from './create-exception-by-status-code.js'\n\nexport function validateStatusCode(): KeqMiddleware {\n return async function validateStatusCode(context, next) {\n await next()\n\n const response = context.response\n if (!response) return\n\n const { status } = response\n\n // 2xx success status codes - no error\n if (status >= 200 && status < 300) return\n\n // 3xx redirection status codes - no error (handled by fetch)\n if (status >= 300 && status < 400) return\n\n throw createExceptionByStatusCode(response)\n }\n}\n","import type { KeqMiddleware } from 'keq'\n\nexport function clarifyFetchFailed(): KeqMiddleware {\n return async function clarifyFetchFailedMiddleware(ctx, next) {\n try {\n await next()\n } catch (error) {\n throw resolveCause(error)\n }\n }\n}\n\nfunction resolveCause(error: unknown): unknown {\n if (!(error instanceof Error)) return error\n\n const causes: string[] = []\n let current: unknown = error.cause\n while (current instanceof Error) {\n causes.push(current.message)\n current = current.cause\n }\n\n if (!causes.length) return error\n\n const enhanced = new (error.constructor as new (message: string, options?: { cause?: unknown }) => Error)(\n `${error.message}: ${causes.join(' - ')}`,\n { cause: error.cause },\n )\n return enhanced\n}\n"],"mappings":";;;AAMA,SAAgB,eAAe,OAA6B;AAC1D,QAAO,eAAe,eAAe,KAAK,MAAM;AAC9C,QAAM,MAAM;AAEZ,QAAM,MAAM,IAAI;;;;;ACNpB,SAAgB,eAAe,SAA0D;AACvF,QAAO,eAAe,eAAe,KAAK,MAAM;AAC9C,MAAI;AACF,SAAM,MAAM;WACL,KAAK;AACZ,SAAM,QAAQ,IAAI;;;;;;ACexB,SAAgB,4BAA4B,UAA2B;CACrE,MAAM,EAAE,QAAQ,eAAe;AAG/B,KAAI,UAAU,OAAO,SAAS,IAC5B,SAAQ,QAAR;EACE,KAAK,IACH,QAAO,IAAIA,IAAAA,oBAAoB,YAAY,EAAE,UAAU,CAAC;EAC1D,KAAK,IACH,QAAO,IAAIC,IAAAA,sBAAsB,YAAY,EAAE,UAAU,CAAC;EAC5D,KAAK,IACH,QAAO,IAAIC,IAAAA,mBAAmB,YAAY,EAAE,UAAU,CAAC;EACzD,KAAK,IACH,QAAO,IAAIC,IAAAA,oBAAoB,YAAY,EAAE,UAAU,CAAC;EAC1D,KAAK,IACH,QAAO,IAAIC,IAAAA,0BAA0B,YAAY,EAAE,UAAU,CAAC;EAChE,KAAK,IACH,QAAO,IAAIC,IAAAA,uBAAuB,YAAY,EAAE,UAAU,CAAC;EAC7D,KAAK,IACH,QAAO,IAAIC,IAAAA,qCAAqC,YAAY,EAAE,UAAU,CAAC;EAC3E,KAAK,IACH,QAAO,IAAIC,IAAAA,wBAAwB,YAAY,EAAE,UAAU,CAAC;EAC9D,KAAK,IACH,QAAO,IAAIC,IAAAA,kBAAkB,YAAY,EAAE,UAAU,CAAC;EACxD,KAAK,IACH,QAAO,IAAIC,IAAAA,4BAA4B,YAAY,EAAE,UA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