@wopee-io/wopee.pw 4.4.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 (335) hide show
  1. package/.commit.hbs +71 -0
  2. package/.commitlintrc.json +3 -0
  3. package/.eslintignore +2 -0
  4. package/.eslintrc +21 -0
  5. package/.github/actions/npm_clean_install/action.yaml +35 -0
  6. package/.github/workflows/ci_cd.yaml +146 -0
  7. package/.prettierignore +3 -0
  8. package/.prettierrc +12 -0
  9. package/README.md +3 -0
  10. package/build/core/domain/configuration/config.interface.d.ts +7 -0
  11. package/build/core/domain/configuration/config.interface.js +3 -0
  12. package/build/core/domain/configuration/config.interface.js.map +1 -0
  13. package/build/core/domain/configuration/index.d.ts +2 -0
  14. package/build/core/domain/configuration/index.js +3 -0
  15. package/build/core/domain/configuration/index.js.map +1 -0
  16. package/build/core/domain/index.d.ts +2 -0
  17. package/build/core/domain/index.js +19 -0
  18. package/build/core/domain/index.js.map +1 -0
  19. package/build/core/domain/valueObjects/index.d.ts +2 -0
  20. package/build/core/domain/valueObjects/index.js +3 -0
  21. package/build/core/domain/valueObjects/index.js.map +1 -0
  22. package/build/core/domain/valueObjects/track.interface.d.ts +13 -0
  23. package/build/core/domain/valueObjects/track.interface.js +3 -0
  24. package/build/core/domain/valueObjects/track.interface.js.map +1 -0
  25. package/build/core/index.d.ts +3 -0
  26. package/build/core/index.js +20 -0
  27. package/build/core/index.js.map +1 -0
  28. package/build/core/ports/configPort/configDefaults.d.ts +2 -0
  29. package/build/core/ports/configPort/configDefaults.js +20 -0
  30. package/build/core/ports/configPort/configDefaults.js.map +1 -0
  31. package/build/core/ports/configPort/configPort.d.ts +6 -0
  32. package/build/core/ports/configPort/configPort.js +12 -0
  33. package/build/core/ports/configPort/configPort.js.map +1 -0
  34. package/build/core/ports/configPort/index.d.ts +2 -0
  35. package/build/core/ports/configPort/index.js +6 -0
  36. package/build/core/ports/configPort/index.js.map +1 -0
  37. package/build/core/ports/index.d.ts +1 -0
  38. package/build/core/ports/index.js +18 -0
  39. package/build/core/ports/index.js.map +1 -0
  40. package/build/core/services/index.d.ts +1 -0
  41. package/build/core/services/index.js +18 -0
  42. package/build/core/services/index.js.map +1 -0
  43. package/build/core/services/wopeeService/index.d.ts +2 -0
  44. package/build/core/services/wopeeService/index.js +6 -0
  45. package/build/core/services/wopeeService/index.js.map +1 -0
  46. package/build/core/services/wopeeService/wopee.d.ts +19 -0
  47. package/build/core/services/wopeeService/wopee.js +163 -0
  48. package/build/core/services/wopeeService/wopee.js.map +1 -0
  49. package/build/index.d.ts +3 -0
  50. package/build/index.js +20 -0
  51. package/build/index.js.map +1 -0
  52. package/build/infrastructure/adapters/envConfigAdapter/envConfigAdapter.d.ts +6 -0
  53. package/build/infrastructure/adapters/envConfigAdapter/envConfigAdapter.js +28 -0
  54. package/build/infrastructure/adapters/envConfigAdapter/envConfigAdapter.js.map +1 -0
  55. package/build/infrastructure/adapters/envConfigAdapter/index.d.ts +2 -0
  56. package/build/infrastructure/adapters/envConfigAdapter/index.js +6 -0
  57. package/build/infrastructure/adapters/envConfigAdapter/index.js.map +1 -0
  58. package/build/infrastructure/adapters/index.d.ts +1 -0
  59. package/build/infrastructure/adapters/index.js +18 -0
  60. package/build/infrastructure/adapters/index.js.map +1 -0
  61. package/build/infrastructure/index.d.ts +1 -0
  62. package/build/infrastructure/index.js +18 -0
  63. package/build/infrastructure/index.js.map +1 -0
  64. package/build/shared/index.d.ts +1 -0
  65. package/build/shared/index.js +18 -0
  66. package/build/shared/index.js.map +1 -0
  67. package/build/shared/metadata/index.d.ts +2 -0
  68. package/build/shared/metadata/index.js +6 -0
  69. package/build/shared/metadata/index.js.map +1 -0
  70. package/build/shared/metadata/versionMetadata.d.ts +1 -0
  71. package/build/shared/metadata/versionMetadata.js +21 -0
  72. package/build/shared/metadata/versionMetadata.js.map +1 -0
  73. package/docs/configuration.md +21 -0
  74. package/docs/minimal.md +26 -0
  75. package/jest.config.ts +16 -0
  76. package/node_modules/@autonomous-testing/sdk/.commit.hbs +71 -0
  77. package/node_modules/@autonomous-testing/sdk/.commitlintrc.json +3 -0
  78. package/node_modules/@autonomous-testing/sdk/.eslintignore +2 -0
  79. package/node_modules/@autonomous-testing/sdk/.eslintrc +21 -0
  80. package/node_modules/@autonomous-testing/sdk/.github/actions/npm_clean_install/action.yaml +35 -0
  81. package/node_modules/@autonomous-testing/sdk/.github/workflows/ci_cd.yaml +149 -0
  82. package/node_modules/@autonomous-testing/sdk/.prettierignore +3 -0
  83. package/node_modules/@autonomous-testing/sdk/.prettierrc +12 -0
  84. package/node_modules/@autonomous-testing/sdk/README.md +57 -0
  85. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.d.ts +14 -0
  86. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.js +10 -0
  87. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.d.ts +32 -0
  88. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.js +16 -0
  89. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.d.ts +11 -0
  90. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.js +9 -0
  91. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.d.ts +14 -0
  92. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.js +16 -0
  93. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.d.ts +14 -0
  94. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.js +10 -0
  95. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.d.ts +24 -0
  96. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js +20 -0
  97. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.d.ts +14 -0
  98. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.js +10 -0
  99. package/node_modules/@autonomous-testing/sdk/build/core/domain/index.d.ts +2 -0
  100. package/node_modules/@autonomous-testing/sdk/build/core/domain/index.js +18 -0
  101. package/node_modules/@autonomous-testing/sdk/build/core/index.d.ts +3 -0
  102. package/node_modules/@autonomous-testing/sdk/build/core/index.js +19 -0
  103. package/node_modules/@autonomous-testing/sdk/build/core/ports/api.d.ts +16 -0
  104. package/node_modules/@autonomous-testing/sdk/build/core/ports/api.js +7 -0
  105. package/node_modules/@autonomous-testing/sdk/build/core/ports/index.d.ts +4 -0
  106. package/node_modules/@autonomous-testing/sdk/build/core/ports/index.js +8 -0
  107. package/node_modules/@autonomous-testing/sdk/build/core/ports/logger.d.ts +7 -0
  108. package/node_modules/@autonomous-testing/sdk/build/core/ports/logger.js +7 -0
  109. package/node_modules/@autonomous-testing/sdk/build/index.d.ts +5 -0
  110. package/node_modules/@autonomous-testing/sdk/build/index.js +22 -0
  111. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.d.ts +19 -0
  112. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +123 -0
  113. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.d.ts +9 -0
  114. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +144 -0
  115. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.d.ts +4 -0
  116. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.js +8 -0
  117. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +235 -0
  118. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +82 -0
  119. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/mutations.d.ts +5 -0
  120. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/mutations.js +85 -0
  121. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/consoleLogger.d.ts +36 -0
  122. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/consoleLogger.js +49 -0
  123. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.d.ts +3 -0
  124. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.js +6 -0
  125. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.d.ts +4 -0
  126. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.js +20 -0
  127. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.d.ts +3 -0
  128. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.js +6 -0
  129. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/noLogger.d.ts +31 -0
  130. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/noLogger.js +34 -0
  131. package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.d.ts +3 -0
  132. package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.js +19 -0
  133. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.d.ts +4 -0
  134. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +12 -0
  135. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.d.ts +7 -0
  136. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.js +3 -0
  137. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.d.ts +4 -0
  138. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.js +6 -0
  139. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.d.ts +3 -0
  140. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.js +19 -0
  141. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/consoleLoggerOptions.interface.d.ts +4 -0
  142. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/consoleLoggerOptions.interface.js +3 -0
  143. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/index.d.ts +4 -0
  144. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/index.js +6 -0
  145. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.d.ts +22 -0
  146. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.js +15 -0
  147. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.d.ts +4 -0
  148. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.js +32 -0
  149. package/node_modules/@autonomous-testing/sdk/build/shared/index.d.ts +3 -0
  150. package/node_modules/@autonomous-testing/sdk/build/shared/index.js +19 -0
  151. package/node_modules/@autonomous-testing/sdk/build/shared/metadata/index.d.ts +3 -0
  152. package/node_modules/@autonomous-testing/sdk/build/shared/metadata/index.js +7 -0
  153. package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.d.ts +3 -0
  154. package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +6 -0
  155. package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.d.ts +4 -0
  156. package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.js +12 -0
  157. package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.d.ts +5 -0
  158. package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.js +22 -0
  159. package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.d.ts +3 -0
  160. package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.js +7 -0
  161. package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.d.ts +17 -0
  162. package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.js +29 -0
  163. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.d.ts +3 -0
  164. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.js +6 -0
  165. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.d.ts +14 -0
  166. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.js +39 -0
  167. package/node_modules/@autonomous-testing/sdk/package.json +50 -0
  168. package/node_modules/@autonomous-testing/sdk/release.config.mjs +55 -0
  169. package/node_modules/asynckit/LICENSE +21 -0
  170. package/node_modules/asynckit/README.md +233 -0
  171. package/node_modules/asynckit/bench.js +76 -0
  172. package/node_modules/asynckit/index.js +6 -0
  173. package/node_modules/asynckit/lib/abort.js +29 -0
  174. package/node_modules/asynckit/lib/async.js +34 -0
  175. package/node_modules/asynckit/lib/defer.js +26 -0
  176. package/node_modules/asynckit/lib/iterate.js +75 -0
  177. package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  178. package/node_modules/asynckit/lib/readable_parallel.js +25 -0
  179. package/node_modules/asynckit/lib/readable_serial.js +25 -0
  180. package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  181. package/node_modules/asynckit/lib/state.js +37 -0
  182. package/node_modules/asynckit/lib/streamify.js +141 -0
  183. package/node_modules/asynckit/lib/terminator.js +29 -0
  184. package/node_modules/asynckit/package.json +63 -0
  185. package/node_modules/asynckit/parallel.js +43 -0
  186. package/node_modules/asynckit/serial.js +17 -0
  187. package/node_modules/asynckit/serialOrdered.js +75 -0
  188. package/node_modules/asynckit/stream.js +21 -0
  189. package/node_modules/axios/CHANGELOG.md +943 -0
  190. package/node_modules/axios/LICENSE +19 -0
  191. package/node_modules/axios/README.md +991 -0
  192. package/node_modules/axios/SECURITY.md +5 -0
  193. package/node_modules/axios/UPGRADE_GUIDE.md +168 -0
  194. package/node_modules/axios/dist/axios.js +2595 -0
  195. package/node_modules/axios/dist/axios.map +1 -0
  196. package/node_modules/axios/dist/axios.min.js +3 -0
  197. package/node_modules/axios/dist/axios.min.map +1 -0
  198. package/node_modules/axios/index.d.ts +254 -0
  199. package/node_modules/axios/index.js +1 -0
  200. package/node_modules/axios/lib/adapters/README.md +37 -0
  201. package/node_modules/axios/lib/adapters/http.js +424 -0
  202. package/node_modules/axios/lib/adapters/xhr.js +222 -0
  203. package/node_modules/axios/lib/axios.js +64 -0
  204. package/node_modules/axios/lib/cancel/CancelToken.js +119 -0
  205. package/node_modules/axios/lib/cancel/CanceledError.js +22 -0
  206. package/node_modules/axios/lib/cancel/isCancel.js +5 -0
  207. package/node_modules/axios/lib/core/Axios.js +160 -0
  208. package/node_modules/axios/lib/core/AxiosError.js +86 -0
  209. package/node_modules/axios/lib/core/InterceptorManager.js +54 -0
  210. package/node_modules/axios/lib/core/README.md +8 -0
  211. package/node_modules/axios/lib/core/buildFullPath.js +20 -0
  212. package/node_modules/axios/lib/core/dispatchRequest.js +87 -0
  213. package/node_modules/axios/lib/core/mergeConfig.js +100 -0
  214. package/node_modules/axios/lib/core/settle.js +25 -0
  215. package/node_modules/axios/lib/core/transformData.js +22 -0
  216. package/node_modules/axios/lib/defaults/env/FormData.js +2 -0
  217. package/node_modules/axios/lib/defaults/index.js +146 -0
  218. package/node_modules/axios/lib/defaults/transitional.js +7 -0
  219. package/node_modules/axios/lib/env/README.md +3 -0
  220. package/node_modules/axios/lib/env/data.js +3 -0
  221. package/node_modules/axios/lib/helpers/README.md +7 -0
  222. package/node_modules/axios/lib/helpers/bind.js +11 -0
  223. package/node_modules/axios/lib/helpers/buildURL.js +70 -0
  224. package/node_modules/axios/lib/helpers/combineURLs.js +14 -0
  225. package/node_modules/axios/lib/helpers/cookies.js +53 -0
  226. package/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
  227. package/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
  228. package/node_modules/axios/lib/helpers/isAxiosError.js +13 -0
  229. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
  230. package/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
  231. package/node_modules/axios/lib/helpers/null.js +2 -0
  232. package/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
  233. package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  234. package/node_modules/axios/lib/helpers/spread.js +27 -0
  235. package/node_modules/axios/lib/helpers/toFormData.js +72 -0
  236. package/node_modules/axios/lib/helpers/validator.js +86 -0
  237. package/node_modules/axios/lib/utils.js +470 -0
  238. package/node_modules/axios/package.json +87 -0
  239. package/node_modules/axios/tsconfig.json +14 -0
  240. package/node_modules/axios/tslint.json +6 -0
  241. package/node_modules/combined-stream/License +19 -0
  242. package/node_modules/combined-stream/Readme.md +138 -0
  243. package/node_modules/combined-stream/lib/combined_stream.js +208 -0
  244. package/node_modules/combined-stream/package.json +25 -0
  245. package/node_modules/delayed-stream/.npmignore +1 -0
  246. package/node_modules/delayed-stream/License +19 -0
  247. package/node_modules/delayed-stream/Makefile +7 -0
  248. package/node_modules/delayed-stream/Readme.md +141 -0
  249. package/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  250. package/node_modules/delayed-stream/package.json +27 -0
  251. package/node_modules/follow-redirects/LICENSE +18 -0
  252. package/node_modules/follow-redirects/README.md +155 -0
  253. package/node_modules/follow-redirects/debug.js +15 -0
  254. package/node_modules/follow-redirects/http.js +1 -0
  255. package/node_modules/follow-redirects/https.js +1 -0
  256. package/node_modules/follow-redirects/index.js +672 -0
  257. package/node_modules/follow-redirects/package.json +58 -0
  258. package/node_modules/form-data/License +19 -0
  259. package/node_modules/form-data/README.md.bak +358 -0
  260. package/node_modules/form-data/Readme.md +358 -0
  261. package/node_modules/form-data/index.d.ts +62 -0
  262. package/node_modules/form-data/lib/browser.js +2 -0
  263. package/node_modules/form-data/lib/form_data.js +501 -0
  264. package/node_modules/form-data/lib/populate.js +10 -0
  265. package/node_modules/form-data/package.json +68 -0
  266. package/node_modules/mime-db/HISTORY.md +507 -0
  267. package/node_modules/mime-db/LICENSE +23 -0
  268. package/node_modules/mime-db/README.md +100 -0
  269. package/node_modules/mime-db/db.json +8519 -0
  270. package/node_modules/mime-db/index.js +12 -0
  271. package/node_modules/mime-db/package.json +60 -0
  272. package/node_modules/mime-types/HISTORY.md +397 -0
  273. package/node_modules/mime-types/LICENSE +23 -0
  274. package/node_modules/mime-types/README.md +113 -0
  275. package/node_modules/mime-types/index.js +188 -0
  276. package/node_modules/mime-types/package.json +44 -0
  277. package/node_modules/process/.eslintrc +21 -0
  278. package/node_modules/process/LICENSE +22 -0
  279. package/node_modules/process/README.md +26 -0
  280. package/node_modules/process/browser.js +184 -0
  281. package/node_modules/process/index.js +2 -0
  282. package/node_modules/process/package.json +27 -0
  283. package/node_modules/process/test.js +199 -0
  284. package/node_modules/zod/LICENSE +21 -0
  285. package/node_modules/zod/README.md +2876 -0
  286. package/node_modules/zod/index.d.ts +2 -0
  287. package/node_modules/zod/lib/ZodError.d.ts +164 -0
  288. package/node_modules/zod/lib/ZodError.js +137 -0
  289. package/node_modules/zod/lib/__tests__/Mocker.d.ts +17 -0
  290. package/node_modules/zod/lib/__tests__/Mocker.js +57 -0
  291. package/node_modules/zod/lib/benchmarks/datetime.d.ts +5 -0
  292. package/node_modules/zod/lib/benchmarks/datetime.js +54 -0
  293. package/node_modules/zod/lib/benchmarks/discriminatedUnion.d.ts +5 -0
  294. package/node_modules/zod/lib/benchmarks/discriminatedUnion.js +79 -0
  295. package/node_modules/zod/lib/benchmarks/index.d.ts +1 -0
  296. package/node_modules/zod/lib/benchmarks/index.js +59 -0
  297. package/node_modules/zod/lib/benchmarks/ipv4.d.ts +5 -0
  298. package/node_modules/zod/lib/benchmarks/ipv4.js +54 -0
  299. package/node_modules/zod/lib/benchmarks/object.d.ts +5 -0
  300. package/node_modules/zod/lib/benchmarks/object.js +70 -0
  301. package/node_modules/zod/lib/benchmarks/primitives.d.ts +5 -0
  302. package/node_modules/zod/lib/benchmarks/primitives.js +170 -0
  303. package/node_modules/zod/lib/benchmarks/realworld.d.ts +5 -0
  304. package/node_modules/zod/lib/benchmarks/realworld.js +56 -0
  305. package/node_modules/zod/lib/benchmarks/string.d.ts +5 -0
  306. package/node_modules/zod/lib/benchmarks/string.js +55 -0
  307. package/node_modules/zod/lib/benchmarks/union.d.ts +5 -0
  308. package/node_modules/zod/lib/benchmarks/union.js +79 -0
  309. package/node_modules/zod/lib/errors.d.ts +5 -0
  310. package/node_modules/zod/lib/errors.js +17 -0
  311. package/node_modules/zod/lib/external.d.ts +6 -0
  312. package/node_modules/zod/lib/external.js +18 -0
  313. package/node_modules/zod/lib/helpers/enumUtil.d.ts +8 -0
  314. package/node_modules/zod/lib/helpers/enumUtil.js +2 -0
  315. package/node_modules/zod/lib/helpers/errorUtil.d.ts +9 -0
  316. package/node_modules/zod/lib/helpers/errorUtil.js +8 -0
  317. package/node_modules/zod/lib/helpers/parseUtil.d.ts +78 -0
  318. package/node_modules/zod/lib/helpers/parseUtil.js +125 -0
  319. package/node_modules/zod/lib/helpers/partialUtil.d.ts +8 -0
  320. package/node_modules/zod/lib/helpers/partialUtil.js +2 -0
  321. package/node_modules/zod/lib/helpers/typeAliases.d.ts +2 -0
  322. package/node_modules/zod/lib/helpers/typeAliases.js +2 -0
  323. package/node_modules/zod/lib/helpers/util.d.ts +82 -0
  324. package/node_modules/zod/lib/helpers/util.js +142 -0
  325. package/node_modules/zod/lib/index.d.ts +4 -0
  326. package/node_modules/zod/lib/index.js +29 -0
  327. package/node_modules/zod/lib/index.mjs +4236 -0
  328. package/node_modules/zod/lib/index.umd.js +4351 -0
  329. package/node_modules/zod/lib/locales/en.d.ts +3 -0
  330. package/node_modules/zod/lib/locales/en.js +129 -0
  331. package/node_modules/zod/lib/types.d.ts +1127 -0
  332. package/node_modules/zod/lib/types.js +3677 -0
  333. package/node_modules/zod/package.json +119 -0
  334. package/package.json +57 -0
  335. package/release.config.mjs +55 -0
@@ -0,0 +1,155 @@
1
+ ## Follow Redirects
2
+
3
+ Drop-in replacement for Node's `http` and `https` modules that automatically follows redirects.
4
+
5
+ [![npm version](https://img.shields.io/npm/v/follow-redirects.svg)](https://www.npmjs.com/package/follow-redirects)
6
+ [![Build Status](https://github.com/follow-redirects/follow-redirects/workflows/CI/badge.svg)](https://github.com/follow-redirects/follow-redirects/actions)
7
+ [![Coverage Status](https://coveralls.io/repos/follow-redirects/follow-redirects/badge.svg?branch=master)](https://coveralls.io/r/follow-redirects/follow-redirects?branch=master)
8
+ [![npm downloads](https://img.shields.io/npm/dm/follow-redirects.svg)](https://www.npmjs.com/package/follow-redirects)
9
+ [![Sponsor on GitHub](https://img.shields.io/static/v1?label=Sponsor&message=%F0%9F%92%96&logo=GitHub)](https://github.com/sponsors/RubenVerborgh)
10
+
11
+ `follow-redirects` provides [request](https://nodejs.org/api/http.html#http_http_request_options_callback) and [get](https://nodejs.org/api/http.html#http_http_get_options_callback)
12
+ methods that behave identically to those found on the native [http](https://nodejs.org/api/http.html#http_http_request_options_callback) and [https](https://nodejs.org/api/https.html#https_https_request_options_callback)
13
+ modules, with the exception that they will seamlessly follow redirects.
14
+
15
+ ```javascript
16
+ const { http, https } = require('follow-redirects');
17
+
18
+ http.get('http://bit.ly/900913', response => {
19
+ response.on('data', chunk => {
20
+ console.log(chunk);
21
+ });
22
+ }).on('error', err => {
23
+ console.error(err);
24
+ });
25
+ ```
26
+
27
+ You can inspect the final redirected URL through the `responseUrl` property on the `response`.
28
+ If no redirection happened, `responseUrl` is the original request URL.
29
+
30
+ ```javascript
31
+ const request = https.request({
32
+ host: 'bitly.com',
33
+ path: '/UHfDGO',
34
+ }, response => {
35
+ console.log(response.responseUrl);
36
+ // 'http://duckduckgo.com/robots.txt'
37
+ });
38
+ request.end();
39
+ ```
40
+
41
+ ## Options
42
+ ### Global options
43
+ Global options are set directly on the `follow-redirects` module:
44
+
45
+ ```javascript
46
+ const followRedirects = require('follow-redirects');
47
+ followRedirects.maxRedirects = 10;
48
+ followRedirects.maxBodyLength = 20 * 1024 * 1024; // 20 MB
49
+ ```
50
+
51
+ The following global options are supported:
52
+
53
+ - `maxRedirects` (default: `21`) – sets the maximum number of allowed redirects; if exceeded, an error will be emitted.
54
+
55
+ - `maxBodyLength` (default: 10MB) – sets the maximum size of the request body; if exceeded, an error will be emitted.
56
+
57
+ ### Per-request options
58
+ Per-request options are set by passing an `options` object:
59
+
60
+ ```javascript
61
+ const url = require('url');
62
+ const { http, https } = require('follow-redirects');
63
+
64
+ const options = url.parse('http://bit.ly/900913');
65
+ options.maxRedirects = 10;
66
+ options.beforeRedirect = (options, response, request) => {
67
+ // Use this to adjust the request options upon redirecting,
68
+ // to inspect the latest response headers,
69
+ // or to cancel the request by throwing an error
70
+
71
+ // response.headers = the redirect response headers
72
+ // response.statusCode = the redirect response code (eg. 301, 307, etc.)
73
+
74
+ // request.url = the requested URL that resulted in a redirect
75
+ // request.headers = the headers in the request that resulted in a redirect
76
+ // request.method = the method of the request that resulted in a redirect
77
+ if (options.hostname === "example.com") {
78
+ options.auth = "user:password";
79
+ }
80
+ };
81
+ http.request(options);
82
+ ```
83
+
84
+ In addition to the [standard HTTP](https://nodejs.org/api/http.html#http_http_request_options_callback) and [HTTPS options](https://nodejs.org/api/https.html#https_https_request_options_callback),
85
+ the following per-request options are supported:
86
+ - `followRedirects` (default: `true`) – whether redirects should be followed.
87
+
88
+ - `maxRedirects` (default: `21`) – sets the maximum number of allowed redirects; if exceeded, an error will be emitted.
89
+
90
+ - `maxBodyLength` (default: 10MB) – sets the maximum size of the request body; if exceeded, an error will be emitted.
91
+
92
+ - `beforeRedirect` (default: `undefined`) – optionally change the request `options` on redirects, or abort the request by throwing an error.
93
+
94
+ - `agents` (default: `undefined`) – sets the `agent` option per protocol, since HTTP and HTTPS use different agents. Example value: `{ http: new http.Agent(), https: new https.Agent() }`
95
+
96
+ - `trackRedirects` (default: `false`) – whether to store the redirected response details into the `redirects` array on the response object.
97
+
98
+
99
+ ### Advanced usage
100
+ By default, `follow-redirects` will use the Node.js default implementations
101
+ of [`http`](https://nodejs.org/api/http.html)
102
+ and [`https`](https://nodejs.org/api/https.html).
103
+ To enable features such as caching and/or intermediate request tracking,
104
+ you might instead want to wrap `follow-redirects` around custom protocol implementations:
105
+
106
+ ```javascript
107
+ const { http, https } = require('follow-redirects').wrap({
108
+ http: require('your-custom-http'),
109
+ https: require('your-custom-https'),
110
+ });
111
+ ```
112
+
113
+ Such custom protocols only need an implementation of the `request` method.
114
+
115
+ ## Browser Usage
116
+
117
+ Due to the way the browser works,
118
+ the `http` and `https` browser equivalents perform redirects by default.
119
+
120
+ By requiring `follow-redirects` this way:
121
+ ```javascript
122
+ const http = require('follow-redirects/http');
123
+ const https = require('follow-redirects/https');
124
+ ```
125
+ you can easily tell webpack and friends to replace
126
+ `follow-redirect` by the built-in versions:
127
+
128
+ ```json
129
+ {
130
+ "follow-redirects/http" : "http",
131
+ "follow-redirects/https" : "https"
132
+ }
133
+ ```
134
+
135
+ ## Contributing
136
+
137
+ Pull Requests are always welcome. Please [file an issue](https://github.com/follow-redirects/follow-redirects/issues)
138
+ detailing your proposal before you invest your valuable time. Additional features and bug fixes should be accompanied
139
+ by tests. You can run the test suite locally with a simple `npm test` command.
140
+
141
+ ## Debug Logging
142
+
143
+ `follow-redirects` uses the excellent [debug](https://www.npmjs.com/package/debug) for logging. To turn on logging
144
+ set the environment variable `DEBUG=follow-redirects` for debug output from just this module. When running the test
145
+ suite it is sometimes advantageous to set `DEBUG=*` to see output from the express server as well.
146
+
147
+ ## Authors
148
+
149
+ - [Ruben Verborgh](https://ruben.verborgh.org/)
150
+ - [Olivier Lalonde](mailto:olalonde@gmail.com)
151
+ - [James Talmage](mailto:james@talmage.io)
152
+
153
+ ## License
154
+
155
+ [MIT License](https://github.com/follow-redirects/follow-redirects/blob/master/LICENSE)
@@ -0,0 +1,15 @@
1
+ var debug;
2
+
3
+ module.exports = function () {
4
+ if (!debug) {
5
+ try {
6
+ /* eslint global-require: off */
7
+ debug = require("debug")("follow-redirects");
8
+ }
9
+ catch (error) { /* */ }
10
+ if (typeof debug !== "function") {
11
+ debug = function () { /* */ };
12
+ }
13
+ }
14
+ debug.apply(null, arguments);
15
+ };
@@ -0,0 +1 @@
1
+ module.exports = require("./").http;
@@ -0,0 +1 @@
1
+ module.exports = require("./").https;