@helloao/cli 0.0.10 → 0.0.12

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.
Files changed (81) hide show
  1. package/dist/cjs/cli.cjs +9939 -8987
  2. package/dist/cjs/index.cjs +16455 -0
  3. package/dist/esm/index.js +8105 -0
  4. package/dist/esm/index.js.map +7 -0
  5. package/dist/types/actions.d.ts +10 -0
  6. package/dist/types/db.d.ts +2 -1
  7. package/dist/types/files.d.ts +2 -2
  8. package/dist/types/s3.d.ts +1 -1
  9. package/dist/types/uploads.d.ts +4 -0
  10. package/migrations/20241204173229_add_license_notes/migration.sql +5 -0
  11. package/migrations/20241204182154_add_book_intro_summaries/migration.sql +2 -0
  12. package/migrations/20241218211246_add_profiles/migration.sql +12 -0
  13. package/migrations/20241218211453_add_profile_references/migration.sql +6 -0
  14. package/node_modules/@zip.js/zip.js/.github/workflows/publish.yml +17 -0
  15. package/node_modules/@zip.js/zip.js/deno.json +10 -1
  16. package/node_modules/@zip.js/zip.js/dist/z-worker-fflate.js +1 -1
  17. package/node_modules/@zip.js/zip.js/dist/z-worker-pako.js +1 -1
  18. package/node_modules/@zip.js/zip.js/dist/z-worker.js +1 -1
  19. package/node_modules/@zip.js/zip.js/dist/zip-fs-full.js +274 -133
  20. package/node_modules/@zip.js/zip.js/dist/zip-fs-full.min.js +1 -1
  21. package/node_modules/@zip.js/zip.js/dist/zip-fs.js +274 -125
  22. package/node_modules/@zip.js/zip.js/dist/zip-fs.min.js +1 -1
  23. package/node_modules/@zip.js/zip.js/dist/zip-full.js +233 -122
  24. package/node_modules/@zip.js/zip.js/dist/zip-full.min.js +1 -1
  25. package/node_modules/@zip.js/zip.js/dist/zip-no-worker-deflate.min.js +1 -1
  26. package/node_modules/@zip.js/zip.js/dist/zip-no-worker-inflate.min.js +1 -1
  27. package/node_modules/@zip.js/zip.js/dist/zip-no-worker.min.js +1 -1
  28. package/node_modules/@zip.js/zip.js/dist/zip.js +233 -114
  29. package/node_modules/@zip.js/zip.js/dist/zip.min.js +1 -1
  30. package/node_modules/@zip.js/zip.js/eslint.config.mjs +49 -0
  31. package/node_modules/@zip.js/zip.js/index-fflate.js +2 -1
  32. package/node_modules/@zip.js/zip.js/index.cjs +274 -133
  33. package/node_modules/@zip.js/zip.js/index.d.ts +254 -34
  34. package/node_modules/@zip.js/zip.js/index.js +3 -1
  35. package/node_modules/@zip.js/zip.js/index.min.js +1 -1
  36. package/node_modules/@zip.js/zip.js/lib/core/codec-pool.js +3 -1
  37. package/node_modules/@zip.js/zip.js/lib/core/codec-worker.js +11 -8
  38. package/node_modules/@zip.js/zip.js/lib/core/configuration.js +2 -1
  39. package/node_modules/@zip.js/zip.js/lib/core/constants.js +8 -0
  40. package/node_modules/@zip.js/zip.js/lib/core/io.js +10 -3
  41. package/node_modules/@zip.js/zip.js/lib/core/streams/aes-crypto-stream.js +4 -3
  42. package/node_modules/@zip.js/zip.js/lib/core/streams/codecs/deflate.js +0 -4
  43. package/node_modules/@zip.js/zip.js/lib/core/streams/codecs/inflate.js +0 -4
  44. package/node_modules/@zip.js/zip.js/lib/core/streams/crc32-stream.js +1 -0
  45. package/node_modules/@zip.js/zip.js/lib/core/streams/zip-entry-stream.js +4 -2
  46. package/node_modules/@zip.js/zip.js/lib/core/util/mime-type.js +0 -2
  47. package/node_modules/@zip.js/zip.js/lib/core/util/stream-codec-shim.js +4 -4
  48. package/node_modules/@zip.js/zip.js/lib/core/z-worker-core.js +4 -2
  49. package/node_modules/@zip.js/zip.js/lib/core/zip-entry.js +17 -5
  50. package/node_modules/@zip.js/zip.js/lib/core/zip-fs-core.js +41 -11
  51. package/node_modules/@zip.js/zip.js/lib/core/zip-reader.js +45 -23
  52. package/node_modules/@zip.js/zip.js/lib/core/zip-writer.js +147 -66
  53. package/node_modules/@zip.js/zip.js/lib/z-worker-inline-template.js +1 -1
  54. package/node_modules/@zip.js/zip.js/lib/z-worker-inline.js +1 -1
  55. package/node_modules/@zip.js/zip.js/lib/zip-data-uri.js +4 -1
  56. package/node_modules/@zip.js/zip.js/lib/zip-fs.js +2 -1
  57. package/node_modules/@zip.js/zip.js/lib/zip-full-fflate.js +2 -1
  58. package/node_modules/@zip.js/zip.js/lib/zip-full.js +2 -1
  59. package/node_modules/@zip.js/zip.js/lib/zip.js +2 -1
  60. package/node_modules/@zip.js/zip.js/package.json +121 -78
  61. package/package.json +14 -6
  62. package/prisma-gen/client.d.ts +1 -0
  63. package/prisma-gen/client.js +4 -0
  64. package/prisma-gen/default.d.ts +1 -1
  65. package/prisma-gen/edge.d.ts +1 -1
  66. package/prisma-gen/edge.js +30 -9
  67. package/prisma-gen/index-browser.js +25 -4
  68. package/prisma-gen/index.d.ts +3530 -1572
  69. package/prisma-gen/index.js +30 -9
  70. package/prisma-gen/runtime/edge-esm.js +21 -18
  71. package/prisma-gen/runtime/edge.js +21 -18
  72. package/prisma-gen/runtime/index-browser.d.ts +1 -1
  73. package/prisma-gen/runtime/index-browser.js +1 -1
  74. package/prisma-gen/runtime/library.d.ts +306 -71
  75. package/prisma-gen/runtime/library.js +70 -67
  76. package/prisma-gen/runtime/react-native.js +80 -0
  77. package/prisma-gen/runtime/wasm.js +22 -19
  78. package/prisma-gen/wasm.d.ts +1 -1
  79. package/prisma-gen/wasm.js +25 -4
  80. package/schema.prisma +27 -0
  81. package/node_modules/@zip.js/.ignored_zip.js +0 -0
@@ -1,3 +1,163 @@
1
+ /**
2
+ * zip.js is a JavaScript open-source library (BSD-3-Clause license) for
3
+ * compressing and decompressing zip files. It has been designed to handle large amounts
4
+ * of data. It supports notably multi-core compression, native compression with
5
+ * compression streams, archives larger than 4GB with Zip64, split zip files and data
6
+ * encryption.
7
+ *
8
+ * @author Gildas Lormeau
9
+ * @license BSD-3-Clause
10
+ *
11
+ * @example
12
+ * Hello world
13
+ * ```js
14
+ * import {
15
+ * BlobReader,
16
+ * BlobWriter,
17
+ * TextReader,
18
+ * TextWriter,
19
+ * ZipReader,
20
+ * ZipWriter,
21
+ * } from from "@zip-js/zip-js";
22
+ *
23
+ * // ----
24
+ * // Write the zip file
25
+ * // ----
26
+ *
27
+ * // Creates a BlobWriter object where the zip content will be written.
28
+ * const zipFileWriter = new BlobWriter();
29
+ *
30
+ * // Creates a TextReader object storing the text of the entry to add in the zip
31
+ * // (i.e. "Hello world!").
32
+ * const helloWorldReader = new TextReader("Hello world!");
33
+ *
34
+ * // Creates a ZipWriter object writing data via `zipFileWriter`, adds the entry
35
+ * // "hello.txt" containing the text "Hello world!" via `helloWorldReader`, and
36
+ * // closes the writer.
37
+ * const zipWriter = new ZipWriter(zipFileWriter);
38
+ * await zipWriter.add("hello.txt", helloWorldReader);
39
+ * await zipWriter.close();
40
+ *
41
+ * // Retrieves the Blob object containing the zip content into `zipFileBlob`. It
42
+ * // is also returned by zipWriter.close() for more convenience.
43
+ * const zipFileBlob = await zipFileWriter.getData();
44
+ *
45
+ * // ----
46
+ * // Read the zip file
47
+ * // ----
48
+ *
49
+ * // Creates a BlobReader object used to read `zipFileBlob`.
50
+ * const zipFileReader = new BlobReader(zipFileBlob);
51
+ * // Creates a TextWriter object where the content of the first entry in the zip
52
+ * // will be written.
53
+ * const helloWorldWriter = new TextWriter();
54
+ *
55
+ * // Creates a ZipReader object reading the zip content via `zipFileReader`,
56
+ * // retrieves metadata (name, dates, etc.) of the first entry, retrieves its
57
+ * // content via `helloWorldWriter`, and closes the reader.
58
+ * const zipReader = new ZipReader(zipFileReader);
59
+ * const firstEntry = (await zipReader.getEntries()).shift();
60
+ * const helloWorldText = await firstEntry.getData(helloWorldWriter);
61
+ * await zipReader.close();
62
+ *
63
+ * // Displays "Hello world!".
64
+ * console.log(helloWorldText);
65
+ * ```
66
+ *
67
+ * @example
68
+ * Hello world with Streams
69
+ * ```js
70
+ * import {
71
+ * BlobReader,
72
+ * ZipReader,
73
+ * ZipWriter,
74
+ * } from "@zip-js/zip-js";
75
+ *
76
+ * // ----
77
+ * // Write the zip file
78
+ * // ----
79
+ *
80
+ * // Creates a TransformStream object, the zip content will be written in the
81
+ * // `writable` property.
82
+ * const zipFileStream = new TransformStream();
83
+ * // Creates a Promise object resolved to the zip content returned as a Blob
84
+ * // object retrieved from `zipFileStream.readable`.
85
+ * const zipFileBlobPromise = new Response(zipFileStream.readable).blob();
86
+ * // Creates a ReadableStream object storing the text of the entry to add in the
87
+ * // zip (i.e. "Hello world!").
88
+ * const helloWorldReadable = new Blob(["Hello world!"]).stream();
89
+ *
90
+ * // Creates a ZipWriter object writing data into `zipFileStream.writable`, adds
91
+ * // the entry "hello.txt" containing the text "Hello world!" retrieved from
92
+ * // `helloWorldReadable`, and closes the writer.
93
+ * const zipWriter = new ZipWriter(zipFileStream.writable);
94
+ * await zipWriter.add("hello.txt", helloWorldReadable);
95
+ * await zipWriter.close();
96
+ *
97
+ * // Retrieves the Blob object containing the zip content into `zipFileBlob`.
98
+ * const zipFileBlob = await zipFileBlobPromise;
99
+ *
100
+ * // ----
101
+ * // Read the zip file
102
+ * // ----
103
+ *
104
+ * // Creates a BlobReader object used to read `zipFileBlob`.
105
+ * const zipFileReader = new BlobReader(zipFileBlob);
106
+ * // Creates a TransformStream object, the content of the first entry in the zip
107
+ * // will be written in the `writable` property.
108
+ * const helloWorldStream = new TransformStream();
109
+ * // Creates a Promise object resolved to the content of the first entry returned
110
+ * // as text from `helloWorldStream.readable`.
111
+ * const helloWorldTextPromise = new Response(helloWorldStream.readable).text();
112
+ *
113
+ * // Creates a ZipReader object reading the zip content via `zipFileReader`,
114
+ * // retrieves metadata (name, dates, etc.) of the first entry, retrieves its
115
+ * // content into `helloWorldStream.writable`, and closes the reader.
116
+ * const zipReader = new ZipReader(zipFileReader);
117
+ * const firstEntry = (await zipReader.getEntries()).shift();
118
+ * await firstEntry.getData(helloWorldStream.writable);
119
+ * await zipReader.close();
120
+ *
121
+ * // Displays "Hello world!".
122
+ * const helloWorldText = await helloWorldTextPromise;
123
+ * console.log(helloWorldText);
124
+ * ```
125
+ *
126
+ * @example
127
+ * Adding concurrently multiple entries in a zip file
128
+ * ```js
129
+ * import {
130
+ * BlobWriter,
131
+ * HttpReader,
132
+ * TextReader,
133
+ * ZipWriter,
134
+ * } from "@zip-js/zip-js";
135
+ *
136
+ * const README_URL = "https://unpkg.com/@zip.js/zip.js/README.md";
137
+ * getZipFileBlob()
138
+ * .then(downloadFile);
139
+ *
140
+ * async function getZipFileBlob() {
141
+ * const zipWriter = new ZipWriter(new BlobWriter("application/zip"));
142
+ * await Promise.all([
143
+ * zipWriter.add("hello.txt", new TextReader("Hello world!")),
144
+ * zipWriter.add("README.md", new HttpReader(README_URL)),
145
+ * ]);
146
+ * return zipWriter.close();
147
+ * }
148
+ *
149
+ * function downloadFile(blob) {
150
+ * document.body.appendChild(Object.assign(document.createElement("a"), {
151
+ * download: "hello.zip",
152
+ * href: URL.createObjectURL(blob),
153
+ * textContent: "Download zip file",
154
+ * }));
155
+ * }
156
+ * ```
157
+ *
158
+ * @module
159
+ */
160
+
1
161
  /**
2
162
  * Represents the `FileSystemEntry` class.
3
163
  *
@@ -394,7 +554,6 @@ export class SplitDataReader
394
554
  /**
395
555
  * Represents a URL stored into a `string`.
396
556
  */
397
- // deno-lint-ignore no-empty-interface
398
557
  interface URLString extends String { }
399
558
 
400
559
  /**
@@ -407,7 +566,7 @@ export class HttpReader extends Reader<URLString> {
407
566
  * @param url The URL of the data.
408
567
  * @param options The options.
409
568
  */
410
- constructor(url: URLString, options?: HttpOptions);
569
+ constructor(url: URLString | URL, options?: HttpOptions);
411
570
  }
412
571
 
413
572
  /**
@@ -420,7 +579,7 @@ export class HttpRangeReader extends HttpReader {
420
579
  * @param url The URL of the data.
421
580
  * @param options The options.
422
581
  */
423
- constructor(url: URLString, options?: HttpRangeOptions);
582
+ constructor(url: URLString | URL, options?: HttpRangeOptions);
424
583
  }
425
584
 
426
585
  /**
@@ -788,7 +947,7 @@ export interface GetEntriesOptions {
788
947
  */
789
948
  commentEncoding?: string;
790
949
  /**
791
- * Decodes the filename and the comment of the entry.
950
+ * The function called for decoding the filename and the comment of the entry.
792
951
  *
793
952
  * @param value The raw text value.
794
953
  * @param encoding The encoding of the text.
@@ -800,19 +959,13 @@ export interface GetEntriesOptions {
800
959
  /**
801
960
  * Represents options passed to the constructor of {@link ZipReader} and {@link Entry#getData}.
802
961
  */
803
- export interface ZipReaderCheckPasswordOptions {
962
+ export interface ZipReaderOptions {
804
963
  /**
805
964
  * `true` to check only if the password is valid.
806
965
  *
807
966
  * @defaultValue false
808
967
  */
809
- checkPasswordOnly: boolean;
810
- }
811
-
812
- /**
813
- * Represents options passed to the constructor of {@link ZipReader} and {@link Entry#getData}.
814
- */
815
- export interface ZipReaderOptions {
968
+ checkPasswordOnly?: boolean;
816
969
  /**
817
970
  * `true` to check the signature of the entry.
818
971
  *
@@ -823,6 +976,10 @@ export interface ZipReaderOptions {
823
976
  * The password used to decrypt the content of the entry.
824
977
  */
825
978
  password?: string;
979
+ /**
980
+ * `true` to read the data as-is without decompressing it and without decrypting it.
981
+ */
982
+ passThrough?: boolean;
826
983
  /**
827
984
  * The password used to encrypt the content of the entry (raw).
828
985
  */
@@ -869,10 +1026,18 @@ export interface EntryMetaData {
869
1026
  * `true` if the entry is a directory.
870
1027
  */
871
1028
  directory: boolean;
1029
+ /**
1030
+ * `true` if the entry is an executable file
1031
+ */
1032
+ executable: boolean;
872
1033
  /**
873
1034
  * `true` if the content of the entry is encrypted.
874
1035
  */
875
1036
  encrypted: boolean;
1037
+ /**
1038
+ * `true` if the content of the entry is encrypted with the ZipCrypto algorithm.
1039
+ */
1040
+ zipCrypto: boolean;
876
1041
  /**
877
1042
  * The size of the compressed data in bytes.
878
1043
  */
@@ -924,7 +1089,7 @@ export interface EntryMetaData {
924
1089
  /**
925
1090
  * The extra field.
926
1091
  */
927
- extraField?: Map<number, Uint8Array>;
1092
+ extraField?: Map<number, { type: number, data: Uint8Array }>;
928
1093
  /**
929
1094
  * The extra field (raw).
930
1095
  */
@@ -942,21 +1107,38 @@ export interface EntryMetaData {
942
1107
  */
943
1108
  versionMadeBy: number;
944
1109
  /**
945
- * `true` if `internalFileAttribute` and `externalFileAttribute` are compatible with MS-DOS format.
1110
+ * `true` if `internalFileAttributes` and `externalFileAttributes` are compatible with MS-DOS format.
946
1111
  */
947
1112
  msDosCompatible: boolean;
1113
+ /**
1114
+ * The internal file attributes (raw).
1115
+ */
1116
+ internalFileAttributes: number;
1117
+ /**
1118
+ * The external file attributes (raw).
1119
+ */
1120
+ externalFileAttributes: number;
1121
+ /**
1122
+ * The number of the disk where the entry data starts.
1123
+ */
948
1124
  /**
949
1125
  * The internal file attribute (raw).
1126
+ * @deprecated Use {@link EntryMetaData#internalFileAttributes} instead.
950
1127
  */
951
1128
  internalFileAttribute: number;
952
1129
  /**
953
1130
  * The external file attribute (raw).
1131
+ * @deprecated Use {@link EntryMetaData#externalFileAttributes} instead.
954
1132
  */
955
1133
  externalFileAttribute: number;
956
1134
  /**
957
1135
  * The number of the disk where the entry data starts.
958
1136
  */
959
1137
  diskNumberStart: number;
1138
+ /**
1139
+ * The compression method.
1140
+ */
1141
+ compressionMethod: number;
960
1142
  }
961
1143
 
962
1144
  /**
@@ -979,19 +1161,8 @@ export interface Entry extends EntryMetaData {
979
1161
  Writer<unknown> | WritableWriter | WritableStream,
980
1162
  boolean
981
1163
  >,
982
- options?: EntryGetDataOptions,
1164
+ options?: EntryGetDataCheckPasswordOptions
983
1165
  ): Promise<Type>;
984
-
985
- /**
986
- * Tests if the password is valid.
987
- *
988
- * @param writer `undefined` or `null`.
989
- * @param options The options with `checkPasswordOnly` set to `true`.
990
- */
991
- getData?(
992
- writer: undefined | null,
993
- options: EntryGetDataCheckPasswordOptions,
994
- ): Promise<void>;
995
1166
  }
996
1167
 
997
1168
  /**
@@ -1004,7 +1175,7 @@ export interface EntryGetDataOptions
1004
1175
  * Represents the options passed to {@link Entry#getData} and `{@link ZipFileEntry}.get*`.
1005
1176
  */
1006
1177
  export interface EntryGetDataCheckPasswordOptions
1007
- extends EntryGetDataOptions, ZipReaderCheckPasswordOptions { }
1178
+ extends EntryGetDataOptions { }
1008
1179
 
1009
1180
  /**
1010
1181
  * Represents an instance used to create a zipped stream.
@@ -1176,6 +1347,12 @@ export interface ZipWriterAddDataOptions
1176
1347
  * @defaultValue false
1177
1348
  */
1178
1349
  directory?: boolean;
1350
+ /**
1351
+ * `true` if the entry is an executable file.
1352
+ *
1353
+ * @defaultValue false
1354
+ */
1355
+ executable?: boolean;
1179
1356
  /**
1180
1357
  * The comment of the entry.
1181
1358
  */
@@ -1184,6 +1361,14 @@ export interface ZipWriterAddDataOptions
1184
1361
  * The extra field of the entry.
1185
1362
  */
1186
1363
  extraField?: Map<number, Uint8Array>;
1364
+ /**
1365
+ * The uncompressed size of the entry. This option is ignored if the {@link ZipWriterConstructorOptions#passThrough} option is not set to `true`.
1366
+ */
1367
+ uncompressedSize?: number;
1368
+ /**
1369
+ * The signature (CRC32 checksum) of the content. This option is ignored if the {@link ZipWriterConstructorOptions#passThrough} option is not set to `true`.
1370
+ */
1371
+ signature?: number;
1187
1372
  }
1188
1373
 
1189
1374
  /**
@@ -1256,7 +1441,10 @@ export interface ZipWriterConstructorOptions {
1256
1441
  */
1257
1442
  rawPassword?: Uint8Array;
1258
1443
  /**
1259
- * The encryption strength (AES).
1444
+ * The encryption strength (AES):
1445
+ * - 1: 128-bit encryption key
1446
+ * - 2: 192-bit encryption key
1447
+ * - 3: 256-bit encryption key
1260
1448
  *
1261
1449
  * @defaultValue 3
1262
1450
  */
@@ -1314,7 +1502,15 @@ export interface ZipWriterConstructorOptions {
1314
1502
  */
1315
1503
  versionMadeBy?: number;
1316
1504
  /**
1317
- * `true` to to add a data descriptor.
1505
+ * `true` to mark the file names as UTF-8 setting the general purpose bit 11 in the header (see Appendix D - Language Encoding (EFS)), `false` to mark the names as compliant with the original IBM Code Page 437.
1506
+ *
1507
+ * Note that this does not ensure that the file names are in the correct encoding.
1508
+ *
1509
+ * @defaultValue true
1510
+ */
1511
+ useUnicodeFileNames?: boolean;
1512
+ /**
1513
+ * `true` to add a data descriptor.
1318
1514
  *
1319
1515
  * When set to `false`, the {@link ZipWriterConstructorOptions#bufferedWrite} option will automatically be set to `true`.
1320
1516
  *
@@ -1328,9 +1524,9 @@ export interface ZipWriterConstructorOptions {
1328
1524
  */
1329
1525
  dataDescriptorSignature?: boolean;
1330
1526
  /**
1331
- * `true` to write {@link EntryMetaData#externalFileAttribute} in MS-DOS format for folder entries.
1527
+ * `true` to write {@link EntryMetaData#externalFileAttributes} in MS-DOS format for folder entries.
1332
1528
  *
1333
- * @defaultValue true
1529
+ * @defaultValue false
1334
1530
  */
1335
1531
  msDosCompatible?: boolean;
1336
1532
  /**
@@ -1338,13 +1534,13 @@ export interface ZipWriterConstructorOptions {
1338
1534
  *
1339
1535
  * @defaultValue 0
1340
1536
  */
1341
- externalFileAttribute?: number;
1537
+ externalFileAttributes?: number;
1342
1538
  /**
1343
1539
  * The internal file attribute.
1344
1540
  *
1345
1541
  * @defaultValue 0
1346
1542
  */
1347
- internalFileAttribute?: number;
1543
+ internalFileAttributes?: number;
1348
1544
  /**
1349
1545
  * `false` to never write disk numbers in zip64 data.
1350
1546
  *
@@ -1358,7 +1554,23 @@ export interface ZipWriterConstructorOptions {
1358
1554
  */
1359
1555
  usdz?: boolean;
1360
1556
  /**
1361
- * Encode the filename and the comment of the entry.
1557
+ * `true` to write the data as-is without compressing it and without crypting it.
1558
+ */
1559
+ passThrough?: boolean;
1560
+ /**
1561
+ * `true` to write encrypted data when `passThrough` is set to `true`.
1562
+ */
1563
+ encrypted?: boolean;
1564
+ /**
1565
+ * The offset of the first entry in the zip file.
1566
+ */
1567
+ offset?: number;
1568
+ /**
1569
+ * The compression method (e.g. 8 for DEFLATE, 0 for STORE).
1570
+ */
1571
+ compressionMethod?: number
1572
+ /**
1573
+ * The function called for encoding the filename and the comment of the entry.
1362
1574
  *
1363
1575
  * @param text The text to encode.
1364
1576
  * @returns The encoded text or `undefined` if the text should be encoded by zip.js.
@@ -2046,3 +2258,11 @@ export const ERR_SPLIT_ZIP_FILE: string;
2046
2258
  * Iteration completed too soon error
2047
2259
  */
2048
2260
  export const ERR_ITERATOR_COMPLETED_TOO_SOON: string;
2261
+ /**
2262
+ * Undefined uncompressed size error
2263
+ */
2264
+ export const ERR_UNDEFINED_UNCOMPRESSED_SIZE: string;
2265
+ /**
2266
+ * Writer not initialized error
2267
+ */
2268
+ export const ERR_WRITER_NOT_INITIALIZED: string;
@@ -81,7 +81,9 @@ export {
81
81
  ERR_INVALID_EXTRAFIELD_DATA,
82
82
  ERR_INVALID_ENCRYPTION_STRENGTH,
83
83
  ERR_UNSUPPORTED_FORMAT,
84
+ ERR_UNDEFINED_UNCOMPRESSED_SIZE,
84
85
  ERR_SPLIT_ZIP_FILE,
85
- ERR_ITERATOR_COMPLETED_TOO_SOON
86
+ ERR_ITERATOR_COMPLETED_TOO_SOON,
87
+ ERR_WRITER_NOT_INITIALIZED
86
88
  } from "./lib/zip-fs.js";
87
89
  export { getMimeType, terminateWorkers };