node-red-contrib-tak-registration 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@turf/jsts/dist/jsts.min.js +1 -1
- package/node_modules/@turf/jsts/dist/jsts.min.js.map +1 -0
- package/node_modules/@turf/jsts/package.json +17 -17
- package/node_modules/@types/geojson/README.md +1 -1
- package/node_modules/@types/geojson/index.d.ts +4 -1
- package/node_modules/@types/geojson/package.json +4 -3
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/node/crypto.d.ts +33 -9
- package/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@types/node/fs/promises.d.ts +16 -5
- package/node_modules/@types/node/fs.d.ts +14 -8
- package/node_modules/@types/node/globals.d.ts +17 -48
- package/node_modules/@types/node/http.d.ts +38 -1
- package/node_modules/@types/node/http2.d.ts +4 -1
- package/node_modules/@types/node/https.d.ts +0 -1
- package/node_modules/@types/node/index.d.ts +8 -10
- package/node_modules/@types/node/module.d.ts +102 -1
- package/node_modules/@types/node/package.json +5 -9
- package/node_modules/@types/node/perf_hooks.d.ts +24 -0
- package/node_modules/@types/node/process.d.ts +61 -10
- package/node_modules/@types/node/readline/promises.d.ts +14 -2
- package/node_modules/@types/node/readline.d.ts +58 -9
- package/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/node/stream/web.d.ts +5 -2
- package/node_modules/@types/node/stream.d.ts +2 -2
- package/node_modules/@types/node/test.d.ts +155 -5
- package/node_modules/@types/node/timers/promises.d.ts +1 -1
- package/node_modules/@types/node/tls.d.ts +6 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +8 -10
- package/node_modules/@types/node/url.d.ts +7 -4
- package/node_modules/@types/node/util.d.ts +80 -10
- package/node_modules/@types/node/v8.d.ts +1 -1
- package/node_modules/@types/node/vm.d.ts +81 -27
- package/node_modules/@types/node/worker_threads.d.ts +34 -1
- package/node_modules/axios/CHANGELOG.md +49 -0
- package/node_modules/axios/README.md +20 -8
- package/node_modules/axios/dist/axios.js +34 -63
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +40 -71
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +40 -71
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +45 -75
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +5 -1
- package/node_modules/axios/index.d.ts +8 -1
- package/node_modules/axios/lib/adapters/http.js +4 -4
- package/node_modules/axios/lib/core/Axios.js +7 -2
- package/node_modules/axios/lib/core/mergeConfig.js +5 -5
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +7 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +12 -65
- package/node_modules/axios/lib/helpers/validator.js +8 -0
- package/node_modules/axios/package.json +3 -3
- package/node_modules/fast-xml-parser/CHANGELOG.md +4 -0
- package/node_modules/fast-xml-parser/README.md +3 -2
- package/node_modules/fast-xml-parser/package.json +1 -1
- package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +21 -17
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +1 -0
- package/node_modules/point-in-polygon-hao/README.md +8 -7
- package/node_modules/point-in-polygon-hao/dist/cjs/index.cjs +322 -0
- package/node_modules/point-in-polygon-hao/dist/esm/index.d.ts +10 -0
- package/node_modules/point-in-polygon-hao/dist/esm/index.js +56 -0
- package/node_modules/point-in-polygon-hao/dist/pointInPolygon.js +286 -42
- package/node_modules/point-in-polygon-hao/dist/pointInPolygon.min.js +1 -1
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/LICENSE +24 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/README.md +82 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/incircle.js +765 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/insphere.js +766 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/orient2d.js +184 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/orient3d.js +462 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/util.js +138 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/index.d.ts +49 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/index.js +5 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/package.json +75 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/incircle.js +908 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/incircle.min.js +1 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/insphere.js +914 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/insphere.min.js +1 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/orient2d.js +280 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/orient2d.min.js +1 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/orient3d.js +601 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/orient3d.min.js +1 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/predicates.js +2328 -0
- package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/predicates.min.js +1 -0
- package/node_modules/point-in-polygon-hao/package.json +24 -20
- package/node_modules/tslib/modules/index.d.ts +1 -0
- package/node_modules/tslib/modules/index.js +2 -0
- package/node_modules/tslib/package.json +1 -1
- package/node_modules/tslib/tslib.d.ts +7 -0
- package/node_modules/tslib/tslib.es6.js +24 -1
- package/node_modules/tslib/tslib.es6.mjs +24 -1
- package/node_modules/tslib/tslib.js +56 -1
- package/node_modules/undici-types/eventsource.d.ts +0 -2
- package/node_modules/undici-types/filereader.d.ts +1 -1
- package/node_modules/undici-types/interceptors.d.ts +3 -1
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +0 -38
- package/node_modules/undici-types/websocket.d.ts +0 -2
- package/node_modules/uuid/CHANGELOG.md +45 -2
- package/node_modules/uuid/README.md +71 -158
- package/node_modules/uuid/dist/cjs/index.d.ts +15 -0
- package/node_modules/uuid/dist/cjs/index.js +31 -0
- package/node_modules/uuid/dist/cjs/max.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/max.js +3 -0
- package/node_modules/uuid/dist/cjs/md5.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/md5.js +13 -0
- package/node_modules/uuid/dist/cjs/native.d.ts +5 -0
- package/node_modules/uuid/dist/cjs/native.js +4 -0
- package/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/nil.js +3 -0
- package/node_modules/uuid/dist/cjs/package.json +1 -0
- package/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/parse.js +11 -0
- package/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/regex.js +3 -0
- package/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/rng.js +13 -0
- package/node_modules/uuid/dist/cjs/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/sha1.js +13 -0
- package/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/cjs/stringify.js +38 -0
- package/node_modules/uuid/dist/cjs/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/parse.test.js +50 -0
- package/node_modules/uuid/dist/cjs/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/rng.test.js +14 -0
- package/node_modules/uuid/dist/cjs/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/stringify.test.js +23 -0
- package/node_modules/uuid/dist/cjs/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/cjs/test/test_constants.js +91 -0
- package/node_modules/uuid/dist/cjs/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v1.test.js +127 -0
- package/node_modules/uuid/dist/cjs/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v35.test.js +143 -0
- package/node_modules/uuid/dist/cjs/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v4.test.js +60 -0
- package/node_modules/uuid/dist/cjs/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v6.test.js +56 -0
- package/node_modules/uuid/dist/cjs/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v7.test.js +194 -0
- package/node_modules/uuid/dist/cjs/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/validate.test.js +13 -0
- package/node_modules/uuid/dist/cjs/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/version.test.js +20 -0
- package/node_modules/uuid/dist/cjs/types.d.ts +21 -0
- package/node_modules/uuid/dist/cjs/types.js +2 -0
- package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
- package/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
- package/node_modules/uuid/dist/cjs/v1.js +78 -0
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
- package/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v3.js +14 -0
- package/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
- package/node_modules/uuid/dist/cjs/v35.js +41 -0
- package/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
- package/node_modules/uuid/dist/cjs/v4.js +23 -0
- package/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v5.js +14 -0
- package/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
- package/node_modules/uuid/dist/cjs/v6.js +19 -0
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
- package/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v7.js +60 -0
- package/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/validate.js +7 -0
- package/node_modules/uuid/dist/cjs/version.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/version.js +10 -0
- package/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
- package/node_modules/uuid/dist/cjs-browser/index.js +31 -0
- package/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/max.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
- package/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/native.js +4 -0
- package/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/package.json +1 -0
- package/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
- package/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
- package/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/cjs-browser/stringify.js +38 -0
- package/node_modules/uuid/dist/cjs-browser/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/parse.test.js +50 -0
- package/node_modules/uuid/dist/cjs-browser/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/rng.test.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/stringify.test.js +23 -0
- package/node_modules/uuid/dist/cjs-browser/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/cjs-browser/test/test_constants.js +91 -0
- package/node_modules/uuid/dist/cjs-browser/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v1.test.js +127 -0
- package/node_modules/uuid/dist/cjs-browser/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v35.test.js +143 -0
- package/node_modules/uuid/dist/cjs-browser/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v4.test.js +60 -0
- package/node_modules/uuid/dist/cjs-browser/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v6.test.js +56 -0
- package/node_modules/uuid/dist/cjs-browser/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v7.test.js +194 -0
- package/node_modules/uuid/dist/cjs-browser/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/validate.test.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/version.test.js +20 -0
- package/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
- package/node_modules/uuid/dist/cjs-browser/types.js +2 -0
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
- package/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
- package/node_modules/uuid/dist/cjs-browser/v1.js +78 -0
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
- package/node_modules/uuid/dist/cjs-browser/v35.js +41 -0
- package/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/v4.js +23 -0
- package/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/v6.js +19 -0
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v7.js +60 -0
- package/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
- package/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/version.js +10 -0
- package/node_modules/uuid/dist/esm/bin/uuid +2 -0
- package/node_modules/uuid/dist/esm/index.d.ts +15 -0
- package/node_modules/uuid/dist/{esm-node → esm}/index.js +1 -1
- package/node_modules/uuid/dist/esm/max.d.ts +2 -0
- package/node_modules/uuid/dist/esm/max.js +1 -0
- package/node_modules/uuid/dist/esm/md5.d.ts +2 -0
- package/node_modules/uuid/dist/esm/md5.js +11 -0
- package/node_modules/uuid/dist/esm/native.d.ts +5 -0
- package/node_modules/uuid/dist/esm/native.js +2 -0
- package/node_modules/uuid/dist/esm/nil.d.ts +2 -0
- package/node_modules/uuid/dist/esm/nil.js +1 -0
- package/node_modules/uuid/dist/esm/parse.d.ts +2 -0
- package/node_modules/uuid/dist/esm/parse.js +9 -0
- package/node_modules/uuid/dist/esm/regex.d.ts +2 -0
- package/node_modules/uuid/dist/{esm-node → esm}/regex.js +1 -1
- package/node_modules/uuid/dist/esm/rng.d.ts +1 -0
- package/node_modules/uuid/dist/esm/rng.js +10 -0
- package/node_modules/uuid/dist/esm/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/esm/sha1.js +11 -0
- package/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/esm/stringify.js +35 -0
- package/node_modules/uuid/dist/esm/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/parse.test.js +48 -0
- package/node_modules/uuid/dist/esm/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/rng.test.js +12 -0
- package/node_modules/uuid/dist/esm/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/stringify.test.js +21 -0
- package/node_modules/uuid/dist/esm/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/esm/test/test_constants.js +88 -0
- package/node_modules/uuid/dist/esm/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v1.test.js +125 -0
- package/node_modules/uuid/dist/esm/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v35.test.js +141 -0
- package/node_modules/uuid/dist/esm/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v4.test.js +58 -0
- package/node_modules/uuid/dist/esm/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v6.test.js +54 -0
- package/node_modules/uuid/dist/esm/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v7.test.js +192 -0
- package/node_modules/uuid/dist/esm/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/validate.test.js +11 -0
- package/node_modules/uuid/dist/esm/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/version.test.js +18 -0
- package/node_modules/uuid/dist/esm/types.d.ts +21 -0
- package/node_modules/uuid/dist/esm/types.js +1 -0
- package/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
- package/node_modules/uuid/dist/esm/v1.d.ts +11 -0
- package/node_modules/uuid/dist/esm/v1.js +75 -0
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
- package/node_modules/uuid/dist/esm/v3.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v3.js +9 -0
- package/node_modules/uuid/dist/esm/v35.d.ts +7 -0
- package/node_modules/uuid/dist/esm/v35.js +36 -0
- package/node_modules/uuid/dist/esm/v4.d.ts +4 -0
- package/node_modules/uuid/dist/esm/v4.js +21 -0
- package/node_modules/uuid/dist/esm/v5.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v5.js +9 -0
- package/node_modules/uuid/dist/esm/v6.d.ts +4 -0
- package/node_modules/uuid/dist/esm/v6.js +17 -0
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
- package/node_modules/uuid/dist/esm/v7.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v7.js +57 -0
- package/node_modules/uuid/dist/esm/validate.d.ts +2 -0
- package/node_modules/uuid/dist/esm/validate.js +5 -0
- package/node_modules/uuid/dist/esm/version.d.ts +2 -0
- package/node_modules/uuid/dist/esm/version.js +8 -0
- package/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
- package/node_modules/uuid/dist/esm-browser/index.js +1 -1
- package/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/max.js +1 -1
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +113 -172
- package/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/native.js +2 -4
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/nil.js +1 -1
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +6 -34
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -1
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.js +8 -14
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/sha1.js +62 -68
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/esm-browser/stringify.js +29 -25
- package/node_modules/uuid/dist/esm-browser/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/parse.test.js +48 -0
- package/node_modules/uuid/dist/esm-browser/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/rng.test.js +12 -0
- package/node_modules/uuid/dist/esm-browser/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/stringify.test.js +21 -0
- package/node_modules/uuid/dist/esm-browser/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/esm-browser/test/test_constants.js +88 -0
- package/node_modules/uuid/dist/esm-browser/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v1.test.js +125 -0
- package/node_modules/uuid/dist/esm-browser/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v35.test.js +141 -0
- package/node_modules/uuid/dist/esm-browser/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v4.test.js +58 -0
- package/node_modules/uuid/dist/esm-browser/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v6.test.js +54 -0
- package/node_modules/uuid/dist/esm-browser/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v7.test.js +192 -0
- package/node_modules/uuid/dist/esm-browser/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/validate.test.js +11 -0
- package/node_modules/uuid/dist/esm-browser/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/version.test.js +18 -0
- package/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
- package/node_modules/uuid/dist/esm-browser/types.js +1 -0
- package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
- package/node_modules/uuid/dist/esm-browser/v1.js +67 -117
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +6 -16
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +8 -3
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
- package/node_modules/uuid/dist/esm-browser/v35.js +28 -47
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/v4.js +15 -19
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v5.js +8 -3
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/v6.js +13 -32
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +5 -15
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v7.js +50 -139
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +2 -2
- package/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/version.js +5 -5
- package/node_modules/uuid/package.json +58 -66
- package/package.json +4 -4
- package/tak-registration.js +1 -4
- package/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/point-in-polygon-hao/.eslintrc +0 -10
- package/node_modules/point-in-polygon-hao/CHANGES.md +0 -8
- package/node_modules/point-in-polygon-hao/FUNDING.yml +0 -2
- package/node_modules/point-in-polygon-hao/dist/pointInPolygon.mjs +0 -76
- package/node_modules/point-in-polygon-hao/rollup.config.js +0 -19
- package/node_modules/point-in-polygon-hao/src/index.js +0 -74
- package/node_modules/uuid/dist/bin/uuid +0 -2
- package/node_modules/uuid/dist/commonjs-browser/index.js +0 -104
- package/node_modules/uuid/dist/commonjs-browser/max.js +0 -7
- package/node_modules/uuid/dist/commonjs-browser/md5.js +0 -200
- package/node_modules/uuid/dist/commonjs-browser/native.js +0 -10
- package/node_modules/uuid/dist/commonjs-browser/nil.js +0 -7
- package/node_modules/uuid/dist/commonjs-browser/parse.js +0 -44
- package/node_modules/uuid/dist/commonjs-browser/regex.js +0 -7
- package/node_modules/uuid/dist/commonjs-browser/rng.js +0 -23
- package/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -82
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -38
- package/node_modules/uuid/dist/commonjs-browser/v1.js +0 -131
- package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +0 -26
- package/node_modules/uuid/dist/commonjs-browser/v3.js +0 -11
- package/node_modules/uuid/dist/commonjs-browser/v35.js +0 -63
- package/node_modules/uuid/dist/commonjs-browser/v4.js +0 -32
- package/node_modules/uuid/dist/commonjs-browser/v5.js +0 -11
- package/node_modules/uuid/dist/commonjs-browser/v6.js +0 -42
- package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +0 -26
- package/node_modules/uuid/dist/commonjs-browser/v7.js +0 -152
- package/node_modules/uuid/dist/commonjs-browser/validate.js +0 -12
- package/node_modules/uuid/dist/commonjs-browser/version.js +0 -15
- package/node_modules/uuid/dist/esm-node/max.js +0 -1
- package/node_modules/uuid/dist/esm-node/md5.js +0 -10
- package/node_modules/uuid/dist/esm-node/native.js +0 -4
- package/node_modules/uuid/dist/esm-node/nil.js +0 -1
- package/node_modules/uuid/dist/esm-node/parse.js +0 -37
- package/node_modules/uuid/dist/esm-node/rng.js +0 -10
- package/node_modules/uuid/dist/esm-node/sha1.js +0 -10
- package/node_modules/uuid/dist/esm-node/stringify.js +0 -31
- package/node_modules/uuid/dist/esm-node/v1.js +0 -125
- package/node_modules/uuid/dist/esm-node/v1ToV6.js +0 -20
- package/node_modules/uuid/dist/esm-node/v3.js +0 -4
- package/node_modules/uuid/dist/esm-node/v35.js +0 -55
- package/node_modules/uuid/dist/esm-node/v4.js +0 -25
- package/node_modules/uuid/dist/esm-node/v5.js +0 -4
- package/node_modules/uuid/dist/esm-node/v6.js +0 -32
- package/node_modules/uuid/dist/esm-node/v6ToV1.js +0 -20
- package/node_modules/uuid/dist/esm-node/v7.js +0 -146
- package/node_modules/uuid/dist/esm-node/validate.js +0 -5
- package/node_modules/uuid/dist/esm-node/version.js +0 -8
- package/node_modules/uuid/dist/index.js +0 -104
- package/node_modules/uuid/dist/max.js +0 -7
- package/node_modules/uuid/dist/md5-browser.js +0 -200
- package/node_modules/uuid/dist/md5.js +0 -17
- package/node_modules/uuid/dist/native-browser.js +0 -10
- package/node_modules/uuid/dist/native.js +0 -11
- package/node_modules/uuid/dist/nil.js +0 -7
- package/node_modules/uuid/dist/parse.js +0 -44
- package/node_modules/uuid/dist/regex.js +0 -7
- package/node_modules/uuid/dist/rng-browser.js +0 -23
- package/node_modules/uuid/dist/rng.js +0 -17
- package/node_modules/uuid/dist/sha1-browser.js +0 -82
- package/node_modules/uuid/dist/sha1.js +0 -17
- package/node_modules/uuid/dist/stringify.js +0 -38
- package/node_modules/uuid/dist/uuid-bin.js +0 -75
- package/node_modules/uuid/dist/v1.js +0 -131
- package/node_modules/uuid/dist/v1ToV6.js +0 -26
- package/node_modules/uuid/dist/v3.js +0 -11
- package/node_modules/uuid/dist/v35.js +0 -63
- package/node_modules/uuid/dist/v4.js +0 -32
- package/node_modules/uuid/dist/v5.js +0 -11
- package/node_modules/uuid/dist/v6.js +0 -38
- package/node_modules/uuid/dist/v6ToV1.js +0 -26
- package/node_modules/uuid/dist/v7.js +0 -152
- package/node_modules/uuid/dist/validate.js +0 -12
- package/node_modules/uuid/dist/version.js +0 -15
- package/node_modules/uuid/wrapper.mjs +0 -15
- /package/node_modules/point-in-polygon-hao/{index.d.ts → dist/cjs/index.d.cts} +0 -0
|
@@ -230,16 +230,23 @@ declare module "vm" {
|
|
|
230
230
|
*/
|
|
231
231
|
runInContext(contextifiedObject: Context, options?: RunningScriptOptions): any;
|
|
232
232
|
/**
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
233
|
+
* This method is a shortcut to `script.runInContext(vm.createContext(options), options)`.
|
|
234
|
+
* It does several things at once:
|
|
235
|
+
*
|
|
236
|
+
* 1. Creates a new context.
|
|
237
|
+
* 2. If `contextObject` is an object, contextifies it with the new context.
|
|
238
|
+
* If `contextObject` is undefined, creates a new object and contextifies it.
|
|
239
|
+
* If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
|
|
240
|
+
* 3. Runs the compiled code contained by the `vm.Script` object within the created context. The code
|
|
241
|
+
* does not have access to the scope in which this method is called.
|
|
242
|
+
* 4. Returns the result.
|
|
236
243
|
*
|
|
237
244
|
* The following example compiles code that sets a global variable, then executes
|
|
238
245
|
* the code multiple times in different contexts. The globals are set on and
|
|
239
246
|
* contained within each individual `context`.
|
|
240
247
|
*
|
|
241
248
|
* ```js
|
|
242
|
-
*
|
|
249
|
+
* const vm = require('node:vm');
|
|
243
250
|
*
|
|
244
251
|
* const script = new vm.Script('globalVar = "set"');
|
|
245
252
|
*
|
|
@@ -250,12 +257,22 @@ declare module "vm" {
|
|
|
250
257
|
*
|
|
251
258
|
* console.log(contexts);
|
|
252
259
|
* // Prints: [{ globalVar: 'set' }, { globalVar: 'set' }, { globalVar: 'set' }]
|
|
260
|
+
*
|
|
261
|
+
* // This would throw if the context is created from a contextified object.
|
|
262
|
+
* // vm.constants.DONT_CONTEXTIFY allows creating contexts with ordinary
|
|
263
|
+
* // global objects that can be frozen.
|
|
264
|
+
* const freezeScript = new vm.Script('Object.freeze(globalThis); globalThis;');
|
|
265
|
+
* const frozenContext = freezeScript.runInNewContext(vm.constants.DONT_CONTEXTIFY);
|
|
253
266
|
* ```
|
|
254
267
|
* @since v0.3.1
|
|
255
|
-
* @param contextObject
|
|
268
|
+
* @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
|
|
269
|
+
* If `undefined`, an empty contextified object will be created for backwards compatibility.
|
|
256
270
|
* @return the result of the very last statement executed in the script.
|
|
257
271
|
*/
|
|
258
|
-
runInNewContext(
|
|
272
|
+
runInNewContext(
|
|
273
|
+
contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
|
|
274
|
+
options?: RunningScriptInNewContextOptions,
|
|
275
|
+
): any;
|
|
259
276
|
/**
|
|
260
277
|
* Runs the compiled code contained by the `vm.Script` within the context of the
|
|
261
278
|
* current `global` object. Running code does not have access to local scope, but _does_ have access to the current `global` object.
|
|
@@ -347,17 +364,17 @@ declare module "vm" {
|
|
|
347
364
|
sourceMapURL?: string | undefined;
|
|
348
365
|
}
|
|
349
366
|
/**
|
|
350
|
-
* If given
|
|
367
|
+
* If the given `contextObject` is an object, the `vm.createContext()` method will
|
|
351
368
|
* [prepare that object](https://nodejs.org/docs/latest-v22.x/api/vm.html#what-does-it-mean-to-contextify-an-object)
|
|
352
|
-
* and return a reference to it so that it can be used in
|
|
353
|
-
* [`script.runInContext()`](https://nodejs.org/docs/latest-v22.x/api/vm.html#scriptrunincontextcontextifiedobject-options).
|
|
354
|
-
* scripts, the
|
|
355
|
-
* existing properties but also having the built-in objects and functions any
|
|
356
|
-
*
|
|
369
|
+
* and return a reference to it so that it can be used in calls to {@link runInContext} or
|
|
370
|
+
* [`script.runInContext()`](https://nodejs.org/docs/latest-v22.x/api/vm.html#scriptrunincontextcontextifiedobject-options).
|
|
371
|
+
* Inside such scripts, the global object will be wrapped by the `contextObject`, retaining all of its
|
|
372
|
+
* existing properties but also having the built-in objects and functions any standard
|
|
373
|
+
* [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global
|
|
357
374
|
* variables will remain unchanged.
|
|
358
375
|
*
|
|
359
376
|
* ```js
|
|
360
|
-
*
|
|
377
|
+
* const vm = require('node:vm');
|
|
361
378
|
*
|
|
362
379
|
* global.globalVar = 3;
|
|
363
380
|
*
|
|
@@ -374,7 +391,12 @@ declare module "vm" {
|
|
|
374
391
|
* ```
|
|
375
392
|
*
|
|
376
393
|
* If `contextObject` is omitted (or passed explicitly as `undefined`), a new,
|
|
377
|
-
* empty
|
|
394
|
+
* empty contextified object will be returned.
|
|
395
|
+
*
|
|
396
|
+
* When the global object in the newly created context is contextified, it has some quirks
|
|
397
|
+
* compared to ordinary global objects. For example, it cannot be frozen. To create a context
|
|
398
|
+
* without the contextifying quirks, pass `vm.constants.DONT_CONTEXTIFY` as the `contextObject`
|
|
399
|
+
* argument. See the documentation of `vm.constants.DONT_CONTEXTIFY` for details.
|
|
378
400
|
*
|
|
379
401
|
* The `vm.createContext()` method is primarily useful for creating a single
|
|
380
402
|
* context that can be used to run multiple scripts. For instance, if emulating a
|
|
@@ -385,11 +407,17 @@ declare module "vm" {
|
|
|
385
407
|
* The provided `name` and `origin` of the context are made visible through the
|
|
386
408
|
* Inspector API.
|
|
387
409
|
* @since v0.3.1
|
|
410
|
+
* @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
|
|
411
|
+
* If `undefined`, an empty contextified object will be created for backwards compatibility.
|
|
388
412
|
* @return contextified object.
|
|
389
413
|
*/
|
|
390
|
-
function createContext(
|
|
414
|
+
function createContext(
|
|
415
|
+
contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
|
|
416
|
+
options?: CreateContextOptions,
|
|
417
|
+
): Context;
|
|
391
418
|
/**
|
|
392
|
-
* Returns `true` if the given `object` object has been
|
|
419
|
+
* Returns `true` if the given `object` object has been contextified using {@link createContext},
|
|
420
|
+
* or if it's the global object of a context created using `vm.constants.DONT_CONTEXTIFY`.
|
|
393
421
|
* @since v0.11.7
|
|
394
422
|
*/
|
|
395
423
|
function isContext(sandbox: Context): boolean;
|
|
@@ -422,18 +450,26 @@ declare module "vm" {
|
|
|
422
450
|
*/
|
|
423
451
|
function runInContext(code: string, contextifiedObject: Context, options?: RunningCodeOptions | string): any;
|
|
424
452
|
/**
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
* runs it within the created context, then returns the result. Running code
|
|
428
|
-
* does not have access to the local scope.
|
|
429
|
-
*
|
|
453
|
+
* This method is a shortcut to
|
|
454
|
+
* `(new vm.Script(code, options)).runInContext(vm.createContext(options), options)`.
|
|
430
455
|
* If `options` is a string, then it specifies the filename.
|
|
431
456
|
*
|
|
457
|
+
* It does several things at once:
|
|
458
|
+
*
|
|
459
|
+
* 1. Creates a new context.
|
|
460
|
+
* 2. If `contextObject` is an object, contextifies it with the new context.
|
|
461
|
+
* If `contextObject` is undefined, creates a new object and contextifies it.
|
|
462
|
+
* If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
|
|
463
|
+
* 3. Compiles the code as a`vm.Script`
|
|
464
|
+
* 4. Runs the compield code within the created context. The code does not have access to the scope in
|
|
465
|
+
* which this method is called.
|
|
466
|
+
* 5. Returns the result.
|
|
467
|
+
*
|
|
432
468
|
* The following example compiles and executes code that increments a global
|
|
433
469
|
* variable and sets a new one. These globals are contained in the `contextObject`.
|
|
434
470
|
*
|
|
435
471
|
* ```js
|
|
436
|
-
*
|
|
472
|
+
* const vm = require('node:vm');
|
|
437
473
|
*
|
|
438
474
|
* const contextObject = {
|
|
439
475
|
* animal: 'cat',
|
|
@@ -443,15 +479,21 @@ declare module "vm" {
|
|
|
443
479
|
* vm.runInNewContext('count += 1; name = "kitty"', contextObject);
|
|
444
480
|
* console.log(contextObject);
|
|
445
481
|
* // Prints: { animal: 'cat', count: 3, name: 'kitty' }
|
|
482
|
+
*
|
|
483
|
+
* // This would throw if the context is created from a contextified object.
|
|
484
|
+
* // vm.constants.DONT_CONTEXTIFY allows creating contexts with ordinary global objects that
|
|
485
|
+
* // can be frozen.
|
|
486
|
+
* const frozenContext = vm.runInNewContext('Object.freeze(globalThis); globalThis;', vm.constants.DONT_CONTEXTIFY);
|
|
446
487
|
* ```
|
|
447
488
|
* @since v0.3.1
|
|
448
489
|
* @param code The JavaScript code to compile and run.
|
|
449
|
-
* @param contextObject
|
|
490
|
+
* @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
|
|
491
|
+
* If `undefined`, an empty contextified object will be created for backwards compatibility.
|
|
450
492
|
* @return the result of the very last statement executed in the script.
|
|
451
493
|
*/
|
|
452
494
|
function runInNewContext(
|
|
453
495
|
code: string,
|
|
454
|
-
contextObject?: Context,
|
|
496
|
+
contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
|
|
455
497
|
options?: RunningCodeInNewContextOptions | string,
|
|
456
498
|
): any;
|
|
457
499
|
/**
|
|
@@ -902,19 +944,31 @@ declare module "vm" {
|
|
|
902
944
|
}
|
|
903
945
|
/**
|
|
904
946
|
* Returns an object containing commonly used constants for VM operations.
|
|
905
|
-
* @since v20.12.0
|
|
947
|
+
* @since v21.7.0, v20.12.0
|
|
906
948
|
*/
|
|
907
949
|
namespace constants {
|
|
908
950
|
/**
|
|
909
|
-
* Stability: 1.1 - Active development
|
|
910
|
-
*
|
|
911
951
|
* A constant that can be used as the `importModuleDynamically` option to `vm.Script`
|
|
912
952
|
* and `vm.compileFunction()` so that Node.js uses the default ESM loader from the main
|
|
913
953
|
* context to load the requested module.
|
|
914
954
|
*
|
|
915
955
|
* For detailed information, see [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
|
|
956
|
+
* @since v21.7.0, v20.12.0
|
|
916
957
|
*/
|
|
917
958
|
const USE_MAIN_CONTEXT_DEFAULT_LOADER: number;
|
|
959
|
+
/**
|
|
960
|
+
* This constant, when used as the `contextObject` argument in vm APIs, instructs Node.js to create
|
|
961
|
+
* a context without wrapping its global object with another object in a Node.js-specific manner.
|
|
962
|
+
* As a result, the `globalThis` value inside the new context would behave more closely to an ordinary
|
|
963
|
+
* one.
|
|
964
|
+
*
|
|
965
|
+
* When `vm.constants.DONT_CONTEXTIFY` is used as the `contextObject` argument to {@link createContext},
|
|
966
|
+
* the returned object is a proxy-like object to the global object in the newly created context with
|
|
967
|
+
* fewer Node.js-specific quirks. It is reference equal to the `globalThis` value in the new context,
|
|
968
|
+
* can be modified from outside the context, and can be used to access built-ins in the new context directly.
|
|
969
|
+
* @since v22.8.0
|
|
970
|
+
*/
|
|
971
|
+
const DONT_CONTEXTIFY: number;
|
|
918
972
|
}
|
|
919
973
|
}
|
|
920
974
|
declare module "node:vm" {
|
|
@@ -267,7 +267,7 @@ declare module "worker_threads" {
|
|
|
267
267
|
trackUnmanagedFds?: boolean | undefined;
|
|
268
268
|
/**
|
|
269
269
|
* An optional `name` to be appended to the worker title
|
|
270
|
-
* for
|
|
270
|
+
* for debugging/identification purposes, making the final title as
|
|
271
271
|
* `[worker ${id}] ${name}`.
|
|
272
272
|
*/
|
|
273
273
|
name?: string | undefined;
|
|
@@ -594,6 +594,39 @@ declare module "worker_threads" {
|
|
|
594
594
|
* @since v14.5.0, v12.19.0
|
|
595
595
|
*/
|
|
596
596
|
function markAsUntransferable(object: object): void;
|
|
597
|
+
/**
|
|
598
|
+
* Check if an object is marked as not transferable with
|
|
599
|
+
* {@link markAsUntransferable}.
|
|
600
|
+
* @since v21.0.0
|
|
601
|
+
*/
|
|
602
|
+
function isMarkedAsUntransferable(object: object): boolean;
|
|
603
|
+
/**
|
|
604
|
+
* Mark an object as not cloneable. If `object` is used as `message` in
|
|
605
|
+
* a `port.postMessage()` call, an error is thrown. This is a no-op if `object` is a
|
|
606
|
+
* primitive value.
|
|
607
|
+
*
|
|
608
|
+
* This has no effect on `ArrayBuffer`, or any `Buffer` like objects.
|
|
609
|
+
*
|
|
610
|
+
* This operation cannot be undone.
|
|
611
|
+
*
|
|
612
|
+
* ```js
|
|
613
|
+
* const { markAsUncloneable } = require('node:worker_threads');
|
|
614
|
+
*
|
|
615
|
+
* const anyObject = { foo: 'bar' };
|
|
616
|
+
* markAsUncloneable(anyObject);
|
|
617
|
+
* const { port1 } = new MessageChannel();
|
|
618
|
+
* try {
|
|
619
|
+
* // This will throw an error, because anyObject is not cloneable.
|
|
620
|
+
* port1.postMessage(anyObject)
|
|
621
|
+
* } catch (error) {
|
|
622
|
+
* // error.name === 'DataCloneError'
|
|
623
|
+
* }
|
|
624
|
+
* ```
|
|
625
|
+
*
|
|
626
|
+
* There is no equivalent to this API in browsers.
|
|
627
|
+
* @since v22.10.0
|
|
628
|
+
*/
|
|
629
|
+
function markAsUncloneable(object: object): void;
|
|
597
630
|
/**
|
|
598
631
|
* Transfer a `MessagePort` to a different `vm` Context. The original `port` object is rendered unusable, and the returned `MessagePort` instance
|
|
599
632
|
* takes its place.
|
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.7.9](https://github.com/axios/axios/compare/v1.7.8...v1.7.9) (2024-12-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Reverts
|
|
7
|
+
|
|
8
|
+
* Revert "fix(types): export CJS types from ESM (#6218)" (#6729) ([c44d2f2](https://github.com/axios/axios/commit/c44d2f2316ad289b38997657248ba10de11deb6c)), closes [#6218](https://github.com/axios/axios/issues/6218) [#6729](https://github.com/axios/axios/issues/6729)
|
|
9
|
+
|
|
10
|
+
### Contributors to this release
|
|
11
|
+
|
|
12
|
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+596/-108 (#6729 )")
|
|
13
|
+
|
|
14
|
+
## [1.7.8](https://github.com/axios/axios/compare/v1.7.7...v1.7.8) (2024-11-25)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* allow passing a callback as paramsSerializer to buildURL ([#6680](https://github.com/axios/axios/issues/6680)) ([eac4619](https://github.com/axios/axios/commit/eac4619fe2e0926e876cd260ee21e3690381dbb5))
|
|
20
|
+
* **core:** fixed config merging bug ([#6668](https://github.com/axios/axios/issues/6668)) ([5d99fe4](https://github.com/axios/axios/commit/5d99fe4491202a6268c71e5dcc09192359d73cea))
|
|
21
|
+
* fixed width form to not shrink after 'Send Request' button is clicked ([#6644](https://github.com/axios/axios/issues/6644)) ([7ccd5fd](https://github.com/axios/axios/commit/7ccd5fd42402102d38712c32707bf055be72ab54))
|
|
22
|
+
* **http:** add support for File objects as payload in http adapter ([#6588](https://github.com/axios/axios/issues/6588)) ([#6605](https://github.com/axios/axios/issues/6605)) ([6841d8d](https://github.com/axios/axios/commit/6841d8d18ddc71cc1bd202ffcfddb3f95622eef3))
|
|
23
|
+
* **http:** fixed proxy-from-env module import ([#5222](https://github.com/axios/axios/issues/5222)) ([12b3295](https://github.com/axios/axios/commit/12b32957f1258aee94ef859809ed39f8f88f9dfa))
|
|
24
|
+
* **http:** use `globalThis.TextEncoder` when available ([#6634](https://github.com/axios/axios/issues/6634)) ([df956d1](https://github.com/axios/axios/commit/df956d18febc9100a563298dfdf0f102c3d15410))
|
|
25
|
+
* ios11 breaks when build ([#6608](https://github.com/axios/axios/issues/6608)) ([7638952](https://github.com/axios/axios/commit/763895270f7b50c7c780c3c9807ae8635de952cd))
|
|
26
|
+
* **types:** add missing types for mergeConfig function ([#6590](https://github.com/axios/axios/issues/6590)) ([00de614](https://github.com/axios/axios/commit/00de614cd07b7149af335e202aef0e076c254f49))
|
|
27
|
+
* **types:** export CJS types from ESM ([#6218](https://github.com/axios/axios/issues/6218)) ([c71811b](https://github.com/axios/axios/commit/c71811b00f2fcff558e4382ba913bdac4ad7200e))
|
|
28
|
+
* updated stream aborted error message to be more clear ([#6615](https://github.com/axios/axios/issues/6615)) ([cc3217a](https://github.com/axios/axios/commit/cc3217a612024d83a663722a56d7a98d8759c6d5))
|
|
29
|
+
* use URL API instead of DOM to fix a potential vulnerability warning; ([#6714](https://github.com/axios/axios/issues/6714)) ([0a8d6e1](https://github.com/axios/axios/commit/0a8d6e19da5b9899a2abafaaa06a75ee548597db))
|
|
30
|
+
|
|
31
|
+
### Contributors to this release
|
|
32
|
+
|
|
33
|
+
- <img src="https://avatars.githubusercontent.com/u/779047?v=4&s=18" alt="avatar" width="18"/> [Remco Haszing](https://github.com/remcohaszing "+108/-596 (#6218 )")
|
|
34
|
+
- <img src="https://avatars.githubusercontent.com/u/4814473?v=4&s=18" alt="avatar" width="18"/> [Jay](https://github.com/jasonsaayman "+281/-19 (#6640 #6619 )")
|
|
35
|
+
- <img src="https://avatars.githubusercontent.com/u/140250471?v=4&s=18" alt="avatar" width="18"/> [Aayush Yadav](https://github.com/aayushyadav020 "+124/-111 (#6617 )")
|
|
36
|
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+12/-65 (#6714 )")
|
|
37
|
+
- <img src="https://avatars.githubusercontent.com/u/479715?v=4&s=18" alt="avatar" width="18"/> [Ell Bradshaw](https://github.com/cincodenada "+29/-0 (#6489 )")
|
|
38
|
+
- <img src="https://avatars.githubusercontent.com/u/60218780?v=4&s=18" alt="avatar" width="18"/> [Amit Saini](https://github.com/amitsainii "+13/-3 (#5237 )")
|
|
39
|
+
- <img src="https://avatars.githubusercontent.com/u/19817867?v=4&s=18" alt="avatar" width="18"/> [Tommaso Paulon](https://github.com/guuido "+14/-1 (#6680 )")
|
|
40
|
+
- <img src="https://avatars.githubusercontent.com/u/63336443?v=4&s=18" alt="avatar" width="18"/> [Akki](https://github.com/Aakash-Rana "+5/-5 (#6668 )")
|
|
41
|
+
- <img src="https://avatars.githubusercontent.com/u/20028934?v=4&s=18" alt="avatar" width="18"/> [Sampo Silvennoinen](https://github.com/stscoundrel "+3/-3 (#6633 )")
|
|
42
|
+
- <img src="https://avatars.githubusercontent.com/u/1174718?v=4&s=18" alt="avatar" width="18"/> [Kasper Isager Dalsgarð](https://github.com/kasperisager "+2/-2 (#6634 )")
|
|
43
|
+
- <img src="https://avatars.githubusercontent.com/u/3709715?v=4&s=18" alt="avatar" width="18"/> [Christian Clauss](https://github.com/cclauss "+4/-0 (#6683 )")
|
|
44
|
+
- <img src="https://avatars.githubusercontent.com/u/1639119?v=4&s=18" alt="avatar" width="18"/> [Pavan Welihinda](https://github.com/pavan168 "+2/-2 (#5222 )")
|
|
45
|
+
- <img src="https://avatars.githubusercontent.com/u/5742900?v=4&s=18" alt="avatar" width="18"/> [Taylor Flatt](https://github.com/taylorflatt "+2/-2 (#6615 )")
|
|
46
|
+
- <img src="https://avatars.githubusercontent.com/u/79452224?v=4&s=18" alt="avatar" width="18"/> [Kenzo Wada](https://github.com/Kenzo-Wada "+2/-2 (#6608 )")
|
|
47
|
+
- <img src="https://avatars.githubusercontent.com/u/50064240?v=4&s=18" alt="avatar" width="18"/> [Ngole Lawson](https://github.com/echelonnought "+3/-0 (#6644 )")
|
|
48
|
+
- <img src="https://avatars.githubusercontent.com/u/1262198?v=4&s=18" alt="avatar" width="18"/> [Haven](https://github.com/Baoyx007 "+3/-0 (#6590 )")
|
|
49
|
+
- <img src="https://avatars.githubusercontent.com/u/149003676?v=4&s=18" alt="avatar" width="18"/> [Shrivali Dutt](https://github.com/shrivalidutt "+1/-1 (#6637 )")
|
|
50
|
+
- <img src="https://avatars.githubusercontent.com/u/1304290?v=4&s=18" alt="avatar" width="18"/> [Henco Appel](https://github.com/hencoappel "+1/-1 (#6605 )")
|
|
51
|
+
|
|
3
52
|
## [1.7.7](https://github.com/axios/axios/compare/v1.7.6...v1.7.7) (2024-08-31)
|
|
4
53
|
|
|
5
54
|
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
<h3 align="center"> 🥇 Gold sponsors <br> </h3> <table align="center" width="100%"><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://
|
|
3
|
-
</td><td align="center" width="33.333333333333336%"> <a href="https://
|
|
4
|
-
</td><td align="center" width="33.333333333333336%"> <a href="https://www.
|
|
5
|
-
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://
|
|
6
|
-
</td><td align="center" width="33.333333333333336%"> <a href="https://
|
|
2
|
+
<h3 align="center"> 🥇 Gold sponsors <br> </h3> <table align="center" width="100%"><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://stytch.com/?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http" style="padding: 10px; display: inline-block"> <picture> <source width="200px" height="38px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/stytch_white.png"> <img width="200px" height="38px" src="https://axios-http.com/assets/sponsors/stytch.png" alt="Stytch"/> </picture> </a> <p align="center" title="API-first authentication, authorization, and fraud prevention">API-first authentication, authorization, and fraud prevention</p> <p align="center"> <a href="https://stytch.com/?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http"><b>Website</b></a> | <a href="https://stytch.com/docs?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=docs-link&utm_campaign=axios-http"><b>Documentation</b></a> | <a href="https://github.com/stytchauth/stytch-node?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=node-sdk&utm_campaign=axios-http"><b>Node.js</b></a> </p>
|
|
3
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://www.principal.com/about-us?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="133px" height="43px" src="https://axios-http.com/assets/sponsors/principal.svg" alt="Principal Financial Group"/> </a> <p align="center" title="We’re bound by one common purpose: to give you the financial tools, resources and information you need to live your best life.">We’re bound by one common purpose: to give you the financial tools, resources and information you ne...</p> <p align="center"> <a href="https://www.principal.com/about-us?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>www.principal.com</b></a> </p>
|
|
4
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" style="padding: 10px; display: inline-block"> <picture> <source width="200px" height="52px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/descope_white.png"> <img width="200px" height="52px" src="https://axios-http.com/assets/sponsors/descope.png" alt="Descope"/> </picture> </a> <p align="center" title="Hi, we're Descope! We are building something in the authentication space for app developers and can’t wait to place it in your hands.">Hi, we're Descope! We are building something in the authentication space for app developers and...</p> <p align="center"> <a href="https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"><b>Website</b></a> | <a href="https://docs.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"><b>Documentation</b></a> | <a href="https://www.descope.com/community?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"><b>Community</b></a> </p>
|
|
5
|
+
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://buzzoid.com/buy-instagram-followers/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="62px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/buzzoid-buy-instagram-followers.png" alt="Buzzoid - Buy Instagram Followers"/> </a> <p align="center" title="At Buzzoid, you can buy Instagram followers quickly, safely, and easily with just a few clicks. Rated world's #1 IG service since 2012.">At Buzzoid, you can buy Instagram followers quickly, safely, and easily with just a few clicks. Rate...</p> <p align="center"> <a href="https://buzzoid.com/buy-instagram-followers/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>buzzoid.com</b></a> </p>
|
|
6
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://www.famety.com/buy-tiktok-likes?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/famety-buy-instagram-followers.png" alt="Famety - Buy Instagram Followers"/> </a> <p align="center" title="At Famety, you can grow your social media following quickly, safely, and easily with just a few clicks. Rated the world’s #1 social media service since 2013.">At Famety, you can grow your social media following quickly, safely, and easily with just a few clic...</p> <p align="center"> <a href="https://www.famety.com/buy-tiktok-likes?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>www.famety.com</b></a> </p>
|
|
7
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://poprey.com/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/instagram-likes.png" alt="Poprey - Buy Instagram Likes"/> </a> <p align="center" title="Buy Instagram Likes">Buy Instagram Likes</p> <p align="center"> <a href="https://poprey.com/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship"><b>poprey.com</b></a> </p>
|
|
8
|
+
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute">💜 Become a sponsor</a>
|
|
9
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute">💜 Become a sponsor</a>
|
|
10
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute">💜 Become a sponsor</a>
|
|
7
11
|
</td></tr></table>
|
|
8
12
|
|
|
9
13
|
<!--<div>marker</div>-->
|
|
@@ -97,8 +101,8 @@
|
|
|
97
101
|
|
|
98
102
|
## Browser Support
|
|
99
103
|
|
|
100
|
-
 |  |  |  |  |
|
|
101
|
-
--- | --- | --- | --- | --- |
|
|
104
|
+
 |  |  |  |  |
|
|
105
|
+
--- | --- | --- | --- | --- |
|
|
102
106
|
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
|
|
103
107
|
|
|
104
108
|
[](https://saucelabs.com/u/axios)
|
|
@@ -153,6 +157,12 @@ const axios = require('axios');
|
|
|
153
157
|
console.log(axios.isCancel('something'));
|
|
154
158
|
```
|
|
155
159
|
|
|
160
|
+
For some bundlers and some ES6 linter's you may need to do the following:
|
|
161
|
+
|
|
162
|
+
```js
|
|
163
|
+
import { default as axios } from 'axios';
|
|
164
|
+
```
|
|
165
|
+
|
|
156
166
|
For cases where something went wrong when trying to import a module into a custom or legacy environment,
|
|
157
167
|
you can try importing the module package directly:
|
|
158
168
|
|
|
@@ -759,7 +769,7 @@ axios.interceptors.request.use(function (config) {
|
|
|
759
769
|
```
|
|
760
770
|
|
|
761
771
|
If you want to execute a particular interceptor based on a runtime check,
|
|
762
|
-
you can add a `runWhen` function to the options object. The interceptor will not be executed **if and only if** the return
|
|
772
|
+
you can add a `runWhen` function to the options object. The request interceptor will not be executed **if and only if** the return
|
|
763
773
|
of `runWhen` is `false`. The function will be called with the config
|
|
764
774
|
object (don't forget that you can bind your own arguments to it as well.) This can be handy when you have an
|
|
765
775
|
asynchronous request interceptor that only needs to run at certain times.
|
|
@@ -774,6 +784,8 @@ axios.interceptors.request.use(function (config) {
|
|
|
774
784
|
}, null, { runWhen: onGetCall });
|
|
775
785
|
```
|
|
776
786
|
|
|
787
|
+
> **Note:** options parameter(having `synchronous` and `runWhen` properties) is only supported for request interceptors at the moment.
|
|
788
|
+
|
|
777
789
|
### Multiple Interceptors
|
|
778
790
|
|
|
779
791
|
Given you add multiple response interceptors
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Axios v1.7.
|
|
1
|
+
// Axios v1.7.9 Copyright (c) 2024 Matt Zabriskie and contributors
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -1735,7 +1735,7 @@
|
|
|
1735
1735
|
*
|
|
1736
1736
|
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
1737
1737
|
* @param {object} [params] The params to be appended
|
|
1738
|
-
* @param {?object} options
|
|
1738
|
+
* @param {?(object|Function)} options
|
|
1739
1739
|
*
|
|
1740
1740
|
* @returns {string} The formatted url
|
|
1741
1741
|
*/
|
|
@@ -1745,6 +1745,11 @@
|
|
|
1745
1745
|
return url;
|
|
1746
1746
|
}
|
|
1747
1747
|
var _encode = options && options.encode || encode;
|
|
1748
|
+
if (utils$1.isFunction(options)) {
|
|
1749
|
+
options = {
|
|
1750
|
+
serialize: options
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1748
1753
|
var serializeFn = options && options.serialize;
|
|
1749
1754
|
var serializedParams;
|
|
1750
1755
|
if (serializeFn) {
|
|
@@ -2642,60 +2647,14 @@
|
|
|
2642
2647
|
};
|
|
2643
2648
|
};
|
|
2644
2649
|
|
|
2645
|
-
var isURLSameOrigin = platform.hasStandardBrowserEnv ?
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
var msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
|
|
2650
|
-
var urlParsingNode = document.createElement('a');
|
|
2651
|
-
var originURL;
|
|
2652
|
-
|
|
2653
|
-
/**
|
|
2654
|
-
* Parse a URL to discover its components
|
|
2655
|
-
*
|
|
2656
|
-
* @param {String} url The URL to be parsed
|
|
2657
|
-
* @returns {Object}
|
|
2658
|
-
*/
|
|
2659
|
-
function resolveURL(url) {
|
|
2660
|
-
var href = url;
|
|
2661
|
-
if (msie) {
|
|
2662
|
-
// IE needs attribute set twice to normalize properties
|
|
2663
|
-
urlParsingNode.setAttribute('href', href);
|
|
2664
|
-
href = urlParsingNode.href;
|
|
2665
|
-
}
|
|
2666
|
-
urlParsingNode.setAttribute('href', href);
|
|
2667
|
-
|
|
2668
|
-
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
|
2669
|
-
return {
|
|
2670
|
-
href: urlParsingNode.href,
|
|
2671
|
-
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
|
2672
|
-
host: urlParsingNode.host,
|
|
2673
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
|
2674
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
|
2675
|
-
hostname: urlParsingNode.hostname,
|
|
2676
|
-
port: urlParsingNode.port,
|
|
2677
|
-
pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname
|
|
2678
|
-
};
|
|
2679
|
-
}
|
|
2680
|
-
originURL = resolveURL(window.location.href);
|
|
2681
|
-
|
|
2682
|
-
/**
|
|
2683
|
-
* Determine if a URL shares the same origin as the current location
|
|
2684
|
-
*
|
|
2685
|
-
* @param {String} requestURL The URL to test
|
|
2686
|
-
* @returns {boolean} True if URL shares the same origin, otherwise false
|
|
2687
|
-
*/
|
|
2688
|
-
return function isURLSameOrigin(requestURL) {
|
|
2689
|
-
var parsed = utils$1.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
2690
|
-
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
2650
|
+
var isURLSameOrigin = platform.hasStandardBrowserEnv ? function (origin, isMSIE) {
|
|
2651
|
+
return function (url) {
|
|
2652
|
+
url = new URL(url, platform.origin);
|
|
2653
|
+
return origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port);
|
|
2691
2654
|
};
|
|
2692
|
-
}() :
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
return function isURLSameOrigin() {
|
|
2696
|
-
return true;
|
|
2697
|
-
};
|
|
2698
|
-
}();
|
|
2655
|
+
}(new URL(platform.origin), platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)) : function () {
|
|
2656
|
+
return true;
|
|
2657
|
+
};
|
|
2699
2658
|
|
|
2700
2659
|
var cookies = platform.hasStandardBrowserEnv ?
|
|
2701
2660
|
// Standard browser envs support document.cookie
|
|
@@ -2785,7 +2744,7 @@
|
|
|
2785
2744
|
// eslint-disable-next-line no-param-reassign
|
|
2786
2745
|
config2 = config2 || {};
|
|
2787
2746
|
var config = {};
|
|
2788
|
-
function getMergedValue(target, source, caseless) {
|
|
2747
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
2789
2748
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
2790
2749
|
return utils$1.merge.call({
|
|
2791
2750
|
caseless: caseless
|
|
@@ -2799,11 +2758,11 @@
|
|
|
2799
2758
|
}
|
|
2800
2759
|
|
|
2801
2760
|
// eslint-disable-next-line consistent-return
|
|
2802
|
-
function mergeDeepProperties(a, b, caseless) {
|
|
2761
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
2803
2762
|
if (!utils$1.isUndefined(b)) {
|
|
2804
|
-
return getMergedValue(a, b, caseless);
|
|
2763
|
+
return getMergedValue(a, b, prop, caseless);
|
|
2805
2764
|
} else if (!utils$1.isUndefined(a)) {
|
|
2806
|
-
return getMergedValue(undefined, a, caseless);
|
|
2765
|
+
return getMergedValue(undefined, a, prop, caseless);
|
|
2807
2766
|
}
|
|
2808
2767
|
}
|
|
2809
2768
|
|
|
@@ -2860,8 +2819,8 @@
|
|
|
2860
2819
|
socketPath: defaultToConfig2,
|
|
2861
2820
|
responseEncoding: defaultToConfig2,
|
|
2862
2821
|
validateStatus: mergeDirectKeys,
|
|
2863
|
-
headers: function headers(a, b) {
|
|
2864
|
-
return mergeDeepProperties(headersToObject(a), headersToObject(b), true);
|
|
2822
|
+
headers: function headers(a, b, prop) {
|
|
2823
|
+
return mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true);
|
|
2865
2824
|
}
|
|
2866
2825
|
};
|
|
2867
2826
|
utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
@@ -3717,7 +3676,7 @@
|
|
|
3717
3676
|
});
|
|
3718
3677
|
}
|
|
3719
3678
|
|
|
3720
|
-
var VERSION = "1.7.
|
|
3679
|
+
var VERSION = "1.7.9";
|
|
3721
3680
|
|
|
3722
3681
|
var validators$1 = {};
|
|
3723
3682
|
|
|
@@ -3756,6 +3715,13 @@
|
|
|
3756
3715
|
return validator ? validator(value, opt, opts) : true;
|
|
3757
3716
|
};
|
|
3758
3717
|
};
|
|
3718
|
+
validators$1.spelling = function spelling(correctSpelling) {
|
|
3719
|
+
return function (value, opt) {
|
|
3720
|
+
// eslint-disable-next-line no-console
|
|
3721
|
+
console.warn("".concat(opt, " is likely a misspelling of ").concat(correctSpelling));
|
|
3722
|
+
return true;
|
|
3723
|
+
};
|
|
3724
|
+
};
|
|
3759
3725
|
|
|
3760
3726
|
/**
|
|
3761
3727
|
* Assert object's properties type
|
|
@@ -3838,7 +3804,8 @@
|
|
|
3838
3804
|
_context.prev = 6;
|
|
3839
3805
|
_context.t0 = _context["catch"](0);
|
|
3840
3806
|
if (_context.t0 instanceof Error) {
|
|
3841
|
-
|
|
3807
|
+
dummy = {};
|
|
3808
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
3842
3809
|
|
|
3843
3810
|
// slice off the Error: ... line
|
|
3844
3811
|
stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
|
@@ -3900,6 +3867,10 @@
|
|
|
3900
3867
|
}, true);
|
|
3901
3868
|
}
|
|
3902
3869
|
}
|
|
3870
|
+
validator.assertOptions(config, {
|
|
3871
|
+
baseUrl: validators.spelling('baseURL'),
|
|
3872
|
+
withXsrfToken: validators.spelling('withXSRFToken')
|
|
3873
|
+
}, true);
|
|
3903
3874
|
|
|
3904
3875
|
// Set config.method
|
|
3905
3876
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|