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.
- package/README.md +1 -1
- 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 +13 -2
- 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,22 +1,56 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
import utils from './../utils.js';
|
|
4
|
+
import settle from './../core/settle.js';
|
|
5
|
+
import cookies from './../helpers/cookies.js';
|
|
6
|
+
import buildURL from './../helpers/buildURL.js';
|
|
7
|
+
import buildFullPath from '../core/buildFullPath.js';
|
|
8
|
+
import isURLSameOrigin from './../helpers/isURLSameOrigin.js';
|
|
9
|
+
import transitionalDefaults from '../defaults/transitional.js';
|
|
10
|
+
import AxiosError from '../core/AxiosError.js';
|
|
11
|
+
import CanceledError from '../cancel/CanceledError.js';
|
|
12
|
+
import parseProtocol from '../helpers/parseProtocol.js';
|
|
13
|
+
import platform from '../platform/index.js';
|
|
14
|
+
import AxiosHeaders from '../core/AxiosHeaders.js';
|
|
15
|
+
import speedometer from '../helpers/speedometer.js';
|
|
16
|
+
|
|
17
|
+
function progressEventReducer(listener, isDownloadStream) {
|
|
18
|
+
let bytesNotified = 0;
|
|
19
|
+
const _speedometer = speedometer(50, 250);
|
|
20
|
+
|
|
21
|
+
return e => {
|
|
22
|
+
const loaded = e.loaded;
|
|
23
|
+
const total = e.lengthComputable ? e.total : undefined;
|
|
24
|
+
const progressBytes = loaded - bytesNotified;
|
|
25
|
+
const rate = _speedometer(progressBytes);
|
|
26
|
+
const inRange = loaded <= total;
|
|
27
|
+
|
|
28
|
+
bytesNotified = loaded;
|
|
29
|
+
|
|
30
|
+
const data = {
|
|
31
|
+
loaded,
|
|
32
|
+
total,
|
|
33
|
+
progress: total ? (loaded / total) : undefined,
|
|
34
|
+
bytes: progressBytes,
|
|
35
|
+
rate: rate ? rate : undefined,
|
|
36
|
+
estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
|
|
37
|
+
event: e
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
data[isDownloadStream ? 'download' : 'upload'] = true;
|
|
41
|
+
|
|
42
|
+
listener(data);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
47
|
+
|
|
48
|
+
export default isXHRAdapterSupported && function (config) {
|
|
15
49
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
50
|
+
let requestData = config.data;
|
|
51
|
+
const requestHeaders = AxiosHeaders.from(config.headers).normalize();
|
|
52
|
+
const responseType = config.responseType;
|
|
53
|
+
let onCanceled;
|
|
20
54
|
function done() {
|
|
21
55
|
if (config.cancelToken) {
|
|
22
56
|
config.cancelToken.unsubscribe(onCanceled);
|
|
@@ -28,19 +62,24 @@ module.exports = function xhrAdapter(config) {
|
|
|
28
62
|
}
|
|
29
63
|
|
|
30
64
|
if (utils.isFormData(requestData)) {
|
|
31
|
-
|
|
65
|
+
if (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv) {
|
|
66
|
+
requestHeaders.setContentType(false); // Let the browser set it
|
|
67
|
+
} else {
|
|
68
|
+
requestHeaders.setContentType('multipart/form-data;', false); // mobile/desktop app frameworks
|
|
69
|
+
}
|
|
32
70
|
}
|
|
33
71
|
|
|
34
|
-
|
|
72
|
+
let request = new XMLHttpRequest();
|
|
35
73
|
|
|
36
74
|
// HTTP basic authentication
|
|
37
75
|
if (config.auth) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
requestHeaders.Authorization
|
|
76
|
+
const username = config.auth.username || '';
|
|
77
|
+
const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
|
|
78
|
+
requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));
|
|
41
79
|
}
|
|
42
80
|
|
|
43
|
-
|
|
81
|
+
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
82
|
+
|
|
44
83
|
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
|
45
84
|
|
|
46
85
|
// Set the request timeout in MS
|
|
@@ -51,16 +90,18 @@ module.exports = function xhrAdapter(config) {
|
|
|
51
90
|
return;
|
|
52
91
|
}
|
|
53
92
|
// Prepare the response
|
|
54
|
-
|
|
55
|
-
|
|
93
|
+
const responseHeaders = AxiosHeaders.from(
|
|
94
|
+
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
95
|
+
);
|
|
96
|
+
const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
|
|
56
97
|
request.responseText : request.response;
|
|
57
|
-
|
|
98
|
+
const response = {
|
|
58
99
|
data: responseData,
|
|
59
100
|
status: request.status,
|
|
60
101
|
statusText: request.statusText,
|
|
61
102
|
headers: responseHeaders,
|
|
62
|
-
config
|
|
63
|
-
request
|
|
103
|
+
config,
|
|
104
|
+
request
|
|
64
105
|
};
|
|
65
106
|
|
|
66
107
|
settle(function _resolve(value) {
|
|
@@ -104,7 +145,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
104
145
|
return;
|
|
105
146
|
}
|
|
106
147
|
|
|
107
|
-
reject(
|
|
148
|
+
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
108
149
|
|
|
109
150
|
// Clean up request
|
|
110
151
|
request = null;
|
|
@@ -114,7 +155,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
114
155
|
request.onerror = function handleError() {
|
|
115
156
|
// Real errors are hidden from us by the browser
|
|
116
157
|
// onerror should only fire if it's a network error
|
|
117
|
-
reject(
|
|
158
|
+
reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
|
|
118
159
|
|
|
119
160
|
// Clean up request
|
|
120
161
|
request = null;
|
|
@@ -122,15 +163,15 @@ module.exports = function xhrAdapter(config) {
|
|
|
122
163
|
|
|
123
164
|
// Handle timeout
|
|
124
165
|
request.ontimeout = function handleTimeout() {
|
|
125
|
-
|
|
126
|
-
|
|
166
|
+
let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
167
|
+
const transitional = config.transitional || transitionalDefaults;
|
|
127
168
|
if (config.timeoutErrorMessage) {
|
|
128
169
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
129
170
|
}
|
|
130
|
-
reject(
|
|
171
|
+
reject(new AxiosError(
|
|
131
172
|
timeoutErrorMessage,
|
|
173
|
+
transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
132
174
|
config,
|
|
133
|
-
transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
|
|
134
175
|
request));
|
|
135
176
|
|
|
136
177
|
// Clean up request
|
|
@@ -140,27 +181,23 @@ module.exports = function xhrAdapter(config) {
|
|
|
140
181
|
// Add xsrf header
|
|
141
182
|
// This is only done if running in a standard browser environment.
|
|
142
183
|
// Specifically not if we're in a web worker, or react-native.
|
|
143
|
-
if (
|
|
184
|
+
if (platform.isStandardBrowserEnv) {
|
|
144
185
|
// Add xsrf header
|
|
145
|
-
|
|
146
|
-
cookies.read(config.xsrfCookieName)
|
|
147
|
-
undefined;
|
|
186
|
+
const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath))
|
|
187
|
+
&& config.xsrfCookieName && cookies.read(config.xsrfCookieName);
|
|
148
188
|
|
|
149
189
|
if (xsrfValue) {
|
|
150
|
-
requestHeaders
|
|
190
|
+
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
151
191
|
}
|
|
152
192
|
}
|
|
153
193
|
|
|
194
|
+
// Remove Content-Type if data is undefined
|
|
195
|
+
requestData === undefined && requestHeaders.setContentType(null);
|
|
196
|
+
|
|
154
197
|
// Add headers to the request
|
|
155
198
|
if ('setRequestHeader' in request) {
|
|
156
|
-
utils.forEach(requestHeaders, function setRequestHeader(val, key) {
|
|
157
|
-
|
|
158
|
-
// Remove Content-Type if data is undefined
|
|
159
|
-
delete requestHeaders[key];
|
|
160
|
-
} else {
|
|
161
|
-
// Otherwise add header to the request
|
|
162
|
-
request.setRequestHeader(key, val);
|
|
163
|
-
}
|
|
199
|
+
utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
|
200
|
+
request.setRequestHeader(key, val);
|
|
164
201
|
});
|
|
165
202
|
}
|
|
166
203
|
|
|
@@ -176,22 +213,22 @@ module.exports = function xhrAdapter(config) {
|
|
|
176
213
|
|
|
177
214
|
// Handle progress if needed
|
|
178
215
|
if (typeof config.onDownloadProgress === 'function') {
|
|
179
|
-
request.addEventListener('progress', config.onDownloadProgress);
|
|
216
|
+
request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));
|
|
180
217
|
}
|
|
181
218
|
|
|
182
219
|
// Not all browsers support upload events
|
|
183
220
|
if (typeof config.onUploadProgress === 'function' && request.upload) {
|
|
184
|
-
request.upload.addEventListener('progress', config.onUploadProgress);
|
|
221
|
+
request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));
|
|
185
222
|
}
|
|
186
223
|
|
|
187
224
|
if (config.cancelToken || config.signal) {
|
|
188
225
|
// Handle cancellation
|
|
189
226
|
// eslint-disable-next-line func-names
|
|
190
|
-
onCanceled =
|
|
227
|
+
onCanceled = cancel => {
|
|
191
228
|
if (!request) {
|
|
192
229
|
return;
|
|
193
230
|
}
|
|
194
|
-
reject(!cancel ||
|
|
231
|
+
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
195
232
|
request.abort();
|
|
196
233
|
request = null;
|
|
197
234
|
};
|
|
@@ -202,11 +239,15 @@ module.exports = function xhrAdapter(config) {
|
|
|
202
239
|
}
|
|
203
240
|
}
|
|
204
241
|
|
|
205
|
-
|
|
206
|
-
|
|
242
|
+
const protocol = parseProtocol(fullPath);
|
|
243
|
+
|
|
244
|
+
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
245
|
+
reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
|
246
|
+
return;
|
|
207
247
|
}
|
|
208
248
|
|
|
249
|
+
|
|
209
250
|
// Send the request
|
|
210
|
-
request.send(requestData);
|
|
251
|
+
request.send(requestData || null);
|
|
211
252
|
});
|
|
212
|
-
}
|
|
253
|
+
}
|
|
@@ -1,26 +1,38 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import utils from './utils.js';
|
|
4
|
+
import bind from './helpers/bind.js';
|
|
5
|
+
import Axios from './core/Axios.js';
|
|
6
|
+
import mergeConfig from './core/mergeConfig.js';
|
|
7
|
+
import defaults from './defaults/index.js';
|
|
8
|
+
import formDataToJSON from './helpers/formDataToJSON.js';
|
|
9
|
+
import CanceledError from './cancel/CanceledError.js';
|
|
10
|
+
import CancelToken from './cancel/CancelToken.js';
|
|
11
|
+
import isCancel from './cancel/isCancel.js';
|
|
12
|
+
import {VERSION} from './env/data.js';
|
|
13
|
+
import toFormData from './helpers/toFormData.js';
|
|
14
|
+
import AxiosError from './core/AxiosError.js';
|
|
15
|
+
import spread from './helpers/spread.js';
|
|
16
|
+
import isAxiosError from './helpers/isAxiosError.js';
|
|
17
|
+
import AxiosHeaders from "./core/AxiosHeaders.js";
|
|
18
|
+
import HttpStatusCode from './helpers/HttpStatusCode.js';
|
|
8
19
|
|
|
9
20
|
/**
|
|
10
21
|
* Create an instance of Axios
|
|
11
22
|
*
|
|
12
23
|
* @param {Object} defaultConfig The default config for the instance
|
|
13
|
-
*
|
|
24
|
+
*
|
|
25
|
+
* @returns {Axios} A new instance of Axios
|
|
14
26
|
*/
|
|
15
27
|
function createInstance(defaultConfig) {
|
|
16
|
-
|
|
17
|
-
|
|
28
|
+
const context = new Axios(defaultConfig);
|
|
29
|
+
const instance = bind(Axios.prototype.request, context);
|
|
18
30
|
|
|
19
31
|
// Copy axios.prototype to instance
|
|
20
|
-
utils.extend(instance, Axios.prototype, context);
|
|
32
|
+
utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});
|
|
21
33
|
|
|
22
34
|
// Copy context to instance
|
|
23
|
-
utils.extend(instance, context);
|
|
35
|
+
utils.extend(instance, context, null, {allOwnKeys: true});
|
|
24
36
|
|
|
25
37
|
// Factory for creating new instances
|
|
26
38
|
instance.create = function create(instanceConfig) {
|
|
@@ -31,27 +43,44 @@ function createInstance(defaultConfig) {
|
|
|
31
43
|
}
|
|
32
44
|
|
|
33
45
|
// Create the default instance to be exported
|
|
34
|
-
|
|
46
|
+
const axios = createInstance(defaults);
|
|
35
47
|
|
|
36
48
|
// Expose Axios class to allow class inheritance
|
|
37
49
|
axios.Axios = Axios;
|
|
38
50
|
|
|
39
51
|
// Expose Cancel & CancelToken
|
|
40
|
-
axios.
|
|
41
|
-
axios.CancelToken =
|
|
42
|
-
axios.isCancel =
|
|
43
|
-
axios.VERSION =
|
|
52
|
+
axios.CanceledError = CanceledError;
|
|
53
|
+
axios.CancelToken = CancelToken;
|
|
54
|
+
axios.isCancel = isCancel;
|
|
55
|
+
axios.VERSION = VERSION;
|
|
56
|
+
axios.toFormData = toFormData;
|
|
57
|
+
|
|
58
|
+
// Expose AxiosError class
|
|
59
|
+
axios.AxiosError = AxiosError;
|
|
60
|
+
|
|
61
|
+
// alias for CanceledError for backward compatibility
|
|
62
|
+
axios.Cancel = axios.CanceledError;
|
|
44
63
|
|
|
45
64
|
// Expose all/spread
|
|
46
65
|
axios.all = function all(promises) {
|
|
47
66
|
return Promise.all(promises);
|
|
48
67
|
};
|
|
49
|
-
|
|
68
|
+
|
|
69
|
+
axios.spread = spread;
|
|
50
70
|
|
|
51
71
|
// Expose isAxiosError
|
|
52
|
-
axios.isAxiosError =
|
|
72
|
+
axios.isAxiosError = isAxiosError;
|
|
73
|
+
|
|
74
|
+
// Expose mergeConfig
|
|
75
|
+
axios.mergeConfig = mergeConfig;
|
|
76
|
+
|
|
77
|
+
axios.AxiosHeaders = AxiosHeaders;
|
|
78
|
+
|
|
79
|
+
axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
80
|
+
|
|
81
|
+
axios.HttpStatusCode = HttpStatusCode;
|
|
53
82
|
|
|
54
|
-
|
|
83
|
+
axios.default = axios;
|
|
55
84
|
|
|
56
|
-
//
|
|
57
|
-
|
|
85
|
+
// this module should only have a default export
|
|
86
|
+
export default axios
|
|
@@ -1,119 +1,121 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import CanceledError from './CanceledError.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
7
7
|
*
|
|
8
|
-
* @class
|
|
9
8
|
* @param {Function} executor The executor function.
|
|
9
|
+
*
|
|
10
|
+
* @returns {CancelToken}
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
class CancelToken {
|
|
13
|
+
constructor(executor) {
|
|
14
|
+
if (typeof executor !== 'function') {
|
|
15
|
+
throw new TypeError('executor must be a function.');
|
|
16
|
+
}
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
let resolvePromise;
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
21
|
+
resolvePromise = resolve;
|
|
22
|
+
});
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
const token = this;
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
// eslint-disable-next-line func-names
|
|
27
|
+
this.promise.then(cancel => {
|
|
28
|
+
if (!token._listeners) return;
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
var l = token._listeners.length;
|
|
30
|
+
let i = token._listeners.length;
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
while (i-- > 0) {
|
|
33
|
+
token._listeners[i](cancel);
|
|
34
|
+
}
|
|
35
|
+
token._listeners = null;
|
|
36
|
+
});
|
|
36
37
|
|
|
37
|
-
// eslint-disable-next-line func-names
|
|
38
|
-
this.promise.then = function(onfulfilled) {
|
|
39
|
-
var _resolve;
|
|
40
38
|
// eslint-disable-next-line func-names
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
this.promise.then = onfulfilled => {
|
|
40
|
+
let _resolve;
|
|
41
|
+
// eslint-disable-next-line func-names
|
|
42
|
+
const promise = new Promise(resolve => {
|
|
43
|
+
token.subscribe(resolve);
|
|
44
|
+
_resolve = resolve;
|
|
45
|
+
}).then(onfulfilled);
|
|
46
|
+
|
|
47
|
+
promise.cancel = function reject() {
|
|
48
|
+
token.unsubscribe(_resolve);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
return promise;
|
|
48
52
|
};
|
|
49
53
|
|
|
50
|
-
|
|
51
|
-
|
|
54
|
+
executor(function cancel(message, config, request) {
|
|
55
|
+
if (token.reason) {
|
|
56
|
+
// Cancellation has already been requested
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
52
59
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
token.reason = new Cancel(message);
|
|
60
|
-
resolvePromise(token.reason);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
60
|
+
token.reason = new CanceledError(message, config, request);
|
|
61
|
+
resolvePromise(token.reason);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
63
64
|
|
|
64
|
-
/**
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
/**
|
|
66
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
67
|
+
*/
|
|
68
|
+
throwIfRequested() {
|
|
69
|
+
if (this.reason) {
|
|
70
|
+
throw this.reason;
|
|
71
|
+
}
|
|
70
72
|
}
|
|
71
|
-
};
|
|
72
73
|
|
|
73
|
-
/**
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Subscribe to the cancel signal
|
|
76
|
+
*/
|
|
76
77
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
subscribe(listener) {
|
|
79
|
+
if (this.reason) {
|
|
80
|
+
listener(this.reason);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
82
83
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
if (this._listeners) {
|
|
85
|
+
this._listeners.push(listener);
|
|
86
|
+
} else {
|
|
87
|
+
this._listeners = [listener];
|
|
88
|
+
}
|
|
87
89
|
}
|
|
88
|
-
};
|
|
89
90
|
|
|
90
|
-
/**
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Unsubscribe from the cancel signal
|
|
93
|
+
*/
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
unsubscribe(listener) {
|
|
96
|
+
if (!this._listeners) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const index = this._listeners.indexOf(listener);
|
|
100
|
+
if (index !== -1) {
|
|
101
|
+
this._listeners.splice(index, 1);
|
|
102
|
+
}
|
|
97
103
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
107
|
+
* cancels the `CancelToken`.
|
|
108
|
+
*/
|
|
109
|
+
static source() {
|
|
110
|
+
let cancel;
|
|
111
|
+
const token = new CancelToken(function executor(c) {
|
|
112
|
+
cancel = c;
|
|
113
|
+
});
|
|
114
|
+
return {
|
|
115
|
+
token,
|
|
116
|
+
cancel
|
|
117
|
+
};
|
|
101
118
|
}
|
|
102
|
-
}
|
|
119
|
+
}
|
|
103
120
|
|
|
104
|
-
|
|
105
|
-
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
106
|
-
* cancels the `CancelToken`.
|
|
107
|
-
*/
|
|
108
|
-
CancelToken.source = function source() {
|
|
109
|
-
var cancel;
|
|
110
|
-
var token = new CancelToken(function executor(c) {
|
|
111
|
-
cancel = c;
|
|
112
|
-
});
|
|
113
|
-
return {
|
|
114
|
-
token: token,
|
|
115
|
-
cancel: cancel
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
module.exports = CancelToken;
|
|
121
|
+
export default CancelToken;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import AxiosError from '../core/AxiosError.js';
|
|
4
|
+
import utils from '../utils.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
8
|
+
*
|
|
9
|
+
* @param {string=} message The message.
|
|
10
|
+
* @param {Object=} config The config.
|
|
11
|
+
* @param {Object=} request The request.
|
|
12
|
+
*
|
|
13
|
+
* @returns {CanceledError} The created error.
|
|
14
|
+
*/
|
|
15
|
+
function CanceledError(message, config, request) {
|
|
16
|
+
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
17
|
+
AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
|
|
18
|
+
this.name = 'CanceledError';
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
utils.inherits(CanceledError, AxiosError, {
|
|
22
|
+
__CANCEL__: true
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export default CanceledError;
|