node-red-contrib-tak-registration 0.15.0 → 0.16.1

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 (374) hide show
  1. package/node_modules/@types/node/README.md +2 -2
  2. package/node_modules/@types/node/assert.d.ts +8 -6
  3. package/node_modules/@types/node/async_hooks.d.ts +26 -6
  4. package/node_modules/@types/node/buffer.d.ts +7 -3
  5. package/node_modules/@types/node/child_process.d.ts +28 -124
  6. package/node_modules/@types/node/cluster.d.ts +15 -15
  7. package/node_modules/@types/node/console.d.ts +17 -17
  8. package/node_modules/@types/node/crypto.d.ts +95 -38
  9. package/node_modules/@types/node/dgram.d.ts +1 -1
  10. package/node_modules/@types/node/diagnostics_channel.d.ts +18 -13
  11. package/node_modules/@types/node/dns/promises.d.ts +36 -9
  12. package/node_modules/@types/node/dns.d.ts +89 -36
  13. package/node_modules/@types/node/domain.d.ts +1 -1
  14. package/node_modules/@types/node/events.d.ts +1 -2
  15. package/node_modules/@types/node/fs/promises.d.ts +67 -40
  16. package/node_modules/@types/node/fs.d.ts +88 -52
  17. package/node_modules/@types/node/globals.d.ts +148 -351
  18. package/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  19. package/node_modules/@types/node/http.d.ts +73 -7
  20. package/node_modules/@types/node/http2.d.ts +88 -15
  21. package/node_modules/@types/node/https.d.ts +1 -1
  22. package/node_modules/@types/node/index.d.ts +13 -6
  23. package/node_modules/@types/node/inspector.d.ts +222 -13
  24. package/node_modules/@types/node/module.d.ts +153 -31
  25. package/node_modules/@types/node/net.d.ts +3 -6
  26. package/node_modules/@types/node/os.d.ts +8 -7
  27. package/node_modules/@types/node/package.json +14 -84
  28. package/node_modules/@types/node/path.d.ts +1 -1
  29. package/node_modules/@types/node/perf_hooks.d.ts +24 -10
  30. package/node_modules/@types/node/process.d.ts +21 -11
  31. package/node_modules/@types/node/punycode.d.ts +1 -1
  32. package/node_modules/@types/node/querystring.d.ts +1 -1
  33. package/node_modules/@types/node/readline/promises.d.ts +0 -1
  34. package/node_modules/@types/node/readline.d.ts +13 -13
  35. package/node_modules/@types/node/repl.d.ts +25 -17
  36. package/node_modules/@types/node/sea.d.ts +1 -1
  37. package/node_modules/@types/node/sqlite.d.ts +209 -3
  38. package/node_modules/@types/node/stream/web.d.ts +8 -0
  39. package/node_modules/@types/node/stream.d.ts +30 -24
  40. package/node_modules/@types/node/string_decoder.d.ts +1 -1
  41. package/node_modules/@types/node/test.d.ts +2029 -1975
  42. package/node_modules/@types/node/timers/promises.d.ts +1 -1
  43. package/node_modules/@types/node/timers.d.ts +1 -3
  44. package/node_modules/@types/node/tls.d.ts +2 -48
  45. package/node_modules/@types/node/trace_events.d.ts +6 -6
  46. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  47. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  48. package/node_modules/@types/node/ts5.6/index.d.ts +15 -6
  49. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  50. package/node_modules/@types/node/ts5.7/index.d.ts +101 -0
  51. package/node_modules/@types/node/tty.d.ts +1 -1
  52. package/node_modules/@types/node/url.d.ts +73 -20
  53. package/node_modules/@types/node/util.d.ts +23 -298
  54. package/node_modules/@types/node/v8.d.ts +62 -32
  55. package/node_modules/@types/node/vm.d.ts +132 -24
  56. package/node_modules/@types/node/wasi.d.ts +22 -1
  57. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  58. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  59. package/node_modules/@types/node/web-globals/events.d.ts +94 -0
  60. package/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
  61. package/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
  62. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  63. package/node_modules/@types/node/worker_threads.d.ts +85 -26
  64. package/node_modules/@types/node/zlib.d.ts +13 -9
  65. package/node_modules/axios/CHANGELOG.md +99 -0
  66. package/node_modules/axios/README.md +105 -28
  67. package/node_modules/axios/dist/axios.js +395 -292
  68. package/node_modules/axios/dist/axios.js.map +1 -1
  69. package/node_modules/axios/dist/axios.min.js +2 -2
  70. package/node_modules/axios/dist/axios.min.js.map +1 -1
  71. package/node_modules/axios/dist/browser/axios.cjs +333 -219
  72. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  73. package/node_modules/axios/dist/esm/axios.js +333 -219
  74. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  75. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  76. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  77. package/node_modules/axios/dist/node/axios.cjs +424 -219
  78. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  79. package/node_modules/axios/index.d.cts +26 -8
  80. package/node_modules/axios/index.d.ts +14 -5
  81. package/node_modules/axios/lib/adapters/adapters.js +6 -4
  82. package/node_modules/axios/lib/adapters/fetch.js +221 -162
  83. package/node_modules/axios/lib/adapters/http.js +18 -0
  84. package/node_modules/axios/lib/adapters/xhr.js +11 -8
  85. package/node_modules/axios/lib/core/Axios.js +2 -4
  86. package/node_modules/axios/lib/core/AxiosError.js +10 -3
  87. package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
  88. package/node_modules/axios/lib/core/mergeConfig.js +1 -1
  89. package/node_modules/axios/lib/defaults/index.js +1 -1
  90. package/node_modules/axios/lib/env/data.js +1 -1
  91. package/node_modules/axios/lib/helpers/buildURL.js +1 -3
  92. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
  93. package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
  94. package/node_modules/axios/lib/helpers/throttle.js +1 -1
  95. package/node_modules/axios/lib/helpers/toFormData.js +4 -0
  96. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
  97. package/node_modules/axios/lib/utils.js +40 -2
  98. package/node_modules/axios/package.json +30 -15
  99. package/node_modules/bignumber.js/CHANGELOG.md +6 -1
  100. package/node_modules/bignumber.js/README.md +5 -4
  101. package/node_modules/bignumber.js/bignumber.js +2 -2
  102. package/node_modules/bignumber.js/bignumber.mjs +2 -2
  103. package/node_modules/bignumber.js/package.json +1 -1
  104. package/node_modules/fast-xml-parser/CHANGELOG.md +7 -0
  105. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  106. package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  107. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  108. package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  109. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  110. package/node_modules/fast-xml-parser/package.json +1 -2
  111. package/node_modules/fast-xml-parser/src/cli/cli.js +4 -0
  112. package/node_modules/fast-xml-parser/src/fxp.d.ts +5 -5
  113. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +3 -3
  114. package/node_modules/follow-redirects/package.json +1 -1
  115. package/node_modules/form-data/CHANGELOG.md +601 -0
  116. package/node_modules/form-data/{Readme.md → README.md} +34 -37
  117. package/node_modules/form-data/lib/browser.js +3 -1
  118. package/node_modules/form-data/lib/form_data.js +126 -135
  119. package/node_modules/form-data/lib/populate.js +5 -5
  120. package/node_modules/form-data/package.json +24 -16
  121. package/node_modules/protobufjs/dist/light/protobuf.js +8 -7
  122. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  123. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  124. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  125. package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
  126. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
  127. package/node_modules/protobufjs/dist/protobuf.js +8 -7
  128. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  129. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  130. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  131. package/node_modules/protobufjs/ext/descriptor/index.js +179 -69
  132. package/node_modules/protobufjs/google/protobuf/descriptor.json +660 -17
  133. package/node_modules/protobufjs/google/protobuf/descriptor.proto +255 -6
  134. package/node_modules/protobufjs/package.json +1 -1
  135. package/node_modules/protobufjs/src/namespace.js +3 -1
  136. package/node_modules/protobufjs/src/root.js +3 -4
  137. package/node_modules/undici-types/agent.d.ts +11 -7
  138. package/node_modules/undici-types/api.d.ts +24 -24
  139. package/node_modules/undici-types/balanced-pool.d.ts +11 -11
  140. package/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  141. package/node_modules/undici-types/client-stats.d.ts +15 -0
  142. package/node_modules/undici-types/client.d.ts +18 -16
  143. package/node_modules/undici-types/cookies.d.ts +2 -0
  144. package/node_modules/undici-types/diagnostics-channel.d.ts +19 -10
  145. package/node_modules/undici-types/dispatcher.d.ts +119 -93
  146. package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
  147. package/node_modules/undici-types/errors.d.ts +69 -47
  148. package/node_modules/undici-types/eventsource.d.ts +3 -3
  149. package/node_modules/undici-types/fetch.d.ts +18 -16
  150. package/node_modules/undici-types/formdata.d.ts +7 -7
  151. package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  152. package/node_modules/undici-types/global-origin.d.ts +5 -5
  153. package/node_modules/undici-types/h2c-client.d.ts +75 -0
  154. package/node_modules/undici-types/handlers.d.ts +8 -8
  155. package/node_modules/undici-types/header.d.ts +157 -1
  156. package/node_modules/undici-types/index.d.ts +51 -47
  157. package/node_modules/undici-types/interceptors.d.ts +25 -8
  158. package/node_modules/undici-types/mock-agent.d.ts +36 -18
  159. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  160. package/node_modules/undici-types/mock-client.d.ts +6 -4
  161. package/node_modules/undici-types/mock-errors.d.ts +3 -3
  162. package/node_modules/undici-types/mock-interceptor.d.ts +21 -19
  163. package/node_modules/undici-types/mock-pool.d.ts +6 -4
  164. package/node_modules/undici-types/package.json +1 -1
  165. package/node_modules/undici-types/patch.d.ts +0 -4
  166. package/node_modules/undici-types/pool-stats.d.ts +8 -8
  167. package/node_modules/undici-types/pool.d.ts +14 -12
  168. package/node_modules/undici-types/proxy-agent.d.ts +5 -4
  169. package/node_modules/undici-types/readable.d.ts +18 -15
  170. package/node_modules/undici-types/retry-agent.d.ts +1 -1
  171. package/node_modules/undici-types/retry-handler.d.ts +19 -10
  172. package/node_modules/undici-types/util.d.ts +3 -3
  173. package/node_modules/undici-types/utility.d.ts +7 -0
  174. package/node_modules/undici-types/webidl.d.ts +50 -8
  175. package/node_modules/undici-types/websocket.d.ts +36 -2
  176. package/node_modules/uuid/README.md +8 -19
  177. package/node_modules/uuid/dist/{esm-browser/uuid-bin.js → uuid-bin.js} +1 -1
  178. package/node_modules/uuid/dist/{esm-browser/v4.js → v4.js} +7 -4
  179. package/node_modules/uuid/{dist/esm → dist-node}/md5.js +1 -1
  180. package/node_modules/uuid/dist-node/native.js +2 -0
  181. package/node_modules/uuid/{dist/esm → dist-node}/rng.js +1 -1
  182. package/node_modules/uuid/{dist/esm → dist-node}/sha1.js +1 -1
  183. package/node_modules/uuid/{dist/esm → dist-node}/uuid-bin.js +1 -1
  184. package/node_modules/uuid/{dist/esm → dist-node}/v4.js +7 -4
  185. package/node_modules/uuid/package.json +28 -41
  186. package/package.json +6 -6
  187. package/tak-registration.bak +557 -0
  188. package/tak-registration.js +14 -12
  189. package/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  190. package/node_modules/@types/node/compatibility/index.d.ts +0 -9
  191. package/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  192. package/node_modules/@types/node/dom-events.d.ts +0 -124
  193. package/node_modules/undici-types/file.d.ts +0 -39
  194. package/node_modules/undici-types/filereader.d.ts +0 -54
  195. package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
  196. package/node_modules/uuid/dist/cjs/index.js +0 -31
  197. package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
  198. package/node_modules/uuid/dist/cjs/max.js +0 -3
  199. package/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
  200. package/node_modules/uuid/dist/cjs/md5.js +0 -13
  201. package/node_modules/uuid/dist/cjs/native.d.ts +0 -6
  202. package/node_modules/uuid/dist/cjs/native.js +0 -4
  203. package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
  204. package/node_modules/uuid/dist/cjs/nil.js +0 -3
  205. package/node_modules/uuid/dist/cjs/package.json +0 -1
  206. package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
  207. package/node_modules/uuid/dist/cjs/parse.js +0 -11
  208. package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
  209. package/node_modules/uuid/dist/cjs/regex.js +0 -3
  210. package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
  211. package/node_modules/uuid/dist/cjs/rng.js +0 -13
  212. package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
  213. package/node_modules/uuid/dist/cjs/sha1.js +0 -13
  214. package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
  215. package/node_modules/uuid/dist/cjs/stringify.js +0 -39
  216. package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
  217. package/node_modules/uuid/dist/cjs/types.js +0 -2
  218. package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
  219. package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
  220. package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
  221. package/node_modules/uuid/dist/cjs/v1.js +0 -87
  222. package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
  223. package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
  224. package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
  225. package/node_modules/uuid/dist/cjs/v3.js +0 -14
  226. package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
  227. package/node_modules/uuid/dist/cjs/v35.js +0 -41
  228. package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
  229. package/node_modules/uuid/dist/cjs/v4.js +0 -29
  230. package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
  231. package/node_modules/uuid/dist/cjs/v5.js +0 -14
  232. package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
  233. package/node_modules/uuid/dist/cjs/v6.js +0 -19
  234. package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
  235. package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
  236. package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
  237. package/node_modules/uuid/dist/cjs/v7.js +0 -69
  238. package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
  239. package/node_modules/uuid/dist/cjs/validate.js +0 -7
  240. package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
  241. package/node_modules/uuid/dist/cjs/version.js +0 -10
  242. package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
  243. package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
  244. package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
  245. package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
  246. package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
  247. package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
  248. package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
  249. package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
  250. package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
  251. package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
  252. package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
  253. package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
  254. package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
  255. package/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
  256. package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
  257. package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
  258. package/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
  259. package/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
  260. package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
  261. package/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
  262. package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
  263. package/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
  264. package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
  265. package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
  266. package/node_modules/uuid/dist/esm/index.d.ts +0 -15
  267. package/node_modules/uuid/dist/esm/max.d.ts +0 -2
  268. package/node_modules/uuid/dist/esm/md5.d.ts +0 -4
  269. package/node_modules/uuid/dist/esm/native.d.ts +0 -6
  270. package/node_modules/uuid/dist/esm/native.js +0 -2
  271. package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
  272. package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
  273. package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
  274. package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
  275. package/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
  276. package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
  277. package/node_modules/uuid/dist/esm/types.d.ts +0 -21
  278. package/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
  279. package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
  280. package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
  281. package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
  282. package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
  283. package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
  284. package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
  285. package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
  286. package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
  287. package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
  288. package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
  289. package/node_modules/uuid/dist/esm/version.d.ts +0 -2
  290. package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
  291. package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
  292. package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
  293. package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
  294. package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
  295. package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
  296. package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
  297. package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
  298. package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
  299. package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
  300. package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
  301. package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
  302. package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
  303. package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
  304. package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
  305. package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
  306. package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
  307. package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
  308. package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
  309. package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
  310. package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
  311. package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
  312. package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
  313. /package/node_modules/uuid/dist/{cjs-browser/index.d.ts → index.d.ts} +0 -0
  314. /package/node_modules/uuid/dist/{esm/index.js → index.js} +0 -0
  315. /package/node_modules/uuid/dist/{cjs-browser/max.d.ts → max.d.ts} +0 -0
  316. /package/node_modules/uuid/dist/{esm/max.js → max.js} +0 -0
  317. /package/node_modules/uuid/dist/{cjs-browser/md5.d.ts → md5.d.ts} +0 -0
  318. /package/node_modules/uuid/dist/{esm-browser/md5.js → md5.js} +0 -0
  319. /package/node_modules/uuid/dist/{cjs-browser/native.d.ts → native.d.ts} +0 -0
  320. /package/node_modules/uuid/dist/{esm-browser/native.js → native.js} +0 -0
  321. /package/node_modules/uuid/dist/{cjs-browser/nil.d.ts → nil.d.ts} +0 -0
  322. /package/node_modules/uuid/dist/{esm/nil.js → nil.js} +0 -0
  323. /package/node_modules/uuid/dist/{cjs-browser/parse.d.ts → parse.d.ts} +0 -0
  324. /package/node_modules/uuid/dist/{esm/parse.js → parse.js} +0 -0
  325. /package/node_modules/uuid/dist/{cjs-browser/regex.d.ts → regex.d.ts} +0 -0
  326. /package/node_modules/uuid/dist/{esm/regex.js → regex.js} +0 -0
  327. /package/node_modules/uuid/dist/{cjs-browser/rng.d.ts → rng.d.ts} +0 -0
  328. /package/node_modules/uuid/dist/{esm-browser/rng.js → rng.js} +0 -0
  329. /package/node_modules/uuid/dist/{cjs-browser/sha1.d.ts → sha1.d.ts} +0 -0
  330. /package/node_modules/uuid/dist/{esm-browser/sha1.js → sha1.js} +0 -0
  331. /package/node_modules/uuid/dist/{cjs-browser/stringify.d.ts → stringify.d.ts} +0 -0
  332. /package/node_modules/uuid/dist/{esm/stringify.js → stringify.js} +0 -0
  333. /package/node_modules/uuid/dist/{cjs-browser/types.d.ts → types.d.ts} +0 -0
  334. /package/node_modules/uuid/dist/{esm/types.js → types.js} +0 -0
  335. /package/node_modules/uuid/dist/{cjs-browser/uuid-bin.d.ts → uuid-bin.d.ts} +0 -0
  336. /package/node_modules/uuid/dist/{cjs-browser/v1.d.ts → v1.d.ts} +0 -0
  337. /package/node_modules/uuid/dist/{esm/v1.js → v1.js} +0 -0
  338. /package/node_modules/uuid/dist/{cjs-browser/v1ToV6.d.ts → v1ToV6.d.ts} +0 -0
  339. /package/node_modules/uuid/dist/{esm/v1ToV6.js → v1ToV6.js} +0 -0
  340. /package/node_modules/uuid/dist/{cjs-browser/v3.d.ts → v3.d.ts} +0 -0
  341. /package/node_modules/uuid/dist/{esm/v3.js → v3.js} +0 -0
  342. /package/node_modules/uuid/dist/{cjs-browser/v35.d.ts → v35.d.ts} +0 -0
  343. /package/node_modules/uuid/dist/{esm/v35.js → v35.js} +0 -0
  344. /package/node_modules/uuid/dist/{cjs-browser/v4.d.ts → v4.d.ts} +0 -0
  345. /package/node_modules/uuid/dist/{cjs-browser/v5.d.ts → v5.d.ts} +0 -0
  346. /package/node_modules/uuid/dist/{esm/v5.js → v5.js} +0 -0
  347. /package/node_modules/uuid/dist/{cjs-browser/v6.d.ts → v6.d.ts} +0 -0
  348. /package/node_modules/uuid/dist/{esm/v6.js → v6.js} +0 -0
  349. /package/node_modules/uuid/dist/{cjs-browser/v6ToV1.d.ts → v6ToV1.d.ts} +0 -0
  350. /package/node_modules/uuid/dist/{esm/v6ToV1.js → v6ToV1.js} +0 -0
  351. /package/node_modules/uuid/dist/{cjs-browser/v7.d.ts → v7.d.ts} +0 -0
  352. /package/node_modules/uuid/dist/{esm/v7.js → v7.js} +0 -0
  353. /package/node_modules/uuid/dist/{cjs-browser/validate.d.ts → validate.d.ts} +0 -0
  354. /package/node_modules/uuid/dist/{esm/validate.js → validate.js} +0 -0
  355. /package/node_modules/uuid/dist/{cjs-browser/version.d.ts → version.d.ts} +0 -0
  356. /package/node_modules/uuid/dist/{esm/version.js → version.js} +0 -0
  357. /package/node_modules/uuid/{dist/esm → dist-node}/bin/uuid +0 -0
  358. /package/node_modules/uuid/{dist/esm-browser → dist-node}/index.js +0 -0
  359. /package/node_modules/uuid/{dist/esm-browser → dist-node}/max.js +0 -0
  360. /package/node_modules/uuid/{dist/esm-browser → dist-node}/nil.js +0 -0
  361. /package/node_modules/uuid/{dist/esm-browser → dist-node}/parse.js +0 -0
  362. /package/node_modules/uuid/{dist/esm-browser → dist-node}/regex.js +0 -0
  363. /package/node_modules/uuid/{dist/esm-browser → dist-node}/stringify.js +0 -0
  364. /package/node_modules/uuid/{dist/esm-browser → dist-node}/types.js +0 -0
  365. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1.js +0 -0
  366. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1ToV6.js +0 -0
  367. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v3.js +0 -0
  368. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v35.js +0 -0
  369. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v5.js +0 -0
  370. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6.js +0 -0
  371. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6ToV1.js +0 -0
  372. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v7.js +0 -0
  373. /package/node_modules/uuid/{dist/esm-browser → dist-node}/validate.js +0 -0
  374. /package/node_modules/uuid/{dist/esm-browser → dist-node}/version.js +0 -0
@@ -25,6 +25,7 @@ import readBlob from "../helpers/readBlob.js";
25
25
  import ZlibHeaderTransformStream from '../helpers/ZlibHeaderTransformStream.js';
26
26
  import callbackify from "../helpers/callbackify.js";
27
27
  import {progressEventReducer, progressEventDecorator, asyncDecorator} from "../helpers/progressEventReducer.js";
28
+ import estimateDataURLDecodedBytes from '../helpers/estimateDataURLDecodedBytes.js';
28
29
 
29
30
  const zlibOptions = {
30
31
  flush: zlib.constants.Z_SYNC_FLUSH,
@@ -46,6 +47,7 @@ const supportedProtocols = platform.protocols.map(protocol => {
46
47
  return protocol + ':';
47
48
  });
48
49
 
50
+
49
51
  const flushOnFinish = (stream, [throttled, flush]) => {
50
52
  stream
51
53
  .on('end', flush)
@@ -54,6 +56,7 @@ const flushOnFinish = (stream, [throttled, flush]) => {
54
56
  return throttled;
55
57
  }
56
58
 
59
+
57
60
  /**
58
61
  * If the proxy or config beforeRedirects functions are defined, call them with the options
59
62
  * object.
@@ -233,6 +236,21 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
233
236
  const protocol = parsed.protocol || supportedProtocols[0];
234
237
 
235
238
  if (protocol === 'data:') {
239
+ // Apply the same semantics as HTTP: only enforce if a finite, non-negative cap is set.
240
+ if (config.maxContentLength > -1) {
241
+ // Use the exact string passed to fromDataURI (config.url); fall back to fullPath if needed.
242
+ const dataUrl = String(config.url || fullPath || '');
243
+ const estimated = estimateDataURLDecodedBytes(dataUrl);
244
+
245
+ if (estimated > config.maxContentLength) {
246
+ return reject(new AxiosError(
247
+ 'maxContentLength size of ' + config.maxContentLength + ' exceeded',
248
+ AxiosError.ERR_BAD_RESPONSE,
249
+ config
250
+ ));
251
+ }
252
+ }
253
+
236
254
  let convertedData;
237
255
 
238
256
  if (method !== 'GET') {
@@ -104,15 +104,18 @@ export default isXHRAdapterSupported && function (config) {
104
104
  };
105
105
 
106
106
  // Handle low level network errors
107
- request.onerror = function handleError() {
108
- // Real errors are hidden from us by the browser
109
- // onerror should only fire if it's a network error
110
- reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
111
-
112
- // Clean up request
113
- request = null;
107
+ request.onerror = function handleError(event) {
108
+ // Browsers deliver a ProgressEvent in XHR onerror
109
+ // (message may be empty; when present, surface it)
110
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
111
+ const msg = event && event.message ? event.message : 'Network Error';
112
+ const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
113
+ // attach the underlying event for consumers who want details
114
+ err.event = event || null;
115
+ reject(err);
116
+ request = null;
114
117
  };
115
-
118
+
116
119
  // Handle timeout
117
120
  request.ontimeout = function handleTimeout() {
118
121
  let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
@@ -153,8 +153,8 @@ class Axios {
153
153
 
154
154
  if (!synchronousRequestInterceptors) {
155
155
  const chain = [dispatchRequest.bind(this), undefined];
156
- chain.unshift.apply(chain, requestInterceptorChain);
157
- chain.push.apply(chain, responseInterceptorChain);
156
+ chain.unshift(...requestInterceptorChain);
157
+ chain.push(...responseInterceptorChain);
158
158
  len = chain.length;
159
159
 
160
160
  promise = Promise.resolve(config);
@@ -170,8 +170,6 @@ class Axios {
170
170
 
171
171
  let newConfig = config;
172
172
 
173
- i = 0;
174
-
175
173
  while (i < len) {
176
174
  const onFulfilled = requestInterceptorChain[i++];
177
175
  const onRejected = requestInterceptorChain[i++];
@@ -89,11 +89,18 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
89
89
  return prop !== 'isAxiosError';
90
90
  });
91
91
 
92
- AxiosError.call(axiosError, error.message, code, config, request, response);
92
+ const msg = error && error.message ? error.message : 'Error';
93
93
 
94
- axiosError.cause = error;
94
+ // Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
95
+ const errCode = code == null && error ? error.code : code;
96
+ AxiosError.call(axiosError, msg, errCode, config, request, response);
95
97
 
96
- axiosError.name = error.name;
98
+ // Chain the original error on the standard field; non-enumerable to avoid JSON noise
99
+ if (error && axiosError.cause == null) {
100
+ Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
101
+ }
102
+
103
+ axiosError.name = (error && error.name) || 'Error';
97
104
 
98
105
  customProps && Object.assign(axiosError, customProps);
99
106
 
@@ -46,7 +46,7 @@ export default function dispatchRequest(config) {
46
46
  config.headers.setContentType('application/x-www-form-urlencoded', false);
47
47
  }
48
48
 
49
- const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
49
+ const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
50
50
 
51
51
  return adapter(config).then(function onAdapterResolution(response) {
52
52
  throwIfCancellationRequested(config);
@@ -96,7 +96,7 @@ export default function mergeConfig(config1, config2) {
96
96
  headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
97
97
  };
98
98
 
99
- utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
99
+ utils.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
100
100
  const merge = mergeMap[prop] || mergeDeepProperties;
101
101
  const configValue = merge(config1[prop], config2[prop], prop);
102
102
  (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
@@ -111,7 +111,7 @@ const defaults = {
111
111
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
112
112
 
113
113
  try {
114
- return JSON.parse(data);
114
+ return JSON.parse(data, this.parseReviver);
115
115
  } catch (e) {
116
116
  if (strictJSONParsing) {
117
117
  if (e.name === 'SyntaxError') {
@@ -1 +1 @@
1
- export const VERSION = "1.9.0";
1
+ export const VERSION = "1.12.2";
@@ -16,9 +16,7 @@ function encode(val) {
16
16
  replace(/%3A/gi, ':').
17
17
  replace(/%24/g, '$').
18
18
  replace(/%2C/gi, ',').
19
- replace(/%20/g, '+').
20
- replace(/%5B/gi, '[').
21
- replace(/%5D/gi, ']');
19
+ replace(/%20/g, '+');
22
20
  }
23
21
 
24
22
  /**
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Estimate decoded byte length of a data:// URL *without* allocating large buffers.
3
+ * - For base64: compute exact decoded size using length and padding;
4
+ * handle %XX at the character-count level (no string allocation).
5
+ * - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
6
+ *
7
+ * @param {string} url
8
+ * @returns {number}
9
+ */
10
+ export default function estimateDataURLDecodedBytes(url) {
11
+ if (!url || typeof url !== 'string') return 0;
12
+ if (!url.startsWith('data:')) return 0;
13
+
14
+ const comma = url.indexOf(',');
15
+ if (comma < 0) return 0;
16
+
17
+ const meta = url.slice(5, comma);
18
+ const body = url.slice(comma + 1);
19
+ const isBase64 = /;base64/i.test(meta);
20
+
21
+ if (isBase64) {
22
+ let effectiveLen = body.length;
23
+ const len = body.length; // cache length
24
+
25
+ for (let i = 0; i < len; i++) {
26
+ if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {
27
+ const a = body.charCodeAt(i + 1);
28
+ const b = body.charCodeAt(i + 2);
29
+ const isHex =
30
+ ((a >= 48 && a <= 57) || (a >= 65 && a <= 70) || (a >= 97 && a <= 102)) &&
31
+ ((b >= 48 && b <= 57) || (b >= 65 && b <= 70) || (b >= 97 && b <= 102));
32
+
33
+ if (isHex) {
34
+ effectiveLen -= 2;
35
+ i += 2;
36
+ }
37
+ }
38
+ }
39
+
40
+ let pad = 0;
41
+ let idx = len - 1;
42
+
43
+ const tailIsPct3D = (j) =>
44
+ j >= 2 &&
45
+ body.charCodeAt(j - 2) === 37 && // '%'
46
+ body.charCodeAt(j - 1) === 51 && // '3'
47
+ (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'
48
+
49
+ if (idx >= 0) {
50
+ if (body.charCodeAt(idx) === 61 /* '=' */) {
51
+ pad++;
52
+ idx--;
53
+ } else if (tailIsPct3D(idx)) {
54
+ pad++;
55
+ idx -= 3;
56
+ }
57
+ }
58
+
59
+ if (pad === 1 && idx >= 0) {
60
+ if (body.charCodeAt(idx) === 61 /* '=' */) {
61
+ pad++;
62
+ } else if (tailIsPct3D(idx)) {
63
+ pad++;
64
+ }
65
+ }
66
+
67
+ const groups = Math.floor(effectiveLen / 4);
68
+ const bytes = groups * 3 - (pad || 0);
69
+ return bytes > 0 ? bytes : 0;
70
+ }
71
+
72
+ return Buffer.byteLength(body, 'utf8');
73
+ }
@@ -10,7 +10,7 @@ import buildURL from "./buildURL.js";
10
10
  export default (config) => {
11
11
  const newConfig = mergeConfig({}, config);
12
12
 
13
- let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
13
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
14
14
 
15
15
  newConfig.headers = headers = AxiosHeaders.from(headers);
16
16
 
@@ -23,17 +23,21 @@ export default (config) => {
23
23
  );
24
24
  }
25
25
 
26
- let contentType;
27
-
28
26
  if (utils.isFormData(data)) {
29
27
  if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
30
- headers.setContentType(undefined); // Let the browser set it
31
- } else if ((contentType = headers.getContentType()) !== false) {
32
- // fix semicolon duplication issue for ReactNative FormData implementation
33
- const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
34
- headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
28
+ headers.setContentType(undefined); // browser handles it
29
+ } else if (utils.isFunction(data.getHeaders)) {
30
+ // Node.js FormData (like form-data package)
31
+ const formHeaders = data.getHeaders();
32
+ // Only set safe headers to avoid overwriting security headers
33
+ const allowedHeaders = ['content-type', 'content-length'];
34
+ Object.entries(formHeaders).forEach(([key, val]) => {
35
+ if (allowedHeaders.includes(key.toLowerCase())) {
36
+ headers.set(key, val);
37
+ }
38
+ });
35
39
  }
36
- }
40
+ }
37
41
 
38
42
  // Add xsrf header
39
43
  // This is only done if running in a standard browser environment.
@@ -17,7 +17,7 @@ function throttle(fn, freq) {
17
17
  clearTimeout(timer);
18
18
  timer = null;
19
19
  }
20
- fn.apply(null, args);
20
+ fn(...args);
21
21
  }
22
22
 
23
23
  const throttled = (...args) => {
@@ -120,6 +120,10 @@ function toFormData(obj, formData, options) {
120
120
  return value.toISOString();
121
121
  }
122
122
 
123
+ if (utils.isBoolean(value)) {
124
+ return value.toString();
125
+ }
126
+
123
127
  if (!useBlob && utils.isBlob(value)) {
124
128
  throw new AxiosError('Blob is not supported. Use a Buffer instead.');
125
129
  }
@@ -5,7 +5,7 @@ import toFormData from './toFormData.js';
5
5
  import platform from '../platform/index.js';
6
6
 
7
7
  export default function toURLEncodedForm(data, options) {
8
- return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
8
+ return toFormData(data, new platform.classes.URLSearchParams(), {
9
9
  visitor: function(value, key, path, helpers) {
10
10
  if (platform.isNode && utils.isBuffer(value)) {
11
11
  this.append(key, value.toString('base64'));
@@ -13,6 +13,7 @@ export default function toURLEncodedForm(data, options) {
13
13
  }
14
14
 
15
15
  return helpers.defaultVisitor.apply(this, arguments);
16
- }
17
- }, options));
16
+ },
17
+ ...options
18
+ });
18
19
  }
@@ -136,6 +136,27 @@ const isPlainObject = (val) => {
136
136
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
137
137
  }
138
138
 
139
+ /**
140
+ * Determine if a value is an empty object (safely handles Buffers)
141
+ *
142
+ * @param {*} val The value to test
143
+ *
144
+ * @returns {boolean} True if value is an empty object, otherwise false
145
+ */
146
+ const isEmptyObject = (val) => {
147
+ // Early return for non-objects or Buffers to prevent RangeError
148
+ if (!isObject(val) || isBuffer(val)) {
149
+ return false;
150
+ }
151
+
152
+ try {
153
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
154
+ } catch (e) {
155
+ // Fallback for any other objects that might cause RangeError with Object.keys()
156
+ return false;
157
+ }
158
+ }
159
+
139
160
  /**
140
161
  * Determine if a value is a Date
141
162
  *
@@ -258,6 +279,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
258
279
  fn.call(null, obj[i], i, obj);
259
280
  }
260
281
  } else {
282
+ // Buffer check
283
+ if (isBuffer(obj)) {
284
+ return;
285
+ }
286
+
261
287
  // Iterate over object keys
262
288
  const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
263
289
  const len = keys.length;
@@ -271,6 +297,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
271
297
  }
272
298
 
273
299
  function findKey(obj, key) {
300
+ if (isBuffer(obj)){
301
+ return null;
302
+ }
303
+
274
304
  key = key.toLowerCase();
275
305
  const keys = Object.keys(obj);
276
306
  let i = keys.length;
@@ -311,7 +341,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
311
341
  * @returns {Object} Result of all merge properties
312
342
  */
313
343
  function merge(/* obj1, obj2, obj3, ... */) {
314
- const {caseless} = isContextDefined(this) && this || {};
344
+ const {caseless, skipUndefined} = isContextDefined(this) && this || {};
315
345
  const result = {};
316
346
  const assignValue = (val, key) => {
317
347
  const targetKey = caseless && findKey(result, key) || key;
@@ -321,7 +351,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
321
351
  result[targetKey] = merge({}, val);
322
352
  } else if (isArray(val)) {
323
353
  result[targetKey] = val.slice();
324
- } else {
354
+ } else if (!skipUndefined || !isUndefined(val)) {
325
355
  result[targetKey] = val;
326
356
  }
327
357
  }
@@ -603,6 +633,8 @@ const toFiniteNumber = (value, defaultValue) => {
603
633
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
604
634
  }
605
635
 
636
+
637
+
606
638
  /**
607
639
  * If the thing is a FormData object, return true, otherwise return false.
608
640
  *
@@ -624,6 +656,11 @@ const toJSONObject = (obj) => {
624
656
  return;
625
657
  }
626
658
 
659
+ //Buffer check
660
+ if (isBuffer(source)) {
661
+ return source;
662
+ }
663
+
627
664
  if(!('toJSON' in source)) {
628
665
  stack[i] = source;
629
666
  const target = isArray(source) ? [] : {};
@@ -695,6 +732,7 @@ export default {
695
732
  isBoolean,
696
733
  isObject,
697
734
  isPlainObject,
735
+ isEmptyObject,
698
736
  isReadableStream,
699
737
  isRequest,
700
738
  isResponse,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axios",
3
- "version": "1.9.0",
3
+ "version": "1.12.2",
4
4
  "description": "Promise based HTTP client for the browser and node.js",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -9,6 +9,10 @@
9
9
  "require": "./index.d.cts",
10
10
  "default": "./index.d.ts"
11
11
  },
12
+ "react-native": {
13
+ "require": "./dist/browser/axios.cjs",
14
+ "default": "./dist/esm/axios.js"
15
+ },
12
16
  "browser": {
13
17
  "require": "./dist/browser/axios.cjs",
14
18
  "default": "./index.js"
@@ -29,23 +33,28 @@
29
33
  "./unsafe/adapters/http.js": "./lib/adapters/http.js",
30
34
  "./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js",
31
35
  "./unsafe/utils.js": "./lib/utils.js",
32
- "./package.json": "./package.json"
36
+ "./package.json": "./package.json",
37
+ "./dist/browser/axios.cjs": "./dist/browser/axios.cjs",
38
+ "./dist/node/axios.cjs": "./dist/node/axios.cjs"
33
39
  },
34
40
  "type": "module",
35
41
  "types": "index.d.ts",
36
42
  "scripts": {
37
- "test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:dtslint && npm run test:exports",
43
+ "test": "npm run test:node && npm run test:browser && npm run test:package",
44
+ "test:node": "npm run test:mocha",
45
+ "test:browser": "npm run test:karma",
46
+ "test:package": "npm run test:eslint && npm run test:dtslint && npm run test:exports",
38
47
  "test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
39
48
  "test:dtslint": "dtslint --localTs node_modules/typescript/lib",
40
49
  "test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit",
41
50
  "test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit",
42
- "test:karma": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: karma start karma.conf.cjs --single-run",
51
+ "test:karma": "node ./bin/run-karma-tests.js",
43
52
  "test:karma:firefox": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: Browsers=Firefox karma start karma.conf.cjs --single-run",
44
53
  "test:karma:server": "node bin/ssl_hotfix.js cross-env karma start karma.conf.cjs",
45
54
  "test:build:version": "node ./bin/check-build-version.js",
46
55
  "start": "node ./sandbox/server.js",
47
56
  "preversion": "gulp version",
48
- "version": "npm run build && git add dist && git add package.json",
57
+ "version": "npm run build && git add package.json",
49
58
  "prepublishOnly": "npm run test:build:version",
50
59
  "postpublish": "git push && git push --tags",
51
60
  "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
@@ -85,6 +94,7 @@
85
94
  "@commitlint/cli": "^17.8.1",
86
95
  "@commitlint/config-conventional": "^17.8.1",
87
96
  "@release-it/conventional-changelog": "^5.1.1",
97
+ "@rollup/plugin-alias": "^5.1.0",
88
98
  "@rollup/plugin-babel": "^5.3.1",
89
99
  "@rollup/plugin-commonjs": "^15.1.0",
90
100
  "@rollup/plugin-json": "^4.1.0",
@@ -106,7 +116,6 @@
106
116
  "fs-extra": "^10.1.0",
107
117
  "get-stream": "^3.0.0",
108
118
  "gulp": "^4.0.2",
109
- "gzip-size": "^7.0.0",
110
119
  "handlebars": "^4.7.8",
111
120
  "husky": "^8.0.3",
112
121
  "istanbul-instrumenter-loader": "^3.0.1",
@@ -125,6 +134,7 @@
125
134
  "minimist": "^1.2.8",
126
135
  "mocha": "^10.3.0",
127
136
  "multer": "^1.4.4",
137
+ "pacote": "^20.0.0",
128
138
  "pretty-bytes": "^6.1.1",
129
139
  "release-it": "^15.11.0",
130
140
  "rollup": "^2.79.1",
@@ -134,21 +144,26 @@
134
144
  "sinon": "^4.5.0",
135
145
  "stream-throttle": "^0.1.3",
136
146
  "string-replace-async": "^3.0.2",
147
+ "tar-stream": "^3.1.7",
137
148
  "terser-webpack-plugin": "^4.2.3",
138
- "typescript": "^4.9.5",
139
- "@rollup/plugin-alias": "^5.1.0"
149
+ "typescript": "^4.9.5"
140
150
  },
141
151
  "browser": {
142
152
  "./lib/adapters/http.js": "./lib/helpers/null.js",
143
153
  "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
144
154
  "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
145
155
  },
156
+ "react-native": {
157
+ "./lib/adapters/http.js": "./lib/helpers/null.js",
158
+ "./lib/platform/node/index.js": "./lib/platform/browser/index.js",
159
+ "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js"
160
+ },
146
161
  "jsdelivr": "dist/axios.min.js",
147
162
  "unpkg": "dist/axios.min.js",
148
163
  "typings": "./index.d.ts",
149
164
  "dependencies": {
150
165
  "follow-redirects": "^1.15.6",
151
- "form-data": "^4.0.0",
166
+ "form-data": "^4.0.4",
152
167
  "proxy-from-env": "^1.1.0"
153
168
  },
154
169
  "bundlesize": [
@@ -159,18 +174,18 @@
159
174
  ],
160
175
  "contributors": [
161
176
  "Matt Zabriskie (https://github.com/mzabriskie)",
162
- "Nick Uraltsev (https://github.com/nickuraltsev)",
163
177
  "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
178
+ "Nick Uraltsev (https://github.com/nickuraltsev)",
164
179
  "Jay (https://github.com/jasonsaayman)",
165
180
  "Emily Morehouse (https://github.com/emilyemorehouse)",
166
181
  "Rubén Norte (https://github.com/rubennorte)",
167
182
  "Justin Beckwith (https://github.com/JustinBeckwith)",
168
183
  "Martti Laine (https://github.com/codeclown)",
169
184
  "Xianming Zhong (https://github.com/chinesedfan)",
170
- "Rikki Gibson (https://github.com/RikkiGibson)",
171
185
  "Remco Haszing (https://github.com/remcohaszing)",
172
- "Yasu Flores (https://github.com/yasuf)",
173
- "Ben Carp (https://github.com/carpben)"
186
+ "Rikki Gibson (https://github.com/RikkiGibson)",
187
+ "Willian Agostini (https://github.com/WillianAgostini)",
188
+ "Yasu Flores (https://github.com/yasuf)"
174
189
  ],
175
190
  "sideEffects": false,
176
191
  "release-it": {
@@ -199,8 +214,8 @@
199
214
  },
200
215
  "hooks": {
201
216
  "before:init": "npm test",
202
- "after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version && git add ./dist && git add ./package-lock.json",
203
- "before:release": "npm run release:changelog:fix",
217
+ "after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version",
218
+ "before:release": "npm run release:changelog:fix && git add ./package-lock.json",
204
219
  "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
205
220
  }
206
221
  },
@@ -1,3 +1,8 @@
1
+ #### 9.3.1
2
+
3
+ * 11/07/25
4
+ * [BUGFIX] #388 `toPrecision` fix.
5
+
1
6
  #### 9.3.0
2
7
 
3
8
  * 19/04/25
@@ -13,7 +18,7 @@
13
18
  #### 9.2.1
14
19
 
15
20
  * 08/04/25
16
- * ##371 #382 Add `BigNumber` as named export.
21
+ * #371 #382 Add `BigNumber` as named export.
17
22
 
18
23
  #### 9.2.0
19
24
 
@@ -4,6 +4,7 @@ A JavaScript library for arbitrary-precision decimal and non-decimal arithmetic.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/bignumber.js.svg)](https://www.npmjs.com/package/bignumber.js)
6
6
  [![npm downloads](https://img.shields.io/npm/dw/bignumber.js)](https://www.npmjs.com/package/bignumber.js)
7
+ [![CI](https://github.com/MikeMcl/bignumber.js/actions/workflows/ci.yml/badge.svg)](https://github.com/MikeMcl/bignumber.js/actions/workflows/ci.yml)
7
8
 
8
9
  <br />
9
10
 
@@ -48,7 +49,7 @@ import BigNumber from './path/to/bignumber.mjs';
48
49
  > Get a minified version from a CDN:
49
50
 
50
51
  ```html
51
- <script src='https://cdn.jsdelivr.net/npm/bignumber.js@9.3.0/bignumber.min.js'></script>
52
+ <script src='https://cdn.jsdelivr.net/npm/bignumber.js@9.3.1/bignumber.min.js'></script>
52
53
  ```
53
54
 
54
55
  ### [Node.js](http://nodejs.org)
@@ -70,8 +71,8 @@ import BigNumber from "bignumber.js";
70
71
  ### [Deno](https://deno.land/)
71
72
 
72
73
  ```javascript
73
- // @deno-types="https://raw.githubusercontent.com/mikemcl/bignumber.js/v9.3.0/bignumber.d.mts"
74
- import BigNumber from 'https://raw.githubusercontent.com/mikemcl/bignumber.js/v9.3.0/bignumber.mjs';
74
+ // @deno-types="https://raw.githubusercontent.com/mikemcl/bignumber.js/v9.3.1/bignumber.d.mts"
75
+ import BigNumber from 'https://raw.githubusercontent.com/mikemcl/bignumber.js/v9.3.1/bignumber.mjs';
75
76
 
76
77
  // @deno-types="https://unpkg.com/bignumber.js@latest/bignumber.d.mts"
77
78
  import { BigNumber } from 'https://unpkg.com/bignumber.js@latest/bignumber.mjs';
@@ -285,4 +286,4 @@ terser big.js -c -m -o big.min.js
285
286
 
286
287
  The MIT Licence.
287
288
 
288
- See [LICENCE](https://github.com/MikeMcl/bignumber.js/blob/master/LICENCE).
289
+ See [LICENCE](https://github.com/MikeMcl/bignumber.js/blob/main/LICENCE.md).
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
 
4
4
  /*
5
- * bignumber.js v9.3.0
5
+ * bignumber.js v9.3.1
6
6
  * A JavaScript library for arbitrary-precision arithmetic.
7
7
  * https://github.com/MikeMcl/bignumber.js
8
8
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
@@ -1270,7 +1270,7 @@
1270
1270
 
1271
1271
  // Fixed-point notation.
1272
1272
  } else {
1273
- i -= ne;
1273
+ i -= ne + (id === 2 && e > ne);
1274
1274
  str = toFixedPoint(str, e, '0');
1275
1275
 
1276
1276
  // Append zeros?
@@ -1,5 +1,5 @@
1
1
  /*
2
- * bignumber.js v9.3.0
2
+ * bignumber.js v9.3.1
3
3
  * A JavaScript library for arbitrary-precision arithmetic.
4
4
  * https://github.com/MikeMcl/bignumber.js
5
5
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
@@ -1267,7 +1267,7 @@ function clone(configObject) {
1267
1267
 
1268
1268
  // Fixed-point notation.
1269
1269
  } else {
1270
- i -= ne;
1270
+ i -= ne + (id === 2 && e > ne);
1271
1271
  str = toFixedPoint(str, e, '0');
1272
1272
 
1273
1273
  // Append zeros?
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bignumber.js",
3
3
  "description": "A library for arbitrary-precision decimal and non-decimal arithmetic",
4
- "version": "9.3.0",
4
+ "version": "9.3.1",
5
5
  "keywords": [
6
6
  "arbitrary",
7
7
  "precision",