node-red-contrib-tak-registration 0.3.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/README.md +1 -1
  2. package/node_modules/@turf/along/package.json +41 -69
  3. package/node_modules/@turf/angle/package.json +44 -75
  4. package/node_modules/@turf/area/package.json +38 -68
  5. package/node_modules/@turf/bbox/package.json +37 -81
  6. package/node_modules/@turf/bbox-clip/package.json +44 -81
  7. package/node_modules/@turf/bbox-polygon/package.json +36 -66
  8. package/node_modules/@turf/bearing/package.json +36 -70
  9. package/node_modules/@turf/bezier-spline/package.json +39 -67
  10. package/node_modules/@turf/boolean-clockwise/package.json +42 -83
  11. package/node_modules/@turf/boolean-contains/package.json +46 -80
  12. package/node_modules/@turf/boolean-crosses/package.json +45 -79
  13. package/node_modules/@turf/boolean-disjoint/package.json +44 -79
  14. package/node_modules/@turf/boolean-equal/package.json +47 -84
  15. package/node_modules/@turf/boolean-intersects/package.json +42 -77
  16. package/node_modules/@turf/boolean-overlap/package.json +48 -82
  17. package/node_modules/@turf/boolean-parallel/package.json +42 -73
  18. package/node_modules/@turf/boolean-point-in-polygon/package.json +37 -77
  19. package/node_modules/@turf/boolean-point-on-line/package.json +39 -73
  20. package/node_modules/@turf/boolean-within/package.json +46 -79
  21. package/node_modules/@turf/buffer/package.json +47 -84
  22. package/node_modules/@turf/center/package.json +42 -73
  23. package/node_modules/@turf/center-mean/package.json +45 -78
  24. package/node_modules/@turf/center-median/package.json +45 -76
  25. package/node_modules/@turf/center-of-mass/package.json +40 -68
  26. package/node_modules/@turf/centroid/package.json +40 -74
  27. package/node_modules/@turf/circle/package.json +41 -71
  28. package/node_modules/@turf/clean-coords/package.json +40 -75
  29. package/node_modules/@turf/clone/package.json +36 -81
  30. package/node_modules/@turf/clusters/package.json +39 -70
  31. package/node_modules/@turf/clusters-dbscan/package.json +51 -88
  32. package/node_modules/@turf/clusters-kmeans/package.json +53 -90
  33. package/node_modules/@turf/collect/package.json +42 -73
  34. package/node_modules/@turf/combine/package.json +37 -65
  35. package/node_modules/@turf/concave/package.json +56 -111
  36. package/node_modules/@turf/convex/package.json +39 -68
  37. package/node_modules/@turf/destination/package.json +41 -75
  38. package/node_modules/@turf/difference/package.json +35 -63
  39. package/node_modules/@turf/dissolve/package.json +38 -66
  40. package/node_modules/@turf/distance/package.json +38 -83
  41. package/node_modules/@turf/distance-weight/package.json +40 -72
  42. package/node_modules/@turf/ellipse/package.json +43 -75
  43. package/node_modules/@turf/envelope/package.json +36 -65
  44. package/node_modules/@turf/explode/package.json +36 -67
  45. package/node_modules/@turf/flatten/package.json +39 -73
  46. package/node_modules/@turf/flip/package.json +36 -64
  47. package/node_modules/@turf/great-circle/package.json +41 -78
  48. package/node_modules/@turf/helpers/package.json +38 -184
  49. package/node_modules/@turf/hex-grid/package.json +50 -97
  50. package/node_modules/@turf/interpolate/package.json +47 -78
  51. package/node_modules/@turf/intersect/package.json +39 -69
  52. package/node_modules/@turf/invariant/package.json +36 -126
  53. package/node_modules/@turf/isobands/package.json +52 -83
  54. package/node_modules/@turf/isolines/package.json +48 -79
  55. package/node_modules/@turf/kinks/package.json +35 -63
  56. package/node_modules/@turf/length/package.json +43 -78
  57. package/node_modules/@turf/line-arc/package.json +36 -65
  58. package/node_modules/@turf/line-chunk/package.json +44 -84
  59. package/node_modules/@turf/line-intersect/package.json +46 -85
  60. package/node_modules/@turf/line-offset/package.json +41 -78
  61. package/node_modules/@turf/line-overlap/package.json +48 -80
  62. package/node_modules/@turf/line-segment/package.json +38 -70
  63. package/node_modules/@turf/line-slice/package.json +39 -67
  64. package/node_modules/@turf/line-slice-along/package.json +36 -65
  65. package/node_modules/@turf/line-split/package.json +46 -77
  66. package/node_modules/@turf/line-to-polygon/package.json +43 -74
  67. package/node_modules/@turf/mask/package.json +35 -63
  68. package/node_modules/@turf/meta/package.json +39 -128
  69. package/node_modules/@turf/midpoint/package.json +36 -64
  70. package/node_modules/@turf/moran-index/package.json +39 -70
  71. package/node_modules/@turf/nearest-point/package.json +39 -69
  72. package/node_modules/@turf/nearest-point-on-line/package.json +40 -71
  73. package/node_modules/@turf/nearest-point-to-line/package.json +47 -78
  74. package/node_modules/@turf/planepoint/package.json +34 -62
  75. package/node_modules/@turf/point-grid/package.json +45 -80
  76. package/node_modules/@turf/point-on-feature/package.json +40 -68
  77. package/node_modules/@turf/point-to-line-distance/package.json +46 -78
  78. package/node_modules/@turf/points-within-polygon/package.json +35 -64
  79. package/node_modules/@turf/polygon-smooth/package.json +37 -68
  80. package/node_modules/@turf/polygon-tangents/package.json +43 -77
  81. package/node_modules/@turf/polygon-to-line/package.json +39 -69
  82. package/node_modules/@turf/polygonize/package.json +43 -77
  83. package/node_modules/@turf/projection/package.json +44 -77
  84. package/node_modules/@turf/random/package.json +34 -62
  85. package/node_modules/@turf/rectangle-grid/package.json +43 -77
  86. package/node_modules/@turf/rewind/package.json +43 -83
  87. package/node_modules/@turf/rhumb-bearing/package.json +43 -85
  88. package/node_modules/@turf/rhumb-destination/package.json +44 -85
  89. package/node_modules/@turf/rhumb-distance/package.json +44 -84
  90. package/node_modules/@turf/sample/package.json +32 -60
  91. package/node_modules/@turf/sector/package.json +37 -65
  92. package/node_modules/@turf/shortest-path/package.json +45 -79
  93. package/node_modules/@turf/simplify/package.json +43 -77
  94. package/node_modules/@turf/square/package.json +33 -62
  95. package/node_modules/@turf/square-grid/package.json +40 -69
  96. package/node_modules/@turf/standard-deviational-ellipse/package.json +43 -74
  97. package/node_modules/@turf/tag/package.json +38 -66
  98. package/node_modules/@turf/tesselate/package.json +40 -80
  99. package/node_modules/@turf/tin/package.json +34 -63
  100. package/node_modules/@turf/transform-rotate/package.json +45 -80
  101. package/node_modules/@turf/transform-scale/package.json +51 -86
  102. package/node_modules/@turf/transform-translate/package.json +44 -78
  103. package/node_modules/@turf/triangle-grid/package.json +42 -71
  104. package/node_modules/@turf/truncate/package.json +40 -72
  105. package/node_modules/@turf/turf/package.json +74 -102
  106. package/node_modules/@turf/union/package.json +39 -67
  107. package/node_modules/@turf/unkink-polygon/package.json +40 -68
  108. package/node_modules/@turf/voronoi/package.json +43 -83
  109. package/node_modules/@types/geojson/package.json +42 -66
  110. package/node_modules/adm-zip/LICENSE +21 -21
  111. package/node_modules/adm-zip/adm-zip.js +25 -22
  112. package/node_modules/adm-zip/headers/mainHeader.js +2 -1
  113. package/node_modules/adm-zip/package.json +28 -57
  114. package/node_modules/adm-zip/util/utils.js +1 -0
  115. package/node_modules/asynckit/package.json +40 -68
  116. package/node_modules/axios/CHANGELOG.md +473 -837
  117. package/node_modules/axios/LICENSE +4 -16
  118. package/node_modules/axios/MIGRATION_GUIDE.md +3 -0
  119. package/node_modules/axios/README.md +518 -114
  120. package/node_modules/axios/SECURITY.md +4 -3
  121. package/node_modules/axios/dist/axios.js +2759 -2070
  122. package/node_modules/axios/dist/axios.js.map +1 -0
  123. package/node_modules/axios/dist/axios.min.js +2 -2
  124. package/node_modules/axios/dist/axios.min.js.map +1 -0
  125. package/node_modules/axios/dist/browser/axios.cjs +3210 -0
  126. package/node_modules/axios/dist/browser/axios.cjs.map +1 -0
  127. package/node_modules/axios/dist/esm/axios.js +3232 -0
  128. package/node_modules/axios/dist/esm/axios.js.map +1 -0
  129. package/node_modules/axios/dist/esm/axios.min.js +2 -0
  130. package/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  131. package/node_modules/axios/dist/node/axios.cjs +4237 -0
  132. package/node_modules/axios/dist/node/axios.cjs.map +1 -0
  133. package/node_modules/axios/index.d.cts +532 -0
  134. package/node_modules/axios/index.d.ts +398 -72
  135. package/node_modules/axios/index.js +41 -1
  136. package/node_modules/axios/lib/adapters/adapters.js +59 -0
  137. package/node_modules/axios/lib/adapters/http.js +479 -217
  138. package/node_modules/axios/lib/adapters/xhr.js +95 -54
  139. package/node_modules/axios/lib/axios.js +49 -20
  140. package/node_modules/axios/lib/cancel/CancelToken.js +91 -89
  141. package/node_modules/axios/lib/cancel/CanceledError.js +25 -0
  142. package/node_modules/axios/lib/cancel/isCancel.js +2 -2
  143. package/node_modules/axios/lib/core/Axios.js +155 -100
  144. package/node_modules/axios/lib/core/AxiosError.js +100 -0
  145. package/node_modules/axios/lib/core/AxiosHeaders.js +288 -0
  146. package/node_modules/axios/lib/core/InterceptorManager.js +62 -45
  147. package/node_modules/axios/lib/core/buildFullPath.js +5 -4
  148. package/node_modules/axios/lib/core/dispatchRequest.js +27 -33
  149. package/node_modules/axios/lib/core/mergeConfig.js +58 -52
  150. package/node_modules/axios/lib/core/settle.js +8 -6
  151. package/node_modules/axios/lib/core/transformData.js +15 -9
  152. package/node_modules/axios/lib/defaults/index.js +76 -41
  153. package/node_modules/axios/lib/defaults/transitional.js +1 -1
  154. package/node_modules/axios/lib/env/classes/FormData.js +2 -0
  155. package/node_modules/axios/lib/env/data.js +1 -3
  156. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +191 -0
  157. package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
  158. package/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  159. package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
  160. package/node_modules/axios/lib/helpers/bind.js +3 -7
  161. package/node_modules/axios/lib/helpers/buildURL.js +26 -33
  162. package/node_modules/axios/lib/helpers/callbackify.js +16 -0
  163. package/node_modules/axios/lib/helpers/combineURLs.js +3 -2
  164. package/node_modules/axios/lib/helpers/cookies.js +43 -44
  165. package/node_modules/axios/lib/helpers/deprecatedMethod.js +4 -2
  166. package/node_modules/axios/lib/helpers/formDataToJSON.js +92 -0
  167. package/node_modules/axios/lib/helpers/formDataToStream.js +111 -0
  168. package/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
  169. package/node_modules/axios/lib/helpers/isAbsoluteURL.js +3 -2
  170. package/node_modules/axios/lib/helpers/isAxiosError.js +4 -3
  171. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +44 -45
  172. package/node_modules/axios/lib/helpers/null.js +2 -0
  173. package/node_modules/axios/lib/helpers/parseHeaders.js +24 -22
  174. package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  175. package/node_modules/axios/lib/helpers/readBlob.js +15 -0
  176. package/node_modules/axios/lib/helpers/speedometer.js +55 -0
  177. package/node_modules/axios/lib/helpers/spread.js +3 -2
  178. package/node_modules/axios/lib/helpers/throttle.js +33 -0
  179. package/node_modules/axios/lib/helpers/toFormData.js +203 -39
  180. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
  181. package/node_modules/axios/lib/helpers/validator.js +27 -18
  182. package/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  183. package/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  184. package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  185. package/node_modules/axios/lib/platform/browser/index.js +64 -0
  186. package/node_modules/axios/lib/platform/index.js +3 -0
  187. package/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  188. package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  189. package/node_modules/axios/lib/platform/node/index.js +12 -0
  190. package/node_modules/axios/lib/utils.js +517 -144
  191. package/node_modules/axios/package.json +194 -93
  192. package/node_modules/call-bind/package.json +78 -109
  193. package/node_modules/combined-stream/package.json +14 -46
  194. package/node_modules/commander/package.json +20 -53
  195. package/node_modules/concaveman/node_modules/quickselect/package.json +43 -0
  196. package/node_modules/{@turf/collect → concaveman}/node_modules/rbush/README.md +22 -95
  197. package/node_modules/{@turf/unkink-polygon → concaveman}/node_modules/rbush/index.js +131 -181
  198. package/node_modules/concaveman/node_modules/rbush/package.json +56 -0
  199. package/node_modules/concaveman/node_modules/rbush/rbush.js +574 -0
  200. package/node_modules/concaveman/node_modules/rbush/rbush.min.js +1 -0
  201. package/node_modules/concaveman/package.json +15 -46
  202. package/node_modules/d3-array/package.json +19 -47
  203. package/node_modules/d3-geo/package.json +24 -52
  204. package/node_modules/d3-voronoi/package.json +19 -47
  205. package/node_modules/deep-equal/package.json +34 -64
  206. package/node_modules/define-properties/.eslintrc +10 -3
  207. package/node_modules/define-properties/.github/FUNDING.yml +12 -0
  208. package/node_modules/define-properties/.nycrc +9 -0
  209. package/node_modules/define-properties/CHANGELOG.md +39 -0
  210. package/node_modules/define-properties/README.md +11 -13
  211. package/node_modules/define-properties/index.js +12 -17
  212. package/node_modules/define-properties/package.json +85 -95
  213. package/node_modules/delayed-stream/package.json +14 -49
  214. package/node_modules/density-clustering/package.json +46 -70
  215. package/node_modules/earcut/README.md +12 -3
  216. package/node_modules/earcut/dist/earcut.dev.js +47 -50
  217. package/node_modules/earcut/dist/earcut.min.js +1 -1
  218. package/node_modules/earcut/package.json +26 -60
  219. package/node_modules/earcut/src/earcut.js +46 -49
  220. package/node_modules/follow-redirects/README.md +8 -1
  221. package/node_modules/follow-redirects/index.js +83 -36
  222. package/node_modules/follow-redirects/package.json +38 -74
  223. package/node_modules/form-data/package.json +37 -70
  224. package/node_modules/function-bind/package.json +23 -56
  225. package/node_modules/functions-have-names/.editorconfig +20 -0
  226. package/node_modules/functions-have-names/.eslintrc +19 -0
  227. package/node_modules/functions-have-names/.github/FUNDING.yml +12 -0
  228. package/node_modules/functions-have-names/.nycrc +9 -0
  229. package/node_modules/functions-have-names/CHANGELOG.md +89 -0
  230. package/node_modules/functions-have-names/LICENSE +21 -0
  231. package/node_modules/functions-have-names/README.md +40 -0
  232. package/node_modules/functions-have-names/index.js +31 -0
  233. package/node_modules/functions-have-names/package.json +55 -0
  234. package/node_modules/functions-have-names/test/index.js +65 -0
  235. package/node_modules/geojson-equality/package.json +23 -55
  236. package/node_modules/geojson-rbush/node_modules/quickselect/package.json +43 -0
  237. package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/rbush/README.md +22 -95
  238. package/node_modules/{@turf/collect → geojson-rbush}/node_modules/rbush/index.js +131 -181
  239. package/node_modules/geojson-rbush/node_modules/rbush/package.json +56 -0
  240. package/node_modules/geojson-rbush/node_modules/rbush/rbush.js +574 -0
  241. package/node_modules/geojson-rbush/node_modules/rbush/rbush.min.js +1 -0
  242. package/node_modules/geojson-rbush/package.json +32 -71
  243. package/node_modules/get-intrinsic/.eslintrc +3 -8
  244. package/node_modules/get-intrinsic/.nycrc +0 -4
  245. package/node_modules/get-intrinsic/CHANGELOG.md +53 -0
  246. package/node_modules/get-intrinsic/README.md +7 -1
  247. package/node_modules/get-intrinsic/index.js +29 -8
  248. package/node_modules/get-intrinsic/package.json +91 -104
  249. package/node_modules/get-intrinsic/test/GetIntrinsic.js +26 -12
  250. package/node_modules/has/package.json +21 -46
  251. package/node_modules/has-property-descriptors/.eslintrc +13 -0
  252. package/node_modules/has-property-descriptors/.github/FUNDING.yml +12 -0
  253. package/node_modules/has-property-descriptors/.nycrc +9 -0
  254. package/node_modules/has-property-descriptors/CHANGELOG.md +16 -0
  255. package/node_modules/has-property-descriptors/LICENSE +21 -0
  256. package/node_modules/has-property-descriptors/README.md +43 -0
  257. package/node_modules/has-property-descriptors/index.js +33 -0
  258. package/node_modules/has-property-descriptors/package.json +70 -0
  259. package/node_modules/has-property-descriptors/test/index.js +57 -0
  260. package/node_modules/has-proto/.eslintrc +5 -0
  261. package/node_modules/has-proto/.github/FUNDING.yml +12 -0
  262. package/node_modules/has-proto/CHANGELOG.md +23 -0
  263. package/node_modules/has-proto/LICENSE +21 -0
  264. package/node_modules/has-proto/README.md +38 -0
  265. package/node_modules/has-proto/index.js +11 -0
  266. package/node_modules/has-proto/package.json +74 -0
  267. package/node_modules/has-proto/test/index.js +19 -0
  268. package/node_modules/has-symbols/package.json +99 -125
  269. package/node_modules/has-tostringtag/package.json +82 -109
  270. package/node_modules/is-arguments/package.json +89 -114
  271. package/node_modules/is-date-object/package.json +77 -108
  272. package/node_modules/is-regex/package.json +84 -112
  273. package/node_modules/mime-db/HISTORY.md +8 -0
  274. package/node_modules/mime-db/LICENSE +19 -18
  275. package/node_modules/mime-db/README.md +1 -1
  276. package/node_modules/mime-db/db.json +54 -6
  277. package/node_modules/mime-db/index.js +1 -0
  278. package/node_modules/mime-db/package.json +24 -66
  279. package/node_modules/mime-types/HISTORY.md +9 -0
  280. package/node_modules/mime-types/README.md +1 -1
  281. package/node_modules/mime-types/package.json +19 -62
  282. package/node_modules/object-assign/package.json +15 -49
  283. package/node_modules/object-is/package.json +85 -112
  284. package/node_modules/object-keys/package.json +86 -116
  285. package/node_modules/point-in-polygon/package.json +19 -48
  286. package/node_modules/polygon-clipping/package.json +41 -80
  287. package/node_modules/proxy-from-env/.eslintrc +29 -0
  288. package/node_modules/proxy-from-env/.travis.yml +10 -0
  289. package/node_modules/proxy-from-env/LICENSE +20 -0
  290. package/node_modules/proxy-from-env/README.md +131 -0
  291. package/node_modules/proxy-from-env/index.js +108 -0
  292. package/node_modules/proxy-from-env/package.json +34 -0
  293. package/node_modules/proxy-from-env/test.js +483 -0
  294. package/node_modules/quickselect/package.json +13 -41
  295. package/node_modules/rbush/README.md +95 -22
  296. package/node_modules/rbush/index.js +181 -131
  297. package/node_modules/rbush/package.json +39 -71
  298. package/node_modules/rbush/rbush.js +412 -360
  299. package/node_modules/rbush/rbush.min.js +1 -1
  300. package/node_modules/regexp.prototype.flags/.eslintrc +1 -0
  301. package/node_modules/regexp.prototype.flags/CHANGELOG.md +19 -0
  302. package/node_modules/regexp.prototype.flags/implementation.js +9 -0
  303. package/node_modules/regexp.prototype.flags/package.json +98 -122
  304. package/node_modules/regexp.prototype.flags/test/shimmed.js +2 -1
  305. package/node_modules/regexp.prototype.flags/test/tests.js +7 -5
  306. package/node_modules/robust-predicates/package.json +25 -52
  307. package/node_modules/skmeans/package.json +18 -53
  308. package/node_modules/splaytree/Readme.md +58 -57
  309. package/node_modules/splaytree/dist/splay.esm.js +21 -8
  310. package/node_modules/splaytree/dist/splay.esm.js.map +1 -1
  311. package/node_modules/splaytree/dist/splay.js +21 -8
  312. package/node_modules/splaytree/dist/splay.js.map +1 -1
  313. package/node_modules/splaytree/package.json +36 -68
  314. package/node_modules/splaytree/src/index.ts +16 -4
  315. package/node_modules/tinyqueue/package.json +34 -59
  316. package/node_modules/topojson-client/package.json +28 -56
  317. package/node_modules/topojson-server/package.json +27 -55
  318. package/node_modules/turf-jsts/package.json +33 -68
  319. package/node_modules/uuid/CHANGELOG.md +39 -0
  320. package/node_modules/uuid/README.md +30 -73
  321. package/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  322. package/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  323. package/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  324. package/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  325. package/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  326. package/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  327. package/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  328. package/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  329. package/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  330. package/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  331. package/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  332. package/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  333. package/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  334. package/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  335. package/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  336. package/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  337. package/node_modules/uuid/dist/esm-browser/md5.js +23 -23
  338. package/node_modules/uuid/dist/esm-browser/native.js +4 -0
  339. package/node_modules/uuid/dist/esm-browser/parse.js +2 -2
  340. package/node_modules/uuid/dist/esm-browser/rng.js +4 -5
  341. package/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
  342. package/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
  343. package/node_modules/uuid/dist/esm-browser/v1.js +17 -17
  344. package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
  345. package/node_modules/uuid/dist/esm-browser/v35.js +12 -10
  346. package/node_modules/uuid/dist/esm-browser/v4.js +9 -4
  347. package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
  348. package/node_modules/uuid/dist/esm-browser/version.js +1 -1
  349. package/node_modules/uuid/dist/esm-node/native.js +4 -0
  350. package/node_modules/uuid/dist/esm-node/stringify.js +7 -3
  351. package/node_modules/uuid/dist/esm-node/v1.js +2 -2
  352. package/node_modules/uuid/dist/esm-node/v35.js +6 -4
  353. package/node_modules/uuid/dist/esm-node/v4.js +7 -2
  354. package/node_modules/uuid/dist/esm-node/version.js +1 -1
  355. package/node_modules/uuid/dist/index.js +18 -18
  356. package/node_modules/uuid/dist/native-browser.js +11 -0
  357. package/node_modules/uuid/dist/native.js +15 -0
  358. package/node_modules/uuid/dist/rng-browser.js +2 -3
  359. package/node_modules/uuid/dist/stringify.js +8 -3
  360. package/node_modules/uuid/dist/v1.js +2 -2
  361. package/node_modules/uuid/dist/v35.js +7 -5
  362. package/node_modules/uuid/dist/v4.js +8 -2
  363. package/node_modules/uuid/dist/version.js +1 -1
  364. package/node_modules/uuid/package.json +87 -120
  365. package/package.json +12 -8
  366. package/tak-ingest.html +40 -0
  367. package/tak-ingest.js +48 -0
  368. package/tak-registration.html +13 -2
  369. package/tak-registration.js +55 -7
  370. package/node_modules/@turf/collect/node_modules/quickselect/package.json +0 -69
  371. package/node_modules/@turf/collect/node_modules/rbush/package.json +0 -85
  372. package/node_modules/@turf/collect/node_modules/rbush/rbush.js +0 -626
  373. package/node_modules/@turf/collect/node_modules/rbush/rbush.min.js +0 -1
  374. package/node_modules/@turf/unkink-polygon/node_modules/quickselect/package.json +0 -69
  375. package/node_modules/@turf/unkink-polygon/node_modules/rbush/package.json +0 -85
  376. package/node_modules/@turf/unkink-polygon/node_modules/rbush/rbush.js +0 -626
  377. package/node_modules/@turf/unkink-polygon/node_modules/rbush/rbush.min.js +0 -1
  378. package/node_modules/axios/UPGRADE_GUIDE.md +0 -168
  379. package/node_modules/axios/dist/axios.map +0 -1
  380. package/node_modules/axios/dist/axios.min.map +0 -1
  381. package/node_modules/axios/lib/cancel/Cancel.js +0 -19
  382. package/node_modules/axios/lib/core/createError.js +0 -18
  383. package/node_modules/axios/lib/core/enhanceError.js +0 -43
  384. package/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
  385. package/node_modules/axios/tsconfig.json +0 -14
  386. package/node_modules/axios/tslint.json +0 -6
  387. package/node_modules/combined-stream/yarn.lock +0 -17
  388. package/node_modules/d3-array/yarn.lock +0 -939
  389. package/node_modules/define-properties/.jscs.json +0 -175
  390. package/node_modules/define-properties/.travis.yml +0 -233
  391. package/node_modules/define-properties/test/index.js +0 -125
  392. package/node_modules/get-intrinsic/.eslintignore +0 -1
  393. package/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  394. package/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  395. package/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  396. package/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  397. package/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  398. package/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  399. package/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  400. package/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  401. package/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  402. package/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  403. /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/LICENSE +0 -0
  404. /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/README.md +0 -0
  405. /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/index.js +0 -0
  406. /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/quickselect.js +0 -0
  407. /package/node_modules/{@turf/collect → concaveman}/node_modules/rbush/LICENSE +0 -0
  408. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/LICENSE +0 -0
  409. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/README.md +0 -0
  410. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/index.js +0 -0
  411. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/quickselect.js +0 -0
  412. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/rbush/LICENSE +0 -0
@@ -1,21 +1,114 @@
1
- // TypeScript Version: 3.0
1
+ // TypeScript Version: 4.7
2
+ export type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
2
3
 
3
- export type AxiosRequestHeaders = Record<string, string | number | boolean>;
4
+ interface RawAxiosHeaders {
5
+ [key: string]: AxiosHeaderValue;
6
+ }
7
+
8
+ type MethodsHeaders = Partial<{
9
+ [Key in Method as Lowercase<Key>]: AxiosHeaders;
10
+ } & {common: AxiosHeaders}>;
11
+
12
+ type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
13
+
14
+ export class AxiosHeaders {
15
+ constructor(
16
+ headers?: RawAxiosHeaders | AxiosHeaders
17
+ );
18
+
19
+ [key: string]: any;
20
+
21
+ set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
22
+ set(headers?: RawAxiosHeaders | AxiosHeaders, rewrite?: boolean): AxiosHeaders;
23
+
24
+ get(headerName: string, parser: RegExp): RegExpExecArray | null;
25
+ get(headerName: string, matcher?: true | AxiosHeaderMatcher): AxiosHeaderValue;
26
+
27
+ has(header: string, matcher?: true | AxiosHeaderMatcher): boolean;
28
+
29
+ delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
30
+
31
+ clear(matcher?: AxiosHeaderMatcher): boolean;
32
+
33
+ normalize(format: boolean): AxiosHeaders;
34
+
35
+ concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
36
+
37
+ toJSON(asStrings?: boolean): RawAxiosHeaders;
38
+
39
+ static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
40
+
41
+ static accessor(header: string | string[]): AxiosHeaders;
42
+
43
+ static concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
44
+
45
+ setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
46
+ getContentType(parser?: RegExp): RegExpExecArray | null;
47
+ getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
48
+ hasContentType(matcher?: AxiosHeaderMatcher): boolean;
49
+
50
+ setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
51
+ getContentLength(parser?: RegExp): RegExpExecArray | null;
52
+ getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
53
+ hasContentLength(matcher?: AxiosHeaderMatcher): boolean;
54
+
55
+ setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
56
+ getAccept(parser?: RegExp): RegExpExecArray | null;
57
+ getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
58
+ hasAccept(matcher?: AxiosHeaderMatcher): boolean;
59
+
60
+ setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
61
+ getUserAgent(parser?: RegExp): RegExpExecArray | null;
62
+ getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
63
+ hasUserAgent(matcher?: AxiosHeaderMatcher): boolean;
4
64
 
5
- export type AxiosResponseHeaders = Record<string, string> & {
6
- "set-cookie"?: string[]
65
+ setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
66
+ getContentEncoding(parser?: RegExp): RegExpExecArray | null;
67
+ getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
68
+ hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean;
69
+
70
+ setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
71
+ getAuthorization(parser?: RegExp): RegExpExecArray | null;
72
+ getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
73
+ hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
74
+
75
+ [Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
76
+ }
77
+
78
+ type CommonRequestHeadersList = 'Accept' | 'Content-Length' | 'User-Agent' | 'Content-Encoding' | 'Authorization';
79
+
80
+ type ContentType = AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream';
81
+
82
+ export type RawAxiosRequestHeaders = Partial<RawAxiosHeaders & {
83
+ [Key in CommonRequestHeadersList]: AxiosHeaderValue;
84
+ } & {
85
+ 'Content-Type': ContentType
86
+ }>;
87
+
88
+ export type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders;
89
+
90
+ type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control'| 'Content-Encoding';
91
+
92
+ type RawCommonResponseHeaders = {
93
+ [Key in CommonResponseHeadersList]: AxiosHeaderValue;
94
+ } & {
95
+ "set-cookie": string[];
7
96
  };
8
97
 
98
+ export type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
99
+
100
+ export type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
101
+
9
102
  export interface AxiosRequestTransformer {
10
- (data: any, headers?: AxiosRequestHeaders): any;
103
+ (this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any;
11
104
  }
12
105
 
13
106
  export interface AxiosResponseTransformer {
14
- (data: any, headers?: AxiosResponseHeaders): any;
107
+ (this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number): any;
15
108
  }
16
109
 
17
110
  export interface AxiosAdapter {
18
- (config: AxiosRequestConfig): AxiosPromise;
111
+ (config: InternalAxiosRequestConfig): AxiosPromise;
19
112
  }
20
113
 
21
114
  export interface AxiosBasicCredentials {
@@ -33,39 +126,105 @@ export interface AxiosProxyConfig {
33
126
  protocol?: string;
34
127
  }
35
128
 
129
+ export enum HttpStatusCode {
130
+ Continue = 100,
131
+ SwitchingProtocols = 101,
132
+ Processing = 102,
133
+ EarlyHints = 103,
134
+ Ok = 200,
135
+ Created = 201,
136
+ Accepted = 202,
137
+ NonAuthoritativeInformation = 203,
138
+ NoContent = 204,
139
+ ResetContent = 205,
140
+ PartialContent = 206,
141
+ MultiStatus = 207,
142
+ AlreadyReported = 208,
143
+ ImUsed = 226,
144
+ MultipleChoices = 300,
145
+ MovedPermanently = 301,
146
+ Found = 302,
147
+ SeeOther = 303,
148
+ NotModified = 304,
149
+ UseProxy = 305,
150
+ Unused = 306,
151
+ TemporaryRedirect = 307,
152
+ PermanentRedirect = 308,
153
+ BadRequest = 400,
154
+ Unauthorized = 401,
155
+ PaymentRequired = 402,
156
+ Forbidden = 403,
157
+ NotFound = 404,
158
+ MethodNotAllowed = 405,
159
+ NotAcceptable = 406,
160
+ ProxyAuthenticationRequired = 407,
161
+ RequestTimeout = 408,
162
+ Conflict = 409,
163
+ Gone = 410,
164
+ LengthRequired = 411,
165
+ PreconditionFailed = 412,
166
+ PayloadTooLarge = 413,
167
+ UriTooLong = 414,
168
+ UnsupportedMediaType = 415,
169
+ RangeNotSatisfiable = 416,
170
+ ExpectationFailed = 417,
171
+ ImATeapot = 418,
172
+ MisdirectedRequest = 421,
173
+ UnprocessableEntity = 422,
174
+ Locked = 423,
175
+ FailedDependency = 424,
176
+ TooEarly = 425,
177
+ UpgradeRequired = 426,
178
+ PreconditionRequired = 428,
179
+ TooManyRequests = 429,
180
+ RequestHeaderFieldsTooLarge = 431,
181
+ UnavailableForLegalReasons = 451,
182
+ InternalServerError = 500,
183
+ NotImplemented = 501,
184
+ BadGateway = 502,
185
+ ServiceUnavailable = 503,
186
+ GatewayTimeout = 504,
187
+ HttpVersionNotSupported = 505,
188
+ VariantAlsoNegotiates = 506,
189
+ InsufficientStorage = 507,
190
+ LoopDetected = 508,
191
+ NotExtended = 510,
192
+ NetworkAuthenticationRequired = 511,
193
+ }
194
+
36
195
  export type Method =
37
- | 'get' | 'GET'
38
- | 'delete' | 'DELETE'
39
- | 'head' | 'HEAD'
40
- | 'options' | 'OPTIONS'
41
- | 'post' | 'POST'
42
- | 'put' | 'PUT'
43
- | 'patch' | 'PATCH'
44
- | 'purge' | 'PURGE'
45
- | 'link' | 'LINK'
46
- | 'unlink' | 'UNLINK';
196
+ | 'get' | 'GET'
197
+ | 'delete' | 'DELETE'
198
+ | 'head' | 'HEAD'
199
+ | 'options' | 'OPTIONS'
200
+ | 'post' | 'POST'
201
+ | 'put' | 'PUT'
202
+ | 'patch' | 'PATCH'
203
+ | 'purge' | 'PURGE'
204
+ | 'link' | 'LINK'
205
+ | 'unlink' | 'UNLINK';
47
206
 
48
207
  export type ResponseType =
49
- | 'arraybuffer'
50
- | 'blob'
51
- | 'document'
52
- | 'json'
53
- | 'text'
54
- | 'stream';
55
-
56
- export type responseEncoding =
57
- | 'ascii' | 'ASCII'
58
- | 'ansi' | 'ANSI'
59
- | 'binary' | 'BINARY'
60
- | 'base64' | 'BASE64'
61
- | 'base64url' | 'BASE64URL'
62
- | 'hex' | 'HEX'
63
- | 'latin1' | 'LATIN1'
64
- | 'ucs-2' | 'UCS-2'
65
- | 'ucs2' | 'UCS2'
66
- | 'utf-8' | 'UTF-8'
67
- | 'utf8' | 'UTF8'
68
- | 'utf16le' | 'UTF16LE';
208
+ | 'arraybuffer'
209
+ | 'blob'
210
+ | 'document'
211
+ | 'json'
212
+ | 'text'
213
+ | 'stream';
214
+
215
+ export type responseEncoding =
216
+ | 'ascii' | 'ASCII'
217
+ | 'ansi' | 'ANSI'
218
+ | 'binary' | 'BINARY'
219
+ | 'base64' | 'BASE64'
220
+ | 'base64url' | 'BASE64URL'
221
+ | 'hex' | 'HEX'
222
+ | 'latin1' | 'LATIN1'
223
+ | 'ucs-2' | 'UCS-2'
224
+ | 'ucs2' | 'UCS2'
225
+ | 'utf-8' | 'UTF-8'
226
+ | 'utf8' | 'UTF8'
227
+ | 'utf16le' | 'UTF16LE';
69
228
 
70
229
  export interface TransitionalOptions {
71
230
  silentJSONParsing?: boolean;
@@ -73,81 +232,205 @@ export interface TransitionalOptions {
73
232
  clarifyTimeoutError?: boolean;
74
233
  }
75
234
 
235
+ export interface GenericAbortSignal {
236
+ readonly aborted: boolean;
237
+ onabort?: ((...args: any) => any) | null;
238
+ addEventListener?: (...args: any) => any;
239
+ removeEventListener?: (...args: any) => any;
240
+ }
241
+
242
+ export interface FormDataVisitorHelpers {
243
+ defaultVisitor: SerializerVisitor;
244
+ convertValue: (value: any) => any;
245
+ isVisitable: (value: any) => boolean;
246
+ }
247
+
248
+ export interface SerializerVisitor {
249
+ (
250
+ this: GenericFormData,
251
+ value: any,
252
+ key: string | number,
253
+ path: null | Array<string | number>,
254
+ helpers: FormDataVisitorHelpers
255
+ ): boolean;
256
+ }
257
+
258
+ export interface SerializerOptions {
259
+ visitor?: SerializerVisitor;
260
+ dots?: boolean;
261
+ metaTokens?: boolean;
262
+ indexes?: boolean | null;
263
+ }
264
+
265
+ // tslint:disable-next-line
266
+ export interface FormSerializerOptions extends SerializerOptions {
267
+ }
268
+
269
+ export interface ParamEncoder {
270
+ (value: any, defaultEncoder: (value: any) => any): any;
271
+ }
272
+
273
+ export interface CustomParamsSerializer {
274
+ (params: Record<string, any>, options?: ParamsSerializerOptions): string;
275
+ }
276
+
277
+ export interface ParamsSerializerOptions extends SerializerOptions {
278
+ encode?: ParamEncoder;
279
+ serialize?: CustomParamsSerializer;
280
+ }
281
+
282
+ type MaxUploadRate = number;
283
+
284
+ type MaxDownloadRate = number;
285
+
286
+ type BrowserProgressEvent = any;
287
+
288
+ export interface AxiosProgressEvent {
289
+ loaded: number;
290
+ total?: number;
291
+ progress?: number;
292
+ bytes: number;
293
+ rate?: number;
294
+ estimated?: number;
295
+ upload?: boolean;
296
+ download?: boolean;
297
+ event?: BrowserProgressEvent;
298
+ }
299
+
300
+ type Milliseconds = number;
301
+
302
+ type AxiosAdapterName = 'xhr' | 'http' | string;
303
+
304
+ type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
305
+
76
306
  export interface AxiosRequestConfig<D = any> {
77
307
  url?: string;
78
- method?: Method;
308
+ method?: Method | string;
79
309
  baseURL?: string;
80
310
  transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
81
311
  transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
82
- headers?: AxiosRequestHeaders;
312
+ headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders;
83
313
  params?: any;
84
- paramsSerializer?: (params: any) => string;
314
+ paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer;
85
315
  data?: D;
86
- timeout?: number;
316
+ timeout?: Milliseconds;
87
317
  timeoutErrorMessage?: string;
88
318
  withCredentials?: boolean;
89
- adapter?: AxiosAdapter;
319
+ adapter?: AxiosAdapterConfig | AxiosAdapterConfig[];
90
320
  auth?: AxiosBasicCredentials;
91
321
  responseType?: ResponseType;
92
322
  responseEncoding?: responseEncoding | string;
93
323
  xsrfCookieName?: string;
94
324
  xsrfHeaderName?: string;
95
- onUploadProgress?: (progressEvent: any) => void;
96
- onDownloadProgress?: (progressEvent: any) => void;
325
+ onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
326
+ onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void;
97
327
  maxContentLength?: number;
98
328
  validateStatus?: ((status: number) => boolean) | null;
99
329
  maxBodyLength?: number;
100
330
  maxRedirects?: number;
331
+ maxRate?: number | [MaxUploadRate, MaxDownloadRate];
332
+ beforeRedirect?: (options: Record<string, any>, responseDetails: { headers: Record<string, string> }) => void;
101
333
  socketPath?: string | null;
334
+ transport?: any;
102
335
  httpAgent?: any;
103
336
  httpsAgent?: any;
104
337
  proxy?: AxiosProxyConfig | false;
105
338
  cancelToken?: CancelToken;
106
339
  decompress?: boolean;
107
340
  transitional?: TransitionalOptions;
108
- signal?: AbortSignal;
341
+ signal?: GenericAbortSignal;
109
342
  insecureHTTPParser?: boolean;
343
+ env?: {
344
+ FormData?: new (...args: any[]) => object;
345
+ };
346
+ formSerializer?: FormSerializerOptions;
347
+ family?: 4 | 6 | undefined;
348
+ lookup?: ((hostname: string, options: object, cb: (err: Error | null, address: string, family: number) => void) => void) |
349
+ ((hostname: string, options: object) => Promise<[address: string, family: number] | string>);
350
+ }
351
+
352
+ // Alias
353
+ export type RawAxiosRequestConfig<D = any> = AxiosRequestConfig<D>;
354
+
355
+ export interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
356
+ headers: AxiosRequestHeaders;
110
357
  }
111
358
 
112
359
  export interface HeadersDefaults {
113
- common: AxiosRequestHeaders;
114
- delete: AxiosRequestHeaders;
115
- get: AxiosRequestHeaders;
116
- head: AxiosRequestHeaders;
117
- post: AxiosRequestHeaders;
118
- put: AxiosRequestHeaders;
119
- patch: AxiosRequestHeaders;
120
- options?: AxiosRequestHeaders;
121
- purge?: AxiosRequestHeaders;
122
- link?: AxiosRequestHeaders;
123
- unlink?: AxiosRequestHeaders;
360
+ common: RawAxiosRequestHeaders;
361
+ delete: RawAxiosRequestHeaders;
362
+ get: RawAxiosRequestHeaders;
363
+ head: RawAxiosRequestHeaders;
364
+ post: RawAxiosRequestHeaders;
365
+ put: RawAxiosRequestHeaders;
366
+ patch: RawAxiosRequestHeaders;
367
+ options?: RawAxiosRequestHeaders;
368
+ purge?: RawAxiosRequestHeaders;
369
+ link?: RawAxiosRequestHeaders;
370
+ unlink?: RawAxiosRequestHeaders;
124
371
  }
125
372
 
126
373
  export interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
127
374
  headers: HeadersDefaults;
128
375
  }
129
376
 
130
- export interface AxiosResponse<T = any, D = any> {
377
+ export interface CreateAxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
378
+ headers?: RawAxiosRequestHeaders | AxiosHeaders | Partial<HeadersDefaults>;
379
+ }
380
+
381
+ export interface AxiosResponse<T = any, D = any> {
131
382
  data: T;
132
383
  status: number;
133
384
  statusText: string;
134
- headers: AxiosResponseHeaders;
135
- config: AxiosRequestConfig<D>;
385
+ headers: RawAxiosResponseHeaders | AxiosResponseHeaders;
386
+ config: InternalAxiosRequestConfig<D>;
136
387
  request?: any;
137
388
  }
138
389
 
139
- export interface AxiosError<T = any, D = any> extends Error {
140
- config: AxiosRequestConfig<D>;
390
+ export class AxiosError<T = unknown, D = any> extends Error {
391
+ constructor(
392
+ message?: string,
393
+ code?: string,
394
+ config?: InternalAxiosRequestConfig<D>,
395
+ request?: any,
396
+ response?: AxiosResponse<T, D>
397
+ );
398
+
399
+ config?: InternalAxiosRequestConfig<D>;
141
400
  code?: string;
142
401
  request?: any;
143
402
  response?: AxiosResponse<T, D>;
144
403
  isAxiosError: boolean;
404
+ status?: number;
145
405
  toJSON: () => object;
406
+ cause?: Error;
407
+ static from<T = unknown, D = any>(
408
+ error: Error | unknown,
409
+ code?: string,
410
+ config?: InternalAxiosRequestConfig<D>,
411
+ request?: any,
412
+ response?: AxiosResponse<T, D>,
413
+ customProps?: object,
414
+ ): AxiosError<T, D>;
415
+ static readonly ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
416
+ static readonly ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
417
+ static readonly ERR_BAD_OPTION = "ERR_BAD_OPTION";
418
+ static readonly ERR_NETWORK = "ERR_NETWORK";
419
+ static readonly ERR_DEPRECATED = "ERR_DEPRECATED";
420
+ static readonly ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
421
+ static readonly ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
422
+ static readonly ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
423
+ static readonly ERR_INVALID_URL = "ERR_INVALID_URL";
424
+ static readonly ERR_CANCELED = "ERR_CANCELED";
425
+ static readonly ECONNABORTED = "ECONNABORTED";
426
+ static readonly ETIMEDOUT = "ETIMEDOUT";
146
427
  }
147
428
 
148
- export interface AxiosPromise<T = any> extends Promise<AxiosResponse<T>> {
429
+ export class CanceledError<T> extends AxiosError<T> {
149
430
  }
150
431
 
432
+ export type AxiosPromise<T = any> = Promise<AxiosResponse<T>>;
433
+
151
434
  export interface CancelStatic {
152
435
  new (message?: string): Cancel;
153
436
  }
@@ -157,7 +440,7 @@ export interface Cancel {
157
440
  }
158
441
 
159
442
  export interface Canceler {
160
- (message?: string): void;
443
+ (message?: string, config?: AxiosRequestConfig, request?: any): void;
161
444
  }
162
445
 
163
446
  export interface CancelTokenStatic {
@@ -176,16 +459,22 @@ export interface CancelTokenSource {
176
459
  cancel: Canceler;
177
460
  }
178
461
 
462
+ export interface AxiosInterceptorOptions {
463
+ synchronous?: boolean;
464
+ runWhen?: (config: InternalAxiosRequestConfig) => boolean;
465
+ }
466
+
179
467
  export interface AxiosInterceptorManager<V> {
180
- use<T = V>(onFulfilled?: (value: V) => T | Promise<T>, onRejected?: (error: any) => any): number;
468
+ use(onFulfilled?: ((value: V) => V | Promise<V>) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions): number;
181
469
  eject(id: number): void;
470
+ clear(): void;
182
471
  }
183
472
 
184
473
  export class Axios {
185
474
  constructor(config?: AxiosRequestConfig);
186
475
  defaults: AxiosDefaults;
187
476
  interceptors: {
188
- request: AxiosInterceptorManager<AxiosRequestConfig>;
477
+ request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
189
478
  response: AxiosInterceptorManager<AxiosResponse>;
190
479
  };
191
480
  getUri(config?: AxiosRequestConfig): string;
@@ -197,23 +486,60 @@ export class Axios {
197
486
  post<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
198
487
  put<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
199
488
  patch<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
489
+ postForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
490
+ putForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
491
+ patchForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
200
492
  }
201
493
 
202
494
  export interface AxiosInstance extends Axios {
203
- (config: AxiosRequestConfig): AxiosPromise;
204
- (url: string, config?: AxiosRequestConfig): AxiosPromise;
495
+ <T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
496
+ <T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
497
+
498
+ defaults: Omit<AxiosDefaults, 'headers'> & {
499
+ headers: HeadersDefaults & {
500
+ [key: string]: AxiosHeaderValue
501
+ }
502
+ };
205
503
  }
206
504
 
505
+ export interface GenericFormData {
506
+ append(name: string, value: any, options?: any): any;
507
+ }
508
+
509
+ export interface GenericHTMLFormElement {
510
+ name: string;
511
+ method: string;
512
+ submit(): void;
513
+ }
514
+
515
+ export function toFormData(sourceObj: object, targetFormData?: GenericFormData, options?: FormSerializerOptions): GenericFormData;
516
+
517
+ export function formToJSON(form: GenericFormData|GenericHTMLFormElement): object;
518
+
519
+ export function isAxiosError<T = any, D = any>(payload: any): payload is AxiosError<T, D>;
520
+
521
+ export function spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
522
+
523
+ export function isCancel(value: any): value is Cancel;
524
+
525
+ export function all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
526
+
207
527
  export interface AxiosStatic extends AxiosInstance {
208
- create(config?: AxiosRequestConfig): AxiosInstance;
528
+ create(config?: CreateAxiosDefaults): AxiosInstance;
209
529
  Cancel: CancelStatic;
210
530
  CancelToken: CancelTokenStatic;
211
531
  Axios: typeof Axios;
532
+ AxiosError: typeof AxiosError;
533
+ HttpStatusCode: typeof HttpStatusCode;
212
534
  readonly VERSION: string;
213
- isCancel(value: any): boolean;
214
- all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
215
- spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
216
- isAxiosError(payload: any): payload is AxiosError;
535
+ isCancel: typeof isCancel;
536
+ all: typeof all;
537
+ spread: typeof spread;
538
+ isAxiosError: typeof isAxiosError;
539
+ toFormData: typeof toFormData;
540
+ formToJSON: typeof formToJSON;
541
+ CanceledError: typeof CanceledError;
542
+ AxiosHeaders: typeof AxiosHeaders;
217
543
  }
218
544
 
219
545
  declare const axios: AxiosStatic;
@@ -1 +1,41 @@
1
- module.exports = require('./lib/axios');
1
+ import axios from './lib/axios.js';
2
+
3
+ // This module is intended to unwrap Axios default export as named.
4
+ // Keep top-level export same with static properties
5
+ // so that it can keep same with es module or cjs
6
+ const {
7
+ Axios,
8
+ AxiosError,
9
+ CanceledError,
10
+ isCancel,
11
+ CancelToken,
12
+ VERSION,
13
+ all,
14
+ Cancel,
15
+ isAxiosError,
16
+ spread,
17
+ toFormData,
18
+ AxiosHeaders,
19
+ HttpStatusCode,
20
+ formToJSON,
21
+ mergeConfig
22
+ } = axios;
23
+
24
+ export {
25
+ axios as default,
26
+ Axios,
27
+ AxiosError,
28
+ CanceledError,
29
+ isCancel,
30
+ CancelToken,
31
+ VERSION,
32
+ all,
33
+ Cancel,
34
+ isAxiosError,
35
+ spread,
36
+ toFormData,
37
+ AxiosHeaders,
38
+ HttpStatusCode,
39
+ formToJSON,
40
+ mergeConfig
41
+ }
@@ -0,0 +1,59 @@
1
+ import utils from '../utils.js';
2
+ import httpAdapter from './http.js';
3
+ import xhrAdapter from './xhr.js';
4
+ import AxiosError from "../core/AxiosError.js";
5
+
6
+ const knownAdapters = {
7
+ http: httpAdapter,
8
+ xhr: xhrAdapter
9
+ }
10
+
11
+ utils.forEach(knownAdapters, (fn, value) => {
12
+ if(fn) {
13
+ try {
14
+ Object.defineProperty(fn, 'name', {value});
15
+ } catch (e) {
16
+ // eslint-disable-next-line no-empty
17
+ }
18
+ Object.defineProperty(fn, 'adapterName', {value});
19
+ }
20
+ });
21
+
22
+ export default {
23
+ getAdapter: (adapters) => {
24
+ adapters = utils.isArray(adapters) ? adapters : [adapters];
25
+
26
+ const {length} = adapters;
27
+ let nameOrAdapter;
28
+ let adapter;
29
+
30
+ for (let i = 0; i < length; i++) {
31
+ nameOrAdapter = adapters[i];
32
+ if((adapter = utils.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter)) {
33
+ break;
34
+ }
35
+ }
36
+
37
+ if (!adapter) {
38
+ if (adapter === false) {
39
+ throw new AxiosError(
40
+ `Adapter ${nameOrAdapter} is not supported by the environment`,
41
+ 'ERR_NOT_SUPPORT'
42
+ );
43
+ }
44
+
45
+ throw new Error(
46
+ utils.hasOwnProp(knownAdapters, nameOrAdapter) ?
47
+ `Adapter '${nameOrAdapter}' is not available in the build` :
48
+ `Unknown adapter '${nameOrAdapter}'`
49
+ );
50
+ }
51
+
52
+ if (!utils.isFunction(adapter)) {
53
+ throw new TypeError('adapter is not a function');
54
+ }
55
+
56
+ return adapter;
57
+ },
58
+ adapters: knownAdapters
59
+ }