@mavogel/awscdk-rootmail 0.0.334 → 0.0.335

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 (393) hide show
  1. package/.jsii +2 -4
  2. package/CLAUDE.md +14 -30
  3. package/cdk.json +0 -1
  4. package/lib/rootmail.js +1 -1
  5. package/lib/ses-receive.js +1 -1
  6. package/package.json +1 -10
  7. package/lib/index-cli-synth.d.ts +0 -1
  8. package/lib/index-cli-synth.js +0 -68
  9. package/lib/scripts/publish-assets.d.ts +0 -1
  10. package/lib/scripts/publish-assets.js +0 -39
  11. package/node_modules/async-retry/LICENSE.md +0 -21
  12. package/node_modules/async-retry/README.md +0 -53
  13. package/node_modules/async-retry/lib/index.js +0 -61
  14. package/node_modules/async-retry/package.json +0 -55
  15. package/node_modules/asynckit/LICENSE +0 -21
  16. package/node_modules/asynckit/README.md +0 -233
  17. package/node_modules/asynckit/bench.js +0 -76
  18. package/node_modules/asynckit/index.js +0 -6
  19. package/node_modules/asynckit/lib/abort.js +0 -29
  20. package/node_modules/asynckit/lib/async.js +0 -34
  21. package/node_modules/asynckit/lib/defer.js +0 -26
  22. package/node_modules/asynckit/lib/iterate.js +0 -75
  23. package/node_modules/asynckit/lib/readable_asynckit.js +0 -91
  24. package/node_modules/asynckit/lib/readable_parallel.js +0 -25
  25. package/node_modules/asynckit/lib/readable_serial.js +0 -25
  26. package/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
  27. package/node_modules/asynckit/lib/state.js +0 -37
  28. package/node_modules/asynckit/lib/streamify.js +0 -141
  29. package/node_modules/asynckit/lib/terminator.js +0 -29
  30. package/node_modules/asynckit/package.json +0 -63
  31. package/node_modules/asynckit/parallel.js +0 -43
  32. package/node_modules/asynckit/serial.js +0 -17
  33. package/node_modules/asynckit/serialOrdered.js +0 -75
  34. package/node_modules/asynckit/stream.js +0 -21
  35. package/node_modules/axios/CHANGELOG.md +0 -1416
  36. package/node_modules/axios/LICENSE +0 -7
  37. package/node_modules/axios/MIGRATION_GUIDE.md +0 -877
  38. package/node_modules/axios/README.md +0 -2019
  39. package/node_modules/axios/dist/axios.js +0 -4494
  40. package/node_modules/axios/dist/axios.js.map +0 -1
  41. package/node_modules/axios/dist/axios.min.js +0 -5
  42. package/node_modules/axios/dist/axios.min.js.map +0 -1
  43. package/node_modules/axios/dist/browser/axios.cjs +0 -4273
  44. package/node_modules/axios/dist/browser/axios.cjs.map +0 -1
  45. package/node_modules/axios/dist/esm/axios.js +0 -4293
  46. package/node_modules/axios/dist/esm/axios.js.map +0 -1
  47. package/node_modules/axios/dist/esm/axios.min.js +0 -3
  48. package/node_modules/axios/dist/esm/axios.min.js.map +0 -1
  49. package/node_modules/axios/dist/node/axios.cjs +0 -4811
  50. package/node_modules/axios/dist/node/axios.cjs.map +0 -1
  51. package/node_modules/axios/index.d.cts +0 -716
  52. package/node_modules/axios/index.d.ts +0 -810
  53. package/node_modules/axios/index.js +0 -43
  54. package/node_modules/axios/lib/adapters/README.md +0 -36
  55. package/node_modules/axios/lib/adapters/adapters.js +0 -130
  56. package/node_modules/axios/lib/adapters/fetch.js +0 -338
  57. package/node_modules/axios/lib/adapters/http.js +0 -954
  58. package/node_modules/axios/lib/adapters/xhr.js +0 -222
  59. package/node_modules/axios/lib/axios.js +0 -89
  60. package/node_modules/axios/lib/cancel/CancelToken.js +0 -135
  61. package/node_modules/axios/lib/cancel/CanceledError.js +0 -22
  62. package/node_modules/axios/lib/cancel/isCancel.js +0 -5
  63. package/node_modules/axios/lib/core/Axios.js +0 -277
  64. package/node_modules/axios/lib/core/AxiosError.js +0 -90
  65. package/node_modules/axios/lib/core/AxiosHeaders.js +0 -378
  66. package/node_modules/axios/lib/core/InterceptorManager.js +0 -72
  67. package/node_modules/axios/lib/core/README.md +0 -8
  68. package/node_modules/axios/lib/core/buildFullPath.js +0 -22
  69. package/node_modules/axios/lib/core/dispatchRequest.js +0 -77
  70. package/node_modules/axios/lib/core/mergeConfig.js +0 -107
  71. package/node_modules/axios/lib/core/settle.js +0 -31
  72. package/node_modules/axios/lib/core/transformData.js +0 -28
  73. package/node_modules/axios/lib/defaults/index.js +0 -172
  74. package/node_modules/axios/lib/defaults/transitional.js +0 -8
  75. package/node_modules/axios/lib/env/README.md +0 -3
  76. package/node_modules/axios/lib/env/classes/FormData.js +0 -2
  77. package/node_modules/axios/lib/env/data.js +0 -1
  78. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
  79. package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -62
  80. package/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
  81. package/node_modules/axios/lib/helpers/README.md +0 -7
  82. package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
  83. package/node_modules/axios/lib/helpers/bind.js +0 -14
  84. package/node_modules/axios/lib/helpers/buildURL.js +0 -66
  85. package/node_modules/axios/lib/helpers/callbackify.js +0 -18
  86. package/node_modules/axios/lib/helpers/combineURLs.js +0 -15
  87. package/node_modules/axios/lib/helpers/composeSignals.js +0 -56
  88. package/node_modules/axios/lib/helpers/cookies.js +0 -48
  89. package/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
  90. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -73
  91. package/node_modules/axios/lib/helpers/formDataToJSON.js +0 -95
  92. package/node_modules/axios/lib/helpers/formDataToStream.js +0 -118
  93. package/node_modules/axios/lib/helpers/fromDataURI.js +0 -53
  94. package/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
  95. package/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
  96. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
  97. package/node_modules/axios/lib/helpers/null.js +0 -2
  98. package/node_modules/axios/lib/helpers/parseHeaders.js +0 -69
  99. package/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  100. package/node_modules/axios/lib/helpers/progressEventReducer.js +0 -51
  101. package/node_modules/axios/lib/helpers/readBlob.js +0 -15
  102. package/node_modules/axios/lib/helpers/resolveConfig.js +0 -70
  103. package/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -106
  104. package/node_modules/axios/lib/helpers/speedometer.js +0 -55
  105. package/node_modules/axios/lib/helpers/spread.js +0 -28
  106. package/node_modules/axios/lib/helpers/throttle.js +0 -44
  107. package/node_modules/axios/lib/helpers/toFormData.js +0 -241
  108. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  109. package/node_modules/axios/lib/helpers/trackStream.js +0 -89
  110. package/node_modules/axios/lib/helpers/validator.js +0 -110
  111. package/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
  112. package/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  113. package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
  114. package/node_modules/axios/lib/platform/browser/index.js +0 -13
  115. package/node_modules/axios/lib/platform/common/utils.js +0 -52
  116. package/node_modules/axios/lib/platform/index.js +0 -7
  117. package/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  118. package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
  119. package/node_modules/axios/lib/platform/node/index.js +0 -37
  120. package/node_modules/axios/lib/utils.js +0 -919
  121. package/node_modules/axios/package.json +0 -190
  122. package/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
  123. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
  124. package/node_modules/call-bind-apply-helpers/.nycrc +0 -9
  125. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
  126. package/node_modules/call-bind-apply-helpers/LICENSE +0 -21
  127. package/node_modules/call-bind-apply-helpers/README.md +0 -62
  128. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
  129. package/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
  130. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
  131. package/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
  132. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
  133. package/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
  134. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
  135. package/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
  136. package/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
  137. package/node_modules/call-bind-apply-helpers/index.js +0 -15
  138. package/node_modules/call-bind-apply-helpers/package.json +0 -85
  139. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
  140. package/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
  141. package/node_modules/call-bind-apply-helpers/test/index.js +0 -63
  142. package/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
  143. package/node_modules/combined-stream/License +0 -19
  144. package/node_modules/combined-stream/Readme.md +0 -138
  145. package/node_modules/combined-stream/lib/combined_stream.js +0 -208
  146. package/node_modules/combined-stream/package.json +0 -25
  147. package/node_modules/delayed-stream/.npmignore +0 -1
  148. package/node_modules/delayed-stream/License +0 -19
  149. package/node_modules/delayed-stream/Makefile +0 -7
  150. package/node_modules/delayed-stream/Readme.md +0 -141
  151. package/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
  152. package/node_modules/delayed-stream/package.json +0 -27
  153. package/node_modules/dunder-proto/.eslintrc +0 -5
  154. package/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
  155. package/node_modules/dunder-proto/.nycrc +0 -13
  156. package/node_modules/dunder-proto/CHANGELOG.md +0 -24
  157. package/node_modules/dunder-proto/LICENSE +0 -21
  158. package/node_modules/dunder-proto/README.md +0 -54
  159. package/node_modules/dunder-proto/get.d.ts +0 -5
  160. package/node_modules/dunder-proto/get.js +0 -30
  161. package/node_modules/dunder-proto/package.json +0 -76
  162. package/node_modules/dunder-proto/set.d.ts +0 -5
  163. package/node_modules/dunder-proto/set.js +0 -35
  164. package/node_modules/dunder-proto/test/get.js +0 -34
  165. package/node_modules/dunder-proto/test/index.js +0 -4
  166. package/node_modules/dunder-proto/test/set.js +0 -50
  167. package/node_modules/dunder-proto/tsconfig.json +0 -9
  168. package/node_modules/es-define-property/.eslintrc +0 -13
  169. package/node_modules/es-define-property/.github/FUNDING.yml +0 -12
  170. package/node_modules/es-define-property/.nycrc +0 -9
  171. package/node_modules/es-define-property/CHANGELOG.md +0 -29
  172. package/node_modules/es-define-property/LICENSE +0 -21
  173. package/node_modules/es-define-property/README.md +0 -49
  174. package/node_modules/es-define-property/index.d.ts +0 -3
  175. package/node_modules/es-define-property/index.js +0 -14
  176. package/node_modules/es-define-property/package.json +0 -81
  177. package/node_modules/es-define-property/test/index.js +0 -56
  178. package/node_modules/es-define-property/tsconfig.json +0 -10
  179. package/node_modules/es-errors/.eslintrc +0 -5
  180. package/node_modules/es-errors/.github/FUNDING.yml +0 -12
  181. package/node_modules/es-errors/CHANGELOG.md +0 -40
  182. package/node_modules/es-errors/LICENSE +0 -21
  183. package/node_modules/es-errors/README.md +0 -55
  184. package/node_modules/es-errors/eval.d.ts +0 -3
  185. package/node_modules/es-errors/eval.js +0 -4
  186. package/node_modules/es-errors/index.d.ts +0 -3
  187. package/node_modules/es-errors/index.js +0 -4
  188. package/node_modules/es-errors/package.json +0 -80
  189. package/node_modules/es-errors/range.d.ts +0 -3
  190. package/node_modules/es-errors/range.js +0 -4
  191. package/node_modules/es-errors/ref.d.ts +0 -3
  192. package/node_modules/es-errors/ref.js +0 -4
  193. package/node_modules/es-errors/syntax.d.ts +0 -3
  194. package/node_modules/es-errors/syntax.js +0 -4
  195. package/node_modules/es-errors/test/index.js +0 -19
  196. package/node_modules/es-errors/tsconfig.json +0 -49
  197. package/node_modules/es-errors/type.d.ts +0 -3
  198. package/node_modules/es-errors/type.js +0 -4
  199. package/node_modules/es-errors/uri.d.ts +0 -3
  200. package/node_modules/es-errors/uri.js +0 -4
  201. package/node_modules/es-object-atoms/.eslintrc +0 -16
  202. package/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
  203. package/node_modules/es-object-atoms/CHANGELOG.md +0 -37
  204. package/node_modules/es-object-atoms/LICENSE +0 -21
  205. package/node_modules/es-object-atoms/README.md +0 -63
  206. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
  207. package/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
  208. package/node_modules/es-object-atoms/ToObject.d.ts +0 -7
  209. package/node_modules/es-object-atoms/ToObject.js +0 -10
  210. package/node_modules/es-object-atoms/index.d.ts +0 -3
  211. package/node_modules/es-object-atoms/index.js +0 -4
  212. package/node_modules/es-object-atoms/isObject.d.ts +0 -3
  213. package/node_modules/es-object-atoms/isObject.js +0 -6
  214. package/node_modules/es-object-atoms/package.json +0 -80
  215. package/node_modules/es-object-atoms/test/index.js +0 -38
  216. package/node_modules/es-object-atoms/tsconfig.json +0 -6
  217. package/node_modules/es-set-tostringtag/.eslintrc +0 -13
  218. package/node_modules/es-set-tostringtag/.nycrc +0 -9
  219. package/node_modules/es-set-tostringtag/CHANGELOG.md +0 -67
  220. package/node_modules/es-set-tostringtag/LICENSE +0 -21
  221. package/node_modules/es-set-tostringtag/README.md +0 -53
  222. package/node_modules/es-set-tostringtag/index.d.ts +0 -10
  223. package/node_modules/es-set-tostringtag/index.js +0 -35
  224. package/node_modules/es-set-tostringtag/package.json +0 -78
  225. package/node_modules/es-set-tostringtag/test/index.js +0 -85
  226. package/node_modules/es-set-tostringtag/tsconfig.json +0 -9
  227. package/node_modules/follow-redirects/LICENSE +0 -18
  228. package/node_modules/follow-redirects/README.md +0 -155
  229. package/node_modules/follow-redirects/debug.js +0 -15
  230. package/node_modules/follow-redirects/http.js +0 -1
  231. package/node_modules/follow-redirects/https.js +0 -1
  232. package/node_modules/follow-redirects/index.js +0 -686
  233. package/node_modules/follow-redirects/package.json +0 -58
  234. package/node_modules/form-data/CHANGELOG.md +0 -659
  235. package/node_modules/form-data/License +0 -19
  236. package/node_modules/form-data/README.md +0 -355
  237. package/node_modules/form-data/index.d.ts +0 -62
  238. package/node_modules/form-data/lib/browser.js +0 -4
  239. package/node_modules/form-data/lib/form_data.js +0 -494
  240. package/node_modules/form-data/lib/populate.js +0 -10
  241. package/node_modules/form-data/package.json +0 -82
  242. package/node_modules/function-bind/.eslintrc +0 -21
  243. package/node_modules/function-bind/.github/FUNDING.yml +0 -12
  244. package/node_modules/function-bind/.github/SECURITY.md +0 -3
  245. package/node_modules/function-bind/.nycrc +0 -13
  246. package/node_modules/function-bind/CHANGELOG.md +0 -136
  247. package/node_modules/function-bind/LICENSE +0 -20
  248. package/node_modules/function-bind/README.md +0 -46
  249. package/node_modules/function-bind/implementation.js +0 -84
  250. package/node_modules/function-bind/index.js +0 -5
  251. package/node_modules/function-bind/package.json +0 -87
  252. package/node_modules/function-bind/test/.eslintrc +0 -9
  253. package/node_modules/function-bind/test/index.js +0 -252
  254. package/node_modules/get-intrinsic/.eslintrc +0 -42
  255. package/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
  256. package/node_modules/get-intrinsic/.nycrc +0 -9
  257. package/node_modules/get-intrinsic/CHANGELOG.md +0 -186
  258. package/node_modules/get-intrinsic/LICENSE +0 -21
  259. package/node_modules/get-intrinsic/README.md +0 -71
  260. package/node_modules/get-intrinsic/index.js +0 -378
  261. package/node_modules/get-intrinsic/package.json +0 -97
  262. package/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
  263. package/node_modules/get-proto/.eslintrc +0 -10
  264. package/node_modules/get-proto/.github/FUNDING.yml +0 -12
  265. package/node_modules/get-proto/.nycrc +0 -9
  266. package/node_modules/get-proto/CHANGELOG.md +0 -21
  267. package/node_modules/get-proto/LICENSE +0 -21
  268. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
  269. package/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
  270. package/node_modules/get-proto/README.md +0 -50
  271. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
  272. package/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
  273. package/node_modules/get-proto/index.d.ts +0 -5
  274. package/node_modules/get-proto/index.js +0 -27
  275. package/node_modules/get-proto/package.json +0 -81
  276. package/node_modules/get-proto/test/index.js +0 -68
  277. package/node_modules/get-proto/tsconfig.json +0 -9
  278. package/node_modules/gopd/.eslintrc +0 -16
  279. package/node_modules/gopd/.github/FUNDING.yml +0 -12
  280. package/node_modules/gopd/CHANGELOG.md +0 -45
  281. package/node_modules/gopd/LICENSE +0 -21
  282. package/node_modules/gopd/README.md +0 -40
  283. package/node_modules/gopd/gOPD.d.ts +0 -1
  284. package/node_modules/gopd/gOPD.js +0 -4
  285. package/node_modules/gopd/index.d.ts +0 -5
  286. package/node_modules/gopd/index.js +0 -15
  287. package/node_modules/gopd/package.json +0 -77
  288. package/node_modules/gopd/test/index.js +0 -36
  289. package/node_modules/gopd/tsconfig.json +0 -9
  290. package/node_modules/has-symbols/.eslintrc +0 -11
  291. package/node_modules/has-symbols/.github/FUNDING.yml +0 -12
  292. package/node_modules/has-symbols/.nycrc +0 -9
  293. package/node_modules/has-symbols/CHANGELOG.md +0 -91
  294. package/node_modules/has-symbols/LICENSE +0 -21
  295. package/node_modules/has-symbols/README.md +0 -46
  296. package/node_modules/has-symbols/index.d.ts +0 -3
  297. package/node_modules/has-symbols/index.js +0 -14
  298. package/node_modules/has-symbols/package.json +0 -111
  299. package/node_modules/has-symbols/shams.d.ts +0 -3
  300. package/node_modules/has-symbols/shams.js +0 -45
  301. package/node_modules/has-symbols/test/index.js +0 -22
  302. package/node_modules/has-symbols/test/shams/core-js.js +0 -29
  303. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
  304. package/node_modules/has-symbols/test/tests.js +0 -58
  305. package/node_modules/has-symbols/tsconfig.json +0 -10
  306. package/node_modules/has-tostringtag/.eslintrc +0 -5
  307. package/node_modules/has-tostringtag/.github/FUNDING.yml +0 -12
  308. package/node_modules/has-tostringtag/.nycrc +0 -13
  309. package/node_modules/has-tostringtag/CHANGELOG.md +0 -42
  310. package/node_modules/has-tostringtag/LICENSE +0 -21
  311. package/node_modules/has-tostringtag/README.md +0 -46
  312. package/node_modules/has-tostringtag/index.d.ts +0 -3
  313. package/node_modules/has-tostringtag/index.js +0 -8
  314. package/node_modules/has-tostringtag/package.json +0 -108
  315. package/node_modules/has-tostringtag/shams.d.ts +0 -3
  316. package/node_modules/has-tostringtag/shams.js +0 -8
  317. package/node_modules/has-tostringtag/test/index.js +0 -21
  318. package/node_modules/has-tostringtag/test/shams/core-js.js +0 -31
  319. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +0 -30
  320. package/node_modules/has-tostringtag/test/tests.js +0 -15
  321. package/node_modules/has-tostringtag/tsconfig.json +0 -49
  322. package/node_modules/hasown/.eslintrc +0 -5
  323. package/node_modules/hasown/.github/FUNDING.yml +0 -12
  324. package/node_modules/hasown/.nycrc +0 -13
  325. package/node_modules/hasown/CHANGELOG.md +0 -40
  326. package/node_modules/hasown/LICENSE +0 -21
  327. package/node_modules/hasown/README.md +0 -40
  328. package/node_modules/hasown/index.d.ts +0 -3
  329. package/node_modules/hasown/index.js +0 -8
  330. package/node_modules/hasown/package.json +0 -92
  331. package/node_modules/hasown/tsconfig.json +0 -6
  332. package/node_modules/math-intrinsics/.eslintrc +0 -16
  333. package/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
  334. package/node_modules/math-intrinsics/CHANGELOG.md +0 -24
  335. package/node_modules/math-intrinsics/LICENSE +0 -21
  336. package/node_modules/math-intrinsics/README.md +0 -50
  337. package/node_modules/math-intrinsics/abs.d.ts +0 -1
  338. package/node_modules/math-intrinsics/abs.js +0 -4
  339. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
  340. package/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
  341. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
  342. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
  343. package/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
  344. package/node_modules/math-intrinsics/constants/maxValue.js +0 -5
  345. package/node_modules/math-intrinsics/floor.d.ts +0 -1
  346. package/node_modules/math-intrinsics/floor.js +0 -4
  347. package/node_modules/math-intrinsics/isFinite.d.ts +0 -3
  348. package/node_modules/math-intrinsics/isFinite.js +0 -12
  349. package/node_modules/math-intrinsics/isInteger.d.ts +0 -3
  350. package/node_modules/math-intrinsics/isInteger.js +0 -16
  351. package/node_modules/math-intrinsics/isNaN.d.ts +0 -1
  352. package/node_modules/math-intrinsics/isNaN.js +0 -6
  353. package/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
  354. package/node_modules/math-intrinsics/isNegativeZero.js +0 -6
  355. package/node_modules/math-intrinsics/max.d.ts +0 -1
  356. package/node_modules/math-intrinsics/max.js +0 -4
  357. package/node_modules/math-intrinsics/min.d.ts +0 -1
  358. package/node_modules/math-intrinsics/min.js +0 -4
  359. package/node_modules/math-intrinsics/mod.d.ts +0 -3
  360. package/node_modules/math-intrinsics/mod.js +0 -9
  361. package/node_modules/math-intrinsics/package.json +0 -86
  362. package/node_modules/math-intrinsics/pow.d.ts +0 -1
  363. package/node_modules/math-intrinsics/pow.js +0 -4
  364. package/node_modules/math-intrinsics/round.d.ts +0 -1
  365. package/node_modules/math-intrinsics/round.js +0 -4
  366. package/node_modules/math-intrinsics/sign.d.ts +0 -3
  367. package/node_modules/math-intrinsics/sign.js +0 -11
  368. package/node_modules/math-intrinsics/test/index.js +0 -192
  369. package/node_modules/math-intrinsics/tsconfig.json +0 -3
  370. package/node_modules/mime-db/HISTORY.md +0 -507
  371. package/node_modules/mime-db/LICENSE +0 -23
  372. package/node_modules/mime-db/README.md +0 -100
  373. package/node_modules/mime-db/db.json +0 -8519
  374. package/node_modules/mime-db/index.js +0 -12
  375. package/node_modules/mime-db/package.json +0 -60
  376. package/node_modules/mime-types/HISTORY.md +0 -397
  377. package/node_modules/mime-types/LICENSE +0 -23
  378. package/node_modules/mime-types/README.md +0 -113
  379. package/node_modules/mime-types/index.js +0 -188
  380. package/node_modules/mime-types/package.json +0 -44
  381. package/node_modules/proxy-from-env/LICENSE +0 -20
  382. package/node_modules/proxy-from-env/README.md +0 -163
  383. package/node_modules/proxy-from-env/index.cjs +0 -105
  384. package/node_modules/proxy-from-env/index.js +0 -103
  385. package/node_modules/proxy-from-env/package.json +0 -43
  386. package/node_modules/retry/License +0 -21
  387. package/node_modules/retry/README.md +0 -227
  388. package/node_modules/retry/example/dns.js +0 -31
  389. package/node_modules/retry/example/stop.js +0 -40
  390. package/node_modules/retry/index.js +0 -1
  391. package/node_modules/retry/lib/retry.js +0 -100
  392. package/node_modules/retry/lib/retry_operation.js +0 -162
  393. package/node_modules/retry/package.json +0 -36
@@ -1,919 +0,0 @@
1
- 'use strict';
2
-
3
- import bind from './helpers/bind.js';
4
-
5
- // utils is a library of generic helper functions non-specific to axios
6
-
7
- const { toString } = Object.prototype;
8
- const { getPrototypeOf } = Object;
9
- const { iterator, toStringTag } = Symbol;
10
-
11
- const kindOf = ((cache) => (thing) => {
12
- const str = toString.call(thing);
13
- return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
14
- })(Object.create(null));
15
-
16
- const kindOfTest = (type) => {
17
- type = type.toLowerCase();
18
- return (thing) => kindOf(thing) === type;
19
- };
20
-
21
- const typeOfTest = (type) => (thing) => typeof thing === type;
22
-
23
- /**
24
- * Determine if a value is a non-null object
25
- *
26
- * @param {Object} val The value to test
27
- *
28
- * @returns {boolean} True if value is an Array, otherwise false
29
- */
30
- const { isArray } = Array;
31
-
32
- /**
33
- * Determine if a value is undefined
34
- *
35
- * @param {*} val The value to test
36
- *
37
- * @returns {boolean} True if the value is undefined, otherwise false
38
- */
39
- const isUndefined = typeOfTest('undefined');
40
-
41
- /**
42
- * Determine if a value is a Buffer
43
- *
44
- * @param {*} val The value to test
45
- *
46
- * @returns {boolean} True if value is a Buffer, otherwise false
47
- */
48
- function isBuffer(val) {
49
- return (
50
- val !== null &&
51
- !isUndefined(val) &&
52
- val.constructor !== null &&
53
- !isUndefined(val.constructor) &&
54
- isFunction(val.constructor.isBuffer) &&
55
- val.constructor.isBuffer(val)
56
- );
57
- }
58
-
59
- /**
60
- * Determine if a value is an ArrayBuffer
61
- *
62
- * @param {*} val The value to test
63
- *
64
- * @returns {boolean} True if value is an ArrayBuffer, otherwise false
65
- */
66
- const isArrayBuffer = kindOfTest('ArrayBuffer');
67
-
68
- /**
69
- * Determine if a value is a view on an ArrayBuffer
70
- *
71
- * @param {*} val The value to test
72
- *
73
- * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
74
- */
75
- function isArrayBufferView(val) {
76
- let result;
77
- if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
78
- result = ArrayBuffer.isView(val);
79
- } else {
80
- result = val && val.buffer && isArrayBuffer(val.buffer);
81
- }
82
- return result;
83
- }
84
-
85
- /**
86
- * Determine if a value is a String
87
- *
88
- * @param {*} val The value to test
89
- *
90
- * @returns {boolean} True if value is a String, otherwise false
91
- */
92
- const isString = typeOfTest('string');
93
-
94
- /**
95
- * Determine if a value is a Function
96
- *
97
- * @param {*} val The value to test
98
- * @returns {boolean} True if value is a Function, otherwise false
99
- */
100
- const isFunction = typeOfTest('function');
101
-
102
- /**
103
- * Determine if a value is a Number
104
- *
105
- * @param {*} val The value to test
106
- *
107
- * @returns {boolean} True if value is a Number, otherwise false
108
- */
109
- const isNumber = typeOfTest('number');
110
-
111
- /**
112
- * Determine if a value is an Object
113
- *
114
- * @param {*} thing The value to test
115
- *
116
- * @returns {boolean} True if value is an Object, otherwise false
117
- */
118
- const isObject = (thing) => thing !== null && typeof thing === 'object';
119
-
120
- /**
121
- * Determine if a value is a Boolean
122
- *
123
- * @param {*} thing The value to test
124
- * @returns {boolean} True if value is a Boolean, otherwise false
125
- */
126
- const isBoolean = (thing) => thing === true || thing === false;
127
-
128
- /**
129
- * Determine if a value is a plain Object
130
- *
131
- * @param {*} val The value to test
132
- *
133
- * @returns {boolean} True if value is a plain Object, otherwise false
134
- */
135
- const isPlainObject = (val) => {
136
- if (kindOf(val) !== 'object') {
137
- return false;
138
- }
139
-
140
- const prototype = getPrototypeOf(val);
141
- return (
142
- (prototype === null ||
143
- prototype === Object.prototype ||
144
- Object.getPrototypeOf(prototype) === null) &&
145
- !(toStringTag in val) &&
146
- !(iterator in val)
147
- );
148
- };
149
-
150
- /**
151
- * Determine if a value is an empty object (safely handles Buffers)
152
- *
153
- * @param {*} val The value to test
154
- *
155
- * @returns {boolean} True if value is an empty object, otherwise false
156
- */
157
- const isEmptyObject = (val) => {
158
- // Early return for non-objects or Buffers to prevent RangeError
159
- if (!isObject(val) || isBuffer(val)) {
160
- return false;
161
- }
162
-
163
- try {
164
- return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
165
- } catch (e) {
166
- // Fallback for any other objects that might cause RangeError with Object.keys()
167
- return false;
168
- }
169
- };
170
-
171
- /**
172
- * Determine if a value is a Date
173
- *
174
- * @param {*} val The value to test
175
- *
176
- * @returns {boolean} True if value is a Date, otherwise false
177
- */
178
- const isDate = kindOfTest('Date');
179
-
180
- /**
181
- * Determine if a value is a File
182
- *
183
- * @param {*} val The value to test
184
- *
185
- * @returns {boolean} True if value is a File, otherwise false
186
- */
187
- const isFile = kindOfTest('File');
188
-
189
- /**
190
- * Determine if a value is a React Native Blob
191
- * React Native "blob": an object with a `uri` attribute. Optionally, it can
192
- * also have a `name` and `type` attribute to specify filename and content type
193
- *
194
- * @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
195
- *
196
- * @param {*} value The value to test
197
- *
198
- * @returns {boolean} True if value is a React Native Blob, otherwise false
199
- */
200
- const isReactNativeBlob = (value) => {
201
- return !!(value && typeof value.uri !== 'undefined');
202
- }
203
-
204
- /**
205
- * Determine if environment is React Native
206
- * ReactNative `FormData` has a non-standard `getParts()` method
207
- *
208
- * @param {*} formData The formData to test
209
- *
210
- * @returns {boolean} True if environment is React Native, otherwise false
211
- */
212
- const isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';
213
-
214
- /**
215
- * Determine if a value is a Blob
216
- *
217
- * @param {*} val The value to test
218
- *
219
- * @returns {boolean} True if value is a Blob, otherwise false
220
- */
221
- const isBlob = kindOfTest('Blob');
222
-
223
- /**
224
- * Determine if a value is a FileList
225
- *
226
- * @param {*} val The value to test
227
- *
228
- * @returns {boolean} True if value is a File, otherwise false
229
- */
230
- const isFileList = kindOfTest('FileList');
231
-
232
- /**
233
- * Determine if a value is a Stream
234
- *
235
- * @param {*} val The value to test
236
- *
237
- * @returns {boolean} True if value is a Stream, otherwise false
238
- */
239
- const isStream = (val) => isObject(val) && isFunction(val.pipe);
240
-
241
- /**
242
- * Determine if a value is a FormData
243
- *
244
- * @param {*} thing The value to test
245
- *
246
- * @returns {boolean} True if value is an FormData, otherwise false
247
- */
248
- function getGlobal() {
249
- if (typeof globalThis !== 'undefined') return globalThis;
250
- if (typeof self !== 'undefined') return self;
251
- if (typeof window !== 'undefined') return window;
252
- if (typeof global !== 'undefined') return global;
253
- return {};
254
- }
255
-
256
- const G = getGlobal();
257
- const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
258
-
259
- const isFormData = (thing) => {
260
- let kind;
261
- return thing && (
262
- (FormDataCtor && thing instanceof FormDataCtor) || (
263
- isFunction(thing.append) && (
264
- (kind = kindOf(thing)) === 'formdata' ||
265
- // detect form-data instance
266
- (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
267
- )
268
- )
269
- );
270
- };
271
-
272
- /**
273
- * Determine if a value is a URLSearchParams object
274
- *
275
- * @param {*} val The value to test
276
- *
277
- * @returns {boolean} True if value is a URLSearchParams object, otherwise false
278
- */
279
- const isURLSearchParams = kindOfTest('URLSearchParams');
280
-
281
- const [isReadableStream, isRequest, isResponse, isHeaders] = [
282
- 'ReadableStream',
283
- 'Request',
284
- 'Response',
285
- 'Headers',
286
- ].map(kindOfTest);
287
-
288
- /**
289
- * Trim excess whitespace off the beginning and end of a string
290
- *
291
- * @param {String} str The String to trim
292
- *
293
- * @returns {String} The String freed of excess whitespace
294
- */
295
- const trim = (str) => {
296
- return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
297
- };
298
- /**
299
- * Iterate over an Array or an Object invoking a function for each item.
300
- *
301
- * If `obj` is an Array callback will be called passing
302
- * the value, index, and complete array for each item.
303
- *
304
- * If 'obj' is an Object callback will be called passing
305
- * the value, key, and complete object for each property.
306
- *
307
- * @param {Object|Array<unknown>} obj The object to iterate
308
- * @param {Function} fn The callback to invoke for each item
309
- *
310
- * @param {Object} [options]
311
- * @param {Boolean} [options.allOwnKeys = false]
312
- * @returns {any}
313
- */
314
- function forEach(obj, fn, { allOwnKeys = false } = {}) {
315
- // Don't bother if no value provided
316
- if (obj === null || typeof obj === 'undefined') {
317
- return;
318
- }
319
-
320
- let i;
321
- let l;
322
-
323
- // Force an array if not already something iterable
324
- if (typeof obj !== 'object') {
325
- /*eslint no-param-reassign:0*/
326
- obj = [obj];
327
- }
328
-
329
- if (isArray(obj)) {
330
- // Iterate over array values
331
- for (i = 0, l = obj.length; i < l; i++) {
332
- fn.call(null, obj[i], i, obj);
333
- }
334
- } else {
335
- // Buffer check
336
- if (isBuffer(obj)) {
337
- return;
338
- }
339
-
340
- // Iterate over object keys
341
- const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
342
- const len = keys.length;
343
- let key;
344
-
345
- for (i = 0; i < len; i++) {
346
- key = keys[i];
347
- fn.call(null, obj[key], key, obj);
348
- }
349
- }
350
- }
351
-
352
- /**
353
- * Finds a key in an object, case-insensitive, returning the actual key name.
354
- * Returns null if the object is a Buffer or if no match is found.
355
- *
356
- * @param {Object} obj - The object to search.
357
- * @param {string} key - The key to find (case-insensitive).
358
- * @returns {?string} The actual key name if found, otherwise null.
359
- */
360
- function findKey(obj, key) {
361
- if (isBuffer(obj)) {
362
- return null;
363
- }
364
-
365
- key = key.toLowerCase();
366
- const keys = Object.keys(obj);
367
- let i = keys.length;
368
- let _key;
369
- while (i-- > 0) {
370
- _key = keys[i];
371
- if (key === _key.toLowerCase()) {
372
- return _key;
373
- }
374
- }
375
- return null;
376
- }
377
-
378
- const _global = (() => {
379
- /*eslint no-undef:0*/
380
- if (typeof globalThis !== 'undefined') return globalThis;
381
- return typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : global;
382
- })();
383
-
384
- const isContextDefined = (context) => !isUndefined(context) && context !== _global;
385
-
386
- /**
387
- * Accepts varargs expecting each argument to be an object, then
388
- * immutably merges the properties of each object and returns result.
389
- *
390
- * When multiple objects contain the same key the later object in
391
- * the arguments list will take precedence.
392
- *
393
- * Example:
394
- *
395
- * ```js
396
- * const result = merge({foo: 123}, {foo: 456});
397
- * console.log(result.foo); // outputs 456
398
- * ```
399
- *
400
- * @param {Object} obj1 Object to merge
401
- *
402
- * @returns {Object} Result of all merge properties
403
- */
404
- function merge(/* obj1, obj2, obj3, ... */) {
405
- const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
406
- const result = {};
407
- const assignValue = (val, key) => {
408
- // Skip dangerous property names to prevent prototype pollution
409
- if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
410
- return;
411
- }
412
-
413
- const targetKey = (caseless && findKey(result, key)) || key;
414
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
415
- result[targetKey] = merge(result[targetKey], val);
416
- } else if (isPlainObject(val)) {
417
- result[targetKey] = merge({}, val);
418
- } else if (isArray(val)) {
419
- result[targetKey] = val.slice();
420
- } else if (!skipUndefined || !isUndefined(val)) {
421
- result[targetKey] = val;
422
- }
423
- };
424
-
425
- for (let i = 0, l = arguments.length; i < l; i++) {
426
- arguments[i] && forEach(arguments[i], assignValue);
427
- }
428
- return result;
429
- }
430
-
431
- /**
432
- * Extends object a by mutably adding to it the properties of object b.
433
- *
434
- * @param {Object} a The object to be extended
435
- * @param {Object} b The object to copy properties from
436
- * @param {Object} thisArg The object to bind function to
437
- *
438
- * @param {Object} [options]
439
- * @param {Boolean} [options.allOwnKeys]
440
- * @returns {Object} The resulting value of object a
441
- */
442
- const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
443
- forEach(
444
- b,
445
- (val, key) => {
446
- if (thisArg && isFunction(val)) {
447
- Object.defineProperty(a, key, {
448
- value: bind(val, thisArg),
449
- writable: true,
450
- enumerable: true,
451
- configurable: true,
452
- });
453
- } else {
454
- Object.defineProperty(a, key, {
455
- value: val,
456
- writable: true,
457
- enumerable: true,
458
- configurable: true,
459
- });
460
- }
461
- },
462
- { allOwnKeys }
463
- );
464
- return a;
465
- };
466
-
467
- /**
468
- * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
469
- *
470
- * @param {string} content with BOM
471
- *
472
- * @returns {string} content value without BOM
473
- */
474
- const stripBOM = (content) => {
475
- if (content.charCodeAt(0) === 0xfeff) {
476
- content = content.slice(1);
477
- }
478
- return content;
479
- };
480
-
481
- /**
482
- * Inherit the prototype methods from one constructor into another
483
- * @param {function} constructor
484
- * @param {function} superConstructor
485
- * @param {object} [props]
486
- * @param {object} [descriptors]
487
- *
488
- * @returns {void}
489
- */
490
- const inherits = (constructor, superConstructor, props, descriptors) => {
491
- constructor.prototype = Object.create(superConstructor.prototype, descriptors);
492
- Object.defineProperty(constructor.prototype, 'constructor', {
493
- value: constructor,
494
- writable: true,
495
- enumerable: false,
496
- configurable: true,
497
- });
498
- Object.defineProperty(constructor, 'super', {
499
- value: superConstructor.prototype,
500
- });
501
- props && Object.assign(constructor.prototype, props);
502
- };
503
-
504
- /**
505
- * Resolve object with deep prototype chain to a flat object
506
- * @param {Object} sourceObj source object
507
- * @param {Object} [destObj]
508
- * @param {Function|Boolean} [filter]
509
- * @param {Function} [propFilter]
510
- *
511
- * @returns {Object}
512
- */
513
- const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
514
- let props;
515
- let i;
516
- let prop;
517
- const merged = {};
518
-
519
- destObj = destObj || {};
520
- // eslint-disable-next-line no-eq-null,eqeqeq
521
- if (sourceObj == null) return destObj;
522
-
523
- do {
524
- props = Object.getOwnPropertyNames(sourceObj);
525
- i = props.length;
526
- while (i-- > 0) {
527
- prop = props[i];
528
- if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
529
- destObj[prop] = sourceObj[prop];
530
- merged[prop] = true;
531
- }
532
- }
533
- sourceObj = filter !== false && getPrototypeOf(sourceObj);
534
- } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
535
-
536
- return destObj;
537
- };
538
-
539
- /**
540
- * Determines whether a string ends with the characters of a specified string
541
- *
542
- * @param {String} str
543
- * @param {String} searchString
544
- * @param {Number} [position= 0]
545
- *
546
- * @returns {boolean}
547
- */
548
- const endsWith = (str, searchString, position) => {
549
- str = String(str);
550
- if (position === undefined || position > str.length) {
551
- position = str.length;
552
- }
553
- position -= searchString.length;
554
- const lastIndex = str.indexOf(searchString, position);
555
- return lastIndex !== -1 && lastIndex === position;
556
- };
557
-
558
- /**
559
- * Returns new array from array like object or null if failed
560
- *
561
- * @param {*} [thing]
562
- *
563
- * @returns {?Array}
564
- */
565
- const toArray = (thing) => {
566
- if (!thing) return null;
567
- if (isArray(thing)) return thing;
568
- let i = thing.length;
569
- if (!isNumber(i)) return null;
570
- const arr = new Array(i);
571
- while (i-- > 0) {
572
- arr[i] = thing[i];
573
- }
574
- return arr;
575
- };
576
-
577
- /**
578
- * Checking if the Uint8Array exists and if it does, it returns a function that checks if the
579
- * thing passed in is an instance of Uint8Array
580
- *
581
- * @param {TypedArray}
582
- *
583
- * @returns {Array}
584
- */
585
- // eslint-disable-next-line func-names
586
- const isTypedArray = ((TypedArray) => {
587
- // eslint-disable-next-line func-names
588
- return (thing) => {
589
- return TypedArray && thing instanceof TypedArray;
590
- };
591
- })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
592
-
593
- /**
594
- * For each entry in the object, call the function with the key and value.
595
- *
596
- * @param {Object<any, any>} obj - The object to iterate over.
597
- * @param {Function} fn - The function to call for each entry.
598
- *
599
- * @returns {void}
600
- */
601
- const forEachEntry = (obj, fn) => {
602
- const generator = obj && obj[iterator];
603
-
604
- const _iterator = generator.call(obj);
605
-
606
- let result;
607
-
608
- while ((result = _iterator.next()) && !result.done) {
609
- const pair = result.value;
610
- fn.call(obj, pair[0], pair[1]);
611
- }
612
- };
613
-
614
- /**
615
- * It takes a regular expression and a string, and returns an array of all the matches
616
- *
617
- * @param {string} regExp - The regular expression to match against.
618
- * @param {string} str - The string to search.
619
- *
620
- * @returns {Array<boolean>}
621
- */
622
- const matchAll = (regExp, str) => {
623
- let matches;
624
- const arr = [];
625
-
626
- while ((matches = regExp.exec(str)) !== null) {
627
- arr.push(matches);
628
- }
629
-
630
- return arr;
631
- };
632
-
633
- /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
634
- const isHTMLForm = kindOfTest('HTMLFormElement');
635
-
636
- const toCamelCase = (str) => {
637
- return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
638
- return p1.toUpperCase() + p2;
639
- });
640
- };
641
-
642
- /* Creating a function that will check if an object has a property. */
643
- const hasOwnProperty = (
644
- ({ hasOwnProperty }) =>
645
- (obj, prop) =>
646
- hasOwnProperty.call(obj, prop)
647
- )(Object.prototype);
648
-
649
- /**
650
- * Determine if a value is a RegExp object
651
- *
652
- * @param {*} val The value to test
653
- *
654
- * @returns {boolean} True if value is a RegExp object, otherwise false
655
- */
656
- const isRegExp = kindOfTest('RegExp');
657
-
658
- const reduceDescriptors = (obj, reducer) => {
659
- const descriptors = Object.getOwnPropertyDescriptors(obj);
660
- const reducedDescriptors = {};
661
-
662
- forEach(descriptors, (descriptor, name) => {
663
- let ret;
664
- if ((ret = reducer(descriptor, name, obj)) !== false) {
665
- reducedDescriptors[name] = ret || descriptor;
666
- }
667
- });
668
-
669
- Object.defineProperties(obj, reducedDescriptors);
670
- };
671
-
672
- /**
673
- * Makes all methods read-only
674
- * @param {Object} obj
675
- */
676
-
677
- const freezeMethods = (obj) => {
678
- reduceDescriptors(obj, (descriptor, name) => {
679
- // skip restricted props in strict mode
680
- if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
681
- return false;
682
- }
683
-
684
- const value = obj[name];
685
-
686
- if (!isFunction(value)) return;
687
-
688
- descriptor.enumerable = false;
689
-
690
- if ('writable' in descriptor) {
691
- descriptor.writable = false;
692
- return;
693
- }
694
-
695
- if (!descriptor.set) {
696
- descriptor.set = () => {
697
- throw Error("Can not rewrite read-only method '" + name + "'");
698
- };
699
- }
700
- });
701
- };
702
-
703
- /**
704
- * Converts an array or a delimited string into an object set with values as keys and true as values.
705
- * Useful for fast membership checks.
706
- *
707
- * @param {Array|string} arrayOrString - The array or string to convert.
708
- * @param {string} delimiter - The delimiter to use if input is a string.
709
- * @returns {Object} An object with keys from the array or string, values set to true.
710
- */
711
- const toObjectSet = (arrayOrString, delimiter) => {
712
- const obj = {};
713
-
714
- const define = (arr) => {
715
- arr.forEach((value) => {
716
- obj[value] = true;
717
- });
718
- };
719
-
720
- isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
721
-
722
- return obj;
723
- };
724
-
725
- const noop = () => {};
726
-
727
- const toFiniteNumber = (value, defaultValue) => {
728
- return value != null && Number.isFinite((value = +value)) ? value : defaultValue;
729
- };
730
-
731
- /**
732
- * If the thing is a FormData object, return true, otherwise return false.
733
- *
734
- * @param {unknown} thing - The thing to check.
735
- *
736
- * @returns {boolean}
737
- */
738
- function isSpecCompliantForm(thing) {
739
- return !!(
740
- thing &&
741
- isFunction(thing.append) &&
742
- thing[toStringTag] === 'FormData' &&
743
- thing[iterator]
744
- );
745
- }
746
-
747
- /**
748
- * Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
749
- *
750
- * @param {Object} obj - The object to convert.
751
- * @returns {Object} The JSON-compatible object.
752
- */
753
- const toJSONObject = (obj) => {
754
- const stack = new Array(10);
755
-
756
- const visit = (source, i) => {
757
- if (isObject(source)) {
758
- if (stack.indexOf(source) >= 0) {
759
- return;
760
- }
761
-
762
- //Buffer check
763
- if (isBuffer(source)) {
764
- return source;
765
- }
766
-
767
- if (!('toJSON' in source)) {
768
- stack[i] = source;
769
- const target = isArray(source) ? [] : {};
770
-
771
- forEach(source, (value, key) => {
772
- const reducedValue = visit(value, i + 1);
773
- !isUndefined(reducedValue) && (target[key] = reducedValue);
774
- });
775
-
776
- stack[i] = undefined;
777
-
778
- return target;
779
- }
780
- }
781
-
782
- return source;
783
- };
784
-
785
- return visit(obj, 0);
786
- };
787
-
788
- /**
789
- * Determines if a value is an async function.
790
- *
791
- * @param {*} thing - The value to test.
792
- * @returns {boolean} True if value is an async function, otherwise false.
793
- */
794
- const isAsyncFn = kindOfTest('AsyncFunction');
795
-
796
- /**
797
- * Determines if a value is thenable (has then and catch methods).
798
- *
799
- * @param {*} thing - The value to test.
800
- * @returns {boolean} True if value is thenable, otherwise false.
801
- */
802
- const isThenable = (thing) =>
803
- thing &&
804
- (isObject(thing) || isFunction(thing)) &&
805
- isFunction(thing.then) &&
806
- isFunction(thing.catch);
807
-
808
- // original code
809
- // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
810
-
811
- /**
812
- * Provides a cross-platform setImmediate implementation.
813
- * Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
814
- *
815
- * @param {boolean} setImmediateSupported - Whether setImmediate is supported.
816
- * @param {boolean} postMessageSupported - Whether postMessage is supported.
817
- * @returns {Function} A function to schedule a callback asynchronously.
818
- */
819
- const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
820
- if (setImmediateSupported) {
821
- return setImmediate;
822
- }
823
-
824
- return postMessageSupported
825
- ? ((token, callbacks) => {
826
- _global.addEventListener(
827
- 'message',
828
- ({ source, data }) => {
829
- if (source === _global && data === token) {
830
- callbacks.length && callbacks.shift()();
831
- }
832
- },
833
- false
834
- );
835
-
836
- return (cb) => {
837
- callbacks.push(cb);
838
- _global.postMessage(token, '*');
839
- };
840
- })(`axios@${Math.random()}`, [])
841
- : (cb) => setTimeout(cb);
842
- })(typeof setImmediate === 'function', isFunction(_global.postMessage));
843
-
844
- /**
845
- * Schedules a microtask or asynchronous callback as soon as possible.
846
- * Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
847
- *
848
- * @type {Function}
849
- */
850
- const asap =
851
- typeof queueMicrotask !== 'undefined'
852
- ? queueMicrotask.bind(_global)
853
- : (typeof process !== 'undefined' && process.nextTick) || _setImmediate;
854
-
855
- // *********************
856
-
857
- const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
858
-
859
- export default {
860
- isArray,
861
- isArrayBuffer,
862
- isBuffer,
863
- isFormData,
864
- isArrayBufferView,
865
- isString,
866
- isNumber,
867
- isBoolean,
868
- isObject,
869
- isPlainObject,
870
- isEmptyObject,
871
- isReadableStream,
872
- isRequest,
873
- isResponse,
874
- isHeaders,
875
- isUndefined,
876
- isDate,
877
- isFile,
878
- isReactNativeBlob,
879
- isReactNative,
880
- isBlob,
881
- isRegExp,
882
- isFunction,
883
- isStream,
884
- isURLSearchParams,
885
- isTypedArray,
886
- isFileList,
887
- forEach,
888
- merge,
889
- extend,
890
- trim,
891
- stripBOM,
892
- inherits,
893
- toFlatObject,
894
- kindOf,
895
- kindOfTest,
896
- endsWith,
897
- toArray,
898
- forEachEntry,
899
- matchAll,
900
- isHTMLForm,
901
- hasOwnProperty,
902
- hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
903
- reduceDescriptors,
904
- freezeMethods,
905
- toObjectSet,
906
- toCamelCase,
907
- noop,
908
- toFiniteNumber,
909
- findKey,
910
- global: _global,
911
- isContextDefined,
912
- isSpecCompliantForm,
913
- toJSONObject,
914
- isAsyncFn,
915
- isThenable,
916
- setImmediate: _setImmediate,
917
- asap,
918
- isIterable,
919
- };