@loaders.gl/compression 3.0.10 → 3.0.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/dist/compression-worker.js +197 -71
- package/dist/compression-worker.js.map +1 -1
- package/dist/dist.es5.min.js +1 -1
- package/dist/dist.es5.min.js.map +1 -1
- package/dist/dist.min.js +1 -1
- package/dist/dist.min.js.map +1 -1
- package/dist/es5/index.js +1 -1
- package/dist/es5/lib/brotli-compression.js +2 -4
- package/dist/es5/lib/brotli-compression.js.map +1 -1
- package/dist/es5/lib/deflate-compression.js +4 -6
- package/dist/es5/lib/deflate-compression.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lib/brotli-compression.js +1 -1
- package/dist/esm/lib/brotli-compression.js.map +1 -1
- package/dist/esm/lib/compression.js +2 -2
- package/dist/esm/lib/compression.js.map +1 -1
- package/dist/esm/lib/deflate-compression.js +3 -3
- package/dist/esm/lib/deflate-compression.js.map +1 -1
- package/dist/esm/workers/worker.js +2 -2
- package/dist/esm/workers/worker.js.map +1 -1
- package/package.json +4 -4
- package/src/lib/brotli-compression.ts +1 -1
- package/src/lib/deflate-compression.ts +1 -1
|
@@ -2576,7 +2576,7 @@ function fromByteArray (uint8) {
|
|
|
2576
2576
|
if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {
|
|
2577
2577
|
Buffer = window.Buffer;
|
|
2578
2578
|
} else {
|
|
2579
|
-
Buffer = __webpack_require__(/*! buffer */
|
|
2579
|
+
Buffer = __webpack_require__(/*! buffer */ 10).Buffer;
|
|
2580
2580
|
}
|
|
2581
2581
|
} catch (e) {
|
|
2582
2582
|
}
|
|
@@ -6034,7 +6034,7 @@ if (typeof self === 'object') {
|
|
|
6034
6034
|
} else {
|
|
6035
6035
|
// Node.js or Web worker with no crypto support
|
|
6036
6036
|
try {
|
|
6037
|
-
var crypto = __webpack_require__(/*! crypto */
|
|
6037
|
+
var crypto = __webpack_require__(/*! crypto */ 11);
|
|
6038
6038
|
if (typeof crypto.randomBytes !== 'function')
|
|
6039
6039
|
throw new Error('Not supported');
|
|
6040
6040
|
|
|
@@ -8142,7 +8142,7 @@ module.exports = crt
|
|
|
8142
8142
|
if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {
|
|
8143
8143
|
Buffer = window.Buffer;
|
|
8144
8144
|
} else {
|
|
8145
|
-
Buffer = __webpack_require__(/*! buffer */
|
|
8145
|
+
Buffer = __webpack_require__(/*! buffer */ 12).Buffer;
|
|
8146
8146
|
}
|
|
8147
8147
|
} catch (e) {
|
|
8148
8148
|
}
|
|
@@ -17134,7 +17134,7 @@ function _isUint8Array(obj) {
|
|
|
17134
17134
|
/*<replacement>*/
|
|
17135
17135
|
|
|
17136
17136
|
|
|
17137
|
-
var debugUtil = __webpack_require__(/*! util */
|
|
17137
|
+
var debugUtil = __webpack_require__(/*! util */ 8);
|
|
17138
17138
|
|
|
17139
17139
|
var debug;
|
|
17140
17140
|
|
|
@@ -19368,7 +19368,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
19368
19368
|
var _require = __webpack_require__(/*! buffer */ "../../node_modules/node-libs-browser/node_modules/buffer/index.js"),
|
|
19369
19369
|
Buffer = _require.Buffer;
|
|
19370
19370
|
|
|
19371
|
-
var _require2 = __webpack_require__(/*! util */
|
|
19371
|
+
var _require2 = __webpack_require__(/*! util */ 9),
|
|
19372
19372
|
inspect = _require2.inspect;
|
|
19373
19373
|
|
|
19374
19374
|
var custom = inspect && inspect.custom || 'inspect';
|
|
@@ -36693,7 +36693,7 @@ exports.run = (f) => {
|
|
|
36693
36693
|
/*!************************************!*\
|
|
36694
36694
|
!*** ../loader-utils/src/index.ts ***!
|
|
36695
36695
|
\************************************/
|
|
36696
|
-
/*! exports provided: assert, isBrowser, isWorker, nodeVersion, self, window, global, document, createLoaderWorker, parseWithWorker, canParseWithWorker, parseJSON, toArrayBuffer, sliceArrayBuffer, concatenateArrayBuffers, concatenateTypedArrays, compareArrayBuffers, padToNBytes, copyToArray, copyArrayBuffer, copyPaddedArrayBufferToDataView, copyPaddedStringToDataView, padStringToByteAlignment, copyStringToDataView, copyBinaryToDataView, getFirstCharacters, getMagicString, makeTextEncoderIterator, makeTextDecoderIterator, makeLineIterator, makeNumberedLineIterator, forEach, concatenateArrayBuffersAsync, RequestScheduler,
|
|
36696
|
+
/*! exports provided: assert, isBrowser, isWorker, nodeVersion, self, window, global, document, createLoaderWorker, parseWithWorker, canParseWithWorker, parseJSON, toArrayBuffer, sliceArrayBuffer, concatenateArrayBuffers, concatenateTypedArrays, compareArrayBuffers, padToNBytes, copyToArray, copyArrayBuffer, copyPaddedArrayBufferToDataView, copyPaddedStringToDataView, padStringToByteAlignment, copyStringToDataView, copyBinaryToDataView, getFirstCharacters, getMagicString, makeTextEncoderIterator, makeTextDecoderIterator, makeLineIterator, makeNumberedLineIterator, forEach, concatenateArrayBuffersAsync, RequestScheduler, setPathPrefix, getPathPrefix, resolvePath, _addAliases, JSONLoader, path, isBuffer, toBuffer, bufferToArrayBuffer, util, promisify, fs, _NodeFileSystem */
|
|
36697
36697
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
36698
36698
|
|
|
36699
36699
|
"use strict";
|
|
@@ -36779,20 +36779,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36779
36779
|
/* harmony import */ var _lib_request_utils_request_scheduler__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./lib/request-utils/request-scheduler */ "../loader-utils/src/lib/request-utils/request-scheduler.ts");
|
|
36780
36780
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RequestScheduler", function() { return _lib_request_utils_request_scheduler__WEBPACK_IMPORTED_MODULE_12__["default"]; });
|
|
36781
36781
|
|
|
36782
|
-
/* harmony import */ var
|
|
36783
|
-
/* harmony reexport (
|
|
36784
|
-
/* harmony import */ var _lib_path_utils_file_aliases__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./lib/path-utils/file-aliases */ "../loader-utils/src/lib/path-utils/file-aliases.ts");
|
|
36785
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setPathPrefix", function() { return _lib_path_utils_file_aliases__WEBPACK_IMPORTED_MODULE_14__["setPathPrefix"]; });
|
|
36782
|
+
/* harmony import */ var _lib_path_utils_file_aliases__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./lib/path-utils/file-aliases */ "../loader-utils/src/lib/path-utils/file-aliases.ts");
|
|
36783
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setPathPrefix", function() { return _lib_path_utils_file_aliases__WEBPACK_IMPORTED_MODULE_13__["setPathPrefix"]; });
|
|
36786
36784
|
|
|
36787
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPathPrefix", function() { return
|
|
36785
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPathPrefix", function() { return _lib_path_utils_file_aliases__WEBPACK_IMPORTED_MODULE_13__["getPathPrefix"]; });
|
|
36788
36786
|
|
|
36789
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolvePath", function() { return
|
|
36787
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolvePath", function() { return _lib_path_utils_file_aliases__WEBPACK_IMPORTED_MODULE_13__["resolvePath"]; });
|
|
36790
36788
|
|
|
36791
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_addAliases", function() { return
|
|
36789
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_addAliases", function() { return _lib_path_utils_file_aliases__WEBPACK_IMPORTED_MODULE_13__["addAliases"]; });
|
|
36792
36790
|
|
|
36793
|
-
/* harmony import */ var
|
|
36794
|
-
/* harmony
|
|
36795
|
-
|
|
36791
|
+
/* harmony import */ var _json_loader__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./json-loader */ "../loader-utils/src/json-loader.ts");
|
|
36792
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JSONLoader", function() { return _json_loader__WEBPACK_IMPORTED_MODULE_14__["JSONLoader"]; });
|
|
36793
|
+
|
|
36794
|
+
/* harmony import */ var _lib_path_utils_path__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./lib/path-utils/path */ "../loader-utils/src/lib/path-utils/path.ts");
|
|
36795
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "path", function() { return _lib_path_utils_path__WEBPACK_IMPORTED_MODULE_15__; });
|
|
36796
36796
|
/* harmony import */ var _lib_binary_utils_buffer_utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./lib/binary-utils/buffer-utils */ "../loader-utils/src/lib/binary-utils/buffer-utils.ts");
|
|
36797
36797
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isBuffer", function() { return _lib_binary_utils_buffer_utils__WEBPACK_IMPORTED_MODULE_16__["isBuffer"]; });
|
|
36798
36798
|
|
|
@@ -36800,8 +36800,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36800
36800
|
|
|
36801
36801
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bufferToArrayBuffer", function() { return _lib_binary_utils_buffer_utils__WEBPACK_IMPORTED_MODULE_16__["bufferToArrayBuffer"]; });
|
|
36802
36802
|
|
|
36803
|
-
/* harmony import */ var
|
|
36804
|
-
/* harmony
|
|
36803
|
+
/* harmony import */ var _lib_node_util__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./lib/node/util */ 3);
|
|
36804
|
+
/* harmony import */ var _lib_node_util__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_lib_node_util__WEBPACK_IMPORTED_MODULE_17__);
|
|
36805
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "util", function() { return _lib_node_util__WEBPACK_IMPORTED_MODULE_17__; });
|
|
36806
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "promisify", function() { return _lib_node_util__WEBPACK_IMPORTED_MODULE_17__["promisify"]; });
|
|
36807
|
+
|
|
36808
|
+
/* harmony import */ var _lib_node_fs__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./lib/node/fs */ 4);
|
|
36809
|
+
/* harmony import */ var _lib_node_fs__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_lib_node_fs__WEBPACK_IMPORTED_MODULE_18__);
|
|
36810
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "fs", function() { return _lib_node_fs__WEBPACK_IMPORTED_MODULE_18__; });
|
|
36811
|
+
/* harmony import */ var _lib_filesystems_node_filesystem__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./lib/filesystems/node-filesystem */ "../loader-utils/src/lib/filesystems/node-filesystem.ts");
|
|
36812
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_NodeFileSystem", function() { return _lib_filesystems_node_filesystem__WEBPACK_IMPORTED_MODULE_19__["default"]; });
|
|
36805
36813
|
|
|
36806
36814
|
// TYPES
|
|
36807
36815
|
// GENERAL UTILS
|
|
@@ -36822,16 +36830,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36822
36830
|
|
|
36823
36831
|
// REQUEST UTILS
|
|
36824
36832
|
|
|
36825
|
-
//
|
|
36833
|
+
// PATH HELPERS
|
|
36834
|
+
|
|
36835
|
+
|
|
36836
|
+
// MICRO LOADERS
|
|
36826
36837
|
|
|
36838
|
+
// NODE support
|
|
36839
|
+
// Node.js emulation (can be used in browser)
|
|
36840
|
+
// `path` replacement (avoids bundling big path polyfill)
|
|
36827
36841
|
|
|
36828
36842
|
|
|
36843
|
+
// Avoid direct use of `Buffer` which pulls in 50KB polyfill
|
|
36829
36844
|
|
|
36830
|
-
//
|
|
36845
|
+
// Note.js wrappers (can be safely imported, but not used in browser)
|
|
36846
|
+
// Use instead of importing 'util'
|
|
36831
36847
|
|
|
36832
36848
|
|
|
36833
|
-
//
|
|
36849
|
+
// TODO - remove
|
|
36834
36850
|
|
|
36851
|
+
// Use instead of importing 'fs';`
|
|
36852
|
+
|
|
36853
|
+
|
|
36854
|
+
// EXPERIMENTAL
|
|
36835
36855
|
|
|
36836
36856
|
|
|
36837
36857
|
|
|
@@ -36850,7 +36870,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36850
36870
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_typecheckJSONLoader", function() { return _typecheckJSONLoader; });
|
|
36851
36871
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
36852
36872
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
36853
|
-
const VERSION = true ? "3.0.
|
|
36873
|
+
const VERSION = true ? "3.0.14" : undefined;
|
|
36854
36874
|
/**
|
|
36855
36875
|
* A JSON Micro loader (minimal bundle size)
|
|
36856
36876
|
* Alternative to `@loaders.gl/json`
|
|
@@ -36892,8 +36912,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36892
36912
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatenateArrayBuffers", function() { return concatenateArrayBuffers; });
|
|
36893
36913
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatenateTypedArrays", function() { return concatenateTypedArrays; });
|
|
36894
36914
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sliceArrayBuffer", function() { return sliceArrayBuffer; });
|
|
36895
|
-
/* harmony import */ var
|
|
36896
|
-
/* harmony import */ var _node_buffer_utils_node__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_buffer_utils_node__WEBPACK_IMPORTED_MODULE_0__);
|
|
36915
|
+
/* harmony import */ var _buffer_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./buffer-utils */ "../loader-utils/src/lib/binary-utils/buffer-utils.ts");
|
|
36897
36916
|
|
|
36898
36917
|
/**
|
|
36899
36918
|
* Convert an object to an array buffer
|
|
@@ -36901,18 +36920,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36901
36920
|
|
|
36902
36921
|
function toArrayBuffer(data) {
|
|
36903
36922
|
// Note: Should be called first, Buffers can trigger other detections below
|
|
36904
|
-
if (
|
|
36923
|
+
if (_buffer_utils__WEBPACK_IMPORTED_MODULE_0__["isBuffer"](data)) {
|
|
36905
36924
|
// TODO - per docs we should just be able to call buffer.buffer, but there are issues
|
|
36906
|
-
data =
|
|
36925
|
+
data = _buffer_utils__WEBPACK_IMPORTED_MODULE_0__["bufferToArrayBuffer"](data);
|
|
36907
36926
|
}
|
|
36908
36927
|
|
|
36909
36928
|
if (data instanceof ArrayBuffer) {
|
|
36910
36929
|
return data;
|
|
36911
|
-
} // Careful - Node Buffers
|
|
36930
|
+
} // Careful - Node Buffers look like Uint8Arrays (keep after isBuffer)
|
|
36912
36931
|
|
|
36913
36932
|
|
|
36914
36933
|
if (ArrayBuffer.isView(data)) {
|
|
36915
|
-
|
|
36934
|
+
if (data.byteOffset === 0 && data.byteLength === data.buffer.byteLength) {
|
|
36935
|
+
return data.buffer;
|
|
36936
|
+
}
|
|
36937
|
+
|
|
36938
|
+
return data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);
|
|
36916
36939
|
}
|
|
36917
36940
|
|
|
36918
36941
|
if (typeof data === 'string') {
|
|
@@ -37097,8 +37120,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
37097
37120
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBuffer", function() { return isBuffer; });
|
|
37098
37121
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toBuffer", function() { return toBuffer; });
|
|
37099
37122
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferToArrayBuffer", function() { return bufferToArrayBuffer; });
|
|
37100
|
-
/* harmony import */ var
|
|
37101
|
-
/* harmony import */ var
|
|
37123
|
+
/* harmony import */ var _node_buffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../node/buffer */ 2);
|
|
37124
|
+
/* harmony import */ var _node_buffer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_buffer__WEBPACK_IMPORTED_MODULE_0__);
|
|
37102
37125
|
|
|
37103
37126
|
/**
|
|
37104
37127
|
* Check for Node.js `Buffer` (without triggering bundler to include Buffer polyfill on browser)
|
|
@@ -37113,7 +37136,7 @@ function isBuffer(value) {
|
|
|
37113
37136
|
*/
|
|
37114
37137
|
|
|
37115
37138
|
function toBuffer(data) {
|
|
37116
|
-
return
|
|
37139
|
+
return _node_buffer__WEBPACK_IMPORTED_MODULE_0__["toBuffer"] ? _node_buffer__WEBPACK_IMPORTED_MODULE_0__["toBuffer"](data) : data;
|
|
37117
37140
|
}
|
|
37118
37141
|
/**
|
|
37119
37142
|
* Converts Node.js `Buffer` to `ArrayBuffer` (without triggering bundler to include Buffer polyfill on browser)
|
|
@@ -37121,9 +37144,9 @@ function toBuffer(data) {
|
|
|
37121
37144
|
*/
|
|
37122
37145
|
|
|
37123
37146
|
function bufferToArrayBuffer(data) {
|
|
37124
|
-
if (
|
|
37147
|
+
if (_node_buffer__WEBPACK_IMPORTED_MODULE_0__["toArrayBuffer"]) {
|
|
37125
37148
|
// TODO - per docs we should just be able to call buffer.buffer, but there are issues
|
|
37126
|
-
return
|
|
37149
|
+
return _node_buffer__WEBPACK_IMPORTED_MODULE_0__["toArrayBuffer"](data);
|
|
37127
37150
|
}
|
|
37128
37151
|
|
|
37129
37152
|
return data;
|
|
@@ -37367,6 +37390,91 @@ const nodeVersion = matches && parseFloat(matches[1]) || 0;
|
|
|
37367
37390
|
|
|
37368
37391
|
/***/ }),
|
|
37369
37392
|
|
|
37393
|
+
/***/ "../loader-utils/src/lib/filesystems/node-filesystem.ts":
|
|
37394
|
+
/*!**************************************************************!*\
|
|
37395
|
+
!*** ../loader-utils/src/lib/filesystems/node-filesystem.ts ***!
|
|
37396
|
+
\**************************************************************/
|
|
37397
|
+
/*! exports provided: default */
|
|
37398
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
37399
|
+
|
|
37400
|
+
"use strict";
|
|
37401
|
+
__webpack_require__.r(__webpack_exports__);
|
|
37402
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return NodeFileSystem; });
|
|
37403
|
+
/* harmony import */ var _node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../node/fs */ 5);
|
|
37404
|
+
/* harmony import */ var _node_fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_fs__WEBPACK_IMPORTED_MODULE_0__);
|
|
37405
|
+
|
|
37406
|
+
|
|
37407
|
+
/**
|
|
37408
|
+
* FileSystem pass-through for Node.js
|
|
37409
|
+
* Compatible with BrowserFileSystem.
|
|
37410
|
+
* @param options
|
|
37411
|
+
*/
|
|
37412
|
+
class NodeFileSystem {
|
|
37413
|
+
// implements IFileSystem
|
|
37414
|
+
constructor(options) {
|
|
37415
|
+
this.fetch = options._fetch;
|
|
37416
|
+
}
|
|
37417
|
+
|
|
37418
|
+
async readdir(dirname = '.', options) {
|
|
37419
|
+
return await _node_fs__WEBPACK_IMPORTED_MODULE_0__["readdir"](dirname, options);
|
|
37420
|
+
}
|
|
37421
|
+
|
|
37422
|
+
async stat(path, options) {
|
|
37423
|
+
const info = await _node_fs__WEBPACK_IMPORTED_MODULE_0__["stat"](path, options);
|
|
37424
|
+
return {
|
|
37425
|
+
size: Number(info.size),
|
|
37426
|
+
isDirectory: () => false,
|
|
37427
|
+
info
|
|
37428
|
+
};
|
|
37429
|
+
}
|
|
37430
|
+
|
|
37431
|
+
async fetch(path, options) {
|
|
37432
|
+
// Falls back to handle https:/http:/data: etc fetches
|
|
37433
|
+
// eslint-disable-next-line
|
|
37434
|
+
const fallbackFetch = options.fetch || this.fetch;
|
|
37435
|
+
return fallbackFetch(path, options);
|
|
37436
|
+
} // implements IRandomAccessFileSystem
|
|
37437
|
+
|
|
37438
|
+
|
|
37439
|
+
async open(path, flags, mode) {
|
|
37440
|
+
return await _node_fs__WEBPACK_IMPORTED_MODULE_0__["open"](path, flags);
|
|
37441
|
+
}
|
|
37442
|
+
|
|
37443
|
+
async close(fd) {
|
|
37444
|
+
return await _node_fs__WEBPACK_IMPORTED_MODULE_0__["close"](fd);
|
|
37445
|
+
}
|
|
37446
|
+
|
|
37447
|
+
async fstat(fd) {
|
|
37448
|
+
const info = await _node_fs__WEBPACK_IMPORTED_MODULE_0__["fstat"](fd);
|
|
37449
|
+
return info;
|
|
37450
|
+
}
|
|
37451
|
+
|
|
37452
|
+
async read(fd, // @ts-ignore Possibly null
|
|
37453
|
+
{
|
|
37454
|
+
buffer = null,
|
|
37455
|
+
offset = 0,
|
|
37456
|
+
length = buffer.byteLength,
|
|
37457
|
+
position = null
|
|
37458
|
+
}) {
|
|
37459
|
+
let totalBytesRead = 0; // Read in loop until we get required number of bytes
|
|
37460
|
+
|
|
37461
|
+
while (totalBytesRead < length) {
|
|
37462
|
+
const {
|
|
37463
|
+
bytesRead
|
|
37464
|
+
} = await _node_fs__WEBPACK_IMPORTED_MODULE_0__["read"](fd, buffer, offset + totalBytesRead, length - totalBytesRead, position + totalBytesRead);
|
|
37465
|
+
totalBytesRead += bytesRead;
|
|
37466
|
+
}
|
|
37467
|
+
|
|
37468
|
+
return {
|
|
37469
|
+
bytesRead: totalBytesRead,
|
|
37470
|
+
buffer
|
|
37471
|
+
};
|
|
37472
|
+
}
|
|
37473
|
+
|
|
37474
|
+
}
|
|
37475
|
+
|
|
37476
|
+
/***/ }),
|
|
37477
|
+
|
|
37370
37478
|
/***/ "../loader-utils/src/lib/iterators/async-iteration.ts":
|
|
37371
37479
|
/*!************************************************************!*\
|
|
37372
37480
|
!*** ../loader-utils/src/lib/iterators/async-iteration.ts ***!
|
|
@@ -38436,7 +38544,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38436
38544
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
38437
38545
|
// Change to `latest` on production branches
|
|
38438
38546
|
const DEFAULT_VERSION = 'beta';
|
|
38439
|
-
const VERSION = true ? "3.0.
|
|
38547
|
+
const VERSION = true ? "3.0.14" : undefined;
|
|
38440
38548
|
|
|
38441
38549
|
if (false) {}
|
|
38442
38550
|
|
|
@@ -38465,7 +38573,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38465
38573
|
// TODO - unpkg.com doesn't seem to have a `latest` specifier for alpha releases...
|
|
38466
38574
|
|
|
38467
38575
|
const LATEST = 'beta';
|
|
38468
|
-
const VERSION = true ? "3.0.
|
|
38576
|
+
const VERSION = true ? "3.0.14" : undefined;
|
|
38469
38577
|
const loadLibraryPromises = {}; // promises
|
|
38470
38578
|
|
|
38471
38579
|
/**
|
|
@@ -38753,7 +38861,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38753
38861
|
|
|
38754
38862
|
|
|
38755
38863
|
const NPM_TAG = 'latest';
|
|
38756
|
-
const VERSION = true ? "3.0.
|
|
38864
|
+
const VERSION = true ? "3.0.14" : undefined;
|
|
38757
38865
|
/**
|
|
38758
38866
|
* Gets worker object's name (for debugging in Chrome thread inspector window)
|
|
38759
38867
|
*/
|
|
@@ -38773,9 +38881,19 @@ function getWorkerName(worker) {
|
|
|
38773
38881
|
function getWorkerURL(worker, options = {}) {
|
|
38774
38882
|
const workerOptions = options[worker.id] || {};
|
|
38775
38883
|
const workerFile = `${worker.id}-worker.js`;
|
|
38776
|
-
let url = workerOptions.workerUrl; //
|
|
38884
|
+
let url = workerOptions.workerUrl; // HACK: Allow for non-nested workerUrl for the CompressionWorker.
|
|
38885
|
+
// For the compression worker, workerOptions is currently not nested correctly. For most loaders,
|
|
38886
|
+
// you'd have options within an object, i.e. `{mvt: {coordinates: ...}}` but the CompressionWorker
|
|
38887
|
+
// puts options at the top level, not within a `compression` key (its `id`). For this reason, the
|
|
38888
|
+
// above `workerOptions` will always be a string (i.e. `'gzip'`) for the CompressionWorker. To not
|
|
38889
|
+
// break backwards compatibility, we allow the CompressionWorker to have options at the top level.
|
|
38890
|
+
|
|
38891
|
+
if (!url && worker.id === 'compression') {
|
|
38892
|
+
url = options.workerUrl;
|
|
38893
|
+
} // If URL is test, generate local loaders.gl url
|
|
38777
38894
|
// @ts-ignore _workerType
|
|
38778
38895
|
|
|
38896
|
+
|
|
38779
38897
|
if (options._workerType === 'test') {
|
|
38780
38898
|
url = `modules/${worker.module}/dist/${workerFile}`;
|
|
38781
38899
|
} // If url override is not provided, generate a URL to published version on npm CDN unpkg.com
|
|
@@ -39827,7 +39945,8 @@ function isTransferable(object) {
|
|
|
39827
39945
|
|
|
39828
39946
|
if (typeof ImageBitmap !== 'undefined' && object instanceof ImageBitmap) {
|
|
39829
39947
|
return true;
|
|
39830
|
-
}
|
|
39948
|
+
} // @ts-ignore
|
|
39949
|
+
|
|
39831
39950
|
|
|
39832
39951
|
if (typeof OffscreenCanvas !== 'undefined' && object instanceof OffscreenCanvas) {
|
|
39833
39952
|
return true;
|
|
@@ -39898,10 +40017,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39898
40017
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
39899
40018
|
/* harmony import */ var _compression__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./compression */ "./src/lib/compression.ts");
|
|
39900
40019
|
/* harmony import */ var _loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @loaders.gl/loader-utils */ "../loader-utils/src/index.ts");
|
|
39901
|
-
/* harmony import */ var zlib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zlib */
|
|
40020
|
+
/* harmony import */ var zlib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zlib */ 6);
|
|
39902
40021
|
/* harmony import */ var zlib__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(zlib__WEBPACK_IMPORTED_MODULE_3__);
|
|
39903
|
-
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! util */ 5);
|
|
39904
|
-
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_4__);
|
|
39905
40022
|
|
|
39906
40023
|
// BROTLI
|
|
39907
40024
|
|
|
@@ -39958,7 +40075,7 @@ class BrotliCompression extends _compression__WEBPACK_IMPORTED_MODULE_1__["Compr
|
|
|
39958
40075
|
|
|
39959
40076
|
// On Node.js we can use built-in zlib
|
|
39960
40077
|
if (!_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["isBrowser"] && (_this$options$brotli = this.options.brotli) !== null && _this$options$brotli !== void 0 && _this$options$brotli.useZlib) {
|
|
39961
|
-
const buffer = await Object(
|
|
40078
|
+
const buffer = await Object(_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["promisify"])(zlib__WEBPACK_IMPORTED_MODULE_3___default.a.brotliCompress)(input);
|
|
39962
40079
|
return Object(_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["toArrayBuffer"])(buffer);
|
|
39963
40080
|
}
|
|
39964
40081
|
|
|
@@ -39987,7 +40104,7 @@ class BrotliCompression extends _compression__WEBPACK_IMPORTED_MODULE_1__["Compr
|
|
|
39987
40104
|
|
|
39988
40105
|
// On Node.js we can use built-in zlib
|
|
39989
40106
|
if (!_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["isBrowser"] && (_this$options$brotli3 = this.options.brotli) !== null && _this$options$brotli3 !== void 0 && _this$options$brotli3.useZlib) {
|
|
39990
|
-
const buffer = await Object(
|
|
40107
|
+
const buffer = await Object(_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["promisify"])(zlib__WEBPACK_IMPORTED_MODULE_3___default.a.brotliDecompress)(input);
|
|
39991
40108
|
return Object(_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["toArrayBuffer"])(buffer);
|
|
39992
40109
|
}
|
|
39993
40110
|
|
|
@@ -40121,10 +40238,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40121
40238
|
/* harmony import */ var _loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @loaders.gl/loader-utils */ "../loader-utils/src/index.ts");
|
|
40122
40239
|
/* harmony import */ var pako__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! pako */ "../../node_modules/pako/index.js");
|
|
40123
40240
|
/* harmony import */ var pako__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(pako__WEBPACK_IMPORTED_MODULE_3__);
|
|
40124
|
-
/* harmony import */ var zlib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zlib */
|
|
40241
|
+
/* harmony import */ var zlib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zlib */ 6);
|
|
40125
40242
|
/* harmony import */ var zlib__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(zlib__WEBPACK_IMPORTED_MODULE_4__);
|
|
40126
|
-
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! util */ 5);
|
|
40127
|
-
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_5__);
|
|
40128
40243
|
|
|
40129
40244
|
// DEFLATE
|
|
40130
40245
|
|
|
@@ -40163,7 +40278,7 @@ class DeflateCompression extends _compression__WEBPACK_IMPORTED_MODULE_1__["Comp
|
|
|
40163
40278
|
if (!_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["isBrowser"] && (_this$options$deflate = this.options.deflate) !== null && _this$options$deflate !== void 0 && _this$options$deflate.useZlib) {
|
|
40164
40279
|
var _this$options$deflate2;
|
|
40165
40280
|
|
|
40166
|
-
const buffer = (_this$options$deflate2 = this.options.deflate) !== null && _this$options$deflate2 !== void 0 && _this$options$deflate2.gzip ? await Object(
|
|
40281
|
+
const buffer = (_this$options$deflate2 = this.options.deflate) !== null && _this$options$deflate2 !== void 0 && _this$options$deflate2.gzip ? await Object(_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["promisify"])(zlib__WEBPACK_IMPORTED_MODULE_4___default.a.gzip)(input) : await Object(_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["promisify"])(zlib__WEBPACK_IMPORTED_MODULE_4___default.a.deflate)(input);
|
|
40167
40282
|
return Object(_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["toArrayBuffer"])(buffer);
|
|
40168
40283
|
}
|
|
40169
40284
|
|
|
@@ -40177,7 +40292,7 @@ class DeflateCompression extends _compression__WEBPACK_IMPORTED_MODULE_1__["Comp
|
|
|
40177
40292
|
if (!_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["isBrowser"] && (_this$options$deflate3 = this.options.deflate) !== null && _this$options$deflate3 !== void 0 && _this$options$deflate3.useZlib) {
|
|
40178
40293
|
var _this$options$deflate4;
|
|
40179
40294
|
|
|
40180
|
-
const buffer = (_this$options$deflate4 = this.options.deflate) !== null && _this$options$deflate4 !== void 0 && _this$options$deflate4.gzip ? await Object(
|
|
40295
|
+
const buffer = (_this$options$deflate4 = this.options.deflate) !== null && _this$options$deflate4 !== void 0 && _this$options$deflate4.gzip ? await Object(_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["promisify"])(zlib__WEBPACK_IMPORTED_MODULE_4___default.a.gunzip)(input) : await Object(_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["promisify"])(zlib__WEBPACK_IMPORTED_MODULE_4___default.a.inflate)(input);
|
|
40181
40296
|
return Object(_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_2__["toArrayBuffer"])(buffer);
|
|
40182
40297
|
}
|
|
40183
40298
|
|
|
@@ -40713,7 +40828,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40713
40828
|
/* harmony import */ var brotli_decompress__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(brotli_decompress__WEBPACK_IMPORTED_MODULE_9__);
|
|
40714
40829
|
/* harmony import */ var lz4js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lz4js */ "../../node_modules/lz4js/lz4.js");
|
|
40715
40830
|
/* harmony import */ var lz4js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lz4js__WEBPACK_IMPORTED_MODULE_10__);
|
|
40716
|
-
/* harmony import */ var lzo__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lzo */
|
|
40831
|
+
/* harmony import */ var lzo__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lzo */ 7);
|
|
40717
40832
|
/* harmony import */ var lzo__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lzo__WEBPACK_IMPORTED_MODULE_11__);
|
|
40718
40833
|
/* harmony import */ var zstd_codec__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! zstd-codec */ "../../node_modules/zstd-codec/index.js");
|
|
40719
40834
|
/* harmony import */ var zstd_codec__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(zstd_codec__WEBPACK_IMPORTED_MODULE_12__);
|
|
@@ -40832,7 +40947,7 @@ function getCompression(name) {
|
|
|
40832
40947
|
|
|
40833
40948
|
/***/ 10:
|
|
40834
40949
|
/*!************************!*\
|
|
40835
|
-
!***
|
|
40950
|
+
!*** buffer (ignored) ***!
|
|
40836
40951
|
\************************/
|
|
40837
40952
|
/*! no static exports found */
|
|
40838
40953
|
/***/ (function(module, exports) {
|
|
@@ -40842,6 +40957,17 @@ function getCompression(name) {
|
|
|
40842
40957
|
/***/ }),
|
|
40843
40958
|
|
|
40844
40959
|
/***/ 11:
|
|
40960
|
+
/*!************************!*\
|
|
40961
|
+
!*** crypto (ignored) ***!
|
|
40962
|
+
\************************/
|
|
40963
|
+
/*! no static exports found */
|
|
40964
|
+
/***/ (function(module, exports) {
|
|
40965
|
+
|
|
40966
|
+
/* (ignored) */
|
|
40967
|
+
|
|
40968
|
+
/***/ }),
|
|
40969
|
+
|
|
40970
|
+
/***/ 12:
|
|
40845
40971
|
/*!************************!*\
|
|
40846
40972
|
!*** buffer (ignored) ***!
|
|
40847
40973
|
\************************/
|
|
@@ -40853,9 +40979,9 @@ function getCompression(name) {
|
|
|
40853
40979
|
/***/ }),
|
|
40854
40980
|
|
|
40855
40981
|
/***/ 2:
|
|
40856
|
-
|
|
40857
|
-
!*** ../node/buffer
|
|
40858
|
-
|
|
40982
|
+
/*!********************************!*\
|
|
40983
|
+
!*** ../node/buffer (ignored) ***!
|
|
40984
|
+
\********************************/
|
|
40859
40985
|
/*! no static exports found */
|
|
40860
40986
|
/***/ (function(module, exports) {
|
|
40861
40987
|
|
|
@@ -40864,9 +40990,9 @@ function getCompression(name) {
|
|
|
40864
40990
|
/***/ }),
|
|
40865
40991
|
|
|
40866
40992
|
/***/ 3:
|
|
40867
|
-
|
|
40868
|
-
!*** ./lib/node/
|
|
40869
|
-
|
|
40993
|
+
/*!*********************************!*\
|
|
40994
|
+
!*** ./lib/node/util (ignored) ***!
|
|
40995
|
+
\*********************************/
|
|
40870
40996
|
/*! no static exports found */
|
|
40871
40997
|
/***/ (function(module, exports) {
|
|
40872
40998
|
|
|
@@ -40875,9 +41001,9 @@ function getCompression(name) {
|
|
|
40875
41001
|
/***/ }),
|
|
40876
41002
|
|
|
40877
41003
|
/***/ 4:
|
|
40878
|
-
|
|
40879
|
-
!***
|
|
40880
|
-
|
|
41004
|
+
/*!*******************************!*\
|
|
41005
|
+
!*** ./lib/node/fs (ignored) ***!
|
|
41006
|
+
\*******************************/
|
|
40881
41007
|
/*! no static exports found */
|
|
40882
41008
|
/***/ (function(module, exports) {
|
|
40883
41009
|
|
|
@@ -40886,9 +41012,9 @@ function getCompression(name) {
|
|
|
40886
41012
|
/***/ }),
|
|
40887
41013
|
|
|
40888
41014
|
/***/ 5:
|
|
40889
|
-
|
|
40890
|
-
!***
|
|
40891
|
-
|
|
41015
|
+
/*!****************************!*\
|
|
41016
|
+
!*** ../node/fs (ignored) ***!
|
|
41017
|
+
\****************************/
|
|
40892
41018
|
/*! no static exports found */
|
|
40893
41019
|
/***/ (function(module, exports) {
|
|
40894
41020
|
|
|
@@ -40897,9 +41023,9 @@ function getCompression(name) {
|
|
|
40897
41023
|
/***/ }),
|
|
40898
41024
|
|
|
40899
41025
|
/***/ 6:
|
|
40900
|
-
|
|
40901
|
-
!***
|
|
40902
|
-
|
|
41026
|
+
/*!**********************!*\
|
|
41027
|
+
!*** zlib (ignored) ***!
|
|
41028
|
+
\**********************/
|
|
40903
41029
|
/*! no static exports found */
|
|
40904
41030
|
/***/ (function(module, exports) {
|
|
40905
41031
|
|
|
@@ -40908,9 +41034,9 @@ function getCompression(name) {
|
|
|
40908
41034
|
/***/ }),
|
|
40909
41035
|
|
|
40910
41036
|
/***/ 7:
|
|
40911
|
-
|
|
40912
|
-
!***
|
|
40913
|
-
|
|
41037
|
+
/*!*********************!*\
|
|
41038
|
+
!*** lzo (ignored) ***!
|
|
41039
|
+
\*********************/
|
|
40914
41040
|
/*! no static exports found */
|
|
40915
41041
|
/***/ (function(module, exports) {
|
|
40916
41042
|
|
|
@@ -40930,9 +41056,9 @@ function getCompression(name) {
|
|
|
40930
41056
|
/***/ }),
|
|
40931
41057
|
|
|
40932
41058
|
/***/ 9:
|
|
40933
|
-
|
|
40934
|
-
!***
|
|
40935
|
-
|
|
41059
|
+
/*!**********************!*\
|
|
41060
|
+
!*** util (ignored) ***!
|
|
41061
|
+
\**********************/
|
|
40936
41062
|
/*! no static exports found */
|
|
40937
41063
|
/***/ (function(module, exports) {
|
|
40938
41064
|
|