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,25 +1,24 @@
|
|
|
1
|
-
# Fast splay tree [](https://badge.fury.io/js/splaytree) [](https://badge.fury.io/js/splaytree) [](https://codecov.io/gh/w8r/splay-tree)
|
|
2
2
|
|
|
3
3
|
[Splay-tree](https://en.wikipedia.org/wiki/Splay_tree): **[fast](#benchmarks)**(non-recursive) and **simple**(< 1000 lines of code)
|
|
4
4
|
Implementation is adapted directly from Wikipedia with the same API as [w8r/avl](https://github.com/w8r/avl), to run the benchmarks against other trees.
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
This tree is based on **top-down** splaying algorithm by D.Sleator. It supports
|
|
8
|
-
- splitting, merging
|
|
9
|
-
- updating of the keys
|
|
10
|
-
- bulk loading of the items into an empty or non-empty tree
|
|
11
|
-
- insertion with duplicates or no duplicates
|
|
12
|
-
- lookup without splaying
|
|
13
7
|
|
|
14
|
-
|
|
8
|
+
- splitting, merging
|
|
9
|
+
- updating of the keys
|
|
10
|
+
- bulk loading of the items into an empty or non-empty tree
|
|
11
|
+
- insertion with duplicates or no duplicates
|
|
12
|
+
- lookup without splaying
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
| ------------- | ------------- | ---------------------- |
|
|
18
|
-
| Space | **O(n)** | **O(n)** |
|
|
19
|
-
| Search | **O(log n)** | **amortized O(log n)** |
|
|
20
|
-
| Insert | **O(log n)** | **amortized O(log n)** |
|
|
21
|
-
| Delete | **O(log n)** | **amortized O(log n)** |
|
|
14
|
+

|
|
22
15
|
|
|
16
|
+
| Operation | Average | Worst case |
|
|
17
|
+
| --------- | ------------ | ---------------------- |
|
|
18
|
+
| Space | **O(n)** | **O(n)** |
|
|
19
|
+
| Search | **O(log n)** | **amortized O(log n)** |
|
|
20
|
+
| Insert | **O(log n)** | **amortized O(log n)** |
|
|
21
|
+
| Delete | **O(log n)** | **amortized O(log n)** |
|
|
23
22
|
|
|
24
23
|
## Install
|
|
25
24
|
|
|
@@ -28,11 +27,12 @@ npm i -S splaytree
|
|
|
28
27
|
```
|
|
29
28
|
|
|
30
29
|
```js
|
|
31
|
-
import SplayTree from
|
|
30
|
+
import SplayTree from "splaytree";
|
|
32
31
|
const tree = new SplayTree();
|
|
33
32
|
```
|
|
34
33
|
|
|
35
34
|
Or get it from CDN
|
|
35
|
+
|
|
36
36
|
```html
|
|
37
37
|
<script src="https://unpkg.com/splaytree"></script>
|
|
38
38
|
<script>
|
|
@@ -40,56 +40,58 @@ Or get it from CDN
|
|
|
40
40
|
...
|
|
41
41
|
</script>
|
|
42
42
|
```
|
|
43
|
+
|
|
43
44
|
Or use the compiled version 'dist/splay.js'.
|
|
44
45
|
|
|
45
46
|
[Try it in your browser](https://npm.runkit.com/splaytree)
|
|
46
47
|
|
|
47
48
|
## API
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
50
|
+
- `new SplayTree([comparator])`, where `comparator` is optional comparison function
|
|
51
|
+
- `tree.insert(key:any, [data:any]):Node` - Insert item, allow duplicate keys
|
|
52
|
+
- `tree.add(key:any, [data:any]):Node` - Insert item if it is not present
|
|
53
|
+
- `tree.remove(key:any)` - Remove item
|
|
54
|
+
- `tree.find(key):Node|Null` - Return node by its key
|
|
55
|
+
- `tree.findStatic(key):Node|Null` - Return node by its key (doesn't re-balance the tree)
|
|
56
|
+
- `tree.at(index:Number):Node|Null` - Return node by its index in sorted order of keys
|
|
57
|
+
- `tree.contains(key):Boolean` - Whether a node with the given key is in the tree
|
|
58
|
+
- `tree.forEach(function(node) {...}):Tree` In-order traversal
|
|
59
|
+
- `tree.keys():Array<key>` - Returns the array of keys in order
|
|
60
|
+
- `tree.values():Array<*>` - Returns the array of data fields in order
|
|
61
|
+
- `tree.range(lo, high, function(node) {} [, context]):Tree` - Walks the range of keys in order. Stops, if the visitor function returns a non-zero value.
|
|
62
|
+
- `tree.pop():Node` - Removes smallest node
|
|
63
|
+
- `tree.min():key` - Returns min key
|
|
64
|
+
- `tree.max():key` - Returns max key
|
|
65
|
+
- `tree.minNode():Node` - Returns the node with smallest key
|
|
66
|
+
- `tree.maxNode():Node` - Returns the node with highest key
|
|
67
|
+
- `tree.prev(node):Node` - Predecessor node
|
|
68
|
+
- `tree.next(node):Node` - Successor node
|
|
69
|
+
- `tree.load(keys:Array<*>, [values:Array<*>][,presort=false]):Tree` - Bulk-load items. It expects values and keys to be sorted, but if `presort` is `true`, it will sort keys and values using the comparator(in-place, your arrays are going to be altered).
|
|
69
70
|
|
|
70
71
|
**Comparator**
|
|
71
72
|
|
|
72
73
|
`function(a:key,b:key):Number` - Comparator function between two keys, it returns
|
|
73
|
-
* `0` if the keys are equal
|
|
74
|
-
* `<0` if `a < b`
|
|
75
|
-
* `>0` if `a > b`
|
|
76
74
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
- `0` if the keys are equal
|
|
76
|
+
- `<0` if `a < b`
|
|
77
|
+
- `>0` if `a > b`
|
|
78
|
+
|
|
79
|
+
The comparator function is extremely important, in case of errors you might end
|
|
80
|
+
up with a wrongly constructed tree or would not be able to retrieve your items.
|
|
81
|
+
It is crucial to test the return values of your `comparator(a,b)` and `comparator(b,a)`
|
|
82
|
+
to make sure it's working correctly, otherwise you may have bugs that are very
|
|
83
|
+
unpredictable and hard to catch.
|
|
82
84
|
|
|
83
|
-
|
|
85
|
+
**Duplicate keys**
|
|
84
86
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
- `insert()` method allows duplicate keys. This can be useful in certain applications (example: overlapping
|
|
88
|
+
points in 2D).
|
|
89
|
+
- `add()` method will not allow duplicate keys - if key is already present in the tree, no new node is created
|
|
88
90
|
|
|
89
91
|
## Example
|
|
90
92
|
|
|
91
93
|
```js
|
|
92
|
-
import Tree from
|
|
94
|
+
import Tree from "splaytree";
|
|
93
95
|
|
|
94
96
|
const t = new Tree();
|
|
95
97
|
t.insert(5);
|
|
@@ -99,18 +101,18 @@ t.insert(33);
|
|
|
99
101
|
t.insert(2);
|
|
100
102
|
|
|
101
103
|
console.log(t.keys()); // [-10, 0, 2, 5, 33]
|
|
102
|
-
console.log(t.size);
|
|
103
|
-
console.log(t.min());
|
|
104
|
-
console.log(t.max());
|
|
104
|
+
console.log(t.size); // 5
|
|
105
|
+
console.log(t.min()); // -10
|
|
106
|
+
console.log(t.max()); // -33
|
|
105
107
|
|
|
106
108
|
t.remove(0);
|
|
107
|
-
console.log(t.size);
|
|
109
|
+
console.log(t.size); // 4
|
|
108
110
|
```
|
|
109
111
|
|
|
110
112
|
**Custom comparator (reverse sort)**
|
|
111
113
|
|
|
112
114
|
```js
|
|
113
|
-
import Tree from
|
|
115
|
+
import Tree from "splaytree";
|
|
114
116
|
|
|
115
117
|
const t = new Tree((a, b) => b - a);
|
|
116
118
|
t.insert(5);
|
|
@@ -125,11 +127,11 @@ console.log(t.keys()); // [33, 5, 2, 0, -10]
|
|
|
125
127
|
**Bulk insert**
|
|
126
128
|
|
|
127
129
|
```js
|
|
128
|
-
import Tree from
|
|
130
|
+
import Tree from "splaytree";
|
|
129
131
|
|
|
130
132
|
const t = new Tree();
|
|
131
|
-
t.load([3,2
|
|
132
|
-
console.log(t.keys());
|
|
133
|
+
t.load([3, 2, -10, 20], ["C", "B", "A", "D"]);
|
|
134
|
+
console.log(t.keys()); // [-10, 2, 3, 20]
|
|
133
135
|
console.log(t.values()); // ['A', 'B', 'C', 'D']
|
|
134
136
|
```
|
|
135
137
|
|
|
@@ -196,7 +198,6 @@ npm run build
|
|
|
196
198
|
|
|
197
199
|
- [ ] try and add parent fields for efficient `.prev()` and `.next()`, or iterators
|
|
198
200
|
|
|
199
|
-
|
|
200
201
|
## License
|
|
201
202
|
|
|
202
203
|
The MIT License (MIT)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* splaytree v3.1.
|
|
2
|
+
* splaytree v3.1.2
|
|
3
3
|
* Fast Splay tree for Node and browser
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Milevski <info@w8r.name>
|
|
@@ -542,20 +542,33 @@ var Tree = /** @class */ (function () {
|
|
|
542
542
|
return split(key, this._root, this._comparator);
|
|
543
543
|
};
|
|
544
544
|
Tree.prototype[Symbol.iterator] = function () {
|
|
545
|
-
var
|
|
545
|
+
var current, Q, done;
|
|
546
546
|
return __generator(this, function (_a) {
|
|
547
547
|
switch (_a.label) {
|
|
548
548
|
case 0:
|
|
549
|
-
|
|
549
|
+
current = this._root;
|
|
550
|
+
Q = [];
|
|
551
|
+
done = false;
|
|
550
552
|
_a.label = 1;
|
|
551
553
|
case 1:
|
|
552
|
-
if (
|
|
553
|
-
return [
|
|
554
|
+
if (!!done) return [3 /*break*/, 6];
|
|
555
|
+
if (!(current !== null)) return [3 /*break*/, 2];
|
|
556
|
+
Q.push(current);
|
|
557
|
+
current = current.left;
|
|
558
|
+
return [3 /*break*/, 5];
|
|
554
559
|
case 2:
|
|
560
|
+
if (!(Q.length !== 0)) return [3 /*break*/, 4];
|
|
561
|
+
current = Q.pop();
|
|
562
|
+
return [4 /*yield*/, current];
|
|
563
|
+
case 3:
|
|
555
564
|
_a.sent();
|
|
556
|
-
|
|
557
|
-
return [3 /*break*/,
|
|
558
|
-
case
|
|
565
|
+
current = current.right;
|
|
566
|
+
return [3 /*break*/, 5];
|
|
567
|
+
case 4:
|
|
568
|
+
done = true;
|
|
569
|
+
_a.label = 5;
|
|
570
|
+
case 5: return [3 /*break*/, 1];
|
|
571
|
+
case 6: return [2 /*return*/];
|
|
559
572
|
}
|
|
560
573
|
});
|
|
561
574
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splay.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"splay.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* splaytree v3.1.
|
|
2
|
+
* splaytree v3.1.2
|
|
3
3
|
* Fast Splay tree for Node and browser
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Milevski <info@w8r.name>
|
|
@@ -548,20 +548,33 @@
|
|
|
548
548
|
return split(key, this._root, this._comparator);
|
|
549
549
|
};
|
|
550
550
|
Tree.prototype[Symbol.iterator] = function () {
|
|
551
|
-
var
|
|
551
|
+
var current, Q, done;
|
|
552
552
|
return __generator(this, function (_a) {
|
|
553
553
|
switch (_a.label) {
|
|
554
554
|
case 0:
|
|
555
|
-
|
|
555
|
+
current = this._root;
|
|
556
|
+
Q = [];
|
|
557
|
+
done = false;
|
|
556
558
|
_a.label = 1;
|
|
557
559
|
case 1:
|
|
558
|
-
if (
|
|
559
|
-
return [
|
|
560
|
+
if (!!done) return [3 /*break*/, 6];
|
|
561
|
+
if (!(current !== null)) return [3 /*break*/, 2];
|
|
562
|
+
Q.push(current);
|
|
563
|
+
current = current.left;
|
|
564
|
+
return [3 /*break*/, 5];
|
|
560
565
|
case 2:
|
|
566
|
+
if (!(Q.length !== 0)) return [3 /*break*/, 4];
|
|
567
|
+
current = Q.pop();
|
|
568
|
+
return [4 /*yield*/, current];
|
|
569
|
+
case 3:
|
|
561
570
|
_a.sent();
|
|
562
|
-
|
|
563
|
-
return [3 /*break*/,
|
|
564
|
-
case
|
|
571
|
+
current = current.right;
|
|
572
|
+
return [3 /*break*/, 5];
|
|
573
|
+
case 4:
|
|
574
|
+
done = true;
|
|
575
|
+
_a.label = 5;
|
|
576
|
+
case 5: return [3 /*break*/, 1];
|
|
577
|
+
case 6: return [2 /*return*/];
|
|
565
578
|
}
|
|
566
579
|
});
|
|
567
580
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splay.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"splay.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"fetchSpec": "^3.1.0"
|
|
17
|
-
},
|
|
18
|
-
"_requiredBy": [
|
|
19
|
-
"/polygon-clipping"
|
|
2
|
+
"name": "splaytree",
|
|
3
|
+
"version": "3.1.2",
|
|
4
|
+
"author": "Alexander Milevski <info@w8r.name>",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "Fast Splay tree for Node and browser",
|
|
7
|
+
"main": "dist/splay.js",
|
|
8
|
+
"browser": "dist/splay.js",
|
|
9
|
+
"unpkg": "dist/splay.js",
|
|
10
|
+
"module": "dist/splay.esm.js",
|
|
11
|
+
"types": "typings/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"typings",
|
|
15
|
+
"src"
|
|
20
16
|
],
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"_where": "/Users/conway/Projects/TAKreg/node_modules/polygon-clipping",
|
|
25
|
-
"author": {
|
|
26
|
-
"name": "Alexander Milevski",
|
|
27
|
-
"email": "info@w8r.name"
|
|
17
|
+
"directories": {
|
|
18
|
+
"test": "test",
|
|
19
|
+
"typings": "typings"
|
|
28
20
|
},
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
"url": "https://github.com/w8r/splay-tree
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/w8r/splay-tree.git"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"lint": "tslint --project tsconfig.json ./src/*.ts",
|
|
27
|
+
"build": "rollup -c && npm run types",
|
|
28
|
+
"types": "tsc --declaration --emitDeclarationOnly",
|
|
29
|
+
"prebenchmark": "npm run build",
|
|
30
|
+
"benchmark": "node -r reify bench/benchmark.js",
|
|
31
|
+
"start": "npm run test:watch",
|
|
32
|
+
"test:watch": "nodemon --watch index.js --watch tests --exec 'npm test'",
|
|
33
|
+
"test": "nyc mocha tests/**/*.test.ts",
|
|
34
|
+
"posttest": "nyc report --reporter=json",
|
|
35
|
+
"prepublishOnly": "npm run build && npm test",
|
|
36
|
+
"clean": "rm -rf dist coverage .nyc",
|
|
37
|
+
"coverage": "codecov -f coverage/*.json"
|
|
32
38
|
},
|
|
33
|
-
"bundleDependencies": false,
|
|
34
|
-
"dependencies": {},
|
|
35
|
-
"deprecated": false,
|
|
36
|
-
"description": "Fast Splay tree for Node and browser",
|
|
37
39
|
"devDependencies": {
|
|
38
40
|
"@types/chai": "^4.1.4",
|
|
39
41
|
"@types/mocha": "^5.2.2",
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
"chai": "^4.2.0",
|
|
44
46
|
"codecov": "^3.8.3",
|
|
45
47
|
"mocha": "^6.2.0",
|
|
46
|
-
"nodemon": "^
|
|
48
|
+
"nodemon": "^2.0.20",
|
|
47
49
|
"nyc": "^14.1.1",
|
|
48
50
|
"reify": "*",
|
|
49
51
|
"rollup": "*",
|
|
@@ -53,16 +55,6 @@
|
|
|
53
55
|
"tslint": "^5.14.0",
|
|
54
56
|
"typescript": "^2.9.2"
|
|
55
57
|
},
|
|
56
|
-
"directories": {
|
|
57
|
-
"test": "test",
|
|
58
|
-
"typings": "typings"
|
|
59
|
-
},
|
|
60
|
-
"files": [
|
|
61
|
-
"dist",
|
|
62
|
-
"typings",
|
|
63
|
-
"src"
|
|
64
|
-
],
|
|
65
|
-
"homepage": "https://github.com/w8r/splay-tree#readme",
|
|
66
58
|
"keywords": [
|
|
67
59
|
"binary-tree",
|
|
68
60
|
"bst",
|
|
@@ -70,15 +62,11 @@
|
|
|
70
62
|
"splay",
|
|
71
63
|
"balanced-search-tree"
|
|
72
64
|
],
|
|
73
|
-
"license": "MIT",
|
|
74
|
-
"main": "dist/splay.js",
|
|
75
65
|
"mocha": {
|
|
76
66
|
"require": [
|
|
77
67
|
"ts-node/register"
|
|
78
68
|
]
|
|
79
69
|
},
|
|
80
|
-
"module": "dist/splay.esm.js",
|
|
81
|
-
"name": "splaytree",
|
|
82
70
|
"nyc": {
|
|
83
71
|
"include": [
|
|
84
72
|
"src/*.ts"
|
|
@@ -99,25 +87,5 @@
|
|
|
99
87
|
"sourceMap": true,
|
|
100
88
|
"instrument": true
|
|
101
89
|
},
|
|
102
|
-
"
|
|
103
|
-
"type": "git",
|
|
104
|
-
"url": "git+https://github.com/w8r/splay-tree.git"
|
|
105
|
-
},
|
|
106
|
-
"scripts": {
|
|
107
|
-
"benchmark": "node -r reify bench/benchmark.js",
|
|
108
|
-
"build": "rollup -c && npm run types",
|
|
109
|
-
"clean": "rm -rf dist coverage .nyc",
|
|
110
|
-
"coverage": "codecov -f coverage/*.json",
|
|
111
|
-
"lint": "tslint --project tsconfig.json ./src/*.ts",
|
|
112
|
-
"posttest": "nyc report --reporter=json",
|
|
113
|
-
"prebenchmark": "npm run build",
|
|
114
|
-
"prepublishOnly": "npm run build && npm test",
|
|
115
|
-
"start": "npm run test:watch",
|
|
116
|
-
"test": "nyc mocha tests/**/*.test.ts",
|
|
117
|
-
"test:watch": "nodemon --watch index.js --watch tests --exec 'npm test'",
|
|
118
|
-
"types": "tsc --declaration --emitDeclarationOnly"
|
|
119
|
-
},
|
|
120
|
-
"types": "typings/index.d.ts",
|
|
121
|
-
"unpkg": "dist/splay.js",
|
|
122
|
-
"version": "3.1.1"
|
|
90
|
+
"dependencies": {}
|
|
123
91
|
}
|
|
@@ -531,10 +531,22 @@ export default class Tree<Key=number, Value=any> {
|
|
|
531
531
|
}
|
|
532
532
|
|
|
533
533
|
*[Symbol.iterator]() {
|
|
534
|
-
let
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
534
|
+
let current = this._root;
|
|
535
|
+
const Q: Node<Key, Value>[] = []; /* Initialize stack s */
|
|
536
|
+
let done = false;
|
|
537
|
+
|
|
538
|
+
while (!done) {
|
|
539
|
+
if (current !== null) {
|
|
540
|
+
Q.push(current);
|
|
541
|
+
current = current.left;
|
|
542
|
+
} else {
|
|
543
|
+
if (Q.length !== 0) {
|
|
544
|
+
current = Q.pop()!;
|
|
545
|
+
yield current;
|
|
546
|
+
|
|
547
|
+
current = current.right;
|
|
548
|
+
} else done = true;
|
|
549
|
+
}
|
|
538
550
|
}
|
|
539
551
|
}
|
|
540
552
|
}
|
|
@@ -1,45 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA==",
|
|
6
|
-
"_location": "/tinyqueue",
|
|
7
|
-
"_phantomChildren": {},
|
|
8
|
-
"_requested": {
|
|
9
|
-
"type": "range",
|
|
10
|
-
"registry": true,
|
|
11
|
-
"raw": "tinyqueue@^2.0.3",
|
|
12
|
-
"name": "tinyqueue",
|
|
13
|
-
"escapedName": "tinyqueue",
|
|
14
|
-
"rawSpec": "^2.0.3",
|
|
15
|
-
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^2.0.3"
|
|
17
|
-
},
|
|
18
|
-
"_requiredBy": [
|
|
19
|
-
"/concaveman"
|
|
20
|
-
],
|
|
21
|
-
"_resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-2.0.3.tgz",
|
|
22
|
-
"_shasum": "64d8492ebf39e7801d7bd34062e29b45b2035f08",
|
|
23
|
-
"_spec": "tinyqueue@^2.0.3",
|
|
24
|
-
"_where": "/Users/conway/Projects/TAKreg/node_modules/concaveman",
|
|
25
|
-
"author": "",
|
|
26
|
-
"bugs": {
|
|
27
|
-
"url": "https://github.com/mourner/tinyqueue/issues"
|
|
28
|
-
},
|
|
29
|
-
"bundleDependencies": false,
|
|
30
|
-
"deprecated": false,
|
|
2
|
+
"name": "tinyqueue",
|
|
3
|
+
"version": "2.0.3",
|
|
31
4
|
"description": "The smallest and simplest JavaScript priority queue",
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
5
|
+
"main": "tinyqueue.js",
|
|
6
|
+
"module": "index.js",
|
|
7
|
+
"jsdelivr": "tinyqueue.min.js",
|
|
8
|
+
"unpkg": "tinyqueue.min.js",
|
|
9
|
+
"types": "index.d.ts",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"lint": "eslint index.js test.js bench.js rollup.config.js",
|
|
12
|
+
"pretest": "npm run lint",
|
|
13
|
+
"test": "tape -r esm test.js",
|
|
14
|
+
"bench": "node -r esm bench.js",
|
|
15
|
+
"build": "rollup -c",
|
|
16
|
+
"watch": "rollup -cw",
|
|
17
|
+
"prepublishOnly": "npm test"
|
|
43
18
|
},
|
|
44
19
|
"files": [
|
|
45
20
|
"index.js",
|
|
@@ -47,32 +22,32 @@
|
|
|
47
22
|
"tinyqueue.min.js",
|
|
48
23
|
"index.d.ts"
|
|
49
24
|
],
|
|
50
|
-
"
|
|
51
|
-
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/mourner/tinyqueue.git"
|
|
28
|
+
},
|
|
52
29
|
"keywords": [
|
|
53
30
|
"queue",
|
|
54
31
|
"priority",
|
|
55
32
|
"binary heap",
|
|
56
33
|
"data structures"
|
|
57
34
|
],
|
|
35
|
+
"author": "",
|
|
58
36
|
"license": "ISC",
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
"name": "tinyqueue",
|
|
62
|
-
"repository": {
|
|
63
|
-
"type": "git",
|
|
64
|
-
"url": "git+https://github.com/mourner/tinyqueue.git"
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/mourner/tinyqueue/issues"
|
|
65
39
|
},
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
40
|
+
"homepage": "https://github.com/mourner/tinyqueue",
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"eslint": "^5.16.0",
|
|
43
|
+
"eslint-config-mourner": "^3.0.0",
|
|
44
|
+
"esm": "^3.2.25",
|
|
45
|
+
"rollup": "^1.15.4",
|
|
46
|
+
"rollup-plugin-buble": "^0.19.6",
|
|
47
|
+
"rollup-plugin-terser": "^5.0.0",
|
|
48
|
+
"tape": "^4.10.2"
|
|
74
49
|
},
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
50
|
+
"eslintConfig": {
|
|
51
|
+
"extends": "mourner"
|
|
52
|
+
}
|
|
78
53
|
}
|