@loaders.gl/archives 5.0.0-alpha.14 → 5.0.0-beta.2
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 +2 -30
- package/README.md +9 -0
- package/THIRD-PARTY-NOTICES.md +19 -0
- package/dist/dist.dev.js +26 -10
- package/dist/dist.min.js +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/{zip/indexed-zip-writer.cjs → indexed-zip-writer.cjs} +1 -1
- package/dist/{zip/indexed-zip-writer.cjs.map → indexed-zip-writer.cjs.map} +2 -2
- package/dist/indexed-zip-writer.d.ts +2 -0
- package/dist/indexed-zip-writer.d.ts.map +1 -0
- package/dist/indexed-zip-writer.js +2 -0
- package/dist/indexed-zip-writer.js.map +1 -0
- package/dist/tar/index.cjs +2 -2
- package/dist/tar/index.cjs.map +1 -1
- package/dist/tar/tar-loader-types.js +2 -2
- package/dist/tar/tar-loader-types.js.map +1 -1
- package/dist/tar/tar-writer.js +1 -1
- package/dist/tar/tar-writer.js.map +1 -1
- package/dist/{tar/tar-loader.cjs → tar-loader.cjs} +2 -2
- package/dist/{tar/tar-loader.cjs.map → tar-loader.cjs.map} +2 -2
- package/dist/tar-loader.d.ts +2 -0
- package/dist/tar-loader.d.ts.map +1 -0
- package/dist/tar-loader.js +2 -0
- package/dist/tar-loader.js.map +1 -0
- package/dist/{tar/tar-writer.cjs → tar-writer.cjs} +2 -2
- package/dist/{tar/tar-writer.cjs.map → tar-writer.cjs.map} +2 -2
- package/dist/tar-writer.d.ts +2 -0
- package/dist/tar-writer.d.ts.map +1 -0
- package/dist/tar-writer.js +2 -0
- package/dist/tar-writer.js.map +1 -0
- package/dist/zip/index.cjs +2 -2
- package/dist/zip/index.cjs.map +1 -1
- package/dist/zip/zip-loader-types.js +2 -2
- package/dist/zip/zip-loader-types.js.map +1 -1
- package/dist/zip/zip-loader.d.ts +1 -1
- package/dist/zip/zip-loader.d.ts.map +1 -1
- package/dist/zip/zip-loader.js +1 -1
- package/dist/zip/zip-loader.js.map +1 -1
- package/dist/zip/zip-writer.js +1 -1
- package/dist/zip/zip-writer.js.map +1 -1
- package/dist/{zip/zip-loader.cjs → zip-loader.cjs} +2 -2
- package/dist/{zip/zip-loader.cjs.map → zip-loader.cjs.map} +2 -2
- package/dist/zip-loader.d.ts +2 -0
- package/dist/zip-loader.d.ts.map +1 -0
- package/dist/zip-loader.js +2 -0
- package/dist/zip-loader.js.map +1 -0
- package/dist/{zip/zip-writer.cjs → zip-writer.cjs} +2 -2
- package/dist/{zip/zip-writer.cjs.map → zip-writer.cjs.map} +2 -2
- package/dist/zip-writer.d.ts +2 -0
- package/dist/zip-writer.d.ts.map +1 -0
- package/dist/zip-writer.js +2 -0
- package/dist/zip-writer.js.map +1 -0
- package/package.json +30 -26
- package/src/indexed-zip-writer.ts +1 -0
- package/src/tar/tar-loader-types.ts +1 -1
- package/src/tar-loader.ts +1 -0
- package/src/tar-writer.ts +1 -0
- package/src/zip/zip-loader-types.ts +1 -1
- package/src/zip/zip-loader.ts +1 -1
- package/src/zip-loader.ts +1 -0
- package/src/zip-writer.ts +1 -0
- package/third-party-licenses/tar-js-LICENSE +21 -0
package/LICENSE
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
loaders.gl is licensed under the MIT license
|
|
2
2
|
|
|
3
3
|
Copyright (c) vis.gl contributors
|
|
4
|
+
Copyright (c) 2015 Uber Technologies, Inc.
|
|
4
5
|
|
|
5
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
7
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -20,33 +21,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
20
21
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
22
|
THE SOFTWARE.
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Copyright (c) 2015 Uber Technologies, Inc.
|
|
26
|
-
|
|
27
|
-
Portions of modules/images/src/lib/category-api/binary-image-api.ts are based on
|
|
28
|
-
binary-gltf-utils (https://github.com/Qantas94Heavy/binary-gltf-utils) under the
|
|
29
|
-
MIT License reproduced above.
|
|
30
|
-
|
|
31
|
-
Copyright (c) 2016-17 Karl Cheng
|
|
32
|
-
|
|
33
|
-
Portions of modules/core/src/schema-utils/lib/utils/async-queue.ts are adapted from
|
|
34
|
-
async-iter-demo (https://github.com/rauschma/async-iter-demo) under the MIT
|
|
35
|
-
License reproduced above.
|
|
36
|
-
|
|
37
|
-
Copyright (c) 2016 Axel Rauschmayer
|
|
38
|
-
|
|
39
|
-
loaders.gl includes certain files from Cesium (https://github.com/CesiumGS/cesium)
|
|
40
|
-
under the Apache 2.0 License, including files in modules/3d-tiles.
|
|
41
|
-
|
|
42
|
-
Copyright 2011-2018 CesiumJS Contributors
|
|
43
|
-
|
|
44
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
45
|
-
you may not use this file except in compliance with the License.
|
|
46
|
-
You may obtain a copy of the License at
|
|
47
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
48
|
-
|
|
49
|
-
Unless required by applicable law or agreed to in writing, software
|
|
50
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
51
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
52
|
-
See the License for the specific language governing permissions and limitations under the License.
|
|
24
|
+
For adapted portions, see THIRD-PARTY-NOTICES.md and the applicable upstream terms.
|
package/README.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @loaders.gl/archives
|
|
2
2
|
|
|
3
|
+
ZIP and TAR archive loaders and writers.
|
|
4
|
+
|
|
5
|
+
Supported formats: ZIP, TAR.
|
|
6
|
+
|
|
3
7
|
ZIP and TAR loaders and writers. Import `@loaders.gl/archives/zip` or `@loaders.gl/archives/tar` for format-specific APIs. The package root exports metadata-only loaders and writers.
|
|
4
8
|
|
|
5
9
|
See the [documentation](https://loaders.gl/docs/modules/archives).
|
|
10
|
+
|
|
11
|
+
## Sources and credits
|
|
12
|
+
|
|
13
|
+
See [THIRD-PARTY-NOTICES.md](./THIRD-PARTY-NOTICES.md) for implementation lineage
|
|
14
|
+
and applicable notices, and the project-wide [References and credits](https://loaders.gl/docs/references-and-credits).
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @loaders.gl/archives: sources and credits
|
|
2
|
+
|
|
3
|
+
TAR construction adapts T. Jameson Little's [tar-js](https://github.com/beatgammit/tar-js) (MIT). The retained implementation is in [src/tar/lib](./src/tar/lib); full terms are in [tar-js-LICENSE](./third-party-licenses/tar-js-LICENSE).
|
|
4
|
+
|
|
5
|
+
ZIP readers, writers, indexed archives and filesystem adapters are developed by vis.gl contributors. Compression is supplied through `@loaders.gl/compression`. Earlier ZipLoader releases wrapped JSZip; the current package does not import JSZip.
|
|
6
|
+
|
|
7
|
+
## Scope and maintenance
|
|
8
|
+
|
|
9
|
+
Original loaders.gl contributions are covered by [LICENSE](./LICENSE). The upstream
|
|
10
|
+
notices above apply to their respective portions and do not change those terms.
|
|
11
|
+
Source adaptations, separately installed libraries, format definitions and test
|
|
12
|
+
data are different contributions. This index is not a transitive dependency
|
|
13
|
+
bill of materials. Runtime dependencies can bring additional notices.
|
|
14
|
+
|
|
15
|
+
Version information is recorded where the repository preserves it. Unpinned
|
|
16
|
+
historical ports are identified by retained source and Git history; no upstream
|
|
17
|
+
version is inferred from a current dependency. Keep copyright headers, full
|
|
18
|
+
terms, source/version information and material modification notes when updating.
|
|
19
|
+
Retain this file and the applicable licenses when redistributing bundles or workers.
|
package/dist/dist.dev.js
CHANGED
|
@@ -3347,10 +3347,6 @@ var __exports__ = (() => {
|
|
|
3347
3347
|
});
|
|
3348
3348
|
|
|
3349
3349
|
// src/zip/zip-loader.ts
|
|
3350
|
-
var zip_loader_exports = {};
|
|
3351
|
-
__export(zip_loader_exports, {
|
|
3352
|
-
ZipLoaderWithParser: () => ZipLoaderWithParser
|
|
3353
|
-
});
|
|
3354
3350
|
async function parseZip(input, options = {}) {
|
|
3355
3351
|
const maximum = options.zip?.maxTotalDecodedBytes ?? ZipLoader.options.zip.maxTotalDecodedBytes;
|
|
3356
3352
|
if (typeof maximum !== "bigint" || maximum < 0n)
|
|
@@ -3386,6 +3382,18 @@ var __exports__ = (() => {
|
|
|
3386
3382
|
}
|
|
3387
3383
|
});
|
|
3388
3384
|
|
|
3385
|
+
// src/zip-loader.ts
|
|
3386
|
+
var zip_loader_exports = {};
|
|
3387
|
+
__export(zip_loader_exports, {
|
|
3388
|
+
ZipLoaderWithParser: () => ZipLoaderWithParser
|
|
3389
|
+
});
|
|
3390
|
+
var init_zip_loader2 = __esm({
|
|
3391
|
+
"src/zip-loader.ts"() {
|
|
3392
|
+
"use strict";
|
|
3393
|
+
init_zip_loader();
|
|
3394
|
+
}
|
|
3395
|
+
});
|
|
3396
|
+
|
|
3389
3397
|
// src/zip/zip-loader-types.ts
|
|
3390
3398
|
var VERSION, ZipLoader;
|
|
3391
3399
|
var init_zip_loader_types = __esm({
|
|
@@ -3401,7 +3409,7 @@ var __exports__ = (() => {
|
|
|
3401
3409
|
options: { zip: { maxTotalDecodedBytes: 64n * 1024n * 1024n } },
|
|
3402
3410
|
/** Loads the parser implementation through its installed package subpath. */
|
|
3403
3411
|
async preload() {
|
|
3404
|
-
const { ZipLoaderWithParser: ZipLoaderWithParser2 } = await Promise.resolve().then(() => (
|
|
3412
|
+
const { ZipLoaderWithParser: ZipLoaderWithParser2 } = await Promise.resolve().then(() => (init_zip_loader2(), zip_loader_exports));
|
|
3405
3413
|
return ZipLoaderWithParser2;
|
|
3406
3414
|
}
|
|
3407
3415
|
};
|
|
@@ -3570,10 +3578,6 @@ var __exports__ = (() => {
|
|
|
3570
3578
|
});
|
|
3571
3579
|
|
|
3572
3580
|
// src/tar/tar-loader.ts
|
|
3573
|
-
var tar_loader_exports = {};
|
|
3574
|
-
__export(tar_loader_exports, {
|
|
3575
|
-
TarLoaderWithParser: () => TarLoaderWithParser
|
|
3576
|
-
});
|
|
3577
3581
|
var _preload2, metadata2, TarLoaderWithParser;
|
|
3578
3582
|
var init_tar_loader = __esm({
|
|
3579
3583
|
"src/tar/tar-loader.ts"() {
|
|
@@ -3588,6 +3592,18 @@ var __exports__ = (() => {
|
|
|
3588
3592
|
}
|
|
3589
3593
|
});
|
|
3590
3594
|
|
|
3595
|
+
// src/tar-loader.ts
|
|
3596
|
+
var tar_loader_exports = {};
|
|
3597
|
+
__export(tar_loader_exports, {
|
|
3598
|
+
TarLoaderWithParser: () => TarLoaderWithParser
|
|
3599
|
+
});
|
|
3600
|
+
var init_tar_loader2 = __esm({
|
|
3601
|
+
"src/tar-loader.ts"() {
|
|
3602
|
+
"use strict";
|
|
3603
|
+
init_tar_loader();
|
|
3604
|
+
}
|
|
3605
|
+
});
|
|
3606
|
+
|
|
3591
3607
|
// src/tar/tar-loader-types.ts
|
|
3592
3608
|
var VERSION3, TarLoader;
|
|
3593
3609
|
var init_tar_loader_types = __esm({
|
|
@@ -3603,7 +3619,7 @@ var __exports__ = (() => {
|
|
|
3603
3619
|
options: { tar: { maxEntries: 1e5, maxTotalDecodedBytes: 64 * 1024 * 1024 } },
|
|
3604
3620
|
/** Loads the parser through the installed package subpath. */
|
|
3605
3621
|
async preload() {
|
|
3606
|
-
const { TarLoaderWithParser: TarLoaderWithParser2 } = await Promise.resolve().then(() => (
|
|
3622
|
+
const { TarLoaderWithParser: TarLoaderWithParser2 } = await Promise.resolve().then(() => (init_tar_loader2(), tar_loader_exports));
|
|
3607
3623
|
return TarLoaderWithParser2;
|
|
3608
3624
|
}
|
|
3609
3625
|
};
|