@hot-updater/cloudflare 0.13.0 → 0.13.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/cloudflare",
3
3
  "type": "module",
4
- "version": "0.13.0",
4
+ "version": "0.13.1",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
@@ -39,10 +39,10 @@
39
39
  "package.json"
40
40
  ],
41
41
  "dependencies": {
42
- "@hot-updater/core": "0.13.0",
43
- "@hot-updater/js": "0.13.0",
44
- "@hot-updater/plugin-core": "0.13.0",
45
- "cloudflare": "4.1.0"
42
+ "@hot-updater/core": "0.13.1",
43
+ "@hot-updater/js": "0.13.1",
44
+ "@hot-updater/plugin-core": "0.13.1",
45
+ "cloudflare": "4.2.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@cloudflare/vitest-pool-workers": "^0.8.0",
@@ -59,7 +59,7 @@
59
59
  "toml": "^3.0.0",
60
60
  "typescript": "^5.5.2",
61
61
  "vitest": "2.1.8",
62
- "wrangler": "^4.0.0",
62
+ "wrangler": "^4.5.0",
63
63
  "xdg-app-paths": "^8.3.0",
64
64
  "@clack/prompts": "^0.10.0"
65
65
  },
@@ -1 +1 @@
1
- This folder contains the built output assets for the worker "hot-updater" generated at 2025-03-26T16:56:46.802Z.
1
+ This folder contains the built output assets for the worker "hot-updater" generated at 2025-03-27T17:02:12.314Z.
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
 
4
- // ../../node_modules/.pnpm/unenv@2.0.0-rc.14/node_modules/unenv/dist/runtime/_internal/utils.mjs
4
+ // ../../node_modules/.pnpm/unenv@2.0.0-rc.15/node_modules/unenv/dist/runtime/_internal/utils.mjs
5
5
  // @__NO_SIDE_EFFECTS__
6
6
  function createNotImplementedError(name) {
7
7
  return new Error(`[unenv] ${name} is not implemented yet!`);
@@ -26,7 +26,7 @@ function notImplementedClass(name) {
26
26
  }
27
27
  __name(notImplementedClass, "notImplementedClass");
28
28
 
29
- // ../../node_modules/.pnpm/unenv@2.0.0-rc.14/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
29
+ // ../../node_modules/.pnpm/unenv@2.0.0-rc.15/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
30
30
  var _timeOrigin = globalThis.performance?.timeOrigin ?? Date.now();
31
31
  var _performanceNow = globalThis.performance?.now ? globalThis.performance.now.bind(globalThis.performance) : () => Date.now() - _timeOrigin;
32
32
  var nodeTiming = {
@@ -264,7 +264,7 @@ var PerformanceObserver = class {
264
264
  };
265
265
  var performance = globalThis.performance && "addEventListener" in globalThis.performance ? globalThis.performance : new Performance();
266
266
 
267
- // ../../node_modules/.pnpm/@cloudflare+unenv-preset@2.0.2_unenv@2.0.0-rc.14_workerd@1.20250310.0/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
267
+ // ../../node_modules/.pnpm/@cloudflare+unenv-preset@2.3.1_unenv@2.0.0-rc.15_workerd@1.20250321.0/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
268
268
  globalThis.performance = performance;
269
269
  globalThis.Performance = Performance;
270
270
  globalThis.PerformanceEntry = PerformanceEntry;
@@ -274,14 +274,14 @@ globalThis.PerformanceObserver = PerformanceObserver;
274
274
  globalThis.PerformanceObserverEntryList = PerformanceObserverEntryList;
275
275
  globalThis.PerformanceResourceTiming = PerformanceResourceTiming;
276
276
 
277
- // ../../node_modules/.pnpm/unenv@2.0.0-rc.14/node_modules/unenv/dist/runtime/node/console.mjs
277
+ // ../../node_modules/.pnpm/unenv@2.0.0-rc.15/node_modules/unenv/dist/runtime/node/console.mjs
278
278
  import { Writable } from "node:stream";
279
279
 
280
- // ../../node_modules/.pnpm/unenv@2.0.0-rc.14/node_modules/unenv/dist/runtime/mock/noop.mjs
280
+ // ../../node_modules/.pnpm/unenv@2.0.0-rc.15/node_modules/unenv/dist/runtime/mock/noop.mjs
281
281
  var noop_default = Object.assign(() => {
282
282
  }, { __unenv__: true });
283
283
 
284
- // ../../node_modules/.pnpm/unenv@2.0.0-rc.14/node_modules/unenv/dist/runtime/node/console.mjs
284
+ // ../../node_modules/.pnpm/unenv@2.0.0-rc.15/node_modules/unenv/dist/runtime/node/console.mjs
285
285
  var _console = globalThis.console;
286
286
  var _ignoreErrors = true;
287
287
  var _stderr = new Writable();
@@ -313,7 +313,7 @@ var _times = /* @__PURE__ */ new Map();
313
313
  var _stdoutErrorHandler = noop_default;
314
314
  var _stderrErrorHandler = noop_default;
315
315
 
316
- // ../../node_modules/.pnpm/@cloudflare+unenv-preset@2.0.2_unenv@2.0.0-rc.14_workerd@1.20250310.0/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
316
+ // ../../node_modules/.pnpm/@cloudflare+unenv-preset@2.3.1_unenv@2.0.0-rc.15_workerd@1.20250321.0/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
317
317
  var workerdConsole = globalThis["console"];
318
318
  var {
319
319
  assert,
@@ -354,10 +354,10 @@ Object.assign(workerdConsole, {
354
354
  });
355
355
  var console_default = workerdConsole;
356
356
 
357
- // ../../node_modules/.pnpm/wrangler@4.0.0_@cloudflare+workers-types@4.20250317.0/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
357
+ // ../../node_modules/.pnpm/wrangler@4.5.0_@cloudflare+workers-types@4.20250317.0/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
358
358
  globalThis.console = console_default;
359
359
 
360
- // ../../node_modules/.pnpm/unenv@2.0.0-rc.14/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
360
+ // ../../node_modules/.pnpm/unenv@2.0.0-rc.15/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
361
361
  var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtime2(startTime) {
362
362
  const now = Date.now();
363
363
  const seconds = Math.trunc(now / 1e3);
@@ -376,37 +376,19 @@ var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtim
376
376
  return BigInt(Date.now() * 1e6);
377
377
  }, "bigint") });
378
378
 
379
- // ../../node_modules/.pnpm/unenv@2.0.0-rc.14/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
379
+ // ../../node_modules/.pnpm/unenv@2.0.0-rc.15/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
380
380
  import { EventEmitter } from "node:events";
381
381
 
382
- // ../../node_modules/.pnpm/unenv@2.0.0-rc.14/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
383
- import { Socket } from "node:net";
384
- var ReadStream = class extends Socket {
385
- static {
386
- __name(this, "ReadStream");
387
- }
388
- fd;
389
- constructor(fd) {
390
- super();
391
- this.fd = fd;
392
- }
393
- isRaw = false;
394
- setRawMode(mode) {
395
- this.isRaw = mode;
396
- return this;
397
- }
398
- isTTY = false;
399
- };
400
-
401
- // ../../node_modules/.pnpm/unenv@2.0.0-rc.14/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
402
- import { Socket as Socket2 } from "node:net";
403
- var WriteStream = class extends Socket2 {
382
+ // ../../node_modules/.pnpm/unenv@2.0.0-rc.15/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
383
+ var WriteStream = class {
404
384
  static {
405
385
  __name(this, "WriteStream");
406
386
  }
407
387
  fd;
388
+ columns = 80;
389
+ rows = 24;
390
+ isTTY = false;
408
391
  constructor(fd) {
409
- super();
410
392
  this.fd = fd;
411
393
  }
412
394
  clearLine(dir3, callback) {
@@ -434,12 +416,37 @@ var WriteStream = class extends Socket2 {
434
416
  getWindowSize() {
435
417
  return [this.columns, this.rows];
436
418
  }
437
- columns = 80;
438
- rows = 24;
419
+ write(str, encoding, cb) {
420
+ if (str instanceof Uint8Array) {
421
+ str = new TextDecoder().decode(str);
422
+ }
423
+ try {
424
+ console.log(str);
425
+ } catch {
426
+ }
427
+ cb && typeof cb === "function" && cb();
428
+ return false;
429
+ }
430
+ };
431
+
432
+ // ../../node_modules/.pnpm/unenv@2.0.0-rc.15/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
433
+ var ReadStream = class {
434
+ static {
435
+ __name(this, "ReadStream");
436
+ }
437
+ fd;
438
+ isRaw = false;
439
439
  isTTY = false;
440
+ constructor(fd) {
441
+ this.fd = fd;
442
+ }
443
+ setRawMode(mode) {
444
+ this.isRaw = mode;
445
+ return this;
446
+ }
440
447
  };
441
448
 
442
- // ../../node_modules/.pnpm/unenv@2.0.0-rc.14/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
449
+ // ../../node_modules/.pnpm/unenv@2.0.0-rc.15/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
443
450
  var Process = class _Process extends EventEmitter {
444
451
  static {
445
452
  __name(this, "Process");
@@ -664,7 +671,7 @@ var Process = class _Process extends EventEmitter {
664
671
  _linkedBinding = void 0;
665
672
  };
666
673
 
667
- // ../../node_modules/.pnpm/@cloudflare+unenv-preset@2.0.2_unenv@2.0.0-rc.14_workerd@1.20250310.0/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
674
+ // ../../node_modules/.pnpm/@cloudflare+unenv-preset@2.3.1_unenv@2.0.0-rc.15_workerd@1.20250321.0/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
668
675
  var globalProcess = globalThis["process"];
669
676
  var getBuiltinModule = globalProcess.getBuiltinModule;
670
677
  var { exit, platform, nextTick } = getBuiltinModule(
@@ -892,7 +899,7 @@ var _process = {
892
899
  };
893
900
  var process_default = _process;
894
901
 
895
- // ../../node_modules/.pnpm/wrangler@4.0.0_@cloudflare+workers-types@4.20250317.0/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
902
+ // ../../node_modules/.pnpm/wrangler@4.5.0_@cloudflare+workers-types@4.20250317.0/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
896
903
  globalThis.process = process_default;
897
904
 
898
905
  // ../../packages/core/dist/index.js