@quentinadam/zip 0.1.6 → 0.1.7
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/deflate.d.ts +2 -2
- package/dist/zip.d.ts +6 -6
- package/dist/zip.js +2 -2
- package/package.json +4 -4
package/dist/deflate.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function decompress(buffer: Uint8Array
|
|
2
|
-
export declare function compress(buffer: Uint8Array
|
|
1
|
+
export declare function decompress(buffer: Uint8Array<ArrayBuffer>, raw?: boolean): Promise<Uint8Array<ArrayBuffer>>;
|
|
2
|
+
export declare function compress(buffer: Uint8Array<ArrayBuffer>, raw?: boolean): Promise<Uint8Array<ArrayBuffer>>;
|
package/dist/zip.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Extracts files from a ZIP archive.
|
|
3
|
-
* @param buffer An Uint8Array containing the ZIP archive.
|
|
3
|
+
* @param buffer An Uint8Array<ArrayBuffer> containing the ZIP archive.
|
|
4
4
|
* @returns A list of files extracted from the ZIP archive.
|
|
5
5
|
*/
|
|
6
|
-
export declare function extract(buffer: Uint8Array): Promise<{
|
|
6
|
+
export declare function extract(buffer: Uint8Array<ArrayBuffer>): Promise<{
|
|
7
7
|
name: string;
|
|
8
|
-
data: Uint8Array
|
|
8
|
+
data: Uint8Array<ArrayBuffer>;
|
|
9
9
|
lastModification: Date;
|
|
10
10
|
}[]>;
|
|
11
11
|
/**
|
|
12
12
|
* Creates a ZIP archive from a list of files.
|
|
13
13
|
* @param files List of files to include in the archive.
|
|
14
|
-
* @returns An Uint8Array containing the ZIP archive.
|
|
14
|
+
* @returns An Uint8Array<ArrayBuffer> containing the ZIP archive.
|
|
15
15
|
*/
|
|
16
16
|
export declare function create(files: {
|
|
17
17
|
name: string;
|
|
18
|
-
data: Uint8Array
|
|
18
|
+
data: Uint8Array<ArrayBuffer>;
|
|
19
19
|
lastModification?: Date;
|
|
20
|
-
}[]): Promise<Uint8Array
|
|
20
|
+
}[]): Promise<Uint8Array<ArrayBuffer>>;
|
package/dist/zip.js
CHANGED
|
@@ -252,7 +252,7 @@ function serializeLastModification(date) {
|
|
|
252
252
|
}
|
|
253
253
|
/**
|
|
254
254
|
* Extracts files from a ZIP archive.
|
|
255
|
-
* @param buffer An Uint8Array containing the ZIP archive.
|
|
255
|
+
* @param buffer An Uint8Array<ArrayBuffer> containing the ZIP archive.
|
|
256
256
|
* @returns A list of files extracted from the ZIP archive.
|
|
257
257
|
*/
|
|
258
258
|
export async function extract(buffer) {
|
|
@@ -294,7 +294,7 @@ export async function extract(buffer) {
|
|
|
294
294
|
/**
|
|
295
295
|
* Creates a ZIP archive from a list of files.
|
|
296
296
|
* @param files List of files to include in the archive.
|
|
297
|
-
* @returns An Uint8Array containing the ZIP archive.
|
|
297
|
+
* @returns An Uint8Array<ArrayBuffer> containing the ZIP archive.
|
|
298
298
|
*/
|
|
299
299
|
export async function create(files) {
|
|
300
300
|
const writer = new Writer();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quentinadam/zip",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "A library for creating and extracting ZIP archives",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Quentin Adam",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@quentinadam/assert": "^0.1.
|
|
19
|
-
"@quentinadam/ensure": "^0.1.
|
|
20
|
-
"@quentinadam/uint8array-extension": "^0.1.
|
|
18
|
+
"@quentinadam/assert": "^0.1.12",
|
|
19
|
+
"@quentinadam/ensure": "^0.1.1",
|
|
20
|
+
"@quentinadam/uint8array-extension": "^0.1.7"
|
|
21
21
|
}
|
|
22
22
|
}
|