@hot-updater/console 0.30.7 → 0.30.8

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 (24) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{main-CoPJhqkz.js → main-5MdOCmsM.js} +2 -2
  3. package/.output/public/assets/{routes-CVEbccVq.js → routes-BmbL4goz.js} +2 -2
  4. package/.output/server/{__tanstack-start-server-fn-resolver-DB7Vwz3A.mjs → __tanstack-start-server-fn-resolver-rXMsqALt.mjs} +11 -11
  5. package/.output/server/_ssr/{api-rpc-kX2sZt80.mjs → api-rpc-DYKuUgOh.mjs} +2 -2
  6. package/.output/server/_ssr/{router-fogqFSFT.mjs → router-D-WWsYjv.mjs} +3 -3
  7. package/.output/server/_ssr/{routes-CgYYFBNT.mjs → routes-DyUhibF4.mjs} +87 -67
  8. package/.output/server/_ssr/{sidebar-B6a7DDef.mjs → sidebar-DXng0IOP.mjs} +1 -1
  9. package/.output/server/_ssr/ssr.mjs +3 -3
  10. package/.output/server/{_tanstack-start-manifest_v-OXy-e32b.mjs → _tanstack-start-manifest_v-xpdCj2Ct.mjs} +4 -4
  11. package/.output/server/index.mjs +41 -41
  12. package/README.md +0 -1
  13. package/package.json +6 -6
  14. package/.output/server/_libs/chownr.mjs +0 -60
  15. package/.output/server/_libs/core-util-is.mjs +0 -67
  16. package/.output/server/_libs/immediate.mjs +0 -57
  17. package/.output/server/_libs/inherits.mjs +0 -39
  18. package/.output/server/_libs/isaacs__fs-minipass+minipass.mjs +0 -1154
  19. package/.output/server/_libs/isarray.mjs +0 -10
  20. package/.output/server/_libs/jszip+[...].mjs +0 -8311
  21. package/.output/server/_libs/minizlib.mjs +0 -368
  22. package/.output/server/_libs/tar+yallist.mjs +0 -3318
  23. package/.output/server/_ssr/extract-timestamp-from-uuidv7-DO_lXhMa.mjs +0 -24
  24. package/.output/server/_ssr/promoteBundle-BBOSMtwu.mjs +0 -1571
@@ -1,368 +0,0 @@
1
- import { a as Minipass } from "./isaacs__fs-minipass+minipass.mjs";
2
- import { Buffer } from "buffer";
3
- import assert from "assert";
4
- import * as realZlib$1 from "zlib";
5
- import realZlib from "zlib";
6
- //#region ../../node_modules/.pnpm/minizlib@3.1.0/node_modules/minizlib/dist/esm/constants.js
7
- /* c8 ignore start */
8
- var realZlibConstants = realZlib.constants || { ZLIB_VERNUM: 4736 };
9
- /* c8 ignore stop */
10
- var constants = Object.freeze(Object.assign(Object.create(null), {
11
- Z_NO_FLUSH: 0,
12
- Z_PARTIAL_FLUSH: 1,
13
- Z_SYNC_FLUSH: 2,
14
- Z_FULL_FLUSH: 3,
15
- Z_FINISH: 4,
16
- Z_BLOCK: 5,
17
- Z_OK: 0,
18
- Z_STREAM_END: 1,
19
- Z_NEED_DICT: 2,
20
- Z_ERRNO: -1,
21
- Z_STREAM_ERROR: -2,
22
- Z_DATA_ERROR: -3,
23
- Z_MEM_ERROR: -4,
24
- Z_BUF_ERROR: -5,
25
- Z_VERSION_ERROR: -6,
26
- Z_NO_COMPRESSION: 0,
27
- Z_BEST_SPEED: 1,
28
- Z_BEST_COMPRESSION: 9,
29
- Z_DEFAULT_COMPRESSION: -1,
30
- Z_FILTERED: 1,
31
- Z_HUFFMAN_ONLY: 2,
32
- Z_RLE: 3,
33
- Z_FIXED: 4,
34
- Z_DEFAULT_STRATEGY: 0,
35
- DEFLATE: 1,
36
- INFLATE: 2,
37
- GZIP: 3,
38
- GUNZIP: 4,
39
- DEFLATERAW: 5,
40
- INFLATERAW: 6,
41
- UNZIP: 7,
42
- BROTLI_DECODE: 8,
43
- BROTLI_ENCODE: 9,
44
- Z_MIN_WINDOWBITS: 8,
45
- Z_MAX_WINDOWBITS: 15,
46
- Z_DEFAULT_WINDOWBITS: 15,
47
- Z_MIN_CHUNK: 64,
48
- Z_MAX_CHUNK: Infinity,
49
- Z_DEFAULT_CHUNK: 16384,
50
- Z_MIN_MEMLEVEL: 1,
51
- Z_MAX_MEMLEVEL: 9,
52
- Z_DEFAULT_MEMLEVEL: 8,
53
- Z_MIN_LEVEL: -1,
54
- Z_MAX_LEVEL: 9,
55
- Z_DEFAULT_LEVEL: -1,
56
- BROTLI_OPERATION_PROCESS: 0,
57
- BROTLI_OPERATION_FLUSH: 1,
58
- BROTLI_OPERATION_FINISH: 2,
59
- BROTLI_OPERATION_EMIT_METADATA: 3,
60
- BROTLI_MODE_GENERIC: 0,
61
- BROTLI_MODE_TEXT: 1,
62
- BROTLI_MODE_FONT: 2,
63
- BROTLI_DEFAULT_MODE: 0,
64
- BROTLI_MIN_QUALITY: 0,
65
- BROTLI_MAX_QUALITY: 11,
66
- BROTLI_DEFAULT_QUALITY: 11,
67
- BROTLI_MIN_WINDOW_BITS: 10,
68
- BROTLI_MAX_WINDOW_BITS: 24,
69
- BROTLI_LARGE_MAX_WINDOW_BITS: 30,
70
- BROTLI_DEFAULT_WINDOW: 22,
71
- BROTLI_MIN_INPUT_BLOCK_BITS: 16,
72
- BROTLI_MAX_INPUT_BLOCK_BITS: 24,
73
- BROTLI_PARAM_MODE: 0,
74
- BROTLI_PARAM_QUALITY: 1,
75
- BROTLI_PARAM_LGWIN: 2,
76
- BROTLI_PARAM_LGBLOCK: 3,
77
- BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4,
78
- BROTLI_PARAM_SIZE_HINT: 5,
79
- BROTLI_PARAM_LARGE_WINDOW: 6,
80
- BROTLI_PARAM_NPOSTFIX: 7,
81
- BROTLI_PARAM_NDIRECT: 8,
82
- BROTLI_DECODER_RESULT_ERROR: 0,
83
- BROTLI_DECODER_RESULT_SUCCESS: 1,
84
- BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2,
85
- BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3,
86
- BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0,
87
- BROTLI_DECODER_PARAM_LARGE_WINDOW: 1,
88
- BROTLI_DECODER_NO_ERROR: 0,
89
- BROTLI_DECODER_SUCCESS: 1,
90
- BROTLI_DECODER_NEEDS_MORE_INPUT: 2,
91
- BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3,
92
- BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1,
93
- BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2,
94
- BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3,
95
- BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4,
96
- BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5,
97
- BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6,
98
- BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7,
99
- BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8,
100
- BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9,
101
- BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10,
102
- BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11,
103
- BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12,
104
- BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13,
105
- BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14,
106
- BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15,
107
- BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16,
108
- BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19,
109
- BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20,
110
- BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21,
111
- BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22,
112
- BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25,
113
- BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26,
114
- BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27,
115
- BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30,
116
- BROTLI_DECODER_ERROR_UNREACHABLE: -31
117
- }, realZlibConstants));
118
- //#endregion
119
- //#region ../../node_modules/.pnpm/minizlib@3.1.0/node_modules/minizlib/dist/esm/index.js
120
- var OriginalBufferConcat = Buffer.concat;
121
- var desc = Object.getOwnPropertyDescriptor(Buffer, "concat");
122
- var noop = (args) => args;
123
- var passthroughBufferConcat = desc?.writable === true || desc?.set !== void 0 ? (makeNoOp) => {
124
- Buffer.concat = makeNoOp ? noop : OriginalBufferConcat;
125
- } : (_) => {};
126
- var _superWrite = Symbol("_superWrite");
127
- var ZlibError = class extends Error {
128
- code;
129
- errno;
130
- constructor(err, origin) {
131
- super("zlib: " + err.message, { cause: err });
132
- this.code = err.code;
133
- this.errno = err.errno;
134
- /* c8 ignore next */
135
- if (!this.code) this.code = "ZLIB_ERROR";
136
- this.message = "zlib: " + err.message;
137
- Error.captureStackTrace(this, origin ?? this.constructor);
138
- }
139
- get name() {
140
- return "ZlibError";
141
- }
142
- };
143
- var _flushFlag = Symbol("flushFlag");
144
- var ZlibBase = class extends Minipass {
145
- #sawError = false;
146
- #ended = false;
147
- #flushFlag;
148
- #finishFlushFlag;
149
- #fullFlushFlag;
150
- #handle;
151
- #onError;
152
- get sawError() {
153
- return this.#sawError;
154
- }
155
- get handle() {
156
- return this.#handle;
157
- }
158
- /* c8 ignore start */
159
- get flushFlag() {
160
- return this.#flushFlag;
161
- }
162
- /* c8 ignore stop */
163
- constructor(opts, mode) {
164
- if (!opts || typeof opts !== "object") throw new TypeError("invalid options for ZlibBase constructor");
165
- super(opts);
166
- /* c8 ignore start */
167
- this.#flushFlag = opts.flush ?? 0;
168
- this.#finishFlushFlag = opts.finishFlush ?? 0;
169
- this.#fullFlushFlag = opts.fullFlushFlag ?? 0;
170
- /* c8 ignore stop */
171
- if (typeof realZlib$1[mode] !== "function") throw new TypeError("Compression method not supported: " + mode);
172
- try {
173
- this.#handle = new realZlib$1[mode](opts);
174
- } catch (er) {
175
- throw new ZlibError(er, this.constructor);
176
- }
177
- this.#onError = (err) => {
178
- if (this.#sawError) return;
179
- this.#sawError = true;
180
- this.close();
181
- this.emit("error", err);
182
- };
183
- this.#handle?.on("error", (er) => this.#onError(new ZlibError(er)));
184
- this.once("end", () => this.close);
185
- }
186
- close() {
187
- if (this.#handle) {
188
- this.#handle.close();
189
- this.#handle = void 0;
190
- this.emit("close");
191
- }
192
- }
193
- reset() {
194
- if (!this.#sawError) {
195
- assert(this.#handle, "zlib binding closed");
196
- return this.#handle.reset?.();
197
- }
198
- }
199
- flush(flushFlag) {
200
- if (this.ended) return;
201
- if (typeof flushFlag !== "number") flushFlag = this.#fullFlushFlag;
202
- this.write(Object.assign(Buffer.alloc(0), { [_flushFlag]: flushFlag }));
203
- }
204
- end(chunk, encoding, cb) {
205
- /* c8 ignore start */
206
- if (typeof chunk === "function") {
207
- cb = chunk;
208
- encoding = void 0;
209
- chunk = void 0;
210
- }
211
- if (typeof encoding === "function") {
212
- cb = encoding;
213
- encoding = void 0;
214
- }
215
- /* c8 ignore stop */
216
- if (chunk) if (encoding) this.write(chunk, encoding);
217
- else this.write(chunk);
218
- this.flush(this.#finishFlushFlag);
219
- this.#ended = true;
220
- return super.end(cb);
221
- }
222
- get ended() {
223
- return this.#ended;
224
- }
225
- [_superWrite](data) {
226
- return super.write(data);
227
- }
228
- write(chunk, encoding, cb) {
229
- if (typeof encoding === "function") cb = encoding, encoding = "utf8";
230
- if (typeof chunk === "string") chunk = Buffer.from(chunk, encoding);
231
- if (this.#sawError) return;
232
- assert(this.#handle, "zlib binding closed");
233
- const nativeHandle = this.#handle._handle;
234
- const originalNativeClose = nativeHandle.close;
235
- nativeHandle.close = () => {};
236
- const originalClose = this.#handle.close;
237
- this.#handle.close = () => {};
238
- passthroughBufferConcat(true);
239
- let result = void 0;
240
- try {
241
- const flushFlag = typeof chunk[_flushFlag] === "number" ? chunk[_flushFlag] : this.#flushFlag;
242
- result = this.#handle._processChunk(chunk, flushFlag);
243
- passthroughBufferConcat(false);
244
- } catch (err) {
245
- passthroughBufferConcat(false);
246
- this.#onError(new ZlibError(err, this.write));
247
- } finally {
248
- if (this.#handle) {
249
- this.#handle._handle = nativeHandle;
250
- nativeHandle.close = originalNativeClose;
251
- this.#handle.close = originalClose;
252
- this.#handle.removeAllListeners("error");
253
- }
254
- }
255
- if (this.#handle) this.#handle.on("error", (er) => this.#onError(new ZlibError(er, this.write)));
256
- let writeReturn;
257
- if (result) if (Array.isArray(result) && result.length > 0) {
258
- const r = result[0];
259
- writeReturn = this[_superWrite](Buffer.from(r));
260
- for (let i = 1; i < result.length; i++) writeReturn = this[_superWrite](result[i]);
261
- } else writeReturn = this[_superWrite](Buffer.from(result));
262
- if (cb) cb();
263
- return writeReturn;
264
- }
265
- };
266
- var Zlib = class extends ZlibBase {
267
- #level;
268
- #strategy;
269
- constructor(opts, mode) {
270
- opts = opts || {};
271
- opts.flush = opts.flush || constants.Z_NO_FLUSH;
272
- opts.finishFlush = opts.finishFlush || constants.Z_FINISH;
273
- opts.fullFlushFlag = constants.Z_FULL_FLUSH;
274
- super(opts, mode);
275
- this.#level = opts.level;
276
- this.#strategy = opts.strategy;
277
- }
278
- params(level, strategy) {
279
- if (this.sawError) return;
280
- if (!this.handle) throw new Error("cannot switch params when binding is closed");
281
- /* c8 ignore start */
282
- if (!this.handle.params) throw new Error("not supported in this implementation");
283
- /* c8 ignore stop */
284
- if (this.#level !== level || this.#strategy !== strategy) {
285
- this.flush(constants.Z_SYNC_FLUSH);
286
- assert(this.handle, "zlib binding closed");
287
- const origFlush = this.handle.flush;
288
- this.handle.flush = (flushFlag, cb) => {
289
- /* c8 ignore start */
290
- if (typeof flushFlag === "function") {
291
- cb = flushFlag;
292
- flushFlag = this.flushFlag;
293
- }
294
- /* c8 ignore stop */
295
- this.flush(flushFlag);
296
- cb?.();
297
- };
298
- try {
299
- this.handle.params(level, strategy);
300
- } finally {
301
- this.handle.flush = origFlush;
302
- }
303
- /* c8 ignore start */
304
- if (this.handle) {
305
- this.#level = level;
306
- this.#strategy = strategy;
307
- }
308
- }
309
- }
310
- };
311
- var Gzip = class extends Zlib {
312
- #portable;
313
- constructor(opts) {
314
- super(opts, "Gzip");
315
- this.#portable = opts && !!opts.portable;
316
- }
317
- [_superWrite](data) {
318
- if (!this.#portable) return super[_superWrite](data);
319
- this.#portable = false;
320
- data[9] = 255;
321
- return super[_superWrite](data);
322
- }
323
- };
324
- var Unzip = class extends Zlib {
325
- constructor(opts) {
326
- super(opts, "Unzip");
327
- }
328
- };
329
- var Brotli = class extends ZlibBase {
330
- constructor(opts, mode) {
331
- opts = opts || {};
332
- opts.flush = opts.flush || constants.BROTLI_OPERATION_PROCESS;
333
- opts.finishFlush = opts.finishFlush || constants.BROTLI_OPERATION_FINISH;
334
- opts.fullFlushFlag = constants.BROTLI_OPERATION_FLUSH;
335
- super(opts, mode);
336
- }
337
- };
338
- var BrotliCompress = class extends Brotli {
339
- constructor(opts) {
340
- super(opts, "BrotliCompress");
341
- }
342
- };
343
- var BrotliDecompress = class extends Brotli {
344
- constructor(opts) {
345
- super(opts, "BrotliDecompress");
346
- }
347
- };
348
- var Zstd = class extends ZlibBase {
349
- constructor(opts, mode) {
350
- opts = opts || {};
351
- opts.flush = opts.flush || constants.ZSTD_e_continue;
352
- opts.finishFlush = opts.finishFlush || constants.ZSTD_e_end;
353
- opts.fullFlushFlag = constants.ZSTD_e_flush;
354
- super(opts, mode);
355
- }
356
- };
357
- var ZstdCompress = class extends Zstd {
358
- constructor(opts) {
359
- super(opts, "ZstdCompress");
360
- }
361
- };
362
- var ZstdDecompress = class extends Zstd {
363
- constructor(opts) {
364
- super(opts, "ZstdDecompress");
365
- }
366
- };
367
- //#endregion
368
- export { ZstdCompress as a, Unzip as i, BrotliDecompress as n, ZstdDecompress as o, Gzip as r, BrotliCompress as t };