@loaders.gl/zip 3.3.0-alpha.7 → 3.3.0-alpha.9
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/es5/zip-loader.js +1 -1
- package/dist/esm/zip-loader.js +1 -1
- package/dist/lib/tar/types.d.ts +6 -6
- package/dist/lib/tar/types.d.ts.map +1 -1
- package/dist/tar-builder.d.ts +1 -1
- package/dist/tar-builder.d.ts.map +1 -1
- package/dist/tar-builder.js +5 -5
- package/dist/zip-loader.d.ts +1 -1
- package/dist/zip-loader.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/es5/zip-loader.js
CHANGED
|
@@ -9,7 +9,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _jszip = _interopRequireDefault(require("jszip"));
|
|
11
11
|
|
|
12
|
-
var VERSION = typeof "3.3.0-alpha.
|
|
12
|
+
var VERSION = typeof "3.3.0-alpha.9" !== 'undefined' ? "3.3.0-alpha.9" : 'latest';
|
|
13
13
|
var ZipLoader = {
|
|
14
14
|
id: 'zip',
|
|
15
15
|
module: 'zip',
|
package/dist/esm/zip-loader.js
CHANGED
package/dist/lib/tar/types.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Structure of data
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type TarStructure = {
|
|
5
5
|
[index: string]: number;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
8
|
* Image of input data
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type TarData = {
|
|
11
11
|
[index: string]: string | any;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* Describes inner content of the blocks in the Tar's constructor
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export type TarBlocks = {
|
|
17
17
|
[index: string]: any;
|
|
18
18
|
header?: Uint8Array;
|
|
19
19
|
input?: string | Uint8Array;
|
|
@@ -23,7 +23,7 @@ export declare type TarBlocks = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Describes additional options for Tar class
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export type TarOptions = {
|
|
27
27
|
mode?: number;
|
|
28
28
|
mtime?: number;
|
|
29
29
|
uid?: number;
|
|
@@ -34,13 +34,13 @@ export declare type TarOptions = {
|
|
|
34
34
|
/**
|
|
35
35
|
* Array of numbers for TarChunks
|
|
36
36
|
*/
|
|
37
|
-
export
|
|
37
|
+
export type TarChunk = {
|
|
38
38
|
[index: number]: any;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Sections of binary data inside the Tar class
|
|
42
42
|
*/
|
|
43
|
-
export
|
|
43
|
+
export type TarChunks = {
|
|
44
44
|
[index: number]: TarChunk;
|
|
45
45
|
length?: number;
|
|
46
46
|
blocks?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/tar/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/tar/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;CAC/B,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;IACrB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC"}
|
package/dist/tar-builder.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tar-builder.d.ts","sourceRoot":"","sources":["../src/tar-builder.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,eAAe,CAAC;AAMhC,
|
|
1
|
+
{"version":3,"file":"tar-builder.d.ts","sourceRoot":"","sources":["../src/tar-builder.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,eAAe,CAAC;AAMhC,KAAK,iBAAiB,GAAG;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B,MAAM,KAAK,UAAU;;;;;;;;;MASpB;IAED,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,MAAM,CAAK;gBAEN,OAAO,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC;IAIhD,kCAAkC;IAClC,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW;IAKvC,KAAK,IAAI,OAAO,CAAC,WAAW,CAAC;CAGpC"}
|
package/dist/tar-builder.js
CHANGED
|
@@ -11,11 +11,6 @@ const TAR_BUILDER_OPTIONS = {
|
|
|
11
11
|
* Build a tar file by adding files
|
|
12
12
|
*/
|
|
13
13
|
class TARBuilder {
|
|
14
|
-
constructor(options) {
|
|
15
|
-
this.count = 0;
|
|
16
|
-
this.options = { ...TAR_BUILDER_OPTIONS, ...options };
|
|
17
|
-
this.tape = new tar_1.default(this.options.recordsPerBlock);
|
|
18
|
-
}
|
|
19
14
|
static get properties() {
|
|
20
15
|
return {
|
|
21
16
|
id: 'tar',
|
|
@@ -26,6 +21,11 @@ class TARBuilder {
|
|
|
26
21
|
options: TAR_BUILDER_OPTIONS
|
|
27
22
|
};
|
|
28
23
|
}
|
|
24
|
+
constructor(options) {
|
|
25
|
+
this.count = 0;
|
|
26
|
+
this.options = { ...TAR_BUILDER_OPTIONS, ...options };
|
|
27
|
+
this.tape = new tar_1.default(this.options.recordsPerBlock);
|
|
28
|
+
}
|
|
29
29
|
/** Adds a file to the archive. */
|
|
30
30
|
addFile(filename, buffer) {
|
|
31
31
|
this.tape.append(filename, new Uint8Array(buffer));
|
package/dist/zip-loader.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const ZipLoader: {
|
|
|
11
11
|
options: {};
|
|
12
12
|
parse: typeof parseZipAsync;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type FileMap = Record<string, ArrayBuffer>;
|
|
15
15
|
declare function parseZipAsync(data: any, options?: {}): Promise<FileMap>;
|
|
16
16
|
export declare const _typecheckZipLoader: LoaderWithParser;
|
|
17
17
|
export {};
|
package/dist/zip-loader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zip-loader.d.ts","sourceRoot":"","sources":["../src/zip-loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAO/D,eAAO,MAAM,SAAS;;;;;;;;;;;CAWrB,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"zip-loader.d.ts","sourceRoot":"","sources":["../src/zip-loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAO/D,eAAO,MAAM,SAAS;;;;;;;;;;;CAWrB,CAAC;AAEF,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAG3C,iBAAe,aAAa,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CA4BtE;AAeD,eAAO,MAAM,mBAAmB,EAAE,gBAA4B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/zip",
|
|
3
|
-
"version": "3.3.0-alpha.
|
|
3
|
+
"version": "3.3.0-alpha.9",
|
|
4
4
|
"description": "Zip Archive Loader",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"jszip": "^3.1.5"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "c95a4ff72512668a93d9041ce8636bac09333fd5"
|
|
36
36
|
}
|