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,118 +1,88 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"audit": "npm audit",
|
|
89
|
-
"coverage": "covert test/*.js",
|
|
90
|
-
"coverage-quiet": "covert test/*.js --quiet",
|
|
91
|
-
"lint": "eslint .",
|
|
92
|
-
"postaudit": "rm package-lock.json",
|
|
93
|
-
"posttest": "npm run --silent audit",
|
|
94
|
-
"preaudit": "npm install --package-lock --package-lock-only",
|
|
95
|
-
"pretest": "npm run --silent lint",
|
|
96
|
-
"test": "npm run --silent tests-only",
|
|
97
|
-
"tests-only": "node test/index.js"
|
|
98
|
-
},
|
|
99
|
-
"testling": {
|
|
100
|
-
"files": "test/index.js",
|
|
101
|
-
"browsers": [
|
|
102
|
-
"iexplore/6.0..latest",
|
|
103
|
-
"firefox/3.0..6.0",
|
|
104
|
-
"firefox/15.0..latest",
|
|
105
|
-
"firefox/nightly",
|
|
106
|
-
"chrome/4.0..10.0",
|
|
107
|
-
"chrome/20.0..latest",
|
|
108
|
-
"chrome/canary",
|
|
109
|
-
"opera/10.0..latest",
|
|
110
|
-
"opera/next",
|
|
111
|
-
"safari/4.0..latest",
|
|
112
|
-
"ipad/6.0..latest",
|
|
113
|
-
"iphone/6.0..latest",
|
|
114
|
-
"android-browser/4.2"
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
"version": "1.1.1"
|
|
2
|
+
"name": "object-keys",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "Jordan Harband",
|
|
6
|
+
"email": "ljharb@gmail.com",
|
|
7
|
+
"url": "http://ljharb.codes"
|
|
8
|
+
},
|
|
9
|
+
"contributors": [
|
|
10
|
+
{
|
|
11
|
+
"name": "Jordan Harband",
|
|
12
|
+
"email": "ljharb@gmail.com",
|
|
13
|
+
"url": "http://ljharb.codes"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "Raynos",
|
|
17
|
+
"email": "raynos2@gmail.com"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "Nathan Rajlich",
|
|
21
|
+
"email": "nathan@tootallnate.net"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "Ivan Starkov",
|
|
25
|
+
"email": "istarkov@gmail.com"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Gary Katsevman",
|
|
29
|
+
"email": "git@gkatsev.com"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"description": "An Object.keys replacement, in case Object.keys is not available. From https://github.com/es-shims/es5-shim",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"main": "index.js",
|
|
35
|
+
"scripts": {
|
|
36
|
+
"pretest": "npm run --silent lint",
|
|
37
|
+
"test": "npm run --silent tests-only",
|
|
38
|
+
"posttest": "npm run --silent audit",
|
|
39
|
+
"tests-only": "node test/index.js",
|
|
40
|
+
"coverage": "covert test/*.js",
|
|
41
|
+
"coverage-quiet": "covert test/*.js --quiet",
|
|
42
|
+
"lint": "eslint .",
|
|
43
|
+
"preaudit": "npm install --package-lock --package-lock-only",
|
|
44
|
+
"audit": "npm audit",
|
|
45
|
+
"postaudit": "rm package-lock.json"
|
|
46
|
+
},
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git://github.com/ljharb/object-keys.git"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"Object.keys",
|
|
53
|
+
"keys",
|
|
54
|
+
"ES5",
|
|
55
|
+
"shim"
|
|
56
|
+
],
|
|
57
|
+
"dependencies": {},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@ljharb/eslint-config": "^13.1.1",
|
|
60
|
+
"covert": "^1.1.1",
|
|
61
|
+
"eslint": "^5.13.0",
|
|
62
|
+
"foreach": "^2.0.5",
|
|
63
|
+
"indexof": "^0.0.1",
|
|
64
|
+
"is": "^3.3.0",
|
|
65
|
+
"tape": "^4.9.2"
|
|
66
|
+
},
|
|
67
|
+
"testling": {
|
|
68
|
+
"files": "test/index.js",
|
|
69
|
+
"browsers": [
|
|
70
|
+
"iexplore/6.0..latest",
|
|
71
|
+
"firefox/3.0..6.0",
|
|
72
|
+
"firefox/15.0..latest",
|
|
73
|
+
"firefox/nightly",
|
|
74
|
+
"chrome/4.0..10.0",
|
|
75
|
+
"chrome/20.0..latest",
|
|
76
|
+
"chrome/canary",
|
|
77
|
+
"opera/10.0..latest",
|
|
78
|
+
"opera/next",
|
|
79
|
+
"safari/4.0..latest",
|
|
80
|
+
"ipad/6.0..latest",
|
|
81
|
+
"iphone/6.0..latest",
|
|
82
|
+
"android-browser/4.2"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"engines": {
|
|
86
|
+
"node": ">= 0.4"
|
|
87
|
+
}
|
|
118
88
|
}
|
|
@@ -1,61 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"_id": "point-in-polygon@1.1.0",
|
|
4
|
-
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-3ojrFwjnnw8Q9242TzgXuTD+eKiutbzyslcq1ydfu82Db2y+Ogbmyrkpv0Hgj31qwT3lbS9+QAAO/pIQM35XRw==",
|
|
6
|
-
"_location": "/point-in-polygon",
|
|
7
|
-
"_phantomChildren": {},
|
|
8
|
-
"_requested": {
|
|
9
|
-
"type": "range",
|
|
10
|
-
"registry": true,
|
|
11
|
-
"raw": "point-in-polygon@^1.1.0",
|
|
12
|
-
"name": "point-in-polygon",
|
|
13
|
-
"escapedName": "point-in-polygon",
|
|
14
|
-
"rawSpec": "^1.1.0",
|
|
15
|
-
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^1.1.0"
|
|
17
|
-
},
|
|
18
|
-
"_requiredBy": [
|
|
19
|
-
"/concaveman"
|
|
20
|
-
],
|
|
21
|
-
"_resolved": "https://registry.npmjs.org/point-in-polygon/-/point-in-polygon-1.1.0.tgz",
|
|
22
|
-
"_shasum": "b0af2616c01bdee341cbf2894df643387ca03357",
|
|
23
|
-
"_spec": "point-in-polygon@^1.1.0",
|
|
24
|
-
"_where": "/Users/conway/Projects/TAKreg/node_modules/concaveman",
|
|
25
|
-
"author": {
|
|
26
|
-
"name": "James Halliday",
|
|
27
|
-
"email": "mail@substack.net",
|
|
28
|
-
"url": "http://substack.net"
|
|
29
|
-
},
|
|
30
|
-
"bugs": {
|
|
31
|
-
"url": "https://github.com/substack/point-in-polygon/issues"
|
|
32
|
-
},
|
|
33
|
-
"bundleDependencies": false,
|
|
34
|
-
"deprecated": false,
|
|
2
|
+
"name": "point-in-polygon",
|
|
35
3
|
"description": "determine if a point is inside a polygon with a ray intersection counting algorithm",
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"lib": ".",
|
|
41
|
-
"example": "example",
|
|
42
|
-
"test": "test"
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git://github.com/substack/point-in-polygon.git"
|
|
43
8
|
},
|
|
44
|
-
"
|
|
9
|
+
"main": "index.js",
|
|
45
10
|
"keywords": [
|
|
46
11
|
"point",
|
|
47
12
|
"polygon",
|
|
48
13
|
"inside"
|
|
49
14
|
],
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"type": "git",
|
|
55
|
-
"url": "git://github.com/substack/point-in-polygon.git"
|
|
15
|
+
"directories": {
|
|
16
|
+
"lib": ".",
|
|
17
|
+
"example": "example",
|
|
18
|
+
"test": "test"
|
|
56
19
|
},
|
|
57
20
|
"scripts": {
|
|
58
21
|
"test": "tape test/*.js"
|
|
59
22
|
},
|
|
60
|
-
"
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"tape": "^4.0.0"
|
|
25
|
+
},
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"author": {
|
|
28
|
+
"name": "James Halliday",
|
|
29
|
+
"email": "mail@substack.net",
|
|
30
|
+
"url": "http://substack.net"
|
|
31
|
+
}
|
|
61
32
|
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
2
|
+
"name": "polygon-clipping",
|
|
3
|
+
"version": "0.15.3",
|
|
4
|
+
"description": "Apply boolean Polygon clipping operations (intersection, union, difference, xor) to your Polygons & MultiPolygons.",
|
|
5
|
+
"main": "dist/polygon-clipping.cjs.js",
|
|
6
|
+
"module": "dist/polygon-clipping.esm.js",
|
|
7
|
+
"browser": "dist/polygon-clipping.umd.js",
|
|
8
|
+
"types": "dist/polygon-clipping.d.ts",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "rollup -c && cp src/polygon-clipping.d.ts dist/polygon-clipping.d.ts",
|
|
11
|
+
"docs:build": "cd docs && rollup -c --environment NODE_ENV:production",
|
|
12
|
+
"docs:watch": "cd docs && rollup -c -w",
|
|
13
|
+
"docs:start": "cd docs && serve .",
|
|
14
|
+
"docs:dev": "npm-run-all --parallel docs:start docs:watch",
|
|
15
|
+
"docs:lint": "cd docs && eslint --ext .js --ext .vue *config.js src/",
|
|
16
|
+
"lint": "eslint *.config.js src/ test/ bench/",
|
|
17
|
+
"test": "jest",
|
|
18
|
+
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
|
|
19
|
+
"bench": "node bench/bench.js",
|
|
20
|
+
"prepublishOnly": "npm-run-all --serial lint docs:lint test build docs:build bench"
|
|
17
21
|
},
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"/@turf/dissolve",
|
|
21
|
-
"/@turf/intersect",
|
|
22
|
-
"/@turf/mask",
|
|
23
|
-
"/@turf/union"
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
24
|
],
|
|
25
|
-
"_resolved": "https://registry.npmjs.org/polygon-clipping/-/polygon-clipping-0.15.3.tgz",
|
|
26
|
-
"_shasum": "0215840438470ba2e9e6593625e4ea5c1087b4b7",
|
|
27
|
-
"_spec": "polygon-clipping@^0.15.3",
|
|
28
|
-
"_where": "/Users/conway/Projects/TAKreg/node_modules/@turf/difference",
|
|
29
|
-
"author": {
|
|
30
|
-
"name": "Mike Fogel",
|
|
31
|
-
"email": "mike@fogel.ca"
|
|
32
|
-
},
|
|
33
|
-
"browser": "dist/polygon-clipping.umd.js",
|
|
34
25
|
"browserslist": [
|
|
35
26
|
"> 0.25% or not dead"
|
|
36
27
|
],
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
"bundleDependencies": false,
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"splaytree": "^3.1.0"
|
|
28
|
+
"jest": {
|
|
29
|
+
"collectCoverage": true,
|
|
30
|
+
"testEnvironment": "node"
|
|
43
31
|
},
|
|
44
|
-
"
|
|
45
|
-
|
|
32
|
+
"keywords": [
|
|
33
|
+
"polygon",
|
|
34
|
+
"clipping",
|
|
35
|
+
"boolean",
|
|
36
|
+
"intersection",
|
|
37
|
+
"union",
|
|
38
|
+
"difference",
|
|
39
|
+
"xor",
|
|
40
|
+
"geometry",
|
|
41
|
+
"martinez"
|
|
42
|
+
],
|
|
43
|
+
"repository": "github:mfogel/polygon-clipping",
|
|
44
|
+
"author": "Mike Fogel <mike@fogel.ca>",
|
|
45
|
+
"license": "MIT",
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/cli": "^7.12.10",
|
|
48
48
|
"@babel/core": "^7.12.10",
|
|
@@ -68,46 +68,7 @@
|
|
|
68
68
|
"serve": "^11.3.2",
|
|
69
69
|
"vue-template-compiler": "^2.6.12"
|
|
70
70
|
},
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
"homepage": "https://github.com/mfogel/polygon-clipping#readme",
|
|
75
|
-
"jest": {
|
|
76
|
-
"collectCoverage": true,
|
|
77
|
-
"testEnvironment": "node"
|
|
78
|
-
},
|
|
79
|
-
"keywords": [
|
|
80
|
-
"polygon",
|
|
81
|
-
"clipping",
|
|
82
|
-
"boolean",
|
|
83
|
-
"intersection",
|
|
84
|
-
"union",
|
|
85
|
-
"difference",
|
|
86
|
-
"xor",
|
|
87
|
-
"geometry",
|
|
88
|
-
"martinez"
|
|
89
|
-
],
|
|
90
|
-
"license": "MIT",
|
|
91
|
-
"main": "dist/polygon-clipping.cjs.js",
|
|
92
|
-
"module": "dist/polygon-clipping.esm.js",
|
|
93
|
-
"name": "polygon-clipping",
|
|
94
|
-
"repository": {
|
|
95
|
-
"type": "git",
|
|
96
|
-
"url": "git+https://github.com/mfogel/polygon-clipping.git"
|
|
97
|
-
},
|
|
98
|
-
"scripts": {
|
|
99
|
-
"bench": "node bench/bench.js",
|
|
100
|
-
"build": "rollup -c && cp src/polygon-clipping.d.ts dist/polygon-clipping.d.ts",
|
|
101
|
-
"docs:build": "cd docs && rollup -c --environment NODE_ENV:production",
|
|
102
|
-
"docs:dev": "npm-run-all --parallel docs:start docs:watch",
|
|
103
|
-
"docs:lint": "cd docs && eslint --ext .js --ext .vue *config.js src/",
|
|
104
|
-
"docs:start": "cd docs && serve .",
|
|
105
|
-
"docs:watch": "cd docs && rollup -c -w",
|
|
106
|
-
"lint": "eslint *.config.js src/ test/ bench/",
|
|
107
|
-
"prepublishOnly": "npm-run-all --serial lint docs:lint test build docs:build bench",
|
|
108
|
-
"test": "jest",
|
|
109
|
-
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand"
|
|
110
|
-
},
|
|
111
|
-
"types": "dist/polygon-clipping.d.ts",
|
|
112
|
-
"version": "0.15.3"
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"splaytree": "^3.1.0"
|
|
73
|
+
}
|
|
113
74
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"node": true
|
|
4
|
+
},
|
|
5
|
+
"rules": {
|
|
6
|
+
"array-bracket-spacing": [2, "never"],
|
|
7
|
+
"block-scoped-var": 2,
|
|
8
|
+
"brace-style": [2, "1tbs"],
|
|
9
|
+
"camelcase": 1,
|
|
10
|
+
"computed-property-spacing": [2, "never"],
|
|
11
|
+
"curly": 2,
|
|
12
|
+
"eol-last": 2,
|
|
13
|
+
"eqeqeq": [2, "smart"],
|
|
14
|
+
"max-depth": [1, 3],
|
|
15
|
+
"max-len": [1, 80],
|
|
16
|
+
"max-statements": [1, 15],
|
|
17
|
+
"new-cap": 1,
|
|
18
|
+
"no-extend-native": 2,
|
|
19
|
+
"no-mixed-spaces-and-tabs": 2,
|
|
20
|
+
"no-trailing-spaces": 2,
|
|
21
|
+
"no-unused-vars": 1,
|
|
22
|
+
"no-use-before-define": [2, "nofunc"],
|
|
23
|
+
"object-curly-spacing": [2, "never"],
|
|
24
|
+
"quotes": [2, "single", "avoid-escape"],
|
|
25
|
+
"semi": [2, "always"],
|
|
26
|
+
"keyword-spacing": [2, {"before": true, "after": true}],
|
|
27
|
+
"space-unary-ops": 2
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
language: node_js
|
|
2
|
+
node_js:
|
|
3
|
+
- node
|
|
4
|
+
- lts/*
|
|
5
|
+
script:
|
|
6
|
+
- npm run lint
|
|
7
|
+
# test-coverage will also run the tests, but does not print helpful output upon test failure.
|
|
8
|
+
# So we also run the tests separately.
|
|
9
|
+
- npm run test
|
|
10
|
+
- npm run test-coverage && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2016-2018 Rob Wu <rob@robwu.nl>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
9
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
10
|
+
so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# proxy-from-env
|
|
2
|
+
|
|
3
|
+
[](https://travis-ci.org/Rob--W/proxy-from-env)
|
|
4
|
+
[](https://coveralls.io/github/Rob--W/proxy-from-env?branch=master)
|
|
5
|
+
|
|
6
|
+
`proxy-from-env` is a Node.js package that exports a function (`getProxyForUrl`)
|
|
7
|
+
that takes an input URL (a string or
|
|
8
|
+
[`url.parse`](https://nodejs.org/docs/latest/api/url.html#url_url_parsing)'s
|
|
9
|
+
return value) and returns the desired proxy URL (also a string) based on
|
|
10
|
+
standard proxy environment variables. If no proxy is set, an empty string is
|
|
11
|
+
returned.
|
|
12
|
+
|
|
13
|
+
It is your responsibility to actually proxy the request using the given URL.
|
|
14
|
+
|
|
15
|
+
Installation:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install proxy-from-env
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
This example shows how the data for a URL can be fetched via the
|
|
23
|
+
[`http` module](https://nodejs.org/api/http.html), in a proxy-aware way.
|
|
24
|
+
|
|
25
|
+
```javascript
|
|
26
|
+
var http = require('http');
|
|
27
|
+
var parseUrl = require('url').parse;
|
|
28
|
+
var getProxyForUrl = require('proxy-from-env').getProxyForUrl;
|
|
29
|
+
|
|
30
|
+
var some_url = 'http://example.com/something';
|
|
31
|
+
|
|
32
|
+
// // Example, if there is a proxy server at 10.0.0.1:1234, then setting the
|
|
33
|
+
// // http_proxy environment variable causes the request to go through a proxy.
|
|
34
|
+
// process.env.http_proxy = 'http://10.0.0.1:1234';
|
|
35
|
+
//
|
|
36
|
+
// // But if the host to be proxied is listed in NO_PROXY, then the request is
|
|
37
|
+
// // not proxied (but a direct request is made).
|
|
38
|
+
// process.env.no_proxy = 'example.com';
|
|
39
|
+
|
|
40
|
+
var proxy_url = getProxyForUrl(some_url); // <-- Our magic.
|
|
41
|
+
if (proxy_url) {
|
|
42
|
+
// Should be proxied through proxy_url.
|
|
43
|
+
var parsed_some_url = parseUrl(some_url);
|
|
44
|
+
var parsed_proxy_url = parseUrl(proxy_url);
|
|
45
|
+
// A HTTP proxy is quite simple. It is similar to a normal request, except the
|
|
46
|
+
// path is an absolute URL, and the proxied URL's host is put in the header
|
|
47
|
+
// instead of the server's actual host.
|
|
48
|
+
httpOptions = {
|
|
49
|
+
protocol: parsed_proxy_url.protocol,
|
|
50
|
+
hostname: parsed_proxy_url.hostname,
|
|
51
|
+
port: parsed_proxy_url.port,
|
|
52
|
+
path: parsed_some_url.href,
|
|
53
|
+
headers: {
|
|
54
|
+
Host: parsed_some_url.host, // = host name + optional port.
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
} else {
|
|
58
|
+
// Direct request.
|
|
59
|
+
httpOptions = some_url;
|
|
60
|
+
}
|
|
61
|
+
http.get(httpOptions, function(res) {
|
|
62
|
+
var responses = [];
|
|
63
|
+
res.on('data', function(chunk) { responses.push(chunk); });
|
|
64
|
+
res.on('end', function() { console.log(responses.join('')); });
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Environment variables
|
|
70
|
+
The environment variables can be specified in lowercase or uppercase, with the
|
|
71
|
+
lowercase name having precedence over the uppercase variant. A variable that is
|
|
72
|
+
not set has the same meaning as a variable that is set but has no value.
|
|
73
|
+
|
|
74
|
+
### NO\_PROXY
|
|
75
|
+
|
|
76
|
+
`NO_PROXY` is a list of host names (optionally with a port). If the input URL
|
|
77
|
+
matches any of the entries in `NO_PROXY`, then the input URL should be fetched
|
|
78
|
+
by a direct request (i.e. without a proxy).
|
|
79
|
+
|
|
80
|
+
Matching follows the following rules:
|
|
81
|
+
|
|
82
|
+
- `NO_PROXY=*` disables all proxies.
|
|
83
|
+
- Space and commas may be used to separate the entries in the `NO_PROXY` list.
|
|
84
|
+
- If `NO_PROXY` does not contain any entries, then proxies are never disabled.
|
|
85
|
+
- If a port is added after the host name, then the ports must match. If the URL
|
|
86
|
+
does not have an explicit port name, the protocol's default port is used.
|
|
87
|
+
- Generally, the proxy is only disabled if the host name is an exact match for
|
|
88
|
+
an entry in the `NO_PROXY` list. The only exceptions are entries that start
|
|
89
|
+
with a dot or with a wildcard; then the proxy is disabled if the host name
|
|
90
|
+
ends with the entry.
|
|
91
|
+
|
|
92
|
+
See `test.js` for examples of what should match and what does not.
|
|
93
|
+
|
|
94
|
+
### \*\_PROXY
|
|
95
|
+
|
|
96
|
+
The environment variable used for the proxy depends on the protocol of the URL.
|
|
97
|
+
For example, `https://example.com` uses the "https" protocol, and therefore the
|
|
98
|
+
proxy to be used is `HTTPS_PROXY` (_NOT_ `HTTP_PROXY`, which is _only_ used for
|
|
99
|
+
http:-URLs).
|
|
100
|
+
|
|
101
|
+
The library is not limited to http(s), other schemes such as
|
|
102
|
+
`FTP_PROXY` (ftp:),
|
|
103
|
+
`WSS_PROXY` (wss:),
|
|
104
|
+
`WS_PROXY` (ws:)
|
|
105
|
+
are also supported.
|
|
106
|
+
|
|
107
|
+
If present, `ALL_PROXY` is used as fallback if there is no other match.
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## External resources
|
|
111
|
+
The exact way of parsing the environment variables is not codified in any
|
|
112
|
+
standard. This library is designed to be compatible with formats as expected by
|
|
113
|
+
existing software.
|
|
114
|
+
The following resources were used to determine the desired behavior:
|
|
115
|
+
|
|
116
|
+
- cURL:
|
|
117
|
+
https://curl.haxx.se/docs/manpage.html#ENVIRONMENT
|
|
118
|
+
https://github.com/curl/curl/blob/4af40b3646d3b09f68e419f7ca866ff395d1f897/lib/url.c#L4446-L4514
|
|
119
|
+
https://github.com/curl/curl/blob/4af40b3646d3b09f68e419f7ca866ff395d1f897/lib/url.c#L4608-L4638
|
|
120
|
+
|
|
121
|
+
- wget:
|
|
122
|
+
https://www.gnu.org/software/wget/manual/wget.html#Proxies
|
|
123
|
+
http://git.savannah.gnu.org/cgit/wget.git/tree/src/init.c?id=636a5f9a1c508aa39e35a3a8e9e54520a284d93d#n383
|
|
124
|
+
http://git.savannah.gnu.org/cgit/wget.git/tree/src/retr.c?id=93c1517c4071c4288ba5a4b038e7634e4c6b5482#n1278
|
|
125
|
+
|
|
126
|
+
- W3:
|
|
127
|
+
https://www.w3.org/Daemon/User/Proxies/ProxyClients.html
|
|
128
|
+
|
|
129
|
+
- Python's urllib:
|
|
130
|
+
https://github.com/python/cpython/blob/936135bb97fe04223aa30ca6e98eac8f3ed6b349/Lib/urllib/request.py#L755-L782
|
|
131
|
+
https://github.com/python/cpython/blob/936135bb97fe04223aa30ca6e98eac8f3ed6b349/Lib/urllib/request.py#L2444-L2479
|