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
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import stream from 'stream';
|
|
4
|
+
import utils from '../utils.js';
|
|
5
|
+
import throttle from './throttle.js';
|
|
6
|
+
import speedometer from './speedometer.js';
|
|
7
|
+
|
|
8
|
+
const kInternals = Symbol('internals');
|
|
9
|
+
|
|
10
|
+
class AxiosTransformStream extends stream.Transform{
|
|
11
|
+
constructor(options) {
|
|
12
|
+
options = utils.toFlatObject(options, {
|
|
13
|
+
maxRate: 0,
|
|
14
|
+
chunkSize: 64 * 1024,
|
|
15
|
+
minChunkSize: 100,
|
|
16
|
+
timeWindow: 500,
|
|
17
|
+
ticksRate: 2,
|
|
18
|
+
samplesCount: 15
|
|
19
|
+
}, null, (prop, source) => {
|
|
20
|
+
return !utils.isUndefined(source[prop]);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
super({
|
|
24
|
+
readableHighWaterMark: options.chunkSize
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const self = this;
|
|
28
|
+
|
|
29
|
+
const internals = this[kInternals] = {
|
|
30
|
+
length: options.length,
|
|
31
|
+
timeWindow: options.timeWindow,
|
|
32
|
+
ticksRate: options.ticksRate,
|
|
33
|
+
chunkSize: options.chunkSize,
|
|
34
|
+
maxRate: options.maxRate,
|
|
35
|
+
minChunkSize: options.minChunkSize,
|
|
36
|
+
bytesSeen: 0,
|
|
37
|
+
isCaptured: false,
|
|
38
|
+
notifiedBytesLoaded: 0,
|
|
39
|
+
ts: Date.now(),
|
|
40
|
+
bytes: 0,
|
|
41
|
+
onReadCallback: null
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const _speedometer = speedometer(internals.ticksRate * options.samplesCount, internals.timeWindow);
|
|
45
|
+
|
|
46
|
+
this.on('newListener', event => {
|
|
47
|
+
if (event === 'progress') {
|
|
48
|
+
if (!internals.isCaptured) {
|
|
49
|
+
internals.isCaptured = true;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
let bytesNotified = 0;
|
|
55
|
+
|
|
56
|
+
internals.updateProgress = throttle(function throttledHandler() {
|
|
57
|
+
const totalBytes = internals.length;
|
|
58
|
+
const bytesTransferred = internals.bytesSeen;
|
|
59
|
+
const progressBytes = bytesTransferred - bytesNotified;
|
|
60
|
+
if (!progressBytes || self.destroyed) return;
|
|
61
|
+
|
|
62
|
+
const rate = _speedometer(progressBytes);
|
|
63
|
+
|
|
64
|
+
bytesNotified = bytesTransferred;
|
|
65
|
+
|
|
66
|
+
process.nextTick(() => {
|
|
67
|
+
self.emit('progress', {
|
|
68
|
+
'loaded': bytesTransferred,
|
|
69
|
+
'total': totalBytes,
|
|
70
|
+
'progress': totalBytes ? (bytesTransferred / totalBytes) : undefined,
|
|
71
|
+
'bytes': progressBytes,
|
|
72
|
+
'rate': rate ? rate : undefined,
|
|
73
|
+
'estimated': rate && totalBytes && bytesTransferred <= totalBytes ?
|
|
74
|
+
(totalBytes - bytesTransferred) / rate : undefined
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
}, internals.ticksRate);
|
|
78
|
+
|
|
79
|
+
const onFinish = () => {
|
|
80
|
+
internals.updateProgress(true);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
this.once('end', onFinish);
|
|
84
|
+
this.once('error', onFinish);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
_read(size) {
|
|
88
|
+
const internals = this[kInternals];
|
|
89
|
+
|
|
90
|
+
if (internals.onReadCallback) {
|
|
91
|
+
internals.onReadCallback();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return super._read(size);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
_transform(chunk, encoding, callback) {
|
|
98
|
+
const self = this;
|
|
99
|
+
const internals = this[kInternals];
|
|
100
|
+
const maxRate = internals.maxRate;
|
|
101
|
+
|
|
102
|
+
const readableHighWaterMark = this.readableHighWaterMark;
|
|
103
|
+
|
|
104
|
+
const timeWindow = internals.timeWindow;
|
|
105
|
+
|
|
106
|
+
const divider = 1000 / timeWindow;
|
|
107
|
+
const bytesThreshold = (maxRate / divider);
|
|
108
|
+
const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
|
|
109
|
+
|
|
110
|
+
function pushChunk(_chunk, _callback) {
|
|
111
|
+
const bytes = Buffer.byteLength(_chunk);
|
|
112
|
+
internals.bytesSeen += bytes;
|
|
113
|
+
internals.bytes += bytes;
|
|
114
|
+
|
|
115
|
+
if (internals.isCaptured) {
|
|
116
|
+
internals.updateProgress();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (self.push(_chunk)) {
|
|
120
|
+
process.nextTick(_callback);
|
|
121
|
+
} else {
|
|
122
|
+
internals.onReadCallback = () => {
|
|
123
|
+
internals.onReadCallback = null;
|
|
124
|
+
process.nextTick(_callback);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const transformChunk = (_chunk, _callback) => {
|
|
130
|
+
const chunkSize = Buffer.byteLength(_chunk);
|
|
131
|
+
let chunkRemainder = null;
|
|
132
|
+
let maxChunkSize = readableHighWaterMark;
|
|
133
|
+
let bytesLeft;
|
|
134
|
+
let passed = 0;
|
|
135
|
+
|
|
136
|
+
if (maxRate) {
|
|
137
|
+
const now = Date.now();
|
|
138
|
+
|
|
139
|
+
if (!internals.ts || (passed = (now - internals.ts)) >= timeWindow) {
|
|
140
|
+
internals.ts = now;
|
|
141
|
+
bytesLeft = bytesThreshold - internals.bytes;
|
|
142
|
+
internals.bytes = bytesLeft < 0 ? -bytesLeft : 0;
|
|
143
|
+
passed = 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
bytesLeft = bytesThreshold - internals.bytes;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (maxRate) {
|
|
150
|
+
if (bytesLeft <= 0) {
|
|
151
|
+
// next time window
|
|
152
|
+
return setTimeout(() => {
|
|
153
|
+
_callback(null, _chunk);
|
|
154
|
+
}, timeWindow - passed);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (bytesLeft < maxChunkSize) {
|
|
158
|
+
maxChunkSize = bytesLeft;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if (maxChunkSize && chunkSize > maxChunkSize && (chunkSize - maxChunkSize) > minChunkSize) {
|
|
163
|
+
chunkRemainder = _chunk.subarray(maxChunkSize);
|
|
164
|
+
_chunk = _chunk.subarray(0, maxChunkSize);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
pushChunk(_chunk, chunkRemainder ? () => {
|
|
168
|
+
process.nextTick(_callback, null, chunkRemainder);
|
|
169
|
+
} : _callback);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
transformChunk(chunk, function transformNextChunk(err, _chunk) {
|
|
173
|
+
if (err) {
|
|
174
|
+
return callback(err);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (_chunk) {
|
|
178
|
+
transformChunk(_chunk, transformNextChunk);
|
|
179
|
+
} else {
|
|
180
|
+
callback(null);
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
setLength(length) {
|
|
186
|
+
this[kInternals].length = +length;
|
|
187
|
+
return this;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export default AxiosTransformStream;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import toFormData from './toFormData.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* It encodes a string by replacing all characters that are not in the unreserved set with
|
|
7
|
+
* their percent-encoded equivalents
|
|
8
|
+
*
|
|
9
|
+
* @param {string} str - The string to encode.
|
|
10
|
+
*
|
|
11
|
+
* @returns {string} The encoded string.
|
|
12
|
+
*/
|
|
13
|
+
function encode(str) {
|
|
14
|
+
const charMap = {
|
|
15
|
+
'!': '%21',
|
|
16
|
+
"'": '%27',
|
|
17
|
+
'(': '%28',
|
|
18
|
+
')': '%29',
|
|
19
|
+
'~': '%7E',
|
|
20
|
+
'%20': '+',
|
|
21
|
+
'%00': '\x00'
|
|
22
|
+
};
|
|
23
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
|
|
24
|
+
return charMap[match];
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* It takes a params object and converts it to a FormData object
|
|
30
|
+
*
|
|
31
|
+
* @param {Object<string, any>} params - The parameters to be converted to a FormData object.
|
|
32
|
+
* @param {Object<string, any>} options - The options object passed to the Axios constructor.
|
|
33
|
+
*
|
|
34
|
+
* @returns {void}
|
|
35
|
+
*/
|
|
36
|
+
function AxiosURLSearchParams(params, options) {
|
|
37
|
+
this._pairs = [];
|
|
38
|
+
|
|
39
|
+
params && toFormData(params, this, options);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const prototype = AxiosURLSearchParams.prototype;
|
|
43
|
+
|
|
44
|
+
prototype.append = function append(name, value) {
|
|
45
|
+
this._pairs.push([name, value]);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
prototype.toString = function toString(encoder) {
|
|
49
|
+
const _encode = encoder ? function(value) {
|
|
50
|
+
return encoder.call(this, value, encode);
|
|
51
|
+
} : encode;
|
|
52
|
+
|
|
53
|
+
return this._pairs.map(function each(pair) {
|
|
54
|
+
return _encode(pair[0]) + '=' + _encode(pair[1]);
|
|
55
|
+
}, '').join('&');
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export default AxiosURLSearchParams;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
const HttpStatusCode = {
|
|
2
|
+
Continue: 100,
|
|
3
|
+
SwitchingProtocols: 101,
|
|
4
|
+
Processing: 102,
|
|
5
|
+
EarlyHints: 103,
|
|
6
|
+
Ok: 200,
|
|
7
|
+
Created: 201,
|
|
8
|
+
Accepted: 202,
|
|
9
|
+
NonAuthoritativeInformation: 203,
|
|
10
|
+
NoContent: 204,
|
|
11
|
+
ResetContent: 205,
|
|
12
|
+
PartialContent: 206,
|
|
13
|
+
MultiStatus: 207,
|
|
14
|
+
AlreadyReported: 208,
|
|
15
|
+
ImUsed: 226,
|
|
16
|
+
MultipleChoices: 300,
|
|
17
|
+
MovedPermanently: 301,
|
|
18
|
+
Found: 302,
|
|
19
|
+
SeeOther: 303,
|
|
20
|
+
NotModified: 304,
|
|
21
|
+
UseProxy: 305,
|
|
22
|
+
Unused: 306,
|
|
23
|
+
TemporaryRedirect: 307,
|
|
24
|
+
PermanentRedirect: 308,
|
|
25
|
+
BadRequest: 400,
|
|
26
|
+
Unauthorized: 401,
|
|
27
|
+
PaymentRequired: 402,
|
|
28
|
+
Forbidden: 403,
|
|
29
|
+
NotFound: 404,
|
|
30
|
+
MethodNotAllowed: 405,
|
|
31
|
+
NotAcceptable: 406,
|
|
32
|
+
ProxyAuthenticationRequired: 407,
|
|
33
|
+
RequestTimeout: 408,
|
|
34
|
+
Conflict: 409,
|
|
35
|
+
Gone: 410,
|
|
36
|
+
LengthRequired: 411,
|
|
37
|
+
PreconditionFailed: 412,
|
|
38
|
+
PayloadTooLarge: 413,
|
|
39
|
+
UriTooLong: 414,
|
|
40
|
+
UnsupportedMediaType: 415,
|
|
41
|
+
RangeNotSatisfiable: 416,
|
|
42
|
+
ExpectationFailed: 417,
|
|
43
|
+
ImATeapot: 418,
|
|
44
|
+
MisdirectedRequest: 421,
|
|
45
|
+
UnprocessableEntity: 422,
|
|
46
|
+
Locked: 423,
|
|
47
|
+
FailedDependency: 424,
|
|
48
|
+
TooEarly: 425,
|
|
49
|
+
UpgradeRequired: 426,
|
|
50
|
+
PreconditionRequired: 428,
|
|
51
|
+
TooManyRequests: 429,
|
|
52
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
53
|
+
UnavailableForLegalReasons: 451,
|
|
54
|
+
InternalServerError: 500,
|
|
55
|
+
NotImplemented: 501,
|
|
56
|
+
BadGateway: 502,
|
|
57
|
+
ServiceUnavailable: 503,
|
|
58
|
+
GatewayTimeout: 504,
|
|
59
|
+
HttpVersionNotSupported: 505,
|
|
60
|
+
VariantAlsoNegotiates: 506,
|
|
61
|
+
InsufficientStorage: 507,
|
|
62
|
+
LoopDetected: 508,
|
|
63
|
+
NotExtended: 510,
|
|
64
|
+
NetworkAuthenticationRequired: 511,
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
68
|
+
HttpStatusCode[value] = key;
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export default HttpStatusCode;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import stream from "stream";
|
|
4
|
+
|
|
5
|
+
class ZlibHeaderTransformStream extends stream.Transform {
|
|
6
|
+
__transform(chunk, encoding, callback) {
|
|
7
|
+
this.push(chunk);
|
|
8
|
+
callback();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_transform(chunk, encoding, callback) {
|
|
12
|
+
if (chunk.length !== 0) {
|
|
13
|
+
this._transform = this.__transform;
|
|
14
|
+
|
|
15
|
+
// Add Default Compression headers if no zlib headers are present
|
|
16
|
+
if (chunk[0] !== 120) { // Hex: 78
|
|
17
|
+
const header = Buffer.alloc(2);
|
|
18
|
+
header[0] = 120; // Hex: 78
|
|
19
|
+
header[1] = 156; // Hex: 9C
|
|
20
|
+
this.push(header, encoding);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
this.__transform(chunk, encoding, callback);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default ZlibHeaderTransformStream;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default function bind(fn, thisArg) {
|
|
4
4
|
return function wrap() {
|
|
5
|
-
|
|
6
|
-
for (var i = 0; i < args.length; i++) {
|
|
7
|
-
args[i] = arguments[i];
|
|
8
|
-
}
|
|
9
|
-
return fn.apply(thisArg, args);
|
|
5
|
+
return fn.apply(thisArg, arguments);
|
|
10
6
|
};
|
|
11
|
-
}
|
|
7
|
+
}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import utils from '../utils.js';
|
|
4
|
+
import AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';
|
|
4
5
|
|
|
6
|
+
/**
|
|
7
|
+
* It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
|
|
8
|
+
* URI encoded counterparts
|
|
9
|
+
*
|
|
10
|
+
* @param {string} val The value to be encoded.
|
|
11
|
+
*
|
|
12
|
+
* @returns {string} The encoded value.
|
|
13
|
+
*/
|
|
5
14
|
function encode(val) {
|
|
6
15
|
return encodeURIComponent(val).
|
|
7
16
|
replace(/%3A/gi, ':').
|
|
@@ -17,54 +26,38 @@ function encode(val) {
|
|
|
17
26
|
*
|
|
18
27
|
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
19
28
|
* @param {object} [params] The params to be appended
|
|
29
|
+
* @param {?object} options
|
|
30
|
+
*
|
|
20
31
|
* @returns {string} The formatted url
|
|
21
32
|
*/
|
|
22
|
-
|
|
33
|
+
export default function buildURL(url, params, options) {
|
|
23
34
|
/*eslint no-param-reassign:0*/
|
|
24
35
|
if (!params) {
|
|
25
36
|
return url;
|
|
26
37
|
}
|
|
38
|
+
|
|
39
|
+
const _encode = options && options.encode || encode;
|
|
27
40
|
|
|
28
|
-
|
|
29
|
-
if (paramsSerializer) {
|
|
30
|
-
serializedParams = paramsSerializer(params);
|
|
31
|
-
} else if (utils.isURLSearchParams(params)) {
|
|
32
|
-
serializedParams = params.toString();
|
|
33
|
-
} else {
|
|
34
|
-
var parts = [];
|
|
35
|
-
|
|
36
|
-
utils.forEach(params, function serialize(val, key) {
|
|
37
|
-
if (val === null || typeof val === 'undefined') {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (utils.isArray(val)) {
|
|
42
|
-
key = key + '[]';
|
|
43
|
-
} else {
|
|
44
|
-
val = [val];
|
|
45
|
-
}
|
|
41
|
+
const serializeFn = options && options.serialize;
|
|
46
42
|
|
|
47
|
-
|
|
48
|
-
if (utils.isDate(v)) {
|
|
49
|
-
v = v.toISOString();
|
|
50
|
-
} else if (utils.isObject(v)) {
|
|
51
|
-
v = JSON.stringify(v);
|
|
52
|
-
}
|
|
53
|
-
parts.push(encode(key) + '=' + encode(v));
|
|
54
|
-
});
|
|
55
|
-
});
|
|
43
|
+
let serializedParams;
|
|
56
44
|
|
|
57
|
-
|
|
45
|
+
if (serializeFn) {
|
|
46
|
+
serializedParams = serializeFn(params, options);
|
|
47
|
+
} else {
|
|
48
|
+
serializedParams = utils.isURLSearchParams(params) ?
|
|
49
|
+
params.toString() :
|
|
50
|
+
new AxiosURLSearchParams(params, options).toString(_encode);
|
|
58
51
|
}
|
|
59
52
|
|
|
60
53
|
if (serializedParams) {
|
|
61
|
-
|
|
54
|
+
const hashmarkIndex = url.indexOf("#");
|
|
55
|
+
|
|
62
56
|
if (hashmarkIndex !== -1) {
|
|
63
57
|
url = url.slice(0, hashmarkIndex);
|
|
64
58
|
}
|
|
65
|
-
|
|
66
59
|
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
|
67
60
|
}
|
|
68
61
|
|
|
69
62
|
return url;
|
|
70
|
-
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import utils from "../utils.js";
|
|
2
|
+
|
|
3
|
+
const callbackify = (fn, reducer) => {
|
|
4
|
+
return utils.isAsyncFn(fn) ? function (...args) {
|
|
5
|
+
const cb = args.pop();
|
|
6
|
+
fn.apply(this, args).then((value) => {
|
|
7
|
+
try {
|
|
8
|
+
reducer ? cb(null, ...reducer(value)) : cb(null, value);
|
|
9
|
+
} catch (err) {
|
|
10
|
+
cb(err);
|
|
11
|
+
}
|
|
12
|
+
}, cb);
|
|
13
|
+
} : fn;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default callbackify;
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @param {string} baseURL The base URL
|
|
7
7
|
* @param {string} relativeURL The relative URL
|
|
8
|
+
*
|
|
8
9
|
* @returns {string} The combined URL
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
+
export default function combineURLs(baseURL, relativeURL) {
|
|
11
12
|
return relativeURL
|
|
12
13
|
? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
|
|
13
14
|
: baseURL;
|
|
14
|
-
}
|
|
15
|
+
}
|
|
@@ -1,53 +1,52 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import utils from './../utils.js';
|
|
4
|
+
import platform from '../platform/index.js';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
utils.isStandardBrowserEnv() ?
|
|
6
|
+
export default platform.isStandardBrowserEnv ?
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
// Standard browser envs support document.cookie
|
|
9
|
+
(function standardBrowserEnv() {
|
|
10
|
+
return {
|
|
11
|
+
write: function write(name, value, expires, path, domain, secure) {
|
|
12
|
+
const cookie = [];
|
|
13
|
+
cookie.push(name + '=' + encodeURIComponent(value));
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (utils.isString(path)) {
|
|
20
|
-
cookie.push('path=' + path);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (utils.isString(domain)) {
|
|
24
|
-
cookie.push('domain=' + domain);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (secure === true) {
|
|
28
|
-
cookie.push('secure');
|
|
29
|
-
}
|
|
15
|
+
if (utils.isNumber(expires)) {
|
|
16
|
+
cookie.push('expires=' + new Date(expires).toGMTString());
|
|
17
|
+
}
|
|
30
18
|
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
if (utils.isString(path)) {
|
|
20
|
+
cookie.push('path=' + path);
|
|
21
|
+
}
|
|
33
22
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
},
|
|
23
|
+
if (utils.isString(domain)) {
|
|
24
|
+
cookie.push('domain=' + domain);
|
|
25
|
+
}
|
|
38
26
|
|
|
39
|
-
|
|
40
|
-
|
|
27
|
+
if (secure === true) {
|
|
28
|
+
cookie.push('secure');
|
|
41
29
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
30
|
+
|
|
31
|
+
document.cookie = cookie.join('; ');
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
read: function read(name) {
|
|
35
|
+
const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
|
|
36
|
+
return (match ? decodeURIComponent(match[3]) : null);
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
remove: function remove(name) {
|
|
40
|
+
this.write(name, '', Date.now() - 86400000);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
})() :
|
|
44
|
+
|
|
45
|
+
// Non standard browser env (web workers, react-native) lack needed support.
|
|
46
|
+
(function nonStandardBrowserEnv() {
|
|
47
|
+
return {
|
|
48
|
+
write: function write() {},
|
|
49
|
+
read: function read() { return null; },
|
|
50
|
+
remove: function remove() {}
|
|
51
|
+
};
|
|
52
|
+
})();
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
* @param {string} method The name of the deprecated method
|
|
10
10
|
* @param {string} [instead] The alternate method to use if applicable
|
|
11
11
|
* @param {string} [docs] The documentation URL to get further details
|
|
12
|
+
*
|
|
13
|
+
* @returns {void}
|
|
12
14
|
*/
|
|
13
|
-
|
|
15
|
+
export default function deprecatedMethod(method, instead, docs) {
|
|
14
16
|
try {
|
|
15
17
|
console.warn(
|
|
16
18
|
'DEPRECATED method `' + method + '`.' +
|
|
@@ -21,4 +23,4 @@ module.exports = function deprecatedMethod(method, instead, docs) {
|
|
|
21
23
|
console.warn('For more information about usage see ' + docs);
|
|
22
24
|
}
|
|
23
25
|
} catch (e) { /* Ignore */ }
|
|
24
|
-
}
|
|
26
|
+
}
|