@zip.js/zip.js 2.8.10 → 2.8.11
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/README.md +6 -15
- package/index.d.ts +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -19,14 +19,8 @@ See here for more info: https://gildas-lormeau.github.io/zip.js/
|
|
|
19
19
|
## Hello world
|
|
20
20
|
|
|
21
21
|
```js
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
BlobWriter,
|
|
25
|
-
TextReader,
|
|
26
|
-
TextWriter,
|
|
27
|
-
ZipReader,
|
|
28
|
-
ZipWriter,
|
|
29
|
-
} from "https://deno.land/x/zipjs/index.js";
|
|
22
|
+
import { BlobReader, BlobWriter, TextReader, TextWriter, ZipReader, ZipWriter } from "jsr:@zip-js/zip-js";
|
|
23
|
+
// for NPM: import { BlobReader, BlobWriter, TextReader, TextWriter, ZipReader, ZipWriter } from "@zip-js/zip-js";
|
|
30
24
|
|
|
31
25
|
// ----
|
|
32
26
|
// Write the zip file
|
|
@@ -71,16 +65,13 @@ await zipReader.close();
|
|
|
71
65
|
console.log(helloWorldText);
|
|
72
66
|
```
|
|
73
67
|
|
|
74
|
-
Run the code on JSFiddle: https://jsfiddle.net/
|
|
68
|
+
Run the code on JSFiddle: https://jsfiddle.net/tdjxLcu9/
|
|
75
69
|
|
|
76
70
|
## Hello world with Streams
|
|
77
71
|
|
|
78
72
|
```js
|
|
79
|
-
import {
|
|
80
|
-
|
|
81
|
-
ZipReader,
|
|
82
|
-
ZipWriter,
|
|
83
|
-
} from "https://deno.land/x/zipjs/index.js";
|
|
73
|
+
import { BlobReader, ZipReader, ZipWriter } from "jsr:@zip-js/zip-js";
|
|
74
|
+
// for NPM: import { BlobReader, ZipReader, ZipWriter } from "@zip-js/zip-js";
|
|
84
75
|
|
|
85
76
|
// ----
|
|
86
77
|
// Write the zip file
|
|
@@ -142,7 +133,7 @@ import {
|
|
|
142
133
|
HttpReader,
|
|
143
134
|
TextReader,
|
|
144
135
|
ZipWriter,
|
|
145
|
-
} from "
|
|
136
|
+
} from "jsr:@zip-js/zip-js";
|
|
146
137
|
|
|
147
138
|
const README_URL = "https://unpkg.com/@zip.js/zip.js/README.md";
|
|
148
139
|
getZipFileBlob()
|
package/index.d.ts
CHANGED
|
@@ -1396,7 +1396,7 @@ export interface ZipWriterCloseOptions extends EntryOnprogressOptions {
|
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Represents options passed to the constructor of {@link ZipWriter}, {@link ZipWriter#add} and `{@link ZipDirectoryEntry}#export*`.
|
|
1398
1398
|
*/
|
|
1399
|
-
export interface ZipWriterConstructorOptions {
|
|
1399
|
+
export interface ZipWriterConstructorOptions extends WorkerConfiguration {
|
|
1400
1400
|
/**
|
|
1401
1401
|
* `true` to use Zip64 to store the entry.
|
|
1402
1402
|
*
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A JavaScript library to zip and unzip files in the browser, Deno and Node.js",
|
|
4
4
|
"author": "Gildas Lormeau",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
|
-
"version": "2.8.
|
|
6
|
+
"version": "2.8.11",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"zip",
|
|
@@ -154,11 +154,11 @@
|
|
|
154
154
|
},
|
|
155
155
|
"homepage": "https://gildas-lormeau.github.io/zip.js",
|
|
156
156
|
"devDependencies": {
|
|
157
|
-
"@rollup/plugin-replace": "^6.0.
|
|
157
|
+
"@rollup/plugin-replace": "^6.0.3",
|
|
158
158
|
"@rollup/plugin-terser": "^0.4.4",
|
|
159
|
-
"eslint": "^9.
|
|
159
|
+
"eslint": "^9.39.1",
|
|
160
160
|
"http-server": "^14.1.1",
|
|
161
|
-
"rollup": "^4.
|
|
161
|
+
"rollup": "^4.53.3",
|
|
162
162
|
"typedoc": "^0.28.14",
|
|
163
163
|
"typedoc-plugin-markdown": "^4.9.0"
|
|
164
164
|
}
|