@loaders.gl/core 5.0.0-alpha.12 → 5.0.0-alpha.14
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/LICENSE +1 -1
- package/SCHEMA-README.md +9 -0
- package/SCHEMA-UTILS-README.md +11 -0
- package/dist/dist.dev.js +353 -205
- package/dist/dist.min.js +3 -3
- package/dist/index.cjs +291 -162
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +10 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/iterators/make-iterator/make-iterator.js +1 -1
- package/dist/iterators/make-iterator/make-iterator.js.map +1 -1
- package/dist/iterators/make-iterator/make-stream-iterator.js +1 -1
- package/dist/iterators/make-iterator/make-stream-iterator.js.map +1 -1
- package/dist/iterators/make-iterator/make-string-iterator.js +1 -1
- package/dist/iterators/make-iterator/make-string-iterator.js.map +1 -1
- package/dist/lib/api/core-api.d.ts +1 -1
- package/dist/lib/api/core-api.d.ts.map +1 -1
- package/dist/lib/api/create-data-source.d.ts +1 -1
- package/dist/lib/api/create-data-source.d.ts.map +1 -1
- package/dist/lib/api/create-data-source.js +1 -1
- package/dist/lib/api/create-data-source.js.map +1 -1
- package/dist/lib/api/encode-table.d.ts +2 -2
- package/dist/lib/api/encode-table.d.ts.map +1 -1
- package/dist/lib/api/encode-table.js +1 -1
- package/dist/lib/api/encode-table.js.map +1 -1
- package/dist/lib/api/encode.d.ts +1 -1
- package/dist/lib/api/encode.d.ts.map +1 -1
- package/dist/lib/api/encode.js +2 -2
- package/dist/lib/api/encode.js.map +1 -1
- package/dist/lib/api/load-in-batches.d.ts +1 -1
- package/dist/lib/api/load-in-batches.d.ts.map +1 -1
- package/dist/lib/api/load-in-batches.js +1 -1
- package/dist/lib/api/load-in-batches.js.map +1 -1
- package/dist/lib/api/load-loader.d.ts +1 -1
- package/dist/lib/api/load-loader.d.ts.map +1 -1
- package/dist/lib/api/load-loader.js +1 -1
- package/dist/lib/api/load-loader.js.map +1 -1
- package/dist/lib/api/load.d.ts +1 -1
- package/dist/lib/api/load.d.ts.map +1 -1
- package/dist/lib/api/load.js +1 -1
- package/dist/lib/api/load.js.map +1 -1
- package/dist/lib/api/parse-file.d.ts +1 -1
- package/dist/lib/api/parse-file.d.ts.map +1 -1
- package/dist/lib/api/parse-file.js +4 -2
- package/dist/lib/api/parse-file.js.map +1 -1
- package/dist/lib/api/parse-in-batches.d.ts +1 -1
- package/dist/lib/api/parse-in-batches.d.ts.map +1 -1
- package/dist/lib/api/parse-in-batches.js +44 -7
- package/dist/lib/api/parse-in-batches.js.map +1 -1
- package/dist/lib/api/parse-sync.d.ts +1 -1
- package/dist/lib/api/parse-sync.d.ts.map +1 -1
- package/dist/lib/api/parse-sync.js +1 -1
- package/dist/lib/api/parse-sync.js.map +1 -1
- package/dist/lib/api/parse.d.ts +1 -1
- package/dist/lib/api/parse.d.ts.map +1 -1
- package/dist/lib/api/parse.js +7 -5
- package/dist/lib/api/parse.js.map +1 -1
- package/dist/lib/api/preload.d.ts +1 -1
- package/dist/lib/api/preload.d.ts.map +1 -1
- package/dist/lib/api/preload.js.map +1 -1
- package/dist/lib/api/register-loaders.d.ts +1 -1
- package/dist/lib/api/register-loaders.d.ts.map +1 -1
- package/dist/lib/api/select-loader.d.ts +1 -1
- package/dist/lib/api/select-loader.d.ts.map +1 -1
- package/dist/lib/api/select-loader.js +1 -1
- package/dist/lib/api/select-loader.js.map +1 -1
- package/dist/lib/api/select-source.d.ts +1 -1
- package/dist/lib/api/select-source.d.ts.map +1 -1
- package/dist/lib/common.d.ts +1 -1
- package/dist/lib/common.d.ts.map +1 -1
- package/dist/lib/fetch/fetch-file.js +2 -2
- package/dist/lib/fetch/fetch-file.js.map +1 -1
- package/dist/lib/filesystems/browser-filesystem.d.ts +1 -1
- package/dist/lib/filesystems/browser-filesystem.d.ts.map +1 -1
- package/dist/lib/filesystems/browser-filesystem.js +1 -1
- package/dist/lib/filesystems/browser-filesystem.js.map +1 -1
- package/dist/lib/init.js +2 -2
- package/dist/lib/init.js.map +1 -1
- package/dist/lib/loader-utils/get-data.d.ts +1 -1
- package/dist/lib/loader-utils/get-data.d.ts.map +1 -1
- package/dist/lib/loader-utils/get-data.js +1 -1
- package/dist/lib/loader-utils/get-data.js.map +1 -1
- package/dist/lib/loader-utils/get-fetch-function.d.ts +1 -1
- package/dist/lib/loader-utils/get-fetch-function.d.ts.map +1 -1
- package/dist/lib/loader-utils/get-fetch-function.js +4 -2
- package/dist/lib/loader-utils/get-fetch-function.js.map +1 -1
- package/dist/lib/loader-utils/loader-context.d.ts +1 -1
- package/dist/lib/loader-utils/loader-context.d.ts.map +1 -1
- package/dist/lib/loader-utils/loader-context.js +5 -1
- package/dist/lib/loader-utils/loader-context.js.map +1 -1
- package/dist/lib/loader-utils/loggers.d.ts +1 -1
- package/dist/lib/loader-utils/loggers.d.ts.map +1 -1
- package/dist/lib/loader-utils/loggers.js +1 -1
- package/dist/lib/loader-utils/loggers.js.map +1 -1
- package/dist/lib/loader-utils/normalize-loader.d.ts +1 -1
- package/dist/lib/loader-utils/normalize-loader.d.ts.map +1 -1
- package/dist/lib/loader-utils/normalize-loader.js +1 -1
- package/dist/lib/loader-utils/normalize-loader.js.map +1 -1
- package/dist/lib/loader-utils/option-defaults.d.ts +1 -1
- package/dist/lib/loader-utils/option-defaults.d.ts.map +1 -1
- package/dist/lib/loader-utils/option-defaults.js +2 -1
- package/dist/lib/loader-utils/option-defaults.js.map +1 -1
- package/dist/lib/loader-utils/option-utils.d.ts +1 -1
- package/dist/lib/loader-utils/option-utils.d.ts.map +1 -1
- package/dist/lib/loader-utils/option-utils.js +2 -2
- package/dist/lib/loader-utils/option-utils.js.map +1 -1
- package/dist/lib/utils/resource-utils.js +1 -1
- package/dist/lib/utils/resource-utils.js.map +1 -1
- package/dist/lib/utils/response-utils.js +1 -1
- package/dist/lib/utils/response-utils.js.map +1 -1
- package/dist/loader-utils/format-types.d.ts +32 -0
- package/dist/loader-utils/format-types.d.ts.map +1 -0
- package/dist/loader-utils/format-types.js +5 -0
- package/dist/loader-utils/format-types.js.map +1 -0
- package/dist/loader-utils/index.cjs +12555 -0
- package/dist/loader-utils/index.cjs.map +6 -0
- package/dist/loader-utils/index.d.ts +122 -0
- package/dist/loader-utils/index.d.ts.map +1 -0
- package/dist/loader-utils/index.js +91 -0
- package/dist/loader-utils/index.js.map +1 -0
- package/dist/loader-utils/json-loader.d.ts +27 -0
- package/dist/loader-utils/json-loader.d.ts.map +1 -0
- package/dist/loader-utils/json-loader.js +32 -0
- package/dist/loader-utils/json-loader.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/array-buffer-utils.d.ts +32 -0
- package/dist/loader-utils/lib/binary-utils/array-buffer-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/array-buffer-utils.js +88 -0
- package/dist/loader-utils/lib/binary-utils/array-buffer-utils.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.d.ts +67 -0
- package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.js +245 -0
- package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.d.ts +43 -0
- package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.js +92 -0
- package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.d.ts +3 -0
- package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.js +15 -0
- package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/get-first-characters.d.ts +17 -0
- package/dist/loader-utils/lib/binary-utils/get-first-characters.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/get-first-characters.js +43 -0
- package/dist/loader-utils/lib/binary-utils/get-first-characters.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/hex-transcoder.d.ts +15 -0
- package/dist/loader-utils/lib/binary-utils/hex-transcoder.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/hex-transcoder.js +51 -0
- package/dist/loader-utils/lib/binary-utils/hex-transcoder.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.d.ts +20 -0
- package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.js +82 -0
- package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/memory-copy-utils.d.ts +25 -0
- package/dist/loader-utils/lib/binary-utils/memory-copy-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/memory-copy-utils.js +59 -0
- package/dist/loader-utils/lib/binary-utils/memory-copy-utils.js.map +1 -0
- package/dist/loader-utils/lib/crs/crs-reprojection.d.ts +31 -0
- package/dist/loader-utils/lib/crs/crs-reprojection.d.ts.map +1 -0
- package/dist/loader-utils/lib/crs/crs-reprojection.js +20 -0
- package/dist/loader-utils/lib/crs/crs-reprojection.js.map +1 -0
- package/dist/loader-utils/lib/env-utils/assert.d.ts +6 -0
- package/dist/loader-utils/lib/env-utils/assert.d.ts.map +1 -0
- package/dist/loader-utils/lib/env-utils/assert.js +13 -0
- package/dist/loader-utils/lib/env-utils/assert.js.map +1 -0
- package/dist/loader-utils/lib/env-utils/globals.d.ts +15 -0
- package/dist/loader-utils/lib/env-utils/globals.d.ts.map +1 -0
- package/dist/loader-utils/lib/env-utils/globals.js +28 -0
- package/dist/loader-utils/lib/env-utils/globals.js.map +1 -0
- package/dist/loader-utils/lib/file-provider/data-view-file.d.ts +40 -0
- package/dist/loader-utils/lib/file-provider/data-view-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/file-provider/data-view-file.js +68 -0
- package/dist/loader-utils/lib/file-provider/data-view-file.js.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-handle-file.d.ts +54 -0
- package/dist/loader-utils/lib/file-provider/file-handle-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-handle-file.js +102 -0
- package/dist/loader-utils/lib/file-provider/file-handle-file.js.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-provider-interface.d.ts +45 -0
- package/dist/loader-utils/lib/file-provider/file-provider-interface.d.ts.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-provider-interface.js +13 -0
- package/dist/loader-utils/lib/file-provider/file-provider-interface.js.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-provider.d.ts +57 -0
- package/dist/loader-utils/lib/file-provider/file-provider.d.ts.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-provider.js +114 -0
- package/dist/loader-utils/lib/file-provider/file-provider.js.map +1 -0
- package/dist/loader-utils/lib/files/array-buffer-file.d.ts +21 -0
- package/dist/loader-utils/lib/files/array-buffer-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/array-buffer-file.js +36 -0
- package/dist/loader-utils/lib/files/array-buffer-file.js.map +1 -0
- package/dist/loader-utils/lib/files/blob-file.d.ts +19 -0
- package/dist/loader-utils/lib/files/blob-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/blob-file.js +39 -0
- package/dist/loader-utils/lib/files/blob-file.js.map +1 -0
- package/dist/loader-utils/lib/files/file.d.ts +33 -0
- package/dist/loader-utils/lib/files/file.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/file.js +5 -0
- package/dist/loader-utils/lib/files/file.js.map +1 -0
- package/dist/loader-utils/lib/files/http-file-transport.d.ts +37 -0
- package/dist/loader-utils/lib/files/http-file-transport.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/http-file-transport.js +290 -0
- package/dist/loader-utils/lib/files/http-file-transport.js.map +1 -0
- package/dist/loader-utils/lib/files/http-file-types.d.ts +49 -0
- package/dist/loader-utils/lib/files/http-file-types.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/http-file-types.js +5 -0
- package/dist/loader-utils/lib/files/http-file-types.js.map +1 -0
- package/dist/loader-utils/lib/files/http-file.d.ts +55 -0
- package/dist/loader-utils/lib/files/http-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/http-file.js +213 -0
- package/dist/loader-utils/lib/files/http-file.js.map +1 -0
- package/dist/loader-utils/lib/files/node-file-facade.d.ts +22 -0
- package/dist/loader-utils/lib/files/node-file-facade.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/node-file-facade.js +45 -0
- package/dist/loader-utils/lib/files/node-file-facade.js.map +1 -0
- package/dist/loader-utils/lib/files/sources.d.ts +1 -0
- package/dist/loader-utils/lib/files/sources.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/sources.js +155 -0
- package/dist/loader-utils/lib/files/sources.js.map +1 -0
- package/dist/loader-utils/lib/filesystems/filesystem.d.ts +33 -0
- package/dist/loader-utils/lib/filesystems/filesystem.d.ts.map +1 -0
- package/dist/loader-utils/lib/filesystems/filesystem.js +5 -0
- package/dist/loader-utils/lib/filesystems/filesystem.js.map +1 -0
- package/dist/loader-utils/lib/filesystems/node-filesystem-facade.d.ts +23 -0
- package/dist/loader-utils/lib/filesystems/node-filesystem-facade.d.ts.map +1 -0
- package/dist/loader-utils/lib/filesystems/node-filesystem-facade.js +48 -0
- package/dist/loader-utils/lib/filesystems/node-filesystem-facade.js.map +1 -0
- package/dist/loader-utils/lib/iterators/async-iteration.d.ts +20 -0
- package/dist/loader-utils/lib/iterators/async-iteration.d.ts.map +1 -0
- package/dist/loader-utils/lib/iterators/async-iteration.js +102 -0
- package/dist/loader-utils/lib/iterators/async-iteration.js.map +1 -0
- package/dist/loader-utils/lib/iterators/text-iterators.d.ts +19 -0
- package/dist/loader-utils/lib/iterators/text-iterators.d.ts.map +1 -0
- package/dist/loader-utils/lib/iterators/text-iterators.js +60 -0
- package/dist/loader-utils/lib/iterators/text-iterators.js.map +1 -0
- package/dist/loader-utils/lib/javascript-utils/is-type.d.ts +59 -0
- package/dist/loader-utils/lib/javascript-utils/is-type.d.ts.map +1 -0
- package/dist/loader-utils/lib/javascript-utils/is-type.js +68 -0
- package/dist/loader-utils/lib/javascript-utils/is-type.js.map +1 -0
- package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.d.ts +118 -0
- package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.d.ts.map +1 -0
- package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.js +427 -0
- package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.js.map +1 -0
- package/dist/loader-utils/lib/laz/laz-chunk-decoder.d.ts +204 -0
- package/dist/loader-utils/lib/laz/laz-chunk-decoder.d.ts.map +1 -0
- package/dist/loader-utils/lib/laz/laz-chunk-decoder.js +4226 -0
- package/dist/loader-utils/lib/laz/laz-chunk-decoder.js.map +1 -0
- package/dist/loader-utils/lib/laz/laz-chunk-encoder.d.ts +40 -0
- package/dist/loader-utils/lib/laz/laz-chunk-encoder.d.ts.map +1 -0
- package/dist/loader-utils/lib/laz/laz-chunk-encoder.js +1518 -0
- package/dist/loader-utils/lib/laz/laz-chunk-encoder.js.map +1 -0
- package/dist/loader-utils/lib/log-utils/log.d.ts +4 -0
- package/dist/loader-utils/lib/log-utils/log.d.ts.map +1 -0
- package/dist/loader-utils/lib/log-utils/log.js +21 -0
- package/dist/loader-utils/lib/log-utils/log.js.map +1 -0
- package/dist/loader-utils/lib/module-utils/initialize-wasm-module.d.ts +10 -0
- package/dist/loader-utils/lib/module-utils/initialize-wasm-module.d.ts.map +1 -0
- package/dist/loader-utils/lib/module-utils/initialize-wasm-module.js +44 -0
- package/dist/loader-utils/lib/module-utils/initialize-wasm-module.js.map +1 -0
- package/dist/loader-utils/lib/module-utils/js-module-utils.d.ts +18 -0
- package/dist/loader-utils/lib/module-utils/js-module-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/module-utils/js-module-utils.js +40 -0
- package/dist/loader-utils/lib/module-utils/js-module-utils.js.map +1 -0
- package/dist/loader-utils/lib/node/buffer.browser.d.ts +11 -0
- package/dist/loader-utils/lib/node/buffer.browser.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/buffer.browser.js +20 -0
- package/dist/loader-utils/lib/node/buffer.browser.js.map +1 -0
- package/dist/loader-utils/lib/node/buffer.d.ts +11 -0
- package/dist/loader-utils/lib/node/buffer.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/buffer.js +35 -0
- package/dist/loader-utils/lib/node/buffer.js.map +1 -0
- package/dist/loader-utils/lib/node/fs.browser.d.ts +2 -0
- package/dist/loader-utils/lib/node/fs.browser.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/fs.browser.js +5 -0
- package/dist/loader-utils/lib/node/fs.browser.js.map +1 -0
- package/dist/loader-utils/lib/node/promisify.d.ts +13 -0
- package/dist/loader-utils/lib/node/promisify.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/promisify.js +19 -0
- package/dist/loader-utils/lib/node/promisify.js.map +1 -0
- package/dist/loader-utils/lib/node/stream.browser.d.ts +2 -0
- package/dist/loader-utils/lib/node/stream.browser.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/stream.browser.js +5 -0
- package/dist/loader-utils/lib/node/stream.browser.js.map +1 -0
- package/dist/loader-utils/lib/node/stream.d.ts +6 -0
- package/dist/loader-utils/lib/node/stream.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/stream.js +8 -0
- package/dist/loader-utils/lib/node/stream.js.map +1 -0
- package/dist/loader-utils/lib/option-utils/merge-options.d.ts +12 -0
- package/dist/loader-utils/lib/option-utils/merge-options.d.ts.map +1 -0
- package/dist/loader-utils/lib/option-utils/merge-options.js +34 -0
- package/dist/loader-utils/lib/option-utils/merge-options.js.map +1 -0
- package/dist/loader-utils/lib/parser-utils/parse-json.d.ts +5 -0
- package/dist/loader-utils/lib/parser-utils/parse-json.d.ts.map +1 -0
- package/dist/loader-utils/lib/parser-utils/parse-json.js +16 -0
- package/dist/loader-utils/lib/parser-utils/parse-json.js.map +1 -0
- package/dist/loader-utils/lib/path-utils/cached-uri-resolver.d.ts +35 -0
- package/dist/loader-utils/lib/path-utils/cached-uri-resolver.d.ts.map +1 -0
- package/dist/loader-utils/lib/path-utils/cached-uri-resolver.js +64 -0
- package/dist/loader-utils/lib/path-utils/cached-uri-resolver.js.map +1 -0
- package/dist/loader-utils/lib/path-utils/file-aliases.d.ts +17 -0
- package/dist/loader-utils/lib/path-utils/file-aliases.d.ts.map +1 -0
- package/dist/loader-utils/lib/path-utils/file-aliases.js +44 -0
- package/dist/loader-utils/lib/path-utils/file-aliases.js.map +1 -0
- package/dist/loader-utils/lib/path-utils/get-cwd.d.ts +3 -0
- package/dist/loader-utils/lib/path-utils/get-cwd.d.ts.map +1 -0
- package/dist/loader-utils/lib/path-utils/get-cwd.js +12 -0
- package/dist/loader-utils/lib/path-utils/get-cwd.js.map +1 -0
- package/dist/loader-utils/lib/path-utils/path.d.ts +24 -0
- package/dist/loader-utils/lib/path-utils/path.d.ts.map +1 -0
- package/dist/loader-utils/lib/path-utils/path.js +173 -0
- package/dist/loader-utils/lib/path-utils/path.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/abort-utils.d.ts +5 -0
- package/dist/loader-utils/lib/request-utils/abort-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/abort-utils.js +59 -0
- package/dist/loader-utils/lib/request-utils/abort-utils.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/authentication.d.ts +56 -0
- package/dist/loader-utils/lib/request-utils/authentication.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/authentication.js +67 -0
- package/dist/loader-utils/lib/request-utils/authentication.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/parse-content-type.d.ts +7 -0
- package/dist/loader-utils/lib/request-utils/parse-content-type.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/parse-content-type.js +20 -0
- package/dist/loader-utils/lib/request-utils/parse-content-type.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/range-request-cache.d.ts +70 -0
- package/dist/loader-utils/lib/request-utils/range-request-cache.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/range-request-cache.js +203 -0
- package/dist/loader-utils/lib/request-utils/range-request-cache.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/range-request-scheduler.d.ts +201 -0
- package/dist/loader-utils/lib/request-utils/range-request-scheduler.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/range-request-scheduler.js +636 -0
- package/dist/loader-utils/lib/request-utils/range-request-scheduler.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-cache.d.ts +62 -0
- package/dist/loader-utils/lib/request-utils/request-cache.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-cache.js +236 -0
- package/dist/loader-utils/lib/request-utils/request-cache.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.d.ts +139 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.js +373 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-scheduler.d.ts +71 -0
- package/dist/loader-utils/lib/request-utils/request-scheduler.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-scheduler.js +174 -0
- package/dist/loader-utils/lib/request-utils/request-scheduler.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/columnar-predicate.d.ts +56 -0
- package/dist/loader-utils/lib/scan-utils/columnar-predicate.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/columnar-predicate.js +261 -0
- package/dist/loader-utils/lib/scan-utils/columnar-predicate.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/experimental-scan-options.d.ts +42 -0
- package/dist/loader-utils/lib/scan-utils/experimental-scan-options.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/experimental-scan-options.js +5 -0
- package/dist/loader-utils/lib/scan-utils/experimental-scan-options.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/point-cloud-query.d.ts +56 -0
- package/dist/loader-utils/lib/scan-utils/point-cloud-query.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/point-cloud-query.js +86 -0
- package/dist/loader-utils/lib/scan-utils/point-cloud-query.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/raster-query.d.ts +36 -0
- package/dist/loader-utils/lib/scan-utils/raster-query.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/raster-query.js +49 -0
- package/dist/loader-utils/lib/scan-utils/raster-query.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/relational-query.d.ts +75 -0
- package/dist/loader-utils/lib/scan-utils/relational-query.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/relational-query.js +107 -0
- package/dist/loader-utils/lib/scan-utils/relational-query.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-executor.d.ts +20 -0
- package/dist/loader-utils/lib/scan-utils/scan-executor.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-executor.js +183 -0
- package/dist/loader-utils/lib/scan-utils/scan-executor.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-fragments.d.ts +23 -0
- package/dist/loader-utils/lib/scan-utils/scan-fragments.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-fragments.js +5 -0
- package/dist/loader-utils/lib/scan-utils/scan-fragments.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.d.ts +272 -0
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.js +97 -0
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-query-explain.d.ts +39 -0
- package/dist/loader-utils/lib/scan-utils/table-query-explain.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-query-explain.js +35 -0
- package/dist/loader-utils/lib/scan-utils/table-query-explain.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-query.d.ts +77 -0
- package/dist/loader-utils/lib/scan-utils/table-query.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-query.js +56 -0
- package/dist/loader-utils/lib/scan-utils/table-query.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.d.ts +30 -0
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.js +161 -0
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.js.map +1 -0
- package/dist/loader-utils/lib/sources/catalog-source.d.ts +36 -0
- package/dist/loader-utils/lib/sources/catalog-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/catalog-source.js +5 -0
- package/dist/loader-utils/lib/sources/catalog-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/data-source-manager.d.ts +136 -0
- package/dist/loader-utils/lib/sources/data-source-manager.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/data-source-manager.js +376 -0
- package/dist/loader-utils/lib/sources/data-source-manager.js.map +1 -0
- package/dist/loader-utils/lib/sources/data-source.d.ts +79 -0
- package/dist/loader-utils/lib/sources/data-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/data-source.js +145 -0
- package/dist/loader-utils/lib/sources/data-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/image-source.d.ts +55 -0
- package/dist/loader-utils/lib/sources/image-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/image-source.js +5 -0
- package/dist/loader-utils/lib/sources/image-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/image-tile-source.d.ts +12 -0
- package/dist/loader-utils/lib/sources/image-tile-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/image-tile-source.js +5 -0
- package/dist/loader-utils/lib/sources/image-tile-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/raster-coverage.d.ts +17 -0
- package/dist/loader-utils/lib/sources/raster-coverage.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/raster-coverage.js +62 -0
- package/dist/loader-utils/lib/sources/raster-coverage.js.map +1 -0
- package/dist/loader-utils/lib/sources/raster-region.d.ts +4 -0
- package/dist/loader-utils/lib/sources/raster-region.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/raster-region.js +22 -0
- package/dist/loader-utils/lib/sources/raster-region.js.map +1 -0
- package/dist/loader-utils/lib/sources/raster-sampling.d.ts +35 -0
- package/dist/loader-utils/lib/sources/raster-sampling.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/raster-sampling.js +152 -0
- package/dist/loader-utils/lib/sources/raster-sampling.js.map +1 -0
- package/dist/loader-utils/lib/sources/raster-source.d.ts +302 -0
- package/dist/loader-utils/lib/sources/raster-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/raster-source.js +20 -0
- package/dist/loader-utils/lib/sources/raster-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/service-capabilities.d.ts +36 -0
- package/dist/loader-utils/lib/sources/service-capabilities.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/service-capabilities.js +5 -0
- package/dist/loader-utils/lib/sources/service-capabilities.js.map +1 -0
- package/dist/loader-utils/lib/sources/tile-grid.d.ts +46 -0
- package/dist/loader-utils/lib/sources/tile-grid.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/tile-grid.js +128 -0
- package/dist/loader-utils/lib/sources/tile-grid.js.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source-adapter.d.ts +24 -0
- package/dist/loader-utils/lib/sources/tile-source-adapter.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source-adapter.js +109 -0
- package/dist/loader-utils/lib/sources/tile-source-adapter.js.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source-utils.d.ts +6 -0
- package/dist/loader-utils/lib/sources/tile-source-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source-utils.js +13 -0
- package/dist/loader-utils/lib/sources/tile-source-utils.js.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source.d.ts +190 -0
- package/dist/loader-utils/lib/sources/tile-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source.js +5 -0
- package/dist/loader-utils/lib/sources/tile-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/utils/image-type.d.ts +10 -0
- package/dist/loader-utils/lib/sources/utils/image-type.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/utils/image-type.js +5 -0
- package/dist/loader-utils/lib/sources/utils/image-type.js.map +1 -0
- package/dist/loader-utils/lib/sources/utils/utils.d.ts +13 -0
- package/dist/loader-utils/lib/sources/utils/utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/utils/utils.js +26 -0
- package/dist/loader-utils/lib/sources/utils/utils.js.map +1 -0
- package/dist/loader-utils/lib/sources/vector-source.d.ts +76 -0
- package/dist/loader-utils/lib/sources/vector-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/vector-source.js +5 -0
- package/dist/loader-utils/lib/sources/vector-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/vector-tile-source.d.ts +15 -0
- package/dist/loader-utils/lib/sources/vector-tile-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/vector-tile-source.js +5 -0
- package/dist/loader-utils/lib/sources/vector-tile-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/xyz-grid.d.ts +9 -0
- package/dist/loader-utils/lib/sources/xyz-grid.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/xyz-grid.js +63 -0
- package/dist/loader-utils/lib/sources/xyz-grid.js.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.d.ts +25 -0
- package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.d.ts.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.js +156 -0
- package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.js.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.d.ts +8 -0
- package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.d.ts.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.js +23 -0
- package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.js.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.d.ts +47 -0
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.d.ts.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.js +270 -0
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.js.map +1 -0
- package/dist/loader-utils/loader-types.d.ts +330 -0
- package/dist/loader-utils/loader-types.d.ts.map +1 -0
- package/dist/loader-utils/loader-types.js +33 -0
- package/dist/loader-utils/loader-types.js.map +1 -0
- package/dist/loader-utils/source-types.d.ts +42 -0
- package/dist/loader-utils/source-types.d.ts.map +1 -0
- package/dist/loader-utils/source-types.js +8 -0
- package/dist/loader-utils/source-types.js.map +1 -0
- package/dist/loader-utils/types.d.ts +24 -0
- package/dist/loader-utils/types.d.ts.map +1 -0
- package/dist/loader-utils/types.js +6 -0
- package/dist/loader-utils/types.js.map +1 -0
- package/dist/loader-utils/workers/json-worker.d.ts +2 -0
- package/dist/loader-utils/workers/json-worker.d.ts.map +1 -0
- package/dist/loader-utils/workers/json-worker.js +7 -0
- package/dist/loader-utils/workers/json-worker.js.map +1 -0
- package/dist/loader-utils/writer-types.d.ts +74 -0
- package/dist/loader-utils/writer-types.d.ts.map +1 -0
- package/dist/loader-utils/writer-types.js +5 -0
- package/dist/loader-utils/writer-types.js.map +1 -0
- package/dist/null-loader.d.ts +2 -2
- package/dist/null-loader.d.ts.map +1 -1
- package/dist/null-loader.js +1 -1
- package/dist/null-worker-node.js +66 -21
- package/dist/null-worker.js +65 -21
- package/dist/polyfills/buffer/btoa.node.d.ts +3 -0
- package/dist/polyfills/buffer/btoa.node.d.ts.map +1 -0
- package/dist/polyfills/buffer/btoa.node.js +13 -0
- package/dist/polyfills/buffer/btoa.node.js.map +1 -0
- package/dist/polyfills/buffer/to-array-buffer.node.d.ts +2 -0
- package/dist/polyfills/buffer/to-array-buffer.node.d.ts.map +1 -0
- package/dist/polyfills/buffer/to-array-buffer.node.js +12 -0
- package/dist/polyfills/buffer/to-array-buffer.node.js.map +1 -0
- package/dist/polyfills/crypto/node-hash.d.ts +29 -0
- package/dist/polyfills/crypto/node-hash.d.ts.map +1 -0
- package/dist/polyfills/crypto/node-hash.js +63 -0
- package/dist/polyfills/crypto/node-hash.js.map +1 -0
- package/dist/polyfills/fetch/decode-data-uri.d.ts +11 -0
- package/dist/polyfills/fetch/decode-data-uri.d.ts.map +1 -0
- package/dist/polyfills/fetch/decode-data-uri.js +63 -0
- package/dist/polyfills/fetch/decode-data-uri.js.map +1 -0
- package/dist/polyfills/fetch/fetch-polyfill.d.ts +11 -0
- package/dist/polyfills/fetch/fetch-polyfill.d.ts.map +1 -0
- package/dist/polyfills/fetch/fetch-polyfill.js +141 -0
- package/dist/polyfills/fetch/fetch-polyfill.js.map +1 -0
- package/dist/polyfills/fetch/headers-polyfill.d.ts +34 -0
- package/dist/polyfills/fetch/headers-polyfill.d.ts.map +1 -0
- package/dist/polyfills/fetch/headers-polyfill.js +105 -0
- package/dist/polyfills/fetch/headers-polyfill.js.map +1 -0
- package/dist/polyfills/fetch/response-polyfill.d.ts +22 -0
- package/dist/polyfills/fetch/response-polyfill.d.ts.map +1 -0
- package/dist/polyfills/fetch/response-polyfill.js +81 -0
- package/dist/polyfills/fetch/response-polyfill.js.map +1 -0
- package/dist/polyfills/fetch/utils/decode-data-uri.node.d.ts +11 -0
- package/dist/polyfills/fetch/utils/decode-data-uri.node.d.ts.map +1 -0
- package/dist/polyfills/fetch/utils/decode-data-uri.node.js +32 -0
- package/dist/polyfills/fetch/utils/decode-data-uri.node.js.map +1 -0
- package/dist/polyfills/file/blob-stream-controller.d.ts +29 -0
- package/dist/polyfills/file/blob-stream-controller.d.ts.map +1 -0
- package/dist/polyfills/file/blob-stream-controller.js +64 -0
- package/dist/polyfills/file/blob-stream-controller.js.map +1 -0
- package/dist/polyfills/file/blob-stream.d.ts +25 -0
- package/dist/polyfills/file/blob-stream.d.ts.map +1 -0
- package/dist/polyfills/file/blob-stream.js +38 -0
- package/dist/polyfills/file/blob-stream.js.map +1 -0
- package/dist/polyfills/file/blob.d.ts +58 -0
- package/dist/polyfills/file/blob.d.ts.map +1 -0
- package/dist/polyfills/file/blob.js +166 -0
- package/dist/polyfills/file/blob.js.map +1 -0
- package/dist/polyfills/file/file-reader.d.ts +24 -0
- package/dist/polyfills/file/file-reader.d.ts.map +1 -0
- package/dist/polyfills/file/file-reader.js +51 -0
- package/dist/polyfills/file/file-reader.js.map +1 -0
- package/dist/polyfills/file/file.d.ts +24 -0
- package/dist/polyfills/file/file.d.ts.map +1 -0
- package/dist/polyfills/file/file.js +41 -0
- package/dist/polyfills/file/file.js.map +1 -0
- package/dist/polyfills/file/install-blob-polyfills.d.ts +9 -0
- package/dist/polyfills/file/install-blob-polyfills.d.ts.map +1 -0
- package/dist/polyfills/file/install-blob-polyfills.js +14 -0
- package/dist/polyfills/file/install-blob-polyfills.js.map +1 -0
- package/dist/polyfills/file/install-file-polyfills.d.ts +3 -0
- package/dist/polyfills/file/install-file-polyfills.d.ts.map +1 -0
- package/dist/polyfills/file/install-file-polyfills.js +20 -0
- package/dist/polyfills/file/install-file-polyfills.js.map +1 -0
- package/dist/polyfills/file/readable-stream.d.ts +5 -0
- package/dist/polyfills/file/readable-stream.d.ts.map +1 -0
- package/dist/polyfills/file/readable-stream.js +8 -0
- package/dist/polyfills/file/readable-stream.js.map +1 -0
- package/dist/polyfills/filesystems/fetch-node.d.ts +8 -0
- package/dist/polyfills/filesystems/fetch-node.d.ts.map +1 -0
- package/dist/polyfills/filesystems/fetch-node.js +88 -0
- package/dist/polyfills/filesystems/fetch-node.js.map +1 -0
- package/dist/polyfills/filesystems/node-file.d.ts +15 -0
- package/dist/polyfills/filesystems/node-file.d.ts.map +1 -0
- package/dist/polyfills/filesystems/node-file.js +138 -0
- package/dist/polyfills/filesystems/node-file.js.map +1 -0
- package/dist/polyfills/filesystems/node-filesystem.d.ts +19 -0
- package/dist/polyfills/filesystems/node-filesystem.d.ts.map +1 -0
- package/dist/polyfills/filesystems/node-filesystem.js +44 -0
- package/dist/polyfills/filesystems/node-filesystem.js.map +1 -0
- package/dist/polyfills/filesystems/stream-utils.node.d.ts +18 -0
- package/dist/polyfills/filesystems/stream-utils.node.d.ts.map +1 -0
- package/dist/polyfills/filesystems/stream-utils.node.js +67 -0
- package/dist/polyfills/filesystems/stream-utils.node.js.map +1 -0
- package/dist/polyfills/images/encode-image-node.d.ts +20 -0
- package/dist/polyfills/images/encode-image-node.d.ts.map +1 -0
- package/dist/polyfills/images/encode-image-node.js +37 -0
- package/dist/polyfills/images/encode-image-node.js.map +1 -0
- package/dist/polyfills/images/image-codecs-node.d.ts +8 -0
- package/dist/polyfills/images/image-codecs-node.d.ts.map +1 -0
- package/dist/polyfills/images/image-codecs-node.js +27 -0
- package/dist/polyfills/images/image-codecs-node.js.map +1 -0
- package/dist/polyfills/images/node-image-bitmap.d.ts +38 -0
- package/dist/polyfills/images/node-image-bitmap.d.ts.map +1 -0
- package/dist/polyfills/images/node-image-bitmap.js +64 -0
- package/dist/polyfills/images/node-image-bitmap.js.map +1 -0
- package/dist/polyfills/images/node-image-formats.d.ts +3 -0
- package/dist/polyfills/images/node-image-formats.d.ts.map +1 -0
- package/dist/polyfills/images/node-image-formats.js +6 -0
- package/dist/polyfills/images/node-image-formats.js.map +1 -0
- package/dist/polyfills/images/parse-image-node.d.ts +11 -0
- package/dist/polyfills/images/parse-image-node.d.ts.map +1 -0
- package/dist/polyfills/images/parse-image-node.js +36 -0
- package/dist/polyfills/images/parse-image-node.js.map +1 -0
- package/dist/polyfills/index.browser.d.ts +8 -0
- package/dist/polyfills/index.browser.d.ts.map +1 -0
- package/dist/polyfills/index.browser.js +18 -0
- package/dist/polyfills/index.browser.js.map +1 -0
- package/dist/polyfills/index.cjs +2918 -0
- package/dist/polyfills/index.cjs.map +6 -0
- package/dist/polyfills/index.d.ts +7 -0
- package/dist/polyfills/index.d.ts.map +1 -0
- package/dist/polyfills/index.js +110 -0
- package/dist/polyfills/index.js.map +1 -0
- package/dist/polyfills/libs/encoding-indexes-asian.d.ts +10 -0
- package/dist/polyfills/libs/encoding-indexes-asian.d.ts.map +1 -0
- package/dist/polyfills/libs/encoding-indexes-asian.js +14 -0
- package/dist/polyfills/libs/encoding-indexes-asian.js.map +1 -0
- package/dist/polyfills/load-library/require-utils.node.d.ts +19 -0
- package/dist/polyfills/load-library/require-utils.node.d.ts.map +1 -0
- package/dist/polyfills/load-library/require-utils.node.js +88 -0
- package/dist/polyfills/load-library/require-utils.node.js.map +1 -0
- package/dist/polyfills/streams/make-node-stream.d.ts +10 -0
- package/dist/polyfills/streams/make-node-stream.d.ts.map +1 -0
- package/dist/polyfills/streams/make-node-stream.js +70 -0
- package/dist/polyfills/streams/make-node-stream.js.map +1 -0
- package/dist/polyfills/text-encoder/encoding-indexes.d.ts +31 -0
- package/dist/polyfills/text-encoder/encoding-indexes.d.ts.map +1 -0
- package/dist/polyfills/text-encoder/encoding-indexes.js +35 -0
- package/dist/polyfills/text-encoder/encoding-indexes.js.map +1 -0
- package/dist/polyfills/text-encoder/text-encoder.d.ts +15 -0
- package/dist/polyfills/text-encoder/text-encoder.d.ts.map +1 -0
- package/dist/polyfills/text-encoder/text-encoder.js +2778 -0
- package/dist/polyfills/text-encoder/text-encoder.js.map +1 -0
- package/dist/polyfills/utils/assert.d.ts +2 -0
- package/dist/polyfills/utils/assert.d.ts.map +1 -0
- package/dist/polyfills/utils/assert.js +9 -0
- package/dist/polyfills/utils/assert.js.map +1 -0
- package/dist/polyfills/utils/buffer-utils.d.ts +5 -0
- package/dist/polyfills/utils/buffer-utils.d.ts.map +1 -0
- package/dist/polyfills/utils/buffer-utils.js +34 -0
- package/dist/polyfills/utils/buffer-utils.js.map +1 -0
- package/dist/polyfills/utils/filesystem-types.d.ts +10 -0
- package/dist/polyfills/utils/filesystem-types.d.ts.map +1 -0
- package/dist/polyfills/utils/filesystem-types.js +5 -0
- package/dist/polyfills/utils/filesystem-types.js.map +1 -0
- package/dist/polyfills/utils/is-browser.d.ts +2 -0
- package/dist/polyfills/utils/is-browser.d.ts.map +1 -0
- package/dist/polyfills/utils/is-browser.js +8 -0
- package/dist/polyfills/utils/is-browser.js.map +1 -0
- package/dist/polyfills/utils/path-utils.d.ts +7 -0
- package/dist/polyfills/utils/path-utils.d.ts.map +1 -0
- package/dist/polyfills/utils/path-utils.js +28 -0
- package/dist/polyfills/utils/path-utils.js.map +1 -0
- package/dist/schema/categories/category-gis.d.ts +7 -0
- package/dist/schema/categories/category-gis.d.ts.map +1 -0
- package/dist/schema/categories/category-gis.js +5 -0
- package/dist/schema/categories/category-gis.js.map +1 -0
- package/dist/schema/categories/category-image.d.ts +18 -0
- package/dist/schema/categories/category-image.d.ts.map +1 -0
- package/dist/schema/categories/category-image.js +5 -0
- package/dist/schema/categories/category-image.js.map +1 -0
- package/dist/schema/categories/category-mesh.d.ts +99 -0
- package/dist/schema/categories/category-mesh.d.ts.map +1 -0
- package/dist/schema/categories/category-mesh.js +14 -0
- package/dist/schema/categories/category-mesh.js.map +1 -0
- package/dist/schema/categories/category-table.d.ts +106 -0
- package/dist/schema/categories/category-table.d.ts.map +1 -0
- package/dist/schema/categories/category-table.js +5 -0
- package/dist/schema/categories/category-table.js.map +1 -0
- package/dist/schema/categories/category-texture.d.ts +115 -0
- package/dist/schema/categories/category-texture.d.ts.map +1 -0
- package/dist/schema/categories/category-texture.js +5 -0
- package/dist/schema/categories/category-texture.js.map +1 -0
- package/dist/schema/deprecated/mesh-utils.d.ts +12 -0
- package/dist/schema/deprecated/mesh-utils.d.ts.map +1 -0
- package/dist/schema/deprecated/mesh-utils.js +37 -0
- package/dist/schema/deprecated/mesh-utils.js.map +1 -0
- package/dist/schema/float16.d.ts +19 -0
- package/dist/schema/float16.d.ts.map +1 -0
- package/dist/schema/float16.js +90 -0
- package/dist/schema/float16.js.map +1 -0
- package/dist/schema/geoarrow-metadata.schema.json +117 -0
- package/dist/schema/geometry/arrow-binary-features.d.ts +45 -0
- package/dist/schema/geometry/arrow-binary-features.d.ts.map +1 -0
- package/dist/schema/geometry/arrow-binary-features.js +5 -0
- package/dist/schema/geometry/arrow-binary-features.js.map +1 -0
- package/dist/schema/geometry/binary-features.d.ts +30 -0
- package/dist/schema/geometry/binary-features.d.ts.map +1 -0
- package/dist/schema/geometry/binary-features.js +5 -0
- package/dist/schema/geometry/binary-features.js.map +1 -0
- package/dist/schema/geometry/binary-geometries.d.ts +33 -0
- package/dist/schema/geometry/binary-geometries.d.ts.map +1 -0
- package/dist/schema/geometry/binary-geometries.js +5 -0
- package/dist/schema/geometry/binary-geometries.js.map +1 -0
- package/dist/schema/geometry/flat-geometries.d.ts +61 -0
- package/dist/schema/geometry/flat-geometries.d.ts.map +1 -0
- package/dist/schema/geometry/flat-geometries.js +5 -0
- package/dist/schema/geometry/flat-geometries.js.map +1 -0
- package/dist/schema/geometry/geoarrow.d.ts +69 -0
- package/dist/schema/geometry/geoarrow.d.ts.map +1 -0
- package/dist/schema/geometry/geoarrow.js +5 -0
- package/dist/schema/geometry/geoarrow.js.map +1 -0
- package/dist/schema/geoparquet.schema.json +222 -0
- package/dist/schema/geospatial-metadata-zod-schema.cjs +154 -0
- package/dist/schema/geospatial-metadata-zod-schema.cjs.map +6 -0
- package/dist/schema/geospatial-metadata-zod-schema.d.ts +44 -0
- package/dist/schema/geospatial-metadata-zod-schema.d.ts.map +1 -0
- package/dist/schema/geospatial-metadata-zod-schema.js +151 -0
- package/dist/schema/geospatial-metadata-zod-schema.js.map +1 -0
- package/dist/schema/index.cjs +259 -0
- package/dist/schema/index.cjs.map +6 -0
- package/dist/schema/index.d.ts +21 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +9 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/metadata.d.ts +40 -0
- package/dist/schema/metadata.d.ts.map +1 -0
- package/dist/schema/metadata.js +86 -0
- package/dist/schema/metadata.js.map +1 -0
- package/dist/schema/types/batch.d.ts +37 -0
- package/dist/schema/types/batch.d.ts.map +1 -0
- package/dist/schema/types/batch.js +5 -0
- package/dist/schema/types/batch.js.map +1 -0
- package/dist/schema/types/schema.d.ts +70 -0
- package/dist/schema/types/schema.d.ts.map +1 -0
- package/dist/schema/types/schema.js +5 -0
- package/dist/schema/types/schema.js.map +1 -0
- package/dist/schema/types/types.d.ts +16 -0
- package/dist/schema/types/types.d.ts.map +1 -0
- package/dist/schema/types/types.js +6 -0
- package/dist/schema/types/types.js.map +1 -0
- package/dist/schema-utils/arrow-transport.cjs +665 -0
- package/dist/schema-utils/arrow-transport.cjs.map +6 -0
- package/dist/schema-utils/arrow-transport.d.ts +4 -0
- package/dist/schema-utils/arrow-transport.d.ts.map +1 -0
- package/dist/schema-utils/arrow-transport.js +7 -0
- package/dist/schema-utils/arrow-transport.js.map +1 -0
- package/dist/schema-utils/deprecated.d.ts +24 -0
- package/dist/schema-utils/deprecated.d.ts.map +1 -0
- package/dist/schema-utils/deprecated.js +27 -0
- package/dist/schema-utils/deprecated.js.map +1 -0
- package/dist/schema-utils/index.cjs +3423 -0
- package/dist/schema-utils/index.cjs.map +6 -0
- package/dist/schema-utils/index.d.ts +38 -0
- package/dist/schema-utils/index.d.ts.map +1 -0
- package/dist/schema-utils/index.js +77 -0
- package/dist/schema-utils/index.js.map +1 -0
- package/dist/schema-utils/lib/arrow/arrow-table-transport.d.ts +72 -0
- package/dist/schema-utils/lib/arrow/arrow-table-transport.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow/arrow-table-transport.js +162 -0
- package/dist/schema-utils/lib/arrow/arrow-table-transport.js.map +1 -0
- package/dist/schema-utils/lib/arrow/split-arrow-buffers.d.ts +33 -0
- package/dist/schema-utils/lib/arrow/split-arrow-buffers.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow/split-arrow-buffers.js +128 -0
- package/dist/schema-utils/lib/arrow/split-arrow-buffers.js.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.d.ts +11 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.js +45 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.js.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.d.ts +11 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.js +33 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.js.map +1 -0
- package/dist/schema-utils/lib/converters/convert.d.ts +10 -0
- package/dist/schema-utils/lib/converters/convert.d.ts.map +1 -0
- package/dist/schema-utils/lib/converters/convert.js +98 -0
- package/dist/schema-utils/lib/converters/convert.js.map +1 -0
- package/dist/schema-utils/lib/converters/converters.d.ts +3 -0
- package/dist/schema-utils/lib/converters/converters.d.ts.map +1 -0
- package/dist/schema-utils/lib/converters/converters.js +5 -0
- package/dist/schema-utils/lib/converters/converters.js.map +1 -0
- package/dist/schema-utils/lib/converters/types.d.ts +35 -0
- package/dist/schema-utils/lib/converters/types.d.ts.map +1 -0
- package/dist/schema-utils/lib/converters/types.js +5 -0
- package/dist/schema-utils/lib/converters/types.js.map +1 -0
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.d.ts +44 -0
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.js +187 -0
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.js.map +1 -0
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.d.ts +14 -0
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.js +217 -0
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.js.map +1 -0
- package/dist/schema-utils/lib/mesh/deduce-mesh-schema.d.ts +23 -0
- package/dist/schema-utils/lib/mesh/deduce-mesh-schema.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/deduce-mesh-schema.js +72 -0
- package/dist/schema-utils/lib/mesh/deduce-mesh-schema.js.map +1 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.d.ts +23 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.js +54 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.js.map +1 -0
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.d.ts +98 -0
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.js +407 -0
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.js.map +1 -0
- package/dist/schema-utils/lib/schema/convert-arrow-schema.d.ts +39 -0
- package/dist/schema-utils/lib/schema/convert-arrow-schema.d.ts.map +1 -0
- package/dist/schema-utils/lib/schema/convert-arrow-schema.js +441 -0
- package/dist/schema-utils/lib/schema/convert-arrow-schema.js.map +1 -0
- package/dist/schema-utils/lib/schema/data-type.d.ts +16 -0
- package/dist/schema-utils/lib/schema/data-type.d.ts.map +1 -0
- package/dist/schema-utils/lib/schema/data-type.js +102 -0
- package/dist/schema-utils/lib/schema/data-type.js.map +1 -0
- package/dist/schema-utils/lib/schema/deduce-table-schema.d.ts +14 -0
- package/dist/schema-utils/lib/schema/deduce-table-schema.d.ts.map +1 -0
- package/dist/schema-utils/lib/schema/deduce-table-schema.js +101 -0
- package/dist/schema-utils/lib/schema/deduce-table-schema.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.d.ts +19 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.js +37 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.d.ts +43 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.js +5 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.d.ts +12 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.js +82 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.d.ts +28 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.js +64 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.d.ts +177 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.js +441 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/enum.d.ts +92 -0
- package/dist/schema-utils/lib/table/arrow-api/enum.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/enum.js +98 -0
- package/dist/schema-utils/lib/table/arrow-api/enum.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/get-type-info.d.ts +13 -0
- package/dist/schema-utils/lib/table/arrow-api/get-type-info.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/get-type-info.js +28 -0
- package/dist/schema-utils/lib/table/arrow-api/get-type-info.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/index.d.ts +6 -0
- package/dist/schema-utils/lib/table/arrow-api/index.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/index.js +8 -0
- package/dist/schema-utils/lib/table/arrow-api/index.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.d.ts +10 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.js +71 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.d.ts +28 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.js +104 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.d.ts +19 -0
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.js +64 -0
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.d.ts +20 -0
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.js +84 -0
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.d.ts +21 -0
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.js +86 -0
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.d.ts +24 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.js +5 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.d.ts +52 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.js +149 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.js.map +1 -0
- package/dist/schema-utils/lib/table/batches/convert-batches.d.ts +10 -0
- package/dist/schema-utils/lib/table/batches/convert-batches.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batches/convert-batches.js +46 -0
- package/dist/schema-utils/lib/table/batches/convert-batches.js.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.d.ts +17 -0
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.js +61 -0
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.js.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.d.ts +15 -0
- package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.js +22 -0
- package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.js.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.d.ts +9 -0
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.js +63 -0
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.js.map +1 -0
- package/dist/schema-utils/lib/table/query-arrow-table.d.ts +23 -0
- package/dist/schema-utils/lib/table/query-arrow-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/query-arrow-table.js +73 -0
- package/dist/schema-utils/lib/table/query-arrow-table.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.d.ts +24 -0
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.js +151 -0
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/convert-table.d.ts +43 -0
- package/dist/schema-utils/lib/table/tables/convert-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/convert-table.js +122 -0
- package/dist/schema-utils/lib/table/tables/convert-table.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/make-table.d.ts +67 -0
- package/dist/schema-utils/lib/table/tables/make-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/make-table.js +102 -0
- package/dist/schema-utils/lib/table/tables/make-table.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/row-utils.d.ts +15 -0
- package/dist/schema-utils/lib/table/tables/row-utils.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/row-utils.js +50 -0
- package/dist/schema-utils/lib/table/tables/row-utils.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-accessors.d.ts +68 -0
- package/dist/schema-utils/lib/table/tables/table-accessors.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-accessors.js +352 -0
- package/dist/schema-utils/lib/table/tables/table-accessors.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-column.d.ts +7 -0
- package/dist/schema-utils/lib/table/tables/table-column.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-column.js +40 -0
- package/dist/schema-utils/lib/table/tables/table-column.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.d.ts +9 -0
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.js +19 -0
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.d.ts +16 -0
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.js +45 -0
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-types.d.ts +12 -0
- package/dist/schema-utils/lib/table/tables/table-types.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-types.js +24 -0
- package/dist/schema-utils/lib/table/tables/table-types.js.map +1 -0
- package/dist/schema-utils/lib/utils/assert.d.ts +2 -0
- package/dist/schema-utils/lib/utils/assert.d.ts.map +1 -0
- package/dist/schema-utils/lib/utils/assert.js +12 -0
- package/dist/schema-utils/lib/utils/assert.js.map +1 -0
- package/dist/schema-utils/lib/utils/async-queue.d.ts +18 -0
- package/dist/schema-utils/lib/utils/async-queue.d.ts.map +1 -0
- package/dist/schema-utils/lib/utils/async-queue.js +96 -0
- package/dist/schema-utils/lib/utils/async-queue.js.map +1 -0
- package/dist/schema-utils/types/types.d.ts +15 -0
- package/dist/schema-utils/types/types.d.ts.map +1 -0
- package/dist/schema-utils/types/types.js +5 -0
- package/dist/schema-utils/types/types.js.map +1 -0
- package/dist/worker-utils/index.cjs +1569 -0
- package/dist/worker-utils/index.cjs.map +6 -0
- package/dist/worker-utils/index.d.ts +22 -0
- package/dist/worker-utils/index.d.ts.map +1 -0
- package/dist/worker-utils/index.js +40 -0
- package/dist/worker-utils/index.js.map +1 -0
- package/dist/worker-utils/lib/async-queue/async-queue.d.ts +32 -0
- package/dist/worker-utils/lib/async-queue/async-queue.d.ts.map +1 -0
- package/dist/worker-utils/lib/async-queue/async-queue.js +91 -0
- package/dist/worker-utils/lib/async-queue/async-queue.js.map +1 -0
- package/dist/worker-utils/lib/env-utils/assert.d.ts +3 -0
- package/dist/worker-utils/lib/env-utils/assert.d.ts.map +1 -0
- package/dist/worker-utils/lib/env-utils/assert.js +13 -0
- package/dist/worker-utils/lib/env-utils/assert.js.map +1 -0
- package/dist/worker-utils/lib/env-utils/globals.d.ts +22 -0
- package/dist/worker-utils/lib/env-utils/globals.d.ts.map +1 -0
- package/dist/worker-utils/lib/env-utils/globals.js +30 -0
- package/dist/worker-utils/lib/env-utils/globals.js.map +1 -0
- package/dist/worker-utils/lib/env-utils/version.d.ts +2 -0
- package/dist/worker-utils/lib/env-utils/version.d.ts.map +1 -0
- package/dist/worker-utils/lib/env-utils/version.js +20 -0
- package/dist/worker-utils/lib/env-utils/version.js.map +1 -0
- package/dist/worker-utils/lib/library-utils/library-utils.d.ts +42 -0
- package/dist/worker-utils/lib/library-utils/library-utils.d.ts.map +1 -0
- package/dist/worker-utils/lib/library-utils/library-utils.js +248 -0
- package/dist/worker-utils/lib/library-utils/library-utils.js.map +1 -0
- package/dist/worker-utils/lib/node/worker_threads-browser.d.ts +14 -0
- package/dist/worker-utils/lib/node/worker_threads-browser.d.ts.map +1 -0
- package/dist/worker-utils/lib/node/worker_threads-browser.js +22 -0
- package/dist/worker-utils/lib/node/worker_threads-browser.js.map +1 -0
- package/dist/worker-utils/lib/node/worker_threads.d.ts +15 -0
- package/dist/worker-utils/lib/node/worker_threads.d.ts.map +1 -0
- package/dist/worker-utils/lib/node/worker_threads.js +16 -0
- package/dist/worker-utils/lib/node/worker_threads.js.map +1 -0
- package/dist/worker-utils/lib/npm-tag.d.ts +8 -0
- package/dist/worker-utils/lib/npm-tag.d.ts.map +1 -0
- package/dist/worker-utils/lib/npm-tag.js +11 -0
- package/dist/worker-utils/lib/npm-tag.js.map +1 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.d.ts +8 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.d.ts.map +1 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.js +18 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.js.map +1 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.d.ts +45 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.d.ts.map +1 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.js +123 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.js.map +1 -0
- package/dist/worker-utils/lib/process-utils/process-utils.d.ts +2 -0
- package/dist/worker-utils/lib/process-utils/process-utils.d.ts.map +1 -0
- package/dist/worker-utils/lib/process-utils/process-utils.js +32 -0
- package/dist/worker-utils/lib/process-utils/process-utils.js.map +1 -0
- package/dist/worker-utils/lib/worker-api/create-worker.d.ts +9 -0
- package/dist/worker-utils/lib/worker-api/create-worker.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-api/create-worker.js +161 -0
- package/dist/worker-utils/lib/worker-api/create-worker.js.map +1 -0
- package/dist/worker-utils/lib/worker-api/get-worker-url.d.ts +29 -0
- package/dist/worker-utils/lib/worker-api/get-worker-url.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-api/get-worker-url.js +99 -0
- package/dist/worker-utils/lib/worker-api/get-worker-url.js.map +1 -0
- package/dist/worker-utils/lib/worker-api/process-on-worker.d.ts +50 -0
- package/dist/worker-utils/lib/worker-api/process-on-worker.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-api/process-on-worker.js +349 -0
- package/dist/worker-utils/lib/worker-api/process-on-worker.js.map +1 -0
- package/dist/worker-utils/lib/worker-api/validate-worker-version.d.ts +9 -0
- package/dist/worker-utils/lib/worker-api/validate-worker-version.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-api/validate-worker-version.js +35 -0
- package/dist/worker-utils/lib/worker-api/validate-worker-version.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-body.d.ts +20 -0
- package/dist/worker-utils/lib/worker-farm/worker-body.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-body.js +131 -0
- package/dist/worker-utils/lib/worker-farm/worker-body.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-farm.d.ts +58 -0
- package/dist/worker-utils/lib/worker-farm/worker-farm.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-farm.js +116 -0
- package/dist/worker-utils/lib/worker-farm/worker-farm.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-job.d.ts +34 -0
- package/dist/worker-utils/lib/worker-farm/worker-job.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-job.js +74 -0
- package/dist/worker-utils/lib/worker-farm/worker-job.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-pool.d.ts +94 -0
- package/dist/worker-utils/lib/worker-farm/worker-pool.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-pool.js +246 -0
- package/dist/worker-utils/lib/worker-farm/worker-pool.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-thread.d.ts +67 -0
- package/dist/worker-utils/lib/worker-farm/worker-thread.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-thread.js +175 -0
- package/dist/worker-utils/lib/worker-farm/worker-thread.js.map +1 -0
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.d.ts +14 -0
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.js +72 -0
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.js.map +1 -0
- package/dist/worker-utils/lib/worker-utils/get-transfer-list.d.ts +15 -0
- package/dist/worker-utils/lib/worker-utils/get-transfer-list.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-utils/get-transfer-list.js +86 -0
- package/dist/worker-utils/lib/worker-utils/get-transfer-list.js.map +1 -0
- package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.d.ts +6 -0
- package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.js +27 -0
- package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.js.map +1 -0
- package/dist/worker-utils/null-worker-node.js +383 -0
- package/dist/worker-utils/null-worker-node.js.map +7 -0
- package/dist/worker-utils/null-worker.js +361 -0
- package/dist/worker-utils/null-worker.js.map +7 -0
- package/dist/worker-utils/types.d.ts +100 -0
- package/dist/worker-utils/types.d.ts.map +1 -0
- package/dist/worker-utils/types.js +5 -0
- package/dist/worker-utils/types.js.map +1 -0
- package/dist/worker-utils/workers/null-worker.d.ts +2 -0
- package/dist/worker-utils/workers/null-worker.d.ts.map +1 -0
- package/dist/worker-utils/workers/null-worker.js +17 -0
- package/dist/worker-utils/workers/null-worker.js.map +1 -0
- package/dist/workers/null-worker-node.js +1 -1
- package/dist/workers/null-worker-node.js.map +1 -1
- package/dist/workers/null-worker.js +1 -1
- package/dist/workers/null-worker.js.map +1 -1
- package/package.json +101 -11
- package/src/index.ts +10 -10
- package/src/iterators/make-iterator/make-iterator.ts +1 -1
- package/src/iterators/make-iterator/make-stream-iterator.ts +1 -1
- package/src/iterators/make-iterator/make-string-iterator.ts +1 -1
- package/src/lib/api/core-api.ts +1 -1
- package/src/lib/api/create-data-source.ts +2 -2
- package/src/lib/api/encode-table.ts +2 -2
- package/src/lib/api/encode.ts +3 -3
- package/src/lib/api/load-in-batches.ts +2 -2
- package/src/lib/api/load-loader.ts +2 -2
- package/src/lib/api/load.ts +2 -2
- package/src/lib/api/parse-file.ts +5 -3
- package/src/lib/api/parse-in-batches.ts +49 -11
- package/src/lib/api/parse-sync.ts +2 -2
- package/src/lib/api/parse.ts +8 -6
- package/src/lib/api/preload.ts +6 -1
- package/src/lib/api/register-loaders.ts +1 -1
- package/src/lib/api/select-loader.ts +3 -3
- package/src/lib/api/select-source.ts +1 -1
- package/src/lib/common.ts +1 -1
- package/src/lib/fetch/fetch-file.ts +2 -2
- package/src/lib/filesystems/browser-filesystem.ts +2 -2
- package/src/lib/init.ts +1 -1
- package/src/lib/loader-utils/get-data.ts +2 -2
- package/src/lib/loader-utils/get-fetch-function.ts +6 -4
- package/src/lib/loader-utils/loader-context.ts +6 -2
- package/src/lib/loader-utils/loggers.ts +1 -1
- package/src/lib/loader-utils/normalize-loader.ts +2 -2
- package/src/lib/loader-utils/option-defaults.ts +3 -2
- package/src/lib/loader-utils/option-utils.ts +2 -2
- package/src/lib/utils/resource-utils.ts +1 -1
- package/src/lib/utils/response-utils.ts +1 -1
- package/src/loader-utils/format-types.ts +49 -0
- package/src/loader-utils/index.ts +523 -0
- package/src/loader-utils/json-loader.ts +39 -0
- package/src/loader-utils/lib/binary-utils/array-buffer-utils.ts +114 -0
- package/src/loader-utils/lib/binary-utils/binary-chunk-reader.ts +297 -0
- package/src/loader-utils/lib/binary-utils/dataview-copy-utils.ts +121 -0
- package/src/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.ts +17 -0
- package/src/loader-utils/lib/binary-utils/get-first-characters.ts +46 -0
- package/src/loader-utils/lib/binary-utils/hex-transcoder.ts +54 -0
- package/src/loader-utils/lib/binary-utils/memory-conversion-utils.ts +105 -0
- package/src/loader-utils/lib/binary-utils/memory-copy-utils.ts +69 -0
- package/src/loader-utils/lib/crs/crs-reprojection.ts +52 -0
- package/src/loader-utils/lib/env-utils/assert.ts +13 -0
- package/src/loader-utils/lib/env-utils/globals.ts +36 -0
- package/src/loader-utils/lib/file-provider/data-view-file.ts +83 -0
- package/src/loader-utils/lib/file-provider/file-handle-file.ts +114 -0
- package/src/loader-utils/lib/file-provider/file-provider-interface.ts +60 -0
- package/src/loader-utils/lib/file-provider/file-provider.ts +130 -0
- package/src/loader-utils/lib/files/array-buffer-file.ts +46 -0
- package/src/loader-utils/lib/files/blob-file.ts +45 -0
- package/src/loader-utils/lib/files/file.ts +39 -0
- package/src/loader-utils/lib/files/http-file-transport.ts +432 -0
- package/src/loader-utils/lib/files/http-file-types.ts +60 -0
- package/src/loader-utils/lib/files/http-file.ts +267 -0
- package/src/loader-utils/lib/files/node-file-facade.ts +57 -0
- package/src/loader-utils/lib/files/sources.ts +154 -0
- package/src/loader-utils/lib/filesystems/filesystem.ts +40 -0
- package/src/loader-utils/lib/filesystems/node-filesystem-facade.ts +65 -0
- package/src/loader-utils/lib/iterators/async-iteration.ts +136 -0
- package/src/loader-utils/lib/iterators/text-iterators.ts +76 -0
- package/src/loader-utils/lib/javascript-utils/is-type.ts +130 -0
- package/src/loader-utils/lib/laz/LASZIP-LICENSE +202 -0
- package/src/loader-utils/lib/laz/LASZIP-NOTICE +6 -0
- package/src/loader-utils/lib/laz/laz-arithmetic-encoder.ts +446 -0
- package/src/loader-utils/lib/laz/laz-chunk-decoder.ts +5251 -0
- package/src/loader-utils/lib/laz/laz-chunk-encoder.ts +1909 -0
- package/src/loader-utils/lib/log-utils/log.ts +28 -0
- package/src/loader-utils/lib/module-utils/initialize-wasm-module.ts +51 -0
- package/src/loader-utils/lib/module-utils/js-module-utils.ts +44 -0
- package/src/loader-utils/lib/node/buffer.browser.ts +22 -0
- package/src/loader-utils/lib/node/buffer.ts +40 -0
- package/src/loader-utils/lib/node/fs.browser.ts +5 -0
- package/src/loader-utils/lib/node/promisify.ts +72 -0
- package/src/loader-utils/lib/node/stream.browser.ts +5 -0
- package/src/loader-utils/lib/node/stream.ts +12 -0
- package/src/loader-utils/lib/option-utils/merge-options.ts +50 -0
- package/src/loader-utils/lib/parser-utils/parse-json.ts +16 -0
- package/src/loader-utils/lib/path-utils/cached-uri-resolver.ts +69 -0
- package/src/loader-utils/lib/path-utils/file-aliases.ts +49 -0
- package/src/loader-utils/lib/path-utils/get-cwd.ts +12 -0
- package/src/loader-utils/lib/path-utils/path.ts +173 -0
- package/src/loader-utils/lib/request-utils/abort-utils.ts +64 -0
- package/src/loader-utils/lib/request-utils/authentication.ts +134 -0
- package/src/loader-utils/lib/request-utils/parse-content-type.ts +22 -0
- package/src/loader-utils/lib/request-utils/range-request-cache.ts +279 -0
- package/src/loader-utils/lib/request-utils/range-request-scheduler.ts +899 -0
- package/src/loader-utils/lib/request-utils/request-cache.ts +296 -0
- package/src/loader-utils/lib/request-utils/request-credentials.ts +574 -0
- package/src/loader-utils/lib/request-utils/request-scheduler.ts +230 -0
- package/src/loader-utils/lib/scan-utils/columnar-predicate.ts +397 -0
- package/src/loader-utils/lib/scan-utils/experimental-scan-options.ts +46 -0
- package/src/loader-utils/lib/scan-utils/point-cloud-query.ts +176 -0
- package/src/loader-utils/lib/scan-utils/raster-query.ts +82 -0
- package/src/loader-utils/lib/scan-utils/relational-query.ts +188 -0
- package/src/loader-utils/lib/scan-utils/scan-executor.ts +208 -0
- package/src/loader-utils/lib/scan-utils/scan-fragments.ts +33 -0
- package/src/loader-utils/lib/scan-utils/scan-query-metadata.ts +439 -0
- package/src/loader-utils/lib/scan-utils/table-query-explain.ts +88 -0
- package/src/loader-utils/lib/scan-utils/table-query.ts +163 -0
- package/src/loader-utils/lib/scan-utils/table-scan-batch.ts +200 -0
- package/src/loader-utils/lib/sources/catalog-source.ts +42 -0
- package/src/loader-utils/lib/sources/data-source-manager.ts +569 -0
- package/src/loader-utils/lib/sources/data-source.ts +236 -0
- package/src/loader-utils/lib/sources/image-source.ts +66 -0
- package/src/loader-utils/lib/sources/image-tile-source.ts +22 -0
- package/src/loader-utils/lib/sources/raster-coverage.ts +92 -0
- package/src/loader-utils/lib/sources/raster-region.ts +35 -0
- package/src/loader-utils/lib/sources/raster-sampling.ts +213 -0
- package/src/loader-utils/lib/sources/raster-source.ts +344 -0
- package/src/loader-utils/lib/sources/service-capabilities.ts +50 -0
- package/src/loader-utils/lib/sources/tile-grid.ts +162 -0
- package/src/loader-utils/lib/sources/tile-source-adapter.ts +126 -0
- package/src/loader-utils/lib/sources/tile-source-utils.ts +19 -0
- package/src/loader-utils/lib/sources/tile-source.ts +198 -0
- package/src/loader-utils/lib/sources/utils/image-type.ts +14 -0
- package/src/loader-utils/lib/sources/utils/utils.ts +31 -0
- package/src/loader-utils/lib/sources/vector-source.ts +89 -0
- package/src/loader-utils/lib/sources/vector-tile-source.ts +29 -0
- package/src/loader-utils/lib/sources/xyz-grid.ts +82 -0
- package/src/loader-utils/lib/worker-loader-utils/create-loader-worker.ts +256 -0
- package/src/loader-utils/lib/worker-loader-utils/encode-with-worker.ts +28 -0
- package/src/loader-utils/lib/worker-loader-utils/parse-with-worker.ts +392 -0
- package/src/loader-utils/loader-types.ts +543 -0
- package/src/loader-utils/source-types.ts +76 -0
- package/src/loader-utils/types.ts +83 -0
- package/src/loader-utils/workers/json-worker.ts +8 -0
- package/src/loader-utils/writer-types.ts +107 -0
- package/src/null-loader.ts +2 -2
- package/src/polyfills/README.md +16 -0
- package/src/polyfills/buffer/btoa.node.ts +15 -0
- package/src/polyfills/buffer/to-array-buffer.node.ts +12 -0
- package/src/polyfills/crypto/node-hash.ts +78 -0
- package/src/polyfills/fetch/decode-data-uri.ts +71 -0
- package/src/polyfills/fetch/fetch-polyfill.ts +165 -0
- package/src/polyfills/fetch/headers-polyfill.ts +119 -0
- package/src/polyfills/fetch/response-polyfill.ts +101 -0
- package/src/polyfills/fetch/utils/decode-data-uri.node.ts +34 -0
- package/src/polyfills/file/blob-stream-controller.ts +69 -0
- package/src/polyfills/file/blob-stream.ts +40 -0
- package/src/polyfills/file/blob.ts +177 -0
- package/src/polyfills/file/file-reader.ts +59 -0
- package/src/polyfills/file/file.ts +45 -0
- package/src/polyfills/file/install-blob-polyfills.ts +17 -0
- package/src/polyfills/file/install-file-polyfills.ts +24 -0
- package/src/polyfills/file/readable-stream.ts +8 -0
- package/src/polyfills/filesystems/fetch-node.ts +98 -0
- package/src/polyfills/filesystems/node-file.ts +169 -0
- package/src/polyfills/filesystems/node-filesystem.ts +54 -0
- package/src/polyfills/filesystems/stream-utils.node.ts +81 -0
- package/src/polyfills/images/encode-image-node.ts +45 -0
- package/src/polyfills/images/encode-image.node.ts.disabled +41 -0
- package/src/polyfills/images/image-codecs-node.ts +40 -0
- package/src/polyfills/images/node-image-bitmap.ts +81 -0
- package/src/polyfills/images/node-image-formats.ts +6 -0
- package/src/polyfills/images/parse-image-node.ts +54 -0
- package/src/polyfills/images/parse-image.node.ts.disabled +55 -0
- package/src/polyfills/index.browser.ts +23 -0
- package/src/polyfills/index.ts +154 -0
- package/src/polyfills/libs/encoding-indexes-asian.js +15 -0
- package/src/polyfills/load-library/require-utils.node.ts +108 -0
- package/src/polyfills/streams/make-node-stream.ts +83 -0
- package/src/polyfills/text-encoder/encoding-indexes.ts +36 -0
- package/src/polyfills/text-encoder/text-encoder.ts +3085 -0
- package/src/polyfills/utils/assert.ts +9 -0
- package/src/polyfills/utils/buffer-utils.ts +40 -0
- package/src/polyfills/utils/filesystem-types.ts +13 -0
- package/src/polyfills/utils/is-browser.ts +8 -0
- package/src/polyfills/utils/path-utils.ts +31 -0
- package/src/polyfills/wip/fetch-browser/fetch-file.browser.d.ts +34 -0
- package/src/schema/categories/category-gis.ts +63 -0
- package/src/schema/categories/category-image.ts +23 -0
- package/src/schema/categories/category-mesh.ts +138 -0
- package/src/schema/categories/category-table.ts +125 -0
- package/src/schema/categories/category-texture.ts +259 -0
- package/src/schema/deprecated/mesh-utils.ts +46 -0
- package/src/schema/float16.ts +111 -0
- package/src/schema/geometry/arrow-binary-features.ts +54 -0
- package/src/schema/geometry/binary-features.ts +43 -0
- package/src/schema/geometry/binary-geometries.ts +45 -0
- package/src/schema/geometry/flat-geometries.ts +72 -0
- package/src/schema/geometry/geoarrow.ts +116 -0
- package/src/schema/geospatial-metadata-zod-schema.ts +163 -0
- package/src/schema/index.ts +169 -0
- package/src/schema/metadata.ts +115 -0
- package/src/schema/types/batch.ts +47 -0
- package/src/schema/types/schema.ts +86 -0
- package/src/schema/types/types.ts +52 -0
- package/src/schema-utils/arrow-transport.ts +7 -0
- package/src/schema-utils/deprecated.ts +53 -0
- package/src/schema-utils/index.ts +165 -0
- package/src/schema-utils/lib/arrow/arrow-table-transport.ts +260 -0
- package/src/schema-utils/lib/arrow/split-arrow-buffers.ts +235 -0
- package/src/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.ts +78 -0
- package/src/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.ts +48 -0
- package/src/schema-utils/lib/converters/convert.ts +142 -0
- package/src/schema-utils/lib/converters/converters.ts +6 -0
- package/src/schema-utils/lib/converters/types.ts +44 -0
- package/src/schema-utils/lib/mesh/convert-mesh-to-table.ts +311 -0
- package/src/schema-utils/lib/mesh/convert-table-to-mesh.ts +257 -0
- package/src/schema-utils/lib/mesh/deduce-mesh-schema.ts +85 -0
- package/src/schema-utils/lib/mesh/mesh-utils.ts +73 -0
- package/src/schema-utils/lib/mesh/point-cloud-tiler.ts +485 -0
- package/src/schema-utils/lib/schema/convert-arrow-schema.ts +552 -0
- package/src/schema-utils/lib/schema/data-type.ts +122 -0
- package/src/schema-utils/lib/schema/deduce-table-schema.ts +119 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-field.ts +53 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-interface.ts +84 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-schema.ts +101 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-table.ts +85 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-type.ts +500 -0
- package/src/schema-utils/lib/table/arrow-api/enum.ts +99 -0
- package/src/schema-utils/lib/table/arrow-api/get-type-info.ts +38 -0
- package/src/schema-utils/lib/table/arrow-api/index.ts +50 -0
- package/src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator-builders.ts.disabled +190 -0
- package/src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.ts +85 -0
- package/src/schema-utils/lib/table/batch-builder/arrow-table-builder.ts +123 -0
- package/src/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.ts +82 -0
- package/src/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.ts +104 -0
- package/src/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.ts +108 -0
- package/src/schema-utils/lib/table/batch-builder/table-batch-aggregator.ts +28 -0
- package/src/schema-utils/lib/table/batch-builder/table-batch-builder.ts +185 -0
- package/src/schema-utils/lib/table/batches/convert-batches.ts +83 -0
- package/src/schema-utils/lib/table/batches/make-arrow-batch-iterator.ts +81 -0
- package/src/schema-utils/lib/table/batches/make-table-batch-iterator.ts +25 -0
- package/src/schema-utils/lib/table/batches/make-table-from-batches.ts +84 -0
- package/src/schema-utils/lib/table/query-arrow-table.ts +130 -0
- package/src/schema-utils/lib/table/tables/convert-arrow-table.ts +198 -0
- package/src/schema-utils/lib/table/tables/convert-table.ts +152 -0
- package/src/schema-utils/lib/table/tables/make-table.ts +127 -0
- package/src/schema-utils/lib/table/tables/row-utils.ts +59 -0
- package/src/schema-utils/lib/table/tables/table-accessors.ts +418 -0
- package/src/schema-utils/lib/table/tables/table-column.ts +49 -0
- package/src/schema-utils/lib/table/tables/table-converter/convert-tables.ts +35 -0
- package/src/schema-utils/lib/table/tables/table-converter/table-converter.ts +57 -0
- package/src/schema-utils/lib/table/tables/table-types.ts +37 -0
- package/src/schema-utils/lib/utils/assert.ts +12 -0
- package/src/schema-utils/lib/utils/async-queue.ts +109 -0
- package/src/schema-utils/types/types.ts +45 -0
- package/src/worker-utils/index.ts +82 -0
- package/src/worker-utils/lib/async-queue/async-queue.ts +100 -0
- package/src/worker-utils/lib/env-utils/assert.ts +14 -0
- package/src/worker-utils/lib/env-utils/globals.ts +40 -0
- package/src/worker-utils/lib/env-utils/version.ts +25 -0
- package/src/worker-utils/lib/library-utils/library-utils.ts +303 -0
- package/src/worker-utils/lib/node/worker_threads-browser.ts +34 -0
- package/src/worker-utils/lib/node/worker_threads.ts +58 -0
- package/src/worker-utils/lib/npm-tag.ts +11 -0
- package/src/worker-utils/lib/process-utils/child-process-proxy.browser.ts +23 -0
- package/src/worker-utils/lib/process-utils/child-process-proxy.ts +165 -0
- package/src/worker-utils/lib/process-utils/process-utils.ts +34 -0
- package/src/worker-utils/lib/worker-api/create-worker.ts +205 -0
- package/src/worker-utils/lib/worker-api/get-worker-url.ts +128 -0
- package/src/worker-utils/lib/worker-api/process-on-worker.ts +468 -0
- package/src/worker-utils/lib/worker-api/validate-worker-version.ts +44 -0
- package/src/worker-utils/lib/worker-farm/worker-body.ts +145 -0
- package/src/worker-utils/lib/worker-farm/worker-farm.ts +144 -0
- package/src/worker-utils/lib/worker-farm/worker-job.ts +85 -0
- package/src/worker-utils/lib/worker-farm/worker-pool.ts +316 -0
- package/src/worker-utils/lib/worker-farm/worker-thread.ts +206 -0
- package/src/worker-utils/lib/worker-utils/get-loadable-worker-url.ts +81 -0
- package/src/worker-utils/lib/worker-utils/get-transfer-list.ts +93 -0
- package/src/worker-utils/lib/worker-utils/remove-nontransferable-options.ts +27 -0
- package/src/worker-utils/types.ts +148 -0
- package/src/worker-utils/workers/null-worker.ts +20 -0
- package/src/workers/null-worker-node.ts +1 -1
- package/src/workers/null-worker.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -84,14 +84,14 @@ __export(index_exports, {
|
|
|
84
84
|
});
|
|
85
85
|
module.exports = __toCommonJS(index_exports);
|
|
86
86
|
|
|
87
|
-
//
|
|
87
|
+
// src/loader-utils/lib/env-utils/assert.ts
|
|
88
88
|
function assert(condition, message) {
|
|
89
89
|
if (!condition) {
|
|
90
90
|
throw new Error(message || "loader assertion failed.");
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
//
|
|
94
|
+
// src/loader-utils/lib/env-utils/globals.ts
|
|
95
95
|
var globals = {
|
|
96
96
|
self: typeof self !== "undefined" && self,
|
|
97
97
|
window: typeof window !== "undefined" && window,
|
|
@@ -110,8 +110,8 @@ var isWorker = typeof importScripts === "function";
|
|
|
110
110
|
var matches = typeof process !== "undefined" && process.version && /v([0-9]*)/.exec(process.version);
|
|
111
111
|
var nodeVersion = matches && parseFloat(matches[1]) || 0;
|
|
112
112
|
|
|
113
|
-
//
|
|
114
|
-
var import_log = require("
|
|
113
|
+
// src/loader-utils/lib/log-utils/log.ts
|
|
114
|
+
var import_log = require("probe.gl/log");
|
|
115
115
|
var VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
116
116
|
var version = VERSION[0] >= "0" && VERSION[0] <= "9" ? `v${VERSION}` : "";
|
|
117
117
|
function createLog() {
|
|
@@ -125,7 +125,7 @@ function createLog() {
|
|
|
125
125
|
}
|
|
126
126
|
var log = createLog();
|
|
127
127
|
|
|
128
|
-
//
|
|
128
|
+
// src/loader-utils/lib/javascript-utils/is-type.ts
|
|
129
129
|
var isBoolean = (value) => typeof value === "boolean";
|
|
130
130
|
var isFunction = (value) => typeof value === "function";
|
|
131
131
|
var isObject = (value) => value !== null && typeof value === "object";
|
|
@@ -145,7 +145,7 @@ var isReadableNodeStream = (value) => isObject(value) && isFunction(value.read)
|
|
|
145
145
|
var isReadableStream = (value) => isReadableDOMStream(value) || isReadableNodeStream(value);
|
|
146
146
|
var isWritableStream = (value) => isWritableDOMStream(value) || isWritableNodeStream(value);
|
|
147
147
|
|
|
148
|
-
//
|
|
148
|
+
// src/loader-utils/lib/option-utils/merge-options.ts
|
|
149
149
|
function mergeOptions(baseOptions, newOptions) {
|
|
150
150
|
return mergeOptionsRecursively(baseOptions || {}, newOptions);
|
|
151
151
|
}
|
|
@@ -168,17 +168,17 @@ function mergeOptionsRecursively(baseOptions, newOptions, level = 0) {
|
|
|
168
168
|
return options;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
//
|
|
171
|
+
// src/loader-utils/lib/module-utils/js-module-utils.ts
|
|
172
172
|
function registerJSModules(modules) {
|
|
173
173
|
globalThis.loaders ||= {};
|
|
174
174
|
globalThis.loaders.modules ||= {};
|
|
175
175
|
Object.assign(globalThis.loaders.modules, modules);
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
//
|
|
178
|
+
// src/worker-utils/lib/npm-tag.ts
|
|
179
179
|
var NPM_TAG = "latest";
|
|
180
180
|
|
|
181
|
-
//
|
|
181
|
+
// src/worker-utils/lib/env-utils/version.ts
|
|
182
182
|
function getVersion() {
|
|
183
183
|
var _a;
|
|
184
184
|
if (!((_a = globalThis._loadersgl_) == null ? void 0 : _a.version)) {
|
|
@@ -193,14 +193,14 @@ function getVersion() {
|
|
|
193
193
|
}
|
|
194
194
|
var VERSION2 = getVersion();
|
|
195
195
|
|
|
196
|
-
//
|
|
196
|
+
// src/worker-utils/lib/env-utils/assert.ts
|
|
197
197
|
function assert2(condition, message) {
|
|
198
198
|
if (!condition) {
|
|
199
199
|
throw new Error(message || "loaders.gl assertion failed.");
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
//
|
|
203
|
+
// src/worker-utils/lib/env-utils/globals.ts
|
|
204
204
|
var globals2 = {
|
|
205
205
|
self: typeof self !== "undefined" && self,
|
|
206
206
|
window: typeof window !== "undefined" && window,
|
|
@@ -219,7 +219,7 @@ var isMobile = typeof window !== "undefined" && typeof window.orientation !== "u
|
|
|
219
219
|
var matches2 = typeof process !== "undefined" && process.version && /v([0-9]*)/.exec(process.version);
|
|
220
220
|
var nodeVersion2 = matches2 && parseFloat(matches2[1]) || 0;
|
|
221
221
|
|
|
222
|
-
//
|
|
222
|
+
// src/worker-utils/lib/worker-farm/worker-job.ts
|
|
223
223
|
var WorkerJob = class {
|
|
224
224
|
name;
|
|
225
225
|
workerThread;
|
|
@@ -243,6 +243,7 @@ var WorkerJob = class {
|
|
|
243
243
|
* @param data any data structure, ideally consisting mostly of transferrable objects
|
|
244
244
|
*/
|
|
245
245
|
postMessage(type, payload) {
|
|
246
|
+
if (!this.isRunning) return;
|
|
246
247
|
this.workerThread.postMessage({
|
|
247
248
|
source: "loaders.gl",
|
|
248
249
|
// Lets worker ignore unrelated messages
|
|
@@ -278,9 +279,10 @@ var WorkerJob = class {
|
|
|
278
279
|
if (!this.isRunning) {
|
|
279
280
|
return;
|
|
280
281
|
}
|
|
281
|
-
const error = reason ?? createAbortError(`Worker job "${this.name}" was aborted`);
|
|
282
282
|
this.workerThread.destroy();
|
|
283
|
-
this.error(
|
|
283
|
+
this.error(
|
|
284
|
+
arguments.length ? reason : createAbortError(`Worker job "${this.name}" was aborted`)
|
|
285
|
+
);
|
|
284
286
|
}
|
|
285
287
|
};
|
|
286
288
|
function createAbortError(message) {
|
|
@@ -289,7 +291,7 @@ function createAbortError(message) {
|
|
|
289
291
|
return error;
|
|
290
292
|
}
|
|
291
293
|
|
|
292
|
-
//
|
|
294
|
+
// src/worker-utils/lib/node/worker_threads-browser.ts
|
|
293
295
|
var NodeWorker = class {
|
|
294
296
|
/** Restores the native worker constructor when this browser shim is embedded in a Node bundle. */
|
|
295
297
|
constructor(...arguments_) {
|
|
@@ -305,7 +307,7 @@ var NodeWorker = class {
|
|
|
305
307
|
}
|
|
306
308
|
};
|
|
307
309
|
|
|
308
|
-
//
|
|
310
|
+
// src/worker-utils/lib/worker-utils/get-loadable-worker-url.ts
|
|
309
311
|
var workerURLCache = /* @__PURE__ */ new Map();
|
|
310
312
|
function getLoadableWorkerURL(props) {
|
|
311
313
|
assert2(props.source && !props.url || !props.source && props.url);
|
|
@@ -343,7 +345,7 @@ function buildScriptSource(workerUrl) {
|
|
|
343
345
|
}`;
|
|
344
346
|
}
|
|
345
347
|
|
|
346
|
-
//
|
|
348
|
+
// src/worker-utils/lib/worker-utils/get-transfer-list.ts
|
|
347
349
|
function getTransferList(object, recursive = true, transfers) {
|
|
348
350
|
const transfersSet = transfers || /* @__PURE__ */ new Set();
|
|
349
351
|
if (!object) {
|
|
@@ -394,7 +396,7 @@ function getTransferListForWriter(object) {
|
|
|
394
396
|
return clone;
|
|
395
397
|
}
|
|
396
398
|
|
|
397
|
-
//
|
|
399
|
+
// src/worker-utils/lib/worker-farm/worker-thread.ts
|
|
398
400
|
var NOOP = () => {
|
|
399
401
|
};
|
|
400
402
|
var WorkerThread = class {
|
|
@@ -543,7 +545,7 @@ var WorkerThread = class {
|
|
|
543
545
|
}
|
|
544
546
|
};
|
|
545
547
|
|
|
546
|
-
//
|
|
548
|
+
// src/worker-utils/lib/worker-farm/worker-pool.ts
|
|
547
549
|
var WorkerPool = class {
|
|
548
550
|
name = "unnamed";
|
|
549
551
|
source;
|
|
@@ -585,9 +587,13 @@ var WorkerPool = class {
|
|
|
585
587
|
* @note Can free up significant memory
|
|
586
588
|
*/
|
|
587
589
|
destroy(reason = new Error("Worker pool was destroyed")) {
|
|
590
|
+
this.isDestroyed = true;
|
|
588
591
|
this.activeJobs.forEach((job) => job.abort(reason));
|
|
589
592
|
const queuedJobs = this.jobQueue.splice(0);
|
|
590
|
-
queuedJobs.forEach((queuedJob) =>
|
|
593
|
+
queuedJobs.forEach((queuedJob) => {
|
|
594
|
+
queuedJob.removeAbortListener();
|
|
595
|
+
queuedJob.onReject(reason);
|
|
596
|
+
});
|
|
591
597
|
this.idleQueue.forEach((worker) => worker.destroy());
|
|
592
598
|
this.isDestroyed = true;
|
|
593
599
|
}
|
|
@@ -609,12 +615,33 @@ var WorkerPool = class {
|
|
|
609
615
|
this.onDebug = props.onDebug;
|
|
610
616
|
}
|
|
611
617
|
}
|
|
612
|
-
async startJob(name, onMessage2 = (job, type, data) => job.done(data), onError = (job, error) => job.error(error)) {
|
|
618
|
+
async startJob(name, onMessage2 = (job, type, data) => job.done(data), onError = (job, error) => job.error(error), signal) {
|
|
619
|
+
if (signal == null ? void 0 : signal.aborted) {
|
|
620
|
+
throw signal.reason;
|
|
621
|
+
}
|
|
613
622
|
if (this.isDestroyed) {
|
|
614
623
|
return Promise.reject(new Error("Worker pool was destroyed"));
|
|
615
624
|
}
|
|
616
625
|
const startPromise = new Promise((onStart, onReject) => {
|
|
617
|
-
|
|
626
|
+
const abortQueuedJob = () => {
|
|
627
|
+
const index = this.jobQueue.indexOf(queuedJob);
|
|
628
|
+
if (index >= 0) {
|
|
629
|
+
this.jobQueue.splice(index, 1);
|
|
630
|
+
queuedJob.removeAbortListener();
|
|
631
|
+
onReject(signal == null ? void 0 : signal.reason);
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
const queuedJob = {
|
|
635
|
+
name,
|
|
636
|
+
onMessage: onMessage2,
|
|
637
|
+
onError,
|
|
638
|
+
onStart,
|
|
639
|
+
onReject,
|
|
640
|
+
signal,
|
|
641
|
+
removeAbortListener: () => signal == null ? void 0 : signal.removeEventListener("abort", abortQueuedJob)
|
|
642
|
+
};
|
|
643
|
+
this.jobQueue.push(queuedJob);
|
|
644
|
+
signal == null ? void 0 : signal.addEventListener("abort", abortQueuedJob, { once: true });
|
|
618
645
|
return this;
|
|
619
646
|
});
|
|
620
647
|
this._startQueuedJob();
|
|
@@ -626,10 +653,20 @@ var WorkerPool = class {
|
|
|
626
653
|
* Called when job is started and whenever a worker returns to the idleQueue
|
|
627
654
|
*/
|
|
628
655
|
async _startQueuedJob() {
|
|
656
|
+
var _a, _b, _c;
|
|
629
657
|
if (!this.jobQueue.length) {
|
|
630
658
|
return;
|
|
631
659
|
}
|
|
632
|
-
|
|
660
|
+
let workerThread;
|
|
661
|
+
try {
|
|
662
|
+
workerThread = this._getAvailableWorker();
|
|
663
|
+
} catch (error) {
|
|
664
|
+
const queuedJob2 = this.jobQueue.shift();
|
|
665
|
+
queuedJob2 == null ? void 0 : queuedJob2.removeAbortListener();
|
|
666
|
+
queuedJob2 == null ? void 0 : queuedJob2.onReject(error);
|
|
667
|
+
void this._startQueuedJob();
|
|
668
|
+
return;
|
|
669
|
+
}
|
|
633
670
|
if (!workerThread) {
|
|
634
671
|
return;
|
|
635
672
|
}
|
|
@@ -642,18 +679,30 @@ var WorkerPool = class {
|
|
|
642
679
|
backlog: this.jobQueue.length
|
|
643
680
|
});
|
|
644
681
|
const job = new WorkerJob(queuedJob.name, workerThread);
|
|
682
|
+
queuedJob.removeAbortListener();
|
|
683
|
+
const abortJob = () => {
|
|
684
|
+
var _a2;
|
|
685
|
+
return job.abort((_a2 = queuedJob.signal) == null ? void 0 : _a2.reason);
|
|
686
|
+
};
|
|
687
|
+
(_a = queuedJob.signal) == null ? void 0 : _a.addEventListener("abort", abortJob, { once: true });
|
|
688
|
+
if ((_b = queuedJob.signal) == null ? void 0 : _b.aborted) abortJob();
|
|
645
689
|
this.activeJobs.add(job);
|
|
646
690
|
workerThread.ref();
|
|
647
|
-
workerThread.onMessage = (data) =>
|
|
691
|
+
workerThread.onMessage = (data) => {
|
|
692
|
+
if (job.isRunning) queuedJob.onMessage(job, data.type, data.payload);
|
|
693
|
+
};
|
|
648
694
|
workerThread.onError = (error) => queuedJob.onError(job, error);
|
|
649
695
|
queuedJob.onStart(job);
|
|
650
696
|
try {
|
|
651
697
|
await job.result;
|
|
652
698
|
} catch {
|
|
653
699
|
} finally {
|
|
700
|
+
(_c = queuedJob.signal) == null ? void 0 : _c.removeEventListener("abort", abortJob);
|
|
654
701
|
this.activeJobs.delete(job);
|
|
655
702
|
this.returnWorkerToQueue(workerThread);
|
|
656
703
|
}
|
|
704
|
+
} else {
|
|
705
|
+
this.returnWorkerToQueue(workerThread);
|
|
657
706
|
}
|
|
658
707
|
}
|
|
659
708
|
/**
|
|
@@ -695,13 +744,18 @@ var WorkerPool = class {
|
|
|
695
744
|
if (this.count < this._getMaxConcurrency()) {
|
|
696
745
|
this.count++;
|
|
697
746
|
const name = `${this.name.toLowerCase()} (#${this.count} of ${this.maxConcurrency})`;
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
747
|
+
try {
|
|
748
|
+
return new WorkerThread({
|
|
749
|
+
name,
|
|
750
|
+
source: this.source,
|
|
751
|
+
url: this.url,
|
|
752
|
+
getUrl: this.getUrl,
|
|
753
|
+
loadWorker: this.loadWorker
|
|
754
|
+
});
|
|
755
|
+
} catch (error) {
|
|
756
|
+
this.count--;
|
|
757
|
+
throw error;
|
|
758
|
+
}
|
|
705
759
|
}
|
|
706
760
|
return null;
|
|
707
761
|
}
|
|
@@ -710,7 +764,7 @@ var WorkerPool = class {
|
|
|
710
764
|
}
|
|
711
765
|
};
|
|
712
766
|
|
|
713
|
-
//
|
|
767
|
+
// src/worker-utils/lib/worker-farm/worker-farm.ts
|
|
714
768
|
var DEFAULT_PROPS = {
|
|
715
769
|
maxConcurrency: 3,
|
|
716
770
|
maxMobileConcurrency: 1,
|
|
@@ -814,7 +868,7 @@ function getLoadWorkerId(loadWorker) {
|
|
|
814
868
|
return loadWorkerId;
|
|
815
869
|
}
|
|
816
870
|
|
|
817
|
-
//
|
|
871
|
+
// src/worker-utils/lib/async-queue/async-queue.ts
|
|
818
872
|
var AsyncQueue = class {
|
|
819
873
|
_values;
|
|
820
874
|
_settlers;
|
|
@@ -884,30 +938,32 @@ var AsyncQueue = class {
|
|
|
884
938
|
}
|
|
885
939
|
};
|
|
886
940
|
|
|
887
|
-
//
|
|
941
|
+
// src/worker-utils/lib/worker-api/get-worker-url.ts
|
|
888
942
|
var warnedWorkerVersionFallbacks = /* @__PURE__ */ new Set();
|
|
889
943
|
function getWorkerName(worker) {
|
|
890
944
|
const warning = worker.version !== VERSION2 ? ` (worker-utils@${VERSION2})` : "";
|
|
891
945
|
return `${worker.name}@${worker.version}${warning}`;
|
|
892
946
|
}
|
|
893
947
|
function getCustomWorkerURL(worker, options = {}) {
|
|
894
|
-
var _a;
|
|
895
|
-
const workerOptions = options[worker.id] || {};
|
|
948
|
+
var _a, _b;
|
|
896
949
|
const workerFile = isBrowser2 ? worker.workerFile || `${worker.id}-worker.js` : worker.workerNode || `${worker.id}-worker-node.js`;
|
|
897
|
-
let url =
|
|
898
|
-
if (!url && worker.id === "compression") {
|
|
899
|
-
url = options.workerUrl;
|
|
900
|
-
}
|
|
950
|
+
let url = getConfiguredWorkerURL(worker, options);
|
|
901
951
|
const workerType = options._workerType || ((_a = options == null ? void 0 : options.core) == null ? void 0 : _a._workerType);
|
|
902
952
|
if (!url && workerType === "test") {
|
|
903
953
|
if (isBrowser2) {
|
|
904
954
|
url = `modules/${worker.module}/dist/${workerFile}`;
|
|
905
955
|
} else {
|
|
906
|
-
|
|
956
|
+
const workerSourceDirectory = worker.module === "core" && ((_b = worker.workerNode) == null ? void 0 : _b.startsWith("worker-utils/")) ? "worker-utils/workers" : "workers";
|
|
957
|
+
const workerSourceNode = worker.workerSourceNode || `${workerSourceDirectory}/${worker.id}-worker-node.ts`;
|
|
958
|
+
url = `modules/${worker.module}/src/${workerSourceNode}`;
|
|
907
959
|
}
|
|
908
960
|
}
|
|
909
961
|
return url || null;
|
|
910
962
|
}
|
|
963
|
+
function getConfiguredWorkerURL(worker, options = {}) {
|
|
964
|
+
const workerOptions = options[worker.id] || {};
|
|
965
|
+
return workerOptions.workerUrl || (worker.id === "compression" ? options.workerUrl : null) || null;
|
|
966
|
+
}
|
|
911
967
|
function getWorkerURL(worker, options = {}) {
|
|
912
968
|
const customWorkerUrl = getCustomWorkerURL(worker, options);
|
|
913
969
|
const descriptorWorkerUrl = typeof worker.worker === "string" ? worker.worker : null;
|
|
@@ -942,7 +998,7 @@ function warnIfUsingNpmTagFallback(worker, url) {
|
|
|
942
998
|
);
|
|
943
999
|
}
|
|
944
1000
|
|
|
945
|
-
//
|
|
1001
|
+
// src/worker-utils/lib/worker-api/process-on-worker.ts
|
|
946
1002
|
function canProcessOnWorker(worker, options) {
|
|
947
1003
|
if (!WorkerFarm.isSupported()) {
|
|
948
1004
|
return false;
|
|
@@ -952,8 +1008,15 @@ function canProcessOnWorker(worker, options) {
|
|
|
952
1008
|
(worker.worker || worker.loadWorker || (workerOptions == null ? void 0 : workerOptions.workerUrl)) && (options == null ? void 0 : options.worker)
|
|
953
1009
|
);
|
|
954
1010
|
}
|
|
1011
|
+
function canProcessOnWorkerInBatches(worker, options = {}) {
|
|
1012
|
+
if (!canProcessOnWorker(worker, options)) return false;
|
|
1013
|
+
if (options.workerInBatches !== void 0) return options.workerInBatches;
|
|
1014
|
+
return Boolean(
|
|
1015
|
+
worker.workerInBatches && !options.source && !getConfiguredWorkerURL(worker, options)
|
|
1016
|
+
);
|
|
1017
|
+
}
|
|
955
1018
|
async function processOnWorker(worker, data, options = {}, context = {}, jobContext = {}) {
|
|
956
|
-
var _a
|
|
1019
|
+
var _a;
|
|
957
1020
|
throwIfAborted(options.signal);
|
|
958
1021
|
const name = getWorkerName(worker);
|
|
959
1022
|
const workerFarm = WorkerFarm.getWorkerFarm(options);
|
|
@@ -962,15 +1025,13 @@ async function processOnWorker(worker, data, options = {}, context = {}, jobCont
|
|
|
962
1025
|
const job = await workerPool.startJob(
|
|
963
1026
|
jobName,
|
|
964
1027
|
// eslint-disable-next-line
|
|
965
|
-
onMessage.bind(null, context)
|
|
1028
|
+
onMessage.bind(null, context, options),
|
|
1029
|
+
void 0,
|
|
1030
|
+
options.signal
|
|
966
1031
|
);
|
|
967
|
-
const abortJob = () => job.abort(getAbortReason(options.signal));
|
|
968
|
-
(_a = options.signal) == null ? void 0 : _a.addEventListener("abort", abortJob, { once: true });
|
|
969
|
-
if ((_b = options.signal) == null ? void 0 : _b.aborted) {
|
|
970
|
-
abortJob();
|
|
971
|
-
}
|
|
972
1032
|
try {
|
|
973
|
-
|
|
1033
|
+
if ((_a = options.signal) == null ? void 0 : _a.aborted) job.abort(getAbortReason(options.signal));
|
|
1034
|
+
const { signal: _signal, onProgress: _onProgress, ...workerOptions } = options;
|
|
974
1035
|
const transferableOptions = getTransferListForWriter(workerOptions);
|
|
975
1036
|
const transferableContext = getTransferListForWriter(jobContext);
|
|
976
1037
|
if (job.isRunning) {
|
|
@@ -982,15 +1043,15 @@ async function processOnWorker(worker, data, options = {}, context = {}, jobCont
|
|
|
982
1043
|
}
|
|
983
1044
|
const result = await job.result;
|
|
984
1045
|
return result.result;
|
|
985
|
-
}
|
|
986
|
-
|
|
1046
|
+
} catch (error) {
|
|
1047
|
+
job.abort(error);
|
|
1048
|
+
throw error;
|
|
987
1049
|
}
|
|
988
1050
|
}
|
|
989
1051
|
function processOnWorkerInBatches(worker, input, options = {}, context = {}, jobContext = {}) {
|
|
990
1052
|
return processOnWorkerInBatchesIterator(worker, input, options, context, jobContext);
|
|
991
1053
|
}
|
|
992
1054
|
async function* processOnWorkerInBatchesIterator(worker, input, options, context, jobContext) {
|
|
993
|
-
var _a, _b, _c;
|
|
994
1055
|
throwIfAborted(options.signal);
|
|
995
1056
|
const name = getWorkerName(worker);
|
|
996
1057
|
const workerFarm = WorkerFarm.getWorkerFarm(options);
|
|
@@ -999,8 +1060,15 @@ async function* processOnWorkerInBatchesIterator(worker, input, options, context
|
|
|
999
1060
|
const inputIterator = getAsyncIterator(input);
|
|
1000
1061
|
let outputFinished = false;
|
|
1001
1062
|
let inputFinished = false;
|
|
1063
|
+
let inputCleanupRequested = false;
|
|
1002
1064
|
let inputRequest = Promise.resolve();
|
|
1003
1065
|
const batchJobFailed = new Error("Worker batch job failed");
|
|
1066
|
+
const closeJobInput = () => {
|
|
1067
|
+
if (!inputFinished && !inputCleanupRequested) {
|
|
1068
|
+
inputCleanupRequested = true;
|
|
1069
|
+
closeInputIterator(inputIterator);
|
|
1070
|
+
}
|
|
1071
|
+
};
|
|
1004
1072
|
const finishOutput = () => {
|
|
1005
1073
|
if (!outputFinished) {
|
|
1006
1074
|
outputFinished = true;
|
|
@@ -1018,8 +1086,12 @@ async function* processOnWorkerInBatchesIterator(worker, input, options, context
|
|
|
1018
1086
|
options.jobName || worker.name,
|
|
1019
1087
|
(activeJob, type, payload) => {
|
|
1020
1088
|
switch (type) {
|
|
1089
|
+
case "progress":
|
|
1090
|
+
reportProgress(activeJob, options, payload);
|
|
1091
|
+
break;
|
|
1021
1092
|
case "input-request":
|
|
1022
1093
|
inputRequest = inputRequest.then(async () => {
|
|
1094
|
+
if (!activeJob.isRunning) return;
|
|
1023
1095
|
const nextBatch = await inputIterator.next();
|
|
1024
1096
|
if (!activeJob.isRunning) {
|
|
1025
1097
|
return;
|
|
@@ -1046,7 +1118,7 @@ async function* processOnWorkerInBatchesIterator(worker, input, options, context
|
|
|
1046
1118
|
break;
|
|
1047
1119
|
}
|
|
1048
1120
|
case "process":
|
|
1049
|
-
void onMessage(context, activeJob, type, payload);
|
|
1121
|
+
void onMessage(context, options, activeJob, type, payload);
|
|
1050
1122
|
break;
|
|
1051
1123
|
default: {
|
|
1052
1124
|
const error = new Error(`Unexpected worker batch message: ${type}`);
|
|
@@ -1055,16 +1127,19 @@ async function* processOnWorkerInBatchesIterator(worker, input, options, context
|
|
|
1055
1127
|
break;
|
|
1056
1128
|
}
|
|
1057
1129
|
}
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
}
|
|
1065
|
-
void job.result.catch(
|
|
1130
|
+
},
|
|
1131
|
+
void 0,
|
|
1132
|
+
options.signal
|
|
1133
|
+
).catch((error) => {
|
|
1134
|
+
closeJobInput();
|
|
1135
|
+
throw error;
|
|
1136
|
+
});
|
|
1137
|
+
void job.result.catch((error) => {
|
|
1138
|
+
failOutput(error);
|
|
1139
|
+
closeJobInput();
|
|
1140
|
+
});
|
|
1066
1141
|
try {
|
|
1067
|
-
const { signal: _signal, ...workerOptions } = options;
|
|
1142
|
+
const { signal: _signal, onProgress: _onProgress, ...workerOptions } = options;
|
|
1068
1143
|
if (job.isRunning) {
|
|
1069
1144
|
job.postMessage("process-in-batches", {
|
|
1070
1145
|
options: getTransferListForWriter(workerOptions),
|
|
@@ -1086,13 +1161,10 @@ async function* processOnWorkerInBatchesIterator(worker, input, options, context
|
|
|
1086
1161
|
}
|
|
1087
1162
|
await job.result;
|
|
1088
1163
|
} finally {
|
|
1089
|
-
(_c = options.signal) == null ? void 0 : _c.removeEventListener("abort", abortJob);
|
|
1090
1164
|
if (job.isRunning) {
|
|
1091
1165
|
job.abort(createAbortError2("Worker batch iterator was closed"));
|
|
1092
1166
|
}
|
|
1093
|
-
|
|
1094
|
-
closeInputIterator(inputIterator);
|
|
1095
|
-
}
|
|
1167
|
+
closeJobInput();
|
|
1096
1168
|
}
|
|
1097
1169
|
}
|
|
1098
1170
|
function throwIfAborted(signal) {
|
|
@@ -1102,7 +1174,7 @@ function throwIfAborted(signal) {
|
|
|
1102
1174
|
throw getAbortReason(signal);
|
|
1103
1175
|
}
|
|
1104
1176
|
function getAbortReason(signal) {
|
|
1105
|
-
return
|
|
1177
|
+
return signal ? signal.reason : createAbortError2("Worker job was aborted");
|
|
1106
1178
|
}
|
|
1107
1179
|
function createAbortError2(message) {
|
|
1108
1180
|
const error = new Error(message);
|
|
@@ -1142,8 +1214,11 @@ function getWorkerPoolTarget(worker, options, name) {
|
|
|
1142
1214
|
}
|
|
1143
1215
|
return { name, url: getWorkerURL(worker, options) };
|
|
1144
1216
|
}
|
|
1145
|
-
async function onMessage(context, job, type, payload) {
|
|
1217
|
+
async function onMessage(context, options, job, type, payload) {
|
|
1146
1218
|
switch (type) {
|
|
1219
|
+
case "progress":
|
|
1220
|
+
reportProgress(job, options, payload);
|
|
1221
|
+
break;
|
|
1147
1222
|
case "done":
|
|
1148
1223
|
job.done(payload);
|
|
1149
1224
|
break;
|
|
@@ -1151,13 +1226,18 @@ async function onMessage(context, job, type, payload) {
|
|
|
1151
1226
|
job.error(new Error(payload.error));
|
|
1152
1227
|
break;
|
|
1153
1228
|
case "process":
|
|
1154
|
-
const { id, input, options } = payload;
|
|
1229
|
+
const { id, input, options: processOptions } = payload;
|
|
1155
1230
|
try {
|
|
1156
1231
|
if (!context.process) {
|
|
1157
1232
|
job.postMessage("error", { id, error: "Worker not set up to process on main thread" });
|
|
1158
1233
|
return;
|
|
1159
1234
|
}
|
|
1160
|
-
const result = await context.process(
|
|
1235
|
+
const result = await context.process(
|
|
1236
|
+
input,
|
|
1237
|
+
{ ...processOptions, signal: options.signal, onProgress: options.onProgress },
|
|
1238
|
+
void 0,
|
|
1239
|
+
payload.context || {}
|
|
1240
|
+
);
|
|
1161
1241
|
job.postMessage("done", { id, result });
|
|
1162
1242
|
} catch (error) {
|
|
1163
1243
|
const message = error instanceof Error ? error.message : "unknown error";
|
|
@@ -1168,8 +1248,17 @@ async function onMessage(context, job, type, payload) {
|
|
|
1168
1248
|
console.warn(`process-on-worker: unknown message ${type}`);
|
|
1169
1249
|
}
|
|
1170
1250
|
}
|
|
1251
|
+
function reportProgress(job, options, payload) {
|
|
1252
|
+
var _a;
|
|
1253
|
+
if (!job.isRunning || !payload.progress) return;
|
|
1254
|
+
try {
|
|
1255
|
+
(_a = options.onProgress) == null ? void 0 : _a.call(options, payload.progress);
|
|
1256
|
+
} catch (error) {
|
|
1257
|
+
job.abort(error);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1171
1260
|
|
|
1172
|
-
//
|
|
1261
|
+
// src/worker-utils/lib/worker-api/validate-worker-version.ts
|
|
1173
1262
|
function validateWorkerVersion(worker, coreVersion = VERSION2) {
|
|
1174
1263
|
assert2(worker, "no worker provided");
|
|
1175
1264
|
const workerVersion = worker.version;
|
|
@@ -1179,7 +1268,7 @@ function validateWorkerVersion(worker, coreVersion = VERSION2) {
|
|
|
1179
1268
|
return true;
|
|
1180
1269
|
}
|
|
1181
1270
|
|
|
1182
|
-
//
|
|
1271
|
+
// src/loader-utils/lib/worker-loader-utils/parse-with-worker.ts
|
|
1183
1272
|
function canParseWithWorker(loader, options) {
|
|
1184
1273
|
var _a, _b, _c, _d, _e;
|
|
1185
1274
|
const workerUrl = (_a = options == null ? void 0 : options[loader.id]) == null ? void 0 : _a.workerUrl;
|
|
@@ -1202,6 +1291,15 @@ function canParseWithWorker(loader, options) {
|
|
|
1202
1291
|
}
|
|
1203
1292
|
return Boolean(canProcessOnWorker(loader, workerOptions));
|
|
1204
1293
|
}
|
|
1294
|
+
function canParseWithWorkerInBatches(loader, options) {
|
|
1295
|
+
const parquetOptions = options == null ? void 0 : options.parquet;
|
|
1296
|
+
if (loader.id === "parquet" && typeof (parquetOptions == null ? void 0 : parquetOptions.keyRetriever) === "function") {
|
|
1297
|
+
return false;
|
|
1298
|
+
}
|
|
1299
|
+
return Boolean(
|
|
1300
|
+
loader.workerInBatches && canParseWithWorker(loader, options) && canProcessOnWorkerInBatches(loader, getWorkerOptions(options))
|
|
1301
|
+
);
|
|
1302
|
+
}
|
|
1205
1303
|
function shouldParseWithWorker(loader, data, options, context, estimateLoader = loader) {
|
|
1206
1304
|
var _a, _b;
|
|
1207
1305
|
if (!canParseWithWorker(loader, options)) {
|
|
@@ -1221,11 +1319,15 @@ function shouldParseWithWorker(loader, data, options, context, estimateLoader =
|
|
|
1221
1319
|
}
|
|
1222
1320
|
}
|
|
1223
1321
|
async function parseWithWorker(loader, data, options, context, parseOnMainThread, signal) {
|
|
1224
|
-
const workerSignal = signal || getWorkerAbortSignal(options);
|
|
1322
|
+
const workerSignal = signal || getWorkerAbortSignal(options) || (context == null ? void 0 : context.signal);
|
|
1225
1323
|
const result = await processOnWorker(
|
|
1226
1324
|
loader,
|
|
1227
1325
|
data,
|
|
1228
|
-
{
|
|
1326
|
+
{
|
|
1327
|
+
...getWorkerOptions(options, loader),
|
|
1328
|
+
signal: workerSignal,
|
|
1329
|
+
onProgress: (options == null ? void 0 : options.onProgress) || (context == null ? void 0 : context.reportProgress)
|
|
1330
|
+
},
|
|
1229
1331
|
{
|
|
1230
1332
|
process: async (input, processOptions, _workerContext, parseContext) => {
|
|
1231
1333
|
if (!parseOnMainThread) {
|
|
@@ -1247,11 +1349,15 @@ async function parseWithWorker(loader, data, options, context, parseOnMainThread
|
|
|
1247
1349
|
return isLoaderWithWorkerResultDeserializer(loader) ? loader.deserializeWorkerResult(result, options, context) : result;
|
|
1248
1350
|
}
|
|
1249
1351
|
async function* parseWithWorkerInBatches(loader, inputIterator, options, context, parseOnMainThread, signal) {
|
|
1250
|
-
const workerSignal = signal || getWorkerAbortSignal(options);
|
|
1352
|
+
const workerSignal = signal || getWorkerAbortSignal(options) || (context == null ? void 0 : context.signal);
|
|
1251
1353
|
const outputIterator = processOnWorkerInBatches(
|
|
1252
1354
|
loader,
|
|
1253
1355
|
inputIterator,
|
|
1254
|
-
{
|
|
1356
|
+
{
|
|
1357
|
+
...getWorkerOptions(options, loader),
|
|
1358
|
+
signal: workerSignal,
|
|
1359
|
+
onProgress: (options == null ? void 0 : options.onProgress) || (context == null ? void 0 : context.reportProgress)
|
|
1360
|
+
},
|
|
1255
1361
|
{
|
|
1256
1362
|
process: async (input, processOptions, _workerContext, parseContext) => {
|
|
1257
1363
|
if (!parseOnMainThread) {
|
|
@@ -1276,6 +1382,7 @@ async function* parseWithWorkerInBatches(loader, inputIterator, options, context
|
|
|
1276
1382
|
}
|
|
1277
1383
|
function getWorkerAbortSignal(options) {
|
|
1278
1384
|
var _a;
|
|
1385
|
+
if (options == null ? void 0 : options.signal) return options.signal;
|
|
1279
1386
|
const parquetSignal = (_a = options == null ? void 0 : options.parquet) == null ? void 0 : _a.signal;
|
|
1280
1387
|
if (typeof AbortSignal !== "undefined" && parquetSignal instanceof AbortSignal) {
|
|
1281
1388
|
return parquetSignal;
|
|
@@ -1320,10 +1427,15 @@ function resolveWorkerLoaders(loader, loaderIds, loaderIsArray, context, options
|
|
|
1320
1427
|
function getWorkerOptions(options = {}, loader) {
|
|
1321
1428
|
const optionsToSerialize = {
|
|
1322
1429
|
...options,
|
|
1430
|
+
signal: void 0,
|
|
1431
|
+
onProgress: void 0,
|
|
1323
1432
|
...options.core ? { core: { ...options.core, authentications: void 0 } } : {}
|
|
1324
1433
|
};
|
|
1325
1434
|
const serializedOptions = JSON.parse(
|
|
1326
|
-
JSON.stringify(optionsToSerialize, (_key, value) =>
|
|
1435
|
+
JSON.stringify(optionsToSerialize, (_key, value) => {
|
|
1436
|
+
if (typeof AbortSignal !== "undefined" && value instanceof AbortSignal) return void 0;
|
|
1437
|
+
return typeof value === "bigint" ? null : value;
|
|
1438
|
+
})
|
|
1327
1439
|
);
|
|
1328
1440
|
restoreBigIntOptions(optionsToSerialize, serializedOptions);
|
|
1329
1441
|
const workerOptions = {
|
|
@@ -1350,7 +1462,17 @@ function getSerializableLoaderContext(context) {
|
|
|
1350
1462
|
if (!context) {
|
|
1351
1463
|
return {};
|
|
1352
1464
|
}
|
|
1353
|
-
const {
|
|
1465
|
+
const {
|
|
1466
|
+
fetch: fetch2,
|
|
1467
|
+
loaders,
|
|
1468
|
+
coreApi: coreApi2,
|
|
1469
|
+
signal,
|
|
1470
|
+
reportProgress: reportProgress2,
|
|
1471
|
+
_parse,
|
|
1472
|
+
_parseSync,
|
|
1473
|
+
_parseInBatches,
|
|
1474
|
+
...serializableContext
|
|
1475
|
+
} = context;
|
|
1354
1476
|
return JSON.parse(JSON.stringify(serializableContext));
|
|
1355
1477
|
}
|
|
1356
1478
|
function shouldParseCSVWithWorker(options) {
|
|
@@ -1362,7 +1484,7 @@ function isLoaderWithWorkerResultDeserializer(loader) {
|
|
|
1362
1484
|
return typeof loader.deserializeWorkerResult === "function";
|
|
1363
1485
|
}
|
|
1364
1486
|
|
|
1365
|
-
//
|
|
1487
|
+
// src/loader-utils/lib/worker-loader-utils/encode-with-worker.ts
|
|
1366
1488
|
function canEncodeWithWorker(writer, options) {
|
|
1367
1489
|
var _a, _b;
|
|
1368
1490
|
if (!WorkerFarm.isSupported()) {
|
|
@@ -1376,7 +1498,7 @@ function canEncodeWithWorker(writer, options) {
|
|
|
1376
1498
|
return Boolean(writer.worker && useWorkers);
|
|
1377
1499
|
}
|
|
1378
1500
|
|
|
1379
|
-
//
|
|
1501
|
+
// src/loader-utils/lib/binary-utils/array-buffer-utils.ts
|
|
1380
1502
|
function compareArrayBuffers(arrayBuffer1, arrayBuffer2, byteLength) {
|
|
1381
1503
|
byteLength = byteLength || arrayBuffer1.byteLength;
|
|
1382
1504
|
if (arrayBuffer1.byteLength < byteLength || arrayBuffer2.byteLength < byteLength) {
|
|
@@ -1408,7 +1530,7 @@ function concatenateArrayBuffersFromArray(sources) {
|
|
|
1408
1530
|
return result.buffer;
|
|
1409
1531
|
}
|
|
1410
1532
|
|
|
1411
|
-
//
|
|
1533
|
+
// src/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.ts
|
|
1412
1534
|
function encodeArrayBufferToBase64(arrayBuffer) {
|
|
1413
1535
|
const bytes = new Uint8Array(arrayBuffer);
|
|
1414
1536
|
const encodedChunks = [];
|
|
@@ -1421,7 +1543,7 @@ function encodeArrayBufferToBase64(arrayBuffer) {
|
|
|
1421
1543
|
return encodedChunks.join("");
|
|
1422
1544
|
}
|
|
1423
1545
|
|
|
1424
|
-
//
|
|
1546
|
+
// src/loader-utils/lib/iterators/text-iterators.ts
|
|
1425
1547
|
async function* makeTextDecoderIterator(arrayBufferIterator, options = {}) {
|
|
1426
1548
|
const textDecoder = new TextDecoder(void 0, options);
|
|
1427
1549
|
for await (const arrayBuffer of arrayBufferIterator) {
|
|
@@ -1459,7 +1581,7 @@ async function* makeNumberedLineIterator(lineIterator) {
|
|
|
1459
1581
|
}
|
|
1460
1582
|
}
|
|
1461
1583
|
|
|
1462
|
-
//
|
|
1584
|
+
// src/loader-utils/lib/iterators/async-iteration.ts
|
|
1463
1585
|
async function forEach(iterable, visitor) {
|
|
1464
1586
|
const iterator = toAsyncIterator(iterable);
|
|
1465
1587
|
while (true) {
|
|
@@ -1529,8 +1651,8 @@ function iteratorToAsyncIterator(iterator) {
|
|
|
1529
1651
|
};
|
|
1530
1652
|
}
|
|
1531
1653
|
|
|
1532
|
-
//
|
|
1533
|
-
var import_stats = require("
|
|
1654
|
+
// src/loader-utils/lib/request-utils/request-scheduler.ts
|
|
1655
|
+
var import_stats = require("probe.gl/stats");
|
|
1534
1656
|
var STAT_QUEUED_REQUESTS = "Queued Requests";
|
|
1535
1657
|
var STAT_ACTIVE_REQUESTS = "Active Requests";
|
|
1536
1658
|
var STAT_CANCELLED_REQUESTS = "Cancelled Requests";
|
|
@@ -1685,7 +1807,7 @@ var RequestScheduler = class {
|
|
|
1685
1807
|
}
|
|
1686
1808
|
};
|
|
1687
1809
|
|
|
1688
|
-
//
|
|
1810
|
+
// src/loader-utils/lib/request-utils/authentication.ts
|
|
1689
1811
|
function resolveCredentials(credentials, authentications = []) {
|
|
1690
1812
|
if (credentials.every(isAuthentication)) return credentials;
|
|
1691
1813
|
return credentials.map((credential, index) => {
|
|
@@ -1737,7 +1859,7 @@ function isAuthentication(credential) {
|
|
|
1737
1859
|
return (credential.type === "header" || credential.type === "query-parameter") && typeof credential.name === "string" && (typeof credential.token === "string" || typeof credential.token === "function") && Array.isArray(credential.refreshStatusCodes);
|
|
1738
1860
|
}
|
|
1739
1861
|
|
|
1740
|
-
//
|
|
1862
|
+
// src/loader-utils/lib/request-utils/request-credentials.ts
|
|
1741
1863
|
var AUTHENTICATED_FETCH = /* @__PURE__ */ Symbol("loaders.gl.authenticated-fetch");
|
|
1742
1864
|
var refreshPromises = /* @__PURE__ */ new WeakMap();
|
|
1743
1865
|
function createAuthenticatedFetch(options) {
|
|
@@ -1771,7 +1893,7 @@ function createAuthenticatedFetch(options) {
|
|
|
1771
1893
|
const authenticatedFetch = async (url, requestOptions = {}) => {
|
|
1772
1894
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1773
1895
|
requestOptions = mergeFetchOptions(fetchOptions, requestOptions);
|
|
1774
|
-
|
|
1896
|
+
(_a = requestOptions.signal) == null ? void 0 : _a.throwIfAborted();
|
|
1775
1897
|
if (!credentials.length) return baseFetch(url, requestOptions);
|
|
1776
1898
|
const resolvedURL = parseHTTPURL(url);
|
|
1777
1899
|
const authorization = resolvedURL ? await authorizeRequest(resolvedURL, requestOptions, tokenCredentials) : { url, options: requestOptions, credentials: [] };
|
|
@@ -1790,7 +1912,7 @@ function createAuthenticatedFetch(options) {
|
|
|
1790
1912
|
}
|
|
1791
1913
|
);
|
|
1792
1914
|
if (!refreshableCredentials.length && !shouldRetrySignature) return response;
|
|
1793
|
-
|
|
1915
|
+
(_e = requestOptions.signal) == null ? void 0 : _e.throwIfAborted();
|
|
1794
1916
|
const refreshedTokens = /* @__PURE__ */ new Map();
|
|
1795
1917
|
await Promise.all(
|
|
1796
1918
|
refreshableCredentials.map(async ({ credential }) => {
|
|
@@ -1801,7 +1923,7 @@ function createAuthenticatedFetch(options) {
|
|
|
1801
1923
|
if (!refreshedTokens.size && !shouldRetrySignature) return response;
|
|
1802
1924
|
await ((_f = response.body) == null ? void 0 : _f.cancel().catch(() => {
|
|
1803
1925
|
}));
|
|
1804
|
-
|
|
1926
|
+
(_g = requestOptions.signal) == null ? void 0 : _g.throwIfAborted();
|
|
1805
1927
|
const replayAuthorization = resolvedURL ? await authorizeRequest(
|
|
1806
1928
|
resolvedURL,
|
|
1807
1929
|
requestOptions,
|
|
@@ -1842,7 +1964,7 @@ async function authenticateRequest(request, credentials, reason, response) {
|
|
|
1842
1964
|
for (const credential of credentials) {
|
|
1843
1965
|
const origin = getRequestOrigin(request.url);
|
|
1844
1966
|
if (!origin || !normalizeRequestOrigins(credential.origins).includes(origin)) continue;
|
|
1845
|
-
|
|
1967
|
+
signal == null ? void 0 : signal.throwIfAborted();
|
|
1846
1968
|
const authenticatedRequest = await credential.authenticate({
|
|
1847
1969
|
url: request.url,
|
|
1848
1970
|
options: { ...request.options, headers: new Headers(request.options.headers) },
|
|
@@ -1858,7 +1980,7 @@ async function authenticateRequest(request, credentials, reason, response) {
|
|
|
1858
1980
|
};
|
|
1859
1981
|
appliedCredentials.push(credential);
|
|
1860
1982
|
}
|
|
1861
|
-
|
|
1983
|
+
signal == null ? void 0 : signal.throwIfAborted();
|
|
1862
1984
|
return { ...request, credentials: appliedCredentials };
|
|
1863
1985
|
}
|
|
1864
1986
|
function getRequestOrigin(url) {
|
|
@@ -1948,11 +2070,8 @@ function isReplayableRequest(options) {
|
|
|
1948
2070
|
if (!["GET", "HEAD", "OPTIONS", "PUT", "DELETE"].includes(method)) return false;
|
|
1949
2071
|
return !(options.body && typeof ReadableStream !== "undefined" && options.body instanceof ReadableStream);
|
|
1950
2072
|
}
|
|
1951
|
-
function createAbortError3() {
|
|
1952
|
-
return new DOMException("The operation was aborted.", "AbortError");
|
|
1953
|
-
}
|
|
1954
2073
|
|
|
1955
|
-
//
|
|
2074
|
+
// src/loader-utils/lib/path-utils/file-aliases.ts
|
|
1956
2075
|
var pathPrefix = "";
|
|
1957
2076
|
var fileAliases = {};
|
|
1958
2077
|
function setPathPrefix(prefix) {
|
|
@@ -1974,7 +2093,7 @@ function resolvePath(filename2) {
|
|
|
1974
2093
|
return filename2;
|
|
1975
2094
|
}
|
|
1976
2095
|
|
|
1977
|
-
//
|
|
2096
|
+
// src/loader-utils/lib/path-utils/path.ts
|
|
1978
2097
|
var path_exports = {};
|
|
1979
2098
|
__export(path_exports, {
|
|
1980
2099
|
dirname: () => dirname,
|
|
@@ -1983,7 +2102,7 @@ __export(path_exports, {
|
|
|
1983
2102
|
resolve: () => resolve
|
|
1984
2103
|
});
|
|
1985
2104
|
|
|
1986
|
-
//
|
|
2105
|
+
// src/loader-utils/lib/path-utils/get-cwd.ts
|
|
1987
2106
|
function getCWD() {
|
|
1988
2107
|
var _a;
|
|
1989
2108
|
if (typeof process !== "undefined" && typeof process.cwd !== "undefined") {
|
|
@@ -1993,7 +2112,7 @@ function getCWD() {
|
|
|
1993
2112
|
return (pathname == null ? void 0 : pathname.slice(0, pathname.lastIndexOf("/") + 1)) || "";
|
|
1994
2113
|
}
|
|
1995
2114
|
|
|
1996
|
-
//
|
|
2115
|
+
// src/loader-utils/lib/path-utils/path.ts
|
|
1997
2116
|
function filename(url) {
|
|
1998
2117
|
const slashIndex = url ? url.lastIndexOf("/") : -1;
|
|
1999
2118
|
return slashIndex >= 0 ? url.substr(slashIndex + 1) : url;
|
|
@@ -2118,7 +2237,7 @@ function normalizeStringPosix(path, allowAboveRoot) {
|
|
|
2118
2237
|
return res;
|
|
2119
2238
|
}
|
|
2120
2239
|
|
|
2121
|
-
//
|
|
2240
|
+
// src/loader-utils/json-loader.ts
|
|
2122
2241
|
var VERSION3 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
2123
2242
|
var JSONLoader = {
|
|
2124
2243
|
dataType: null,
|
|
@@ -2141,12 +2260,12 @@ function parseTextSync(text) {
|
|
|
2141
2260
|
return JSON.parse(text);
|
|
2142
2261
|
}
|
|
2143
2262
|
|
|
2144
|
-
//
|
|
2263
|
+
// src/loader-utils/lib/node/buffer.browser.ts
|
|
2145
2264
|
function toArrayBuffer(buffer) {
|
|
2146
2265
|
return buffer;
|
|
2147
2266
|
}
|
|
2148
2267
|
|
|
2149
|
-
//
|
|
2268
|
+
// src/loader-utils/lib/binary-utils/memory-conversion-utils.ts
|
|
2150
2269
|
function isBuffer(value) {
|
|
2151
2270
|
return value && typeof value === "object" && value.isBuffer;
|
|
2152
2271
|
}
|
|
@@ -2203,7 +2322,7 @@ function toArrayBufferView(data) {
|
|
|
2203
2322
|
return new Uint8Array(data);
|
|
2204
2323
|
}
|
|
2205
2324
|
|
|
2206
|
-
//
|
|
2325
|
+
// src/loader-utils/lib/files/blob-file.ts
|
|
2207
2326
|
var BlobFile = class {
|
|
2208
2327
|
handle;
|
|
2209
2328
|
size;
|
|
@@ -2236,7 +2355,7 @@ var BlobFile = class {
|
|
|
2236
2355
|
}
|
|
2237
2356
|
};
|
|
2238
2357
|
|
|
2239
|
-
//
|
|
2358
|
+
// src/loader-utils/lib/files/node-file-facade.ts
|
|
2240
2359
|
var NOT_IMPLEMENTED = new Error("Not implemented");
|
|
2241
2360
|
var NodeFileFacade = class {
|
|
2242
2361
|
handle;
|
|
@@ -2251,7 +2370,9 @@ var NodeFileFacade = class {
|
|
|
2251
2370
|
if (isBrowser) {
|
|
2252
2371
|
throw new Error("Can't instantiate NodeFile in browser.");
|
|
2253
2372
|
}
|
|
2254
|
-
throw new Error(
|
|
2373
|
+
throw new Error(
|
|
2374
|
+
"Can't instantiate NodeFile. Make sure to import @loaders.gl/core/polyfills first."
|
|
2375
|
+
);
|
|
2255
2376
|
}
|
|
2256
2377
|
/** Read data */
|
|
2257
2378
|
async read(start, length) {
|
|
@@ -2278,7 +2399,7 @@ var NodeFileFacade = class {
|
|
|
2278
2399
|
}
|
|
2279
2400
|
};
|
|
2280
2401
|
|
|
2281
|
-
//
|
|
2402
|
+
// src/loader-utils/source-types.ts
|
|
2282
2403
|
function isSourceLoader(loader) {
|
|
2283
2404
|
return Boolean(loader && typeof loader === "object" && "createDataSource" in loader);
|
|
2284
2405
|
}
|
|
@@ -2507,7 +2628,7 @@ async function readBlob(blob) {
|
|
|
2507
2628
|
}
|
|
2508
2629
|
|
|
2509
2630
|
// dist/lib/loader-utils/loggers.js
|
|
2510
|
-
var import_log3 = require("
|
|
2631
|
+
var import_log3 = require("probe.gl/log");
|
|
2511
2632
|
var probeLog = new import_log3.Log({ id: "loaders.gl" });
|
|
2512
2633
|
var NullLog = class {
|
|
2513
2634
|
/** Drops a log message. */
|
|
@@ -2593,6 +2714,7 @@ var DEFAULT_LOADER_OPTIONS = {
|
|
|
2593
2714
|
worker: true,
|
|
2594
2715
|
// By default, use worker if provided by loader.
|
|
2595
2716
|
workerThreshold: 0.1,
|
|
2717
|
+
workerInBatches: void 0,
|
|
2596
2718
|
maxConcurrency: 3,
|
|
2597
2719
|
// How many worker instances should be created for each loader.
|
|
2598
2720
|
maxMobileConcurrency: 1,
|
|
@@ -2769,7 +2891,7 @@ function validateOptionsObject(options, id, defaultOptions, deprecatedOptions, l
|
|
|
2769
2891
|
const prefix = id ? `${id}.` : "";
|
|
2770
2892
|
for (const key in options) {
|
|
2771
2893
|
const isSubOptions = !id && isObject(options[key]);
|
|
2772
|
-
const isBaseUriOption =
|
|
2894
|
+
const isBaseUriOption = !id && ["baseUri", "signal", "onProgress"].includes(key);
|
|
2773
2895
|
const isWorkerUrlOption = key === "workerUrl" && id;
|
|
2774
2896
|
if (!(key in defaultOptions) && !isBaseUriOption && !isWorkerUrlOption) {
|
|
2775
2897
|
if (key in deprecatedOptions) {
|
|
@@ -3474,11 +3596,13 @@ function getFetchFunction(options, context) {
|
|
|
3474
3596
|
} else {
|
|
3475
3597
|
fetchFunction = fetchFile;
|
|
3476
3598
|
}
|
|
3599
|
+
const signal = loaderOptions.signal || (context == null ? void 0 : context.signal);
|
|
3600
|
+
const requestOptions = isObject(fetchOption) ? fetchOption : void 0;
|
|
3477
3601
|
return createAuthenticatedFetch({
|
|
3478
3602
|
fetch: fetchFunction,
|
|
3479
3603
|
credentials: ((_b = loaderOptions.core) == null ? void 0 : _b.credentials) || [],
|
|
3480
3604
|
authentications: (_c = loaderOptions.core) == null ? void 0 : _c.authentications,
|
|
3481
|
-
fetchOptions:
|
|
3605
|
+
fetchOptions: signal ? { ...requestOptions, signal } : requestOptions
|
|
3482
3606
|
});
|
|
3483
3607
|
}
|
|
3484
3608
|
|
|
@@ -3682,13 +3806,14 @@ async function bindSubloaders(loader, options, url) {
|
|
|
3682
3806
|
|
|
3683
3807
|
// dist/lib/api/parse-file.js
|
|
3684
3808
|
async function parseFile(file, loaders, options, context) {
|
|
3685
|
-
var _a, _b;
|
|
3809
|
+
var _a, _b, _c;
|
|
3686
3810
|
if (loaders && !Array.isArray(loaders) && !isLoaderObject(loaders)) {
|
|
3687
3811
|
context = void 0;
|
|
3688
3812
|
options = loaders;
|
|
3689
3813
|
loaders = void 0;
|
|
3690
3814
|
}
|
|
3691
3815
|
options = options || {};
|
|
3816
|
+
(_a = options.signal || (context == null ? void 0 : context.signal)) == null ? void 0 : _a.throwIfAborted();
|
|
3692
3817
|
const url = file.url || "";
|
|
3693
3818
|
const typedLoaders = loaders;
|
|
3694
3819
|
const candidateLoaders = getLoadersFromContext(typedLoaders, context);
|
|
@@ -3700,7 +3825,7 @@ async function parseFile(file, loaders, options, context) {
|
|
|
3700
3825
|
throw new Error(`${loader.id} is a SourceLoader. Use load() to create a runtime source object instead of parseFile().`);
|
|
3701
3826
|
}
|
|
3702
3827
|
const normalizedOptions = normalizeOptions(options, loader, candidateLoaders, url);
|
|
3703
|
-
const authenticationLoader = !loader.getAuthentications && ((
|
|
3828
|
+
const authenticationLoader = !loader.getAuthentications && ((_c = (_b = normalizedOptions.core) == null ? void 0 : _b.credentials) == null ? void 0 : _c.length) ? await getLoaderImplementation(loader, normalizedOptions, url || (context == null ? void 0 : context.url)) : loader;
|
|
3704
3829
|
const strictOptions = await resolveLoaderAuthenticationOptions(authenticationLoader, url, normalizedOptions);
|
|
3705
3830
|
context = getLoaderContext(
|
|
3706
3831
|
// @ts-expect-error candidateLoaders may be a single forced loader
|
|
@@ -3711,6 +3836,8 @@ async function parseFile(file, loaders, options, context) {
|
|
|
3711
3836
|
return await parseFileWithLoader(loader, file, strictOptions, context);
|
|
3712
3837
|
}
|
|
3713
3838
|
async function parseFileWithLoader(loader, file, options, context) {
|
|
3839
|
+
var _a;
|
|
3840
|
+
(_a = options.signal || context.signal) == null ? void 0 : _a.throwIfAborted();
|
|
3714
3841
|
validateWorkerVersion(loader);
|
|
3715
3842
|
options = mergeOptions(loader.options, options);
|
|
3716
3843
|
const loaderWithParser = await getLoaderImplementation(loader, options, context.url);
|
|
@@ -3769,67 +3896,26 @@ function parseWithLoaderSync(loader, data, options, context) {
|
|
|
3769
3896
|
throw new Error(`${loader.name} loader: 'parseSync' not supported by this loader, use 'parse' instead. ${context.url || ""}`);
|
|
3770
3897
|
}
|
|
3771
3898
|
|
|
3772
|
-
// ../schema-utils/src/lib/table/tables/table-accessors.ts
|
|
3773
|
-
function isTable(table) {
|
|
3774
|
-
var _a;
|
|
3775
|
-
const shape = typeof table === "object" && (table == null ? void 0 : table.shape);
|
|
3776
|
-
switch (shape) {
|
|
3777
|
-
case "array-row-table":
|
|
3778
|
-
case "object-row-table":
|
|
3779
|
-
return Array.isArray(table.data);
|
|
3780
|
-
case "geojson-table":
|
|
3781
|
-
return Array.isArray(table.features);
|
|
3782
|
-
case "columnar-table":
|
|
3783
|
-
return Boolean(table.data && typeof table.data === "object");
|
|
3784
|
-
case "arrow-table":
|
|
3785
|
-
return Boolean(((_a = table == null ? void 0 : table.data) == null ? void 0 : _a.numRows) !== void 0);
|
|
3786
|
-
default:
|
|
3787
|
-
return false;
|
|
3788
|
-
}
|
|
3789
|
-
}
|
|
3790
|
-
function getTableLength(table) {
|
|
3791
|
-
switch (table.shape) {
|
|
3792
|
-
case "array-row-table":
|
|
3793
|
-
case "object-row-table":
|
|
3794
|
-
return table.data.length;
|
|
3795
|
-
case "geojson-table":
|
|
3796
|
-
return table.features.length;
|
|
3797
|
-
case "arrow-table":
|
|
3798
|
-
const arrowTable = table.data;
|
|
3799
|
-
return arrowTable.numRows;
|
|
3800
|
-
case "columnar-table":
|
|
3801
|
-
for (const column of Object.values(table.data)) {
|
|
3802
|
-
return column.length || 0;
|
|
3803
|
-
}
|
|
3804
|
-
return 0;
|
|
3805
|
-
default:
|
|
3806
|
-
throw new Error("table");
|
|
3807
|
-
}
|
|
3808
|
-
}
|
|
3809
|
-
|
|
3810
|
-
// ../schema-utils/src/lib/table/batches/make-table-batch-iterator.ts
|
|
3811
|
-
function makeBatchFromTable(table) {
|
|
3812
|
-
return { ...table, length: getTableLength(table), batchType: "data" };
|
|
3813
|
-
}
|
|
3814
|
-
|
|
3815
3899
|
// dist/lib/api/parse-in-batches.js
|
|
3816
3900
|
async function parseInBatches(data, loaders, options, context) {
|
|
3817
|
-
var _a, _b;
|
|
3901
|
+
var _a, _b, _c, _d;
|
|
3818
3902
|
const loaderArray = Array.isArray(loaders) ? loaders : void 0;
|
|
3819
3903
|
if (!Array.isArray(loaders) && !isLoaderObject(loaders)) {
|
|
3820
3904
|
context = void 0;
|
|
3821
3905
|
options = loaders;
|
|
3822
3906
|
loaders = void 0;
|
|
3823
3907
|
}
|
|
3908
|
+
(_a = (options == null ? void 0 : options.signal) || (context == null ? void 0 : context.signal)) == null ? void 0 : _a.throwIfAborted();
|
|
3824
3909
|
data = await data;
|
|
3825
3910
|
options = options || {};
|
|
3911
|
+
(_b = options.signal || (context == null ? void 0 : context.signal)) == null ? void 0 : _b.throwIfAborted();
|
|
3826
3912
|
const url = getResourceUrl(data);
|
|
3827
3913
|
const loader = await selectLoader(data, loaders, options);
|
|
3828
3914
|
if (!loader) {
|
|
3829
3915
|
return [];
|
|
3830
3916
|
}
|
|
3831
3917
|
const normalizedOptions = normalizeOptions(options, loader, loaderArray, url);
|
|
3832
|
-
const authenticationLoader = !loader.getAuthentications && ((
|
|
3918
|
+
const authenticationLoader = !loader.getAuthentications && ((_d = (_c = normalizedOptions.core) == null ? void 0 : _c.credentials) == null ? void 0 : _d.length) ? await getLoaderImplementation(loader, normalizedOptions, url || (context == null ? void 0 : context.url)) : loader;
|
|
3833
3919
|
const strictOptions = await resolveLoaderAuthenticationOptions(authenticationLoader, url || "", normalizedOptions);
|
|
3834
3920
|
context = getLoaderContext({ url, _parseInBatches: parseInBatches, _parse: parse, loaders: loaderArray }, strictOptions, context || null);
|
|
3835
3921
|
const loaderWithParser = await getLoaderImplementation(loader, strictOptions, context.url);
|
|
@@ -3863,7 +3949,7 @@ async function parseToOutputIterator(loader, data, options, context) {
|
|
|
3863
3949
|
const inputIterator = await getAsyncIterableFromData(data, options);
|
|
3864
3950
|
const transformedIterator = await applyInputTransforms(inputIterator, ((_a = options == null ? void 0 : options.core) == null ? void 0 : _a.transforms) || []);
|
|
3865
3951
|
if (loader.parseInBatches) {
|
|
3866
|
-
if (
|
|
3952
|
+
if (canParseWithWorkerInBatches(loader, options)) {
|
|
3867
3953
|
return parseWithWorkerInBatches(loader, transformedIterator, options, context, parse);
|
|
3868
3954
|
}
|
|
3869
3955
|
return loader.parseInBatches(transformedIterator, options, context);
|
|
@@ -3883,7 +3969,7 @@ async function* parseChunkInBatches(transformedIterator, loader, options, contex
|
|
|
3883
3969
|
yield batch;
|
|
3884
3970
|
}
|
|
3885
3971
|
function convertDataToBatch(parsedData, loader) {
|
|
3886
|
-
const batch = isTable(parsedData) ?
|
|
3972
|
+
const batch = isTable(parsedData) ? { ...parsedData, length: getTableLength(parsedData), batchType: "data" } : {
|
|
3887
3973
|
shape: "unknown",
|
|
3888
3974
|
batchType: "data",
|
|
3889
3975
|
data: parsedData,
|
|
@@ -3892,6 +3978,41 @@ function convertDataToBatch(parsedData, loader) {
|
|
|
3892
3978
|
batch.mimeType = loader.mimeTypes[0];
|
|
3893
3979
|
return batch;
|
|
3894
3980
|
}
|
|
3981
|
+
function isTable(value) {
|
|
3982
|
+
if (!value || typeof value !== "object" || !("shape" in value)) {
|
|
3983
|
+
return false;
|
|
3984
|
+
}
|
|
3985
|
+
const table = value;
|
|
3986
|
+
switch (table.shape) {
|
|
3987
|
+
case "array-row-table":
|
|
3988
|
+
case "object-row-table":
|
|
3989
|
+
return Array.isArray(table.data);
|
|
3990
|
+
case "geojson-table":
|
|
3991
|
+
return Array.isArray(table.features);
|
|
3992
|
+
case "columnar-table":
|
|
3993
|
+
return Boolean(table.data && typeof table.data === "object");
|
|
3994
|
+
case "arrow-table":
|
|
3995
|
+
return Boolean(table.data && typeof table.data === "object" && "numRows" in table.data);
|
|
3996
|
+
default:
|
|
3997
|
+
return false;
|
|
3998
|
+
}
|
|
3999
|
+
}
|
|
4000
|
+
function getTableLength(table) {
|
|
4001
|
+
switch (table.shape) {
|
|
4002
|
+
case "array-row-table":
|
|
4003
|
+
case "object-row-table":
|
|
4004
|
+
return table.data.length;
|
|
4005
|
+
case "geojson-table":
|
|
4006
|
+
return table.features.length;
|
|
4007
|
+
case "arrow-table":
|
|
4008
|
+
return table.data.numRows;
|
|
4009
|
+
case "columnar-table":
|
|
4010
|
+
for (const column of Object.values(table.data)) {
|
|
4011
|
+
return column.length || 0;
|
|
4012
|
+
}
|
|
4013
|
+
return 0;
|
|
4014
|
+
}
|
|
4015
|
+
}
|
|
3895
4016
|
async function applyInputTransforms(inputIterator, transforms = []) {
|
|
3896
4017
|
let iteratorChain = inputIterator;
|
|
3897
4018
|
for await (const transformBatches of transforms) {
|
|
@@ -4054,6 +4175,8 @@ function getLoaderContext(context, options, parentContext) {
|
|
|
4054
4175
|
if (parentContext) {
|
|
4055
4176
|
return {
|
|
4056
4177
|
...parentContext,
|
|
4178
|
+
signal: options.signal || parentContext.signal,
|
|
4179
|
+
reportProgress: options.onProgress || parentContext.reportProgress,
|
|
4057
4180
|
coreApi: parentContext.coreApi || context.coreApi || coreApi,
|
|
4058
4181
|
_parse: parentContext._parse || context._parse,
|
|
4059
4182
|
fetch: getFetchFunction(options, parentContext)
|
|
@@ -4061,6 +4184,8 @@ function getLoaderContext(context, options, parentContext) {
|
|
|
4061
4184
|
}
|
|
4062
4185
|
const newContext = {
|
|
4063
4186
|
...context,
|
|
4187
|
+
signal: options.signal || context.signal,
|
|
4188
|
+
reportProgress: options.onProgress || context.reportProgress,
|
|
4064
4189
|
fetch: getFetchFunction(options, context),
|
|
4065
4190
|
coreApi: context.coreApi || coreApi
|
|
4066
4191
|
};
|
|
@@ -4093,14 +4218,16 @@ function getLoadersFromContext(loaders, context) {
|
|
|
4093
4218
|
|
|
4094
4219
|
// dist/lib/api/parse.js
|
|
4095
4220
|
async function parse(data, loaders, options, context) {
|
|
4096
|
-
var _a, _b;
|
|
4221
|
+
var _a, _b, _c, _d;
|
|
4097
4222
|
if (loaders && !Array.isArray(loaders) && !isLoaderObject(loaders)) {
|
|
4098
4223
|
context = void 0;
|
|
4099
4224
|
options = loaders;
|
|
4100
4225
|
loaders = void 0;
|
|
4101
4226
|
}
|
|
4227
|
+
(_a = (options == null ? void 0 : options.signal) || (context == null ? void 0 : context.signal)) == null ? void 0 : _a.throwIfAborted();
|
|
4102
4228
|
data = await data;
|
|
4103
4229
|
options = options || {};
|
|
4230
|
+
(_b = options.signal || (context == null ? void 0 : context.signal)) == null ? void 0 : _b.throwIfAborted();
|
|
4104
4231
|
const url = getResourceUrl(data);
|
|
4105
4232
|
const typedLoaders = loaders;
|
|
4106
4233
|
const candidateLoaders = getLoadersFromContext(typedLoaders, context);
|
|
@@ -4112,7 +4239,7 @@ async function parse(data, loaders, options, context) {
|
|
|
4112
4239
|
throw new Error(`${loader.id} is a SourceLoader. Use load() to create a runtime source object instead of parse().`);
|
|
4113
4240
|
}
|
|
4114
4241
|
const normalizedOptions = normalizeOptions(options, loader, candidateLoaders, url);
|
|
4115
|
-
const authenticationLoader = !loader.getAuthentications && ((
|
|
4242
|
+
const authenticationLoader = !loader.getAuthentications && ((_d = (_c = normalizedOptions.core) == null ? void 0 : _c.credentials) == null ? void 0 : _d.length) ? await getLoaderImplementation(loader, normalizedOptions, url || (context == null ? void 0 : context.url)) : loader;
|
|
4116
4243
|
const strictOptions = await resolveLoaderAuthenticationOptions(authenticationLoader, url || "", normalizedOptions);
|
|
4117
4244
|
context = getLoaderContext(
|
|
4118
4245
|
// @ts-expect-error
|
|
@@ -4123,6 +4250,8 @@ async function parse(data, loaders, options, context) {
|
|
|
4123
4250
|
return await parseWithLoader(loader, data, strictOptions, context);
|
|
4124
4251
|
}
|
|
4125
4252
|
async function parseWithLoader(loader, data, options, context) {
|
|
4253
|
+
var _a;
|
|
4254
|
+
(_a = options.signal || context.signal) == null ? void 0 : _a.throwIfAborted();
|
|
4126
4255
|
validateWorkerVersion(loader);
|
|
4127
4256
|
options = mergeOptions(loader.options, options);
|
|
4128
4257
|
if (isResponse(data)) {
|
|
@@ -4390,7 +4519,7 @@ function makeStream(source, options) {
|
|
|
4390
4519
|
}
|
|
4391
4520
|
|
|
4392
4521
|
// dist/null-loader.js
|
|
4393
|
-
var VERSION4 = true ? "5.0.0-alpha.
|
|
4522
|
+
var VERSION4 = true ? "5.0.0-alpha.14" : "latest";
|
|
4394
4523
|
var NullWorkerLoader = {
|
|
4395
4524
|
dataType: null,
|
|
4396
4525
|
batchType: null,
|