node-red-contrib-tak-registration 0.3.2 → 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.
- package/node_modules/@turf/along/package.json +41 -69
- package/node_modules/@turf/angle/package.json +44 -75
- package/node_modules/@turf/area/package.json +38 -68
- package/node_modules/@turf/bbox/package.json +37 -81
- package/node_modules/@turf/bbox-clip/package.json +44 -81
- package/node_modules/@turf/bbox-polygon/package.json +36 -66
- package/node_modules/@turf/bearing/package.json +36 -70
- package/node_modules/@turf/bezier-spline/package.json +39 -67
- package/node_modules/@turf/boolean-clockwise/package.json +42 -83
- package/node_modules/@turf/boolean-contains/package.json +46 -80
- package/node_modules/@turf/boolean-crosses/package.json +45 -79
- package/node_modules/@turf/boolean-disjoint/package.json +44 -79
- package/node_modules/@turf/boolean-equal/package.json +47 -84
- package/node_modules/@turf/boolean-intersects/package.json +42 -77
- package/node_modules/@turf/boolean-overlap/package.json +48 -82
- package/node_modules/@turf/boolean-parallel/package.json +42 -73
- package/node_modules/@turf/boolean-point-in-polygon/package.json +37 -77
- package/node_modules/@turf/boolean-point-on-line/package.json +39 -73
- package/node_modules/@turf/boolean-within/package.json +46 -79
- package/node_modules/@turf/buffer/package.json +47 -84
- package/node_modules/@turf/center/package.json +42 -73
- package/node_modules/@turf/center-mean/package.json +45 -78
- package/node_modules/@turf/center-median/package.json +45 -76
- package/node_modules/@turf/center-of-mass/package.json +40 -68
- package/node_modules/@turf/centroid/package.json +40 -74
- package/node_modules/@turf/circle/package.json +41 -71
- package/node_modules/@turf/clean-coords/package.json +40 -75
- package/node_modules/@turf/clone/package.json +36 -81
- package/node_modules/@turf/clusters/package.json +39 -70
- package/node_modules/@turf/clusters-dbscan/package.json +51 -88
- package/node_modules/@turf/clusters-kmeans/package.json +53 -90
- package/node_modules/@turf/collect/package.json +42 -73
- package/node_modules/@turf/combine/package.json +37 -65
- package/node_modules/@turf/concave/package.json +56 -111
- package/node_modules/@turf/convex/package.json +39 -68
- package/node_modules/@turf/destination/package.json +41 -75
- package/node_modules/@turf/difference/package.json +35 -63
- package/node_modules/@turf/dissolve/package.json +38 -66
- package/node_modules/@turf/distance/package.json +38 -83
- package/node_modules/@turf/distance-weight/package.json +40 -72
- package/node_modules/@turf/ellipse/package.json +43 -75
- package/node_modules/@turf/envelope/package.json +36 -65
- package/node_modules/@turf/explode/package.json +36 -67
- package/node_modules/@turf/flatten/package.json +39 -73
- package/node_modules/@turf/flip/package.json +36 -64
- package/node_modules/@turf/great-circle/package.json +41 -78
- package/node_modules/@turf/helpers/package.json +38 -184
- package/node_modules/@turf/hex-grid/package.json +50 -97
- package/node_modules/@turf/interpolate/package.json +47 -78
- package/node_modules/@turf/intersect/package.json +39 -69
- package/node_modules/@turf/invariant/package.json +36 -126
- package/node_modules/@turf/isobands/package.json +52 -83
- package/node_modules/@turf/isolines/package.json +48 -79
- package/node_modules/@turf/kinks/package.json +35 -63
- package/node_modules/@turf/length/package.json +43 -78
- package/node_modules/@turf/line-arc/package.json +36 -65
- package/node_modules/@turf/line-chunk/package.json +44 -84
- package/node_modules/@turf/line-intersect/package.json +46 -85
- package/node_modules/@turf/line-offset/package.json +41 -78
- package/node_modules/@turf/line-overlap/package.json +48 -80
- package/node_modules/@turf/line-segment/package.json +38 -70
- package/node_modules/@turf/line-slice/package.json +39 -67
- package/node_modules/@turf/line-slice-along/package.json +36 -65
- package/node_modules/@turf/line-split/package.json +46 -77
- package/node_modules/@turf/line-to-polygon/package.json +43 -74
- package/node_modules/@turf/mask/package.json +35 -63
- package/node_modules/@turf/meta/package.json +39 -128
- package/node_modules/@turf/midpoint/package.json +36 -64
- package/node_modules/@turf/moran-index/package.json +39 -70
- package/node_modules/@turf/nearest-point/package.json +39 -69
- package/node_modules/@turf/nearest-point-on-line/package.json +40 -71
- package/node_modules/@turf/nearest-point-to-line/package.json +47 -78
- package/node_modules/@turf/planepoint/package.json +34 -62
- package/node_modules/@turf/point-grid/package.json +45 -80
- package/node_modules/@turf/point-on-feature/package.json +40 -68
- package/node_modules/@turf/point-to-line-distance/package.json +46 -78
- package/node_modules/@turf/points-within-polygon/package.json +35 -64
- package/node_modules/@turf/polygon-smooth/package.json +37 -68
- package/node_modules/@turf/polygon-tangents/package.json +43 -77
- package/node_modules/@turf/polygon-to-line/package.json +39 -69
- package/node_modules/@turf/polygonize/package.json +43 -77
- package/node_modules/@turf/projection/package.json +44 -77
- package/node_modules/@turf/random/package.json +34 -62
- package/node_modules/@turf/rectangle-grid/package.json +43 -77
- package/node_modules/@turf/rewind/package.json +43 -83
- package/node_modules/@turf/rhumb-bearing/package.json +43 -85
- package/node_modules/@turf/rhumb-destination/package.json +44 -85
- package/node_modules/@turf/rhumb-distance/package.json +44 -84
- package/node_modules/@turf/sample/package.json +32 -60
- package/node_modules/@turf/sector/package.json +37 -65
- package/node_modules/@turf/shortest-path/package.json +45 -79
- package/node_modules/@turf/simplify/package.json +43 -77
- package/node_modules/@turf/square/package.json +33 -62
- package/node_modules/@turf/square-grid/package.json +40 -69
- package/node_modules/@turf/standard-deviational-ellipse/package.json +43 -74
- package/node_modules/@turf/tag/package.json +38 -66
- package/node_modules/@turf/tesselate/package.json +40 -80
- package/node_modules/@turf/tin/package.json +34 -63
- package/node_modules/@turf/transform-rotate/package.json +45 -80
- package/node_modules/@turf/transform-scale/package.json +51 -86
- package/node_modules/@turf/transform-translate/package.json +44 -78
- package/node_modules/@turf/triangle-grid/package.json +42 -71
- package/node_modules/@turf/truncate/package.json +40 -72
- package/node_modules/@turf/turf/package.json +74 -102
- package/node_modules/@turf/union/package.json +39 -67
- package/node_modules/@turf/unkink-polygon/package.json +40 -68
- package/node_modules/@turf/voronoi/package.json +43 -83
- package/node_modules/@types/geojson/package.json +42 -66
- package/node_modules/adm-zip/LICENSE +21 -21
- package/node_modules/adm-zip/adm-zip.js +25 -22
- package/node_modules/adm-zip/headers/mainHeader.js +2 -1
- package/node_modules/adm-zip/package.json +28 -57
- package/node_modules/adm-zip/util/utils.js +1 -0
- package/node_modules/asynckit/package.json +40 -68
- package/node_modules/axios/CHANGELOG.md +473 -837
- package/node_modules/axios/LICENSE +4 -16
- package/node_modules/axios/MIGRATION_GUIDE.md +3 -0
- package/node_modules/axios/README.md +518 -114
- package/node_modules/axios/SECURITY.md +4 -3
- package/node_modules/axios/dist/axios.js +2759 -2070
- package/node_modules/axios/dist/axios.js.map +1 -0
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -0
- package/node_modules/axios/dist/browser/axios.cjs +3210 -0
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -0
- package/node_modules/axios/dist/esm/axios.js +3232 -0
- package/node_modules/axios/dist/esm/axios.js.map +1 -0
- package/node_modules/axios/dist/esm/axios.min.js +2 -0
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -0
- package/node_modules/axios/dist/node/axios.cjs +4237 -0
- package/node_modules/axios/dist/node/axios.cjs.map +1 -0
- package/node_modules/axios/index.d.cts +532 -0
- package/node_modules/axios/index.d.ts +398 -72
- package/node_modules/axios/index.js +41 -1
- package/node_modules/axios/lib/adapters/adapters.js +59 -0
- package/node_modules/axios/lib/adapters/http.js +479 -217
- package/node_modules/axios/lib/adapters/xhr.js +95 -54
- package/node_modules/axios/lib/axios.js +49 -20
- package/node_modules/axios/lib/cancel/CancelToken.js +91 -89
- package/node_modules/axios/lib/cancel/CanceledError.js +25 -0
- package/node_modules/axios/lib/cancel/isCancel.js +2 -2
- package/node_modules/axios/lib/core/Axios.js +155 -100
- package/node_modules/axios/lib/core/AxiosError.js +100 -0
- package/node_modules/axios/lib/core/AxiosHeaders.js +288 -0
- package/node_modules/axios/lib/core/InterceptorManager.js +62 -45
- package/node_modules/axios/lib/core/buildFullPath.js +5 -4
- package/node_modules/axios/lib/core/dispatchRequest.js +27 -33
- package/node_modules/axios/lib/core/mergeConfig.js +58 -52
- package/node_modules/axios/lib/core/settle.js +8 -6
- package/node_modules/axios/lib/core/transformData.js +15 -9
- package/node_modules/axios/lib/defaults/index.js +76 -41
- package/node_modules/axios/lib/defaults/transitional.js +1 -1
- package/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/node_modules/axios/lib/env/data.js +1 -3
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +191 -0
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
- package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
- package/node_modules/axios/lib/helpers/bind.js +3 -7
- package/node_modules/axios/lib/helpers/buildURL.js +26 -33
- package/node_modules/axios/lib/helpers/callbackify.js +16 -0
- package/node_modules/axios/lib/helpers/combineURLs.js +3 -2
- package/node_modules/axios/lib/helpers/cookies.js +43 -44
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +4 -2
- package/node_modules/axios/lib/helpers/formDataToJSON.js +92 -0
- package/node_modules/axios/lib/helpers/formDataToStream.js +111 -0
- package/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +3 -2
- package/node_modules/axios/lib/helpers/isAxiosError.js +4 -3
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +44 -45
- package/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +24 -22
- package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/node_modules/axios/lib/helpers/spread.js +3 -2
- package/node_modules/axios/lib/helpers/throttle.js +33 -0
- package/node_modules/axios/lib/helpers/toFormData.js +203 -39
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
- package/node_modules/axios/lib/helpers/validator.js +27 -18
- package/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/node_modules/axios/lib/platform/browser/index.js +64 -0
- package/node_modules/axios/lib/platform/index.js +3 -0
- package/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/node_modules/axios/lib/platform/node/index.js +12 -0
- package/node_modules/axios/lib/utils.js +517 -144
- package/node_modules/axios/package.json +194 -93
- package/node_modules/call-bind/package.json +78 -109
- package/node_modules/combined-stream/package.json +14 -46
- package/node_modules/commander/package.json +20 -53
- package/node_modules/concaveman/node_modules/quickselect/package.json +43 -0
- package/node_modules/{@turf/collect → concaveman}/node_modules/rbush/README.md +22 -95
- package/node_modules/{@turf/unkink-polygon → concaveman}/node_modules/rbush/index.js +131 -181
- package/node_modules/concaveman/node_modules/rbush/package.json +56 -0
- package/node_modules/concaveman/node_modules/rbush/rbush.js +574 -0
- package/node_modules/concaveman/node_modules/rbush/rbush.min.js +1 -0
- package/node_modules/concaveman/package.json +15 -46
- package/node_modules/d3-array/package.json +19 -47
- package/node_modules/d3-geo/package.json +24 -52
- package/node_modules/d3-voronoi/package.json +19 -47
- package/node_modules/deep-equal/package.json +34 -64
- package/node_modules/define-properties/.eslintrc +10 -3
- package/node_modules/define-properties/.github/FUNDING.yml +12 -0
- package/node_modules/define-properties/.nycrc +9 -0
- package/node_modules/define-properties/CHANGELOG.md +39 -0
- package/node_modules/define-properties/README.md +11 -13
- package/node_modules/define-properties/index.js +12 -17
- package/node_modules/define-properties/package.json +85 -95
- package/node_modules/delayed-stream/package.json +14 -49
- package/node_modules/density-clustering/package.json +46 -70
- package/node_modules/earcut/README.md +12 -3
- package/node_modules/earcut/dist/earcut.dev.js +47 -50
- package/node_modules/earcut/dist/earcut.min.js +1 -1
- package/node_modules/earcut/package.json +26 -60
- package/node_modules/earcut/src/earcut.js +46 -49
- package/node_modules/follow-redirects/README.md +8 -1
- package/node_modules/follow-redirects/index.js +83 -36
- package/node_modules/follow-redirects/package.json +38 -74
- package/node_modules/form-data/package.json +37 -70
- package/node_modules/function-bind/package.json +23 -56
- package/node_modules/functions-have-names/.editorconfig +20 -0
- package/node_modules/functions-have-names/.eslintrc +19 -0
- package/node_modules/functions-have-names/.github/FUNDING.yml +12 -0
- package/node_modules/functions-have-names/.nycrc +9 -0
- package/node_modules/functions-have-names/CHANGELOG.md +89 -0
- package/node_modules/functions-have-names/LICENSE +21 -0
- package/node_modules/functions-have-names/README.md +40 -0
- package/node_modules/functions-have-names/index.js +31 -0
- package/node_modules/functions-have-names/package.json +55 -0
- package/node_modules/functions-have-names/test/index.js +65 -0
- package/node_modules/geojson-equality/package.json +23 -55
- package/node_modules/geojson-rbush/node_modules/quickselect/package.json +43 -0
- package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/rbush/README.md +22 -95
- package/node_modules/{@turf/collect → geojson-rbush}/node_modules/rbush/index.js +131 -181
- package/node_modules/geojson-rbush/node_modules/rbush/package.json +56 -0
- package/node_modules/geojson-rbush/node_modules/rbush/rbush.js +574 -0
- package/node_modules/geojson-rbush/node_modules/rbush/rbush.min.js +1 -0
- package/node_modules/geojson-rbush/package.json +32 -71
- package/node_modules/get-intrinsic/.eslintrc +3 -8
- package/node_modules/get-intrinsic/.nycrc +0 -4
- package/node_modules/get-intrinsic/CHANGELOG.md +53 -0
- package/node_modules/get-intrinsic/README.md +7 -1
- package/node_modules/get-intrinsic/index.js +29 -8
- package/node_modules/get-intrinsic/package.json +91 -104
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +26 -12
- package/node_modules/has/package.json +21 -46
- package/node_modules/has-property-descriptors/.eslintrc +13 -0
- package/node_modules/has-property-descriptors/.github/FUNDING.yml +12 -0
- package/node_modules/has-property-descriptors/.nycrc +9 -0
- package/node_modules/has-property-descriptors/CHANGELOG.md +16 -0
- package/node_modules/has-property-descriptors/LICENSE +21 -0
- package/node_modules/has-property-descriptors/README.md +43 -0
- package/node_modules/has-property-descriptors/index.js +33 -0
- package/node_modules/has-property-descriptors/package.json +70 -0
- package/node_modules/has-property-descriptors/test/index.js +57 -0
- package/node_modules/has-proto/.eslintrc +5 -0
- package/node_modules/has-proto/.github/FUNDING.yml +12 -0
- package/node_modules/has-proto/CHANGELOG.md +23 -0
- package/node_modules/has-proto/LICENSE +21 -0
- package/node_modules/has-proto/README.md +38 -0
- package/node_modules/has-proto/index.js +11 -0
- package/node_modules/has-proto/package.json +74 -0
- package/node_modules/has-proto/test/index.js +19 -0
- package/node_modules/has-symbols/package.json +99 -125
- package/node_modules/has-tostringtag/package.json +82 -109
- package/node_modules/is-arguments/package.json +89 -114
- package/node_modules/is-date-object/package.json +77 -108
- package/node_modules/is-regex/package.json +84 -112
- package/node_modules/mime-db/HISTORY.md +8 -0
- package/node_modules/mime-db/LICENSE +19 -18
- package/node_modules/mime-db/README.md +1 -1
- package/node_modules/mime-db/db.json +54 -6
- package/node_modules/mime-db/index.js +1 -0
- package/node_modules/mime-db/package.json +24 -66
- package/node_modules/mime-types/HISTORY.md +9 -0
- package/node_modules/mime-types/README.md +1 -1
- package/node_modules/mime-types/package.json +19 -62
- package/node_modules/object-assign/package.json +15 -49
- package/node_modules/object-is/package.json +85 -112
- package/node_modules/object-keys/package.json +86 -116
- package/node_modules/point-in-polygon/package.json +19 -48
- package/node_modules/polygon-clipping/package.json +41 -80
- package/node_modules/proxy-from-env/.eslintrc +29 -0
- package/node_modules/proxy-from-env/.travis.yml +10 -0
- package/node_modules/proxy-from-env/LICENSE +20 -0
- package/node_modules/proxy-from-env/README.md +131 -0
- package/node_modules/proxy-from-env/index.js +108 -0
- package/node_modules/proxy-from-env/package.json +34 -0
- package/node_modules/proxy-from-env/test.js +483 -0
- package/node_modules/quickselect/package.json +13 -41
- package/node_modules/rbush/README.md +95 -22
- package/node_modules/rbush/index.js +181 -131
- package/node_modules/rbush/package.json +39 -71
- package/node_modules/rbush/rbush.js +412 -360
- package/node_modules/rbush/rbush.min.js +1 -1
- package/node_modules/regexp.prototype.flags/.eslintrc +1 -0
- package/node_modules/regexp.prototype.flags/CHANGELOG.md +19 -0
- package/node_modules/regexp.prototype.flags/implementation.js +9 -0
- package/node_modules/regexp.prototype.flags/package.json +98 -122
- package/node_modules/regexp.prototype.flags/test/shimmed.js +2 -1
- package/node_modules/regexp.prototype.flags/test/tests.js +7 -5
- package/node_modules/robust-predicates/package.json +25 -52
- package/node_modules/skmeans/package.json +18 -53
- package/node_modules/splaytree/Readme.md +58 -57
- package/node_modules/splaytree/dist/splay.esm.js +21 -8
- package/node_modules/splaytree/dist/splay.esm.js.map +1 -1
- package/node_modules/splaytree/dist/splay.js +21 -8
- package/node_modules/splaytree/dist/splay.js.map +1 -1
- package/node_modules/splaytree/package.json +36 -68
- package/node_modules/splaytree/src/index.ts +16 -4
- package/node_modules/tinyqueue/package.json +34 -59
- package/node_modules/topojson-client/package.json +28 -56
- package/node_modules/topojson-server/package.json +27 -55
- package/node_modules/turf-jsts/package.json +33 -68
- package/node_modules/uuid/CHANGELOG.md +39 -0
- package/node_modules/uuid/README.md +30 -73
- package/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
- package/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
- package/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
- package/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
- package/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
- package/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
- package/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
- package/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
- package/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
- package/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
- package/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
- package/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
- package/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
- package/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
- package/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +23 -23
- package/node_modules/uuid/dist/esm-browser/native.js +4 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +2 -2
- package/node_modules/uuid/dist/esm-browser/rng.js +4 -5
- package/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
- package/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
- package/node_modules/uuid/dist/esm-browser/v1.js +17 -17
- package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v35.js +12 -10
- package/node_modules/uuid/dist/esm-browser/v4.js +9 -4
- package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
- package/node_modules/uuid/dist/esm-browser/version.js +1 -1
- package/node_modules/uuid/dist/esm-node/native.js +4 -0
- package/node_modules/uuid/dist/esm-node/stringify.js +7 -3
- package/node_modules/uuid/dist/esm-node/v1.js +2 -2
- package/node_modules/uuid/dist/esm-node/v35.js +6 -4
- package/node_modules/uuid/dist/esm-node/v4.js +7 -2
- package/node_modules/uuid/dist/esm-node/version.js +1 -1
- package/node_modules/uuid/dist/index.js +18 -18
- package/node_modules/uuid/dist/native-browser.js +11 -0
- package/node_modules/uuid/dist/native.js +15 -0
- package/node_modules/uuid/dist/rng-browser.js +2 -3
- package/node_modules/uuid/dist/stringify.js +8 -3
- package/node_modules/uuid/dist/v1.js +2 -2
- package/node_modules/uuid/dist/v35.js +7 -5
- package/node_modules/uuid/dist/v4.js +8 -2
- package/node_modules/uuid/dist/version.js +1 -1
- package/node_modules/uuid/package.json +87 -120
- package/package.json +12 -8
- package/tak-ingest.html +40 -0
- package/tak-ingest.js +48 -0
- package/tak-registration.html +10 -0
- package/tak-registration.js +55 -7
- package/node_modules/@turf/collect/node_modules/quickselect/package.json +0 -69
- package/node_modules/@turf/collect/node_modules/rbush/package.json +0 -85
- package/node_modules/@turf/collect/node_modules/rbush/rbush.js +0 -626
- package/node_modules/@turf/collect/node_modules/rbush/rbush.min.js +0 -1
- package/node_modules/@turf/unkink-polygon/node_modules/quickselect/package.json +0 -69
- package/node_modules/@turf/unkink-polygon/node_modules/rbush/package.json +0 -85
- package/node_modules/@turf/unkink-polygon/node_modules/rbush/rbush.js +0 -626
- package/node_modules/@turf/unkink-polygon/node_modules/rbush/rbush.min.js +0 -1
- package/node_modules/axios/UPGRADE_GUIDE.md +0 -168
- package/node_modules/axios/dist/axios.map +0 -1
- package/node_modules/axios/dist/axios.min.map +0 -1
- package/node_modules/axios/lib/cancel/Cancel.js +0 -19
- package/node_modules/axios/lib/core/createError.js +0 -18
- package/node_modules/axios/lib/core/enhanceError.js +0 -43
- package/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
- package/node_modules/axios/tsconfig.json +0 -14
- package/node_modules/axios/tslint.json +0 -6
- package/node_modules/combined-stream/yarn.lock +0 -17
- package/node_modules/d3-array/yarn.lock +0 -939
- package/node_modules/define-properties/.jscs.json +0 -175
- package/node_modules/define-properties/.travis.yml +0 -233
- package/node_modules/define-properties/test/index.js +0 -125
- package/node_modules/get-intrinsic/.eslintignore +0 -1
- package/node_modules/uuid/dist/umd/uuid.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
- /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/LICENSE +0 -0
- /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/README.md +0 -0
- /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/index.js +0 -0
- /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/quickselect.js +0 -0
- /package/node_modules/{@turf/collect → concaveman}/node_modules/rbush/LICENSE +0 -0
- /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/LICENSE +0 -0
- /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/README.md +0 -0
- /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/index.js +0 -0
- /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/quickselect.js +0 -0
- /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/rbush/LICENSE +0 -0
|
@@ -1,21 +1,114 @@
|
|
|
1
|
-
// TypeScript Version:
|
|
1
|
+
// TypeScript Version: 4.7
|
|
2
|
+
export type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
|
|
2
3
|
|
|
3
|
-
|
|
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
|
-
|
|
6
|
-
|
|
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
|
|
103
|
+
(this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any;
|
|
11
104
|
}
|
|
12
105
|
|
|
13
106
|
export interface AxiosResponseTransformer {
|
|
14
|
-
(data: any, headers?:
|
|
107
|
+
(this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number): any;
|
|
15
108
|
}
|
|
16
109
|
|
|
17
110
|
export interface AxiosAdapter {
|
|
18
|
-
(config:
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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?:
|
|
312
|
+
headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders;
|
|
83
313
|
params?: any;
|
|
84
|
-
paramsSerializer?:
|
|
314
|
+
paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer;
|
|
85
315
|
data?: D;
|
|
86
|
-
timeout?:
|
|
316
|
+
timeout?: Milliseconds;
|
|
87
317
|
timeoutErrorMessage?: string;
|
|
88
318
|
withCredentials?: boolean;
|
|
89
|
-
adapter?:
|
|
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:
|
|
96
|
-
onDownloadProgress?: (progressEvent:
|
|
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?:
|
|
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:
|
|
114
|
-
delete:
|
|
115
|
-
get:
|
|
116
|
-
head:
|
|
117
|
-
post:
|
|
118
|
-
put:
|
|
119
|
-
patch:
|
|
120
|
-
options?:
|
|
121
|
-
purge?:
|
|
122
|
-
link?:
|
|
123
|
-
unlink?:
|
|
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
|
|
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:
|
|
385
|
+
headers: RawAxiosResponseHeaders | AxiosResponseHeaders;
|
|
386
|
+
config: InternalAxiosRequestConfig<D>;
|
|
136
387
|
request?: any;
|
|
137
388
|
}
|
|
138
389
|
|
|
139
|
-
export
|
|
140
|
-
|
|
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
|
|
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
|
|
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<
|
|
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):
|
|
204
|
-
(url: string, config?: AxiosRequestConfig):
|
|
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?:
|
|
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
|
|
214
|
-
all
|
|
215
|
-
spread
|
|
216
|
-
isAxiosError
|
|
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
|
-
|
|
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
|
+
}
|