@hot-updater/cloudflare 0.16.2 → 0.16.4

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.
@@ -687,9 +687,9 @@ var require_path_key = __commonJS({
687
687
  }
688
688
  });
689
689
 
690
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
690
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
691
691
  var require_resolveCommand = __commonJS({
692
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
692
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
693
693
  "use strict";
694
694
  var path8 = require("path");
695
695
  var which = require_which();
@@ -729,9 +729,9 @@ var require_resolveCommand = __commonJS({
729
729
  }
730
730
  });
731
731
 
732
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
732
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
733
733
  var require_escape = __commonJS({
734
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
734
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
735
735
  "use strict";
736
736
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
737
737
  function escapeCommand(arg) {
@@ -740,8 +740,8 @@ var require_escape = __commonJS({
740
740
  }
741
741
  function escapeArgument(arg, doubleEscapeMetaChars) {
742
742
  arg = `${arg}`;
743
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
744
- arg = arg.replace(/(\\*)$/, "$1$1");
743
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
744
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
745
745
  arg = `"${arg}"`;
746
746
  arg = arg.replace(metaCharsRegExp, "^$1");
747
747
  if (doubleEscapeMetaChars) {
@@ -782,9 +782,9 @@ var require_shebang_command = __commonJS({
782
782
  }
783
783
  });
784
784
 
785
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
785
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
786
786
  var require_readShebang = __commonJS({
787
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
787
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
788
788
  "use strict";
789
789
  var fs3 = require("fs");
790
790
  var shebangCommand = require_shebang_command();
@@ -804,9 +804,9 @@ var require_readShebang = __commonJS({
804
804
  }
805
805
  });
806
806
 
807
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
807
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
808
808
  var require_parse = __commonJS({
809
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
809
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
810
810
  "use strict";
811
811
  var path8 = require("path");
812
812
  var resolveCommand = require_resolveCommand();
@@ -866,9 +866,9 @@ var require_parse = __commonJS({
866
866
  }
867
867
  });
868
868
 
869
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
869
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
870
870
  var require_enoent = __commonJS({
871
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
871
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
872
872
  "use strict";
873
873
  var isWin = process.platform === "win32";
874
874
  function notFoundError(original, syscall) {
@@ -887,7 +887,7 @@ var require_enoent = __commonJS({
887
887
  const originalEmit = cp.emit;
888
888
  cp.emit = function(name, arg1) {
889
889
  if (name === "exit") {
890
- const err = verifyENOENT(arg1, parsed, "spawn");
890
+ const err = verifyENOENT(arg1, parsed);
891
891
  if (err) {
892
892
  return originalEmit.call(cp, "error", err);
893
893
  }
@@ -916,9 +916,9 @@ var require_enoent = __commonJS({
916
916
  }
917
917
  });
918
918
 
919
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
919
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
920
920
  var require_cross_spawn = __commonJS({
921
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports2, module2) {
921
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
922
922
  "use strict";
923
923
  var cp = require("child_process");
924
924
  var parse = require_parse();
@@ -12688,13 +12688,13 @@ var getWranglerLoginAuthToken = () => {
12688
12688
 
12689
12689
  // iac/index.ts
12690
12690
  var CONFIG_TEMPLATE = `
12691
- import { metro } from "@hot-updater/metro";
12691
+ import { bare } from "@hot-updater/bare";
12692
12692
  import { d1Database, r2Storage } from "@hot-updater/cloudflare";
12693
12693
  import { defineConfig } from "hot-updater";
12694
12694
  import "dotenv/config";
12695
12695
 
12696
12696
  export default defineConfig({
12697
- build: metro({ enableHermes: true }),
12697
+ build: bare({ enableHermes: true }),
12698
12698
  storage: r2Storage({
12699
12699
  bucketName: process.env.HOT_UPDATER_CLOUDFLARE_R2_BUCKET_NAME!,
12700
12700
  accountId: process.env.HOT_UPDATER_CLOUDFLARE_ACCOUNT_ID!,
package/dist/iac/index.js CHANGED
@@ -691,9 +691,9 @@ var require_path_key = __commonJS({
691
691
  }
692
692
  });
693
693
 
694
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
694
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
695
695
  var require_resolveCommand = __commonJS({
696
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
696
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
697
697
  "use strict";
698
698
  var path8 = __require("path");
699
699
  var which = require_which();
@@ -733,9 +733,9 @@ var require_resolveCommand = __commonJS({
733
733
  }
734
734
  });
735
735
 
736
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
736
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
737
737
  var require_escape = __commonJS({
738
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
738
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
739
739
  "use strict";
740
740
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
741
741
  function escapeCommand(arg) {
@@ -744,8 +744,8 @@ var require_escape = __commonJS({
744
744
  }
745
745
  function escapeArgument(arg, doubleEscapeMetaChars) {
746
746
  arg = `${arg}`;
747
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
748
- arg = arg.replace(/(\\*)$/, "$1$1");
747
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
748
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
749
749
  arg = `"${arg}"`;
750
750
  arg = arg.replace(metaCharsRegExp, "^$1");
751
751
  if (doubleEscapeMetaChars) {
@@ -786,9 +786,9 @@ var require_shebang_command = __commonJS({
786
786
  }
787
787
  });
788
788
 
789
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
789
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
790
790
  var require_readShebang = __commonJS({
791
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
791
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
792
792
  "use strict";
793
793
  var fs3 = __require("fs");
794
794
  var shebangCommand = require_shebang_command();
@@ -808,9 +808,9 @@ var require_readShebang = __commonJS({
808
808
  }
809
809
  });
810
810
 
811
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
811
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
812
812
  var require_parse = __commonJS({
813
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module) {
813
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
814
814
  "use strict";
815
815
  var path8 = __require("path");
816
816
  var resolveCommand = require_resolveCommand();
@@ -870,9 +870,9 @@ var require_parse = __commonJS({
870
870
  }
871
871
  });
872
872
 
873
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
873
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
874
874
  var require_enoent = __commonJS({
875
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
875
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
876
876
  "use strict";
877
877
  var isWin = process.platform === "win32";
878
878
  function notFoundError(original, syscall) {
@@ -891,7 +891,7 @@ var require_enoent = __commonJS({
891
891
  const originalEmit = cp.emit;
892
892
  cp.emit = function(name, arg1) {
893
893
  if (name === "exit") {
894
- const err = verifyENOENT(arg1, parsed, "spawn");
894
+ const err = verifyENOENT(arg1, parsed);
895
895
  if (err) {
896
896
  return originalEmit.call(cp, "error", err);
897
897
  }
@@ -920,9 +920,9 @@ var require_enoent = __commonJS({
920
920
  }
921
921
  });
922
922
 
923
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
923
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
924
924
  var require_cross_spawn = __commonJS({
925
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module) {
925
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
926
926
  "use strict";
927
927
  var cp = __require("child_process");
928
928
  var parse = require_parse();
@@ -12698,13 +12698,13 @@ var getWranglerLoginAuthToken = () => {
12698
12698
 
12699
12699
  // iac/index.ts
12700
12700
  var CONFIG_TEMPLATE = `
12701
- import { metro } from "@hot-updater/metro";
12701
+ import { bare } from "@hot-updater/bare";
12702
12702
  import { d1Database, r2Storage } from "@hot-updater/cloudflare";
12703
12703
  import { defineConfig } from "hot-updater";
12704
12704
  import "dotenv/config";
12705
12705
 
12706
12706
  export default defineConfig({
12707
- build: metro({ enableHermes: true }),
12707
+ build: bare({ enableHermes: true }),
12708
12708
  storage: r2Storage({
12709
12709
  bucketName: process.env.HOT_UPDATER_CLOUDFLARE_R2_BUCKET_NAME!,
12710
12710
  accountId: process.env.HOT_UPDATER_CLOUDFLARE_ACCOUNT_ID!,
package/dist/index.cjs CHANGED
@@ -550,9 +550,9 @@ var require_path_key = __commonJS({
550
550
  }
551
551
  });
552
552
 
553
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
553
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
554
554
  var require_resolveCommand = __commonJS({
555
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
555
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
556
556
  "use strict";
557
557
  var path7 = require("path");
558
558
  var which = require_which();
@@ -592,9 +592,9 @@ var require_resolveCommand = __commonJS({
592
592
  }
593
593
  });
594
594
 
595
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
595
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
596
596
  var require_escape = __commonJS({
597
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
597
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
598
598
  "use strict";
599
599
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
600
600
  function escapeCommand(arg) {
@@ -603,8 +603,8 @@ var require_escape = __commonJS({
603
603
  }
604
604
  function escapeArgument(arg, doubleEscapeMetaChars) {
605
605
  arg = `${arg}`;
606
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
607
- arg = arg.replace(/(\\*)$/, "$1$1");
606
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
607
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
608
608
  arg = `"${arg}"`;
609
609
  arg = arg.replace(metaCharsRegExp, "^$1");
610
610
  if (doubleEscapeMetaChars) {
@@ -645,9 +645,9 @@ var require_shebang_command = __commonJS({
645
645
  }
646
646
  });
647
647
 
648
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
648
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
649
649
  var require_readShebang = __commonJS({
650
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
650
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
651
651
  "use strict";
652
652
  var fs = require("fs");
653
653
  var shebangCommand = require_shebang_command();
@@ -667,9 +667,9 @@ var require_readShebang = __commonJS({
667
667
  }
668
668
  });
669
669
 
670
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
670
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
671
671
  var require_parse = __commonJS({
672
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
672
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
673
673
  "use strict";
674
674
  var path7 = require("path");
675
675
  var resolveCommand = require_resolveCommand();
@@ -729,9 +729,9 @@ var require_parse = __commonJS({
729
729
  }
730
730
  });
731
731
 
732
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
732
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
733
733
  var require_enoent = __commonJS({
734
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
734
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
735
735
  "use strict";
736
736
  var isWin = process.platform === "win32";
737
737
  function notFoundError(original, syscall) {
@@ -750,7 +750,7 @@ var require_enoent = __commonJS({
750
750
  const originalEmit = cp.emit;
751
751
  cp.emit = function(name, arg1) {
752
752
  if (name === "exit") {
753
- const err = verifyENOENT(arg1, parsed, "spawn");
753
+ const err = verifyENOENT(arg1, parsed);
754
754
  if (err) {
755
755
  return originalEmit.call(cp, "error", err);
756
756
  }
@@ -779,9 +779,9 @@ var require_enoent = __commonJS({
779
779
  }
780
780
  });
781
781
 
782
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
782
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
783
783
  var require_cross_spawn = __commonJS({
784
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports2, module2) {
784
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
785
785
  "use strict";
786
786
  var cp = require("child_process");
787
787
  var parse = require_parse();
package/dist/index.js CHANGED
@@ -550,9 +550,9 @@ var require_path_key = __commonJS({
550
550
  }
551
551
  });
552
552
 
553
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
553
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
554
554
  var require_resolveCommand = __commonJS({
555
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
555
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
556
556
  "use strict";
557
557
  var path7 = __require("path");
558
558
  var which = require_which();
@@ -592,9 +592,9 @@ var require_resolveCommand = __commonJS({
592
592
  }
593
593
  });
594
594
 
595
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
595
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
596
596
  var require_escape = __commonJS({
597
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
597
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
598
598
  "use strict";
599
599
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
600
600
  function escapeCommand(arg) {
@@ -603,8 +603,8 @@ var require_escape = __commonJS({
603
603
  }
604
604
  function escapeArgument(arg, doubleEscapeMetaChars) {
605
605
  arg = `${arg}`;
606
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
607
- arg = arg.replace(/(\\*)$/, "$1$1");
606
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
607
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
608
608
  arg = `"${arg}"`;
609
609
  arg = arg.replace(metaCharsRegExp, "^$1");
610
610
  if (doubleEscapeMetaChars) {
@@ -645,9 +645,9 @@ var require_shebang_command = __commonJS({
645
645
  }
646
646
  });
647
647
 
648
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
648
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
649
649
  var require_readShebang = __commonJS({
650
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
650
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
651
651
  "use strict";
652
652
  var fs = __require("fs");
653
653
  var shebangCommand = require_shebang_command();
@@ -667,9 +667,9 @@ var require_readShebang = __commonJS({
667
667
  }
668
668
  });
669
669
 
670
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
670
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
671
671
  var require_parse = __commonJS({
672
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module) {
672
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
673
673
  "use strict";
674
674
  var path7 = __require("path");
675
675
  var resolveCommand = require_resolveCommand();
@@ -729,9 +729,9 @@ var require_parse = __commonJS({
729
729
  }
730
730
  });
731
731
 
732
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
732
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
733
733
  var require_enoent = __commonJS({
734
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
734
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
735
735
  "use strict";
736
736
  var isWin = process.platform === "win32";
737
737
  function notFoundError(original, syscall) {
@@ -750,7 +750,7 @@ var require_enoent = __commonJS({
750
750
  const originalEmit = cp.emit;
751
751
  cp.emit = function(name, arg1) {
752
752
  if (name === "exit") {
753
- const err = verifyENOENT(arg1, parsed, "spawn");
753
+ const err = verifyENOENT(arg1, parsed);
754
754
  if (err) {
755
755
  return originalEmit.call(cp, "error", err);
756
756
  }
@@ -779,9 +779,9 @@ var require_enoent = __commonJS({
779
779
  }
780
780
  });
781
781
 
782
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
782
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
783
783
  var require_cross_spawn = __commonJS({
784
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module) {
784
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
785
785
  "use strict";
786
786
  var cp = __require("child_process");
787
787
  var parse = require_parse();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/cloudflare",
3
3
  "type": "module",
4
- "version": "0.16.2",
4
+ "version": "0.16.4",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
@@ -39,9 +39,9 @@
39
39
  "package.json"
40
40
  ],
41
41
  "dependencies": {
42
- "@hot-updater/core": "0.16.2",
43
- "@hot-updater/js": "0.16.2",
44
- "@hot-updater/plugin-core": "0.16.2",
42
+ "@hot-updater/core": "0.16.4",
43
+ "@hot-updater/js": "0.16.4",
44
+ "@hot-updater/plugin-core": "0.16.4",
45
45
  "cloudflare": "4.2.0"
46
46
  },
47
47
  "devDependencies": {
@@ -1 +1 @@
1
- This folder contains the built output assets for the worker "hot-updater" generated at 2025-04-10T15:47:00.682Z.
1
+ This folder contains the built output assets for the worker "hot-updater" generated at 2025-04-26T05:57:12.465Z.
@@ -918,10 +918,8 @@ var __webpack_modules__ = {
918
918
  }
919
919
  constructor(comp, options) {
920
920
  options = parseOptions(options);
921
- if (comp instanceof Comparator) {
922
- if (!!options.loose === comp.loose) return comp;
923
- comp = comp.value;
924
- }
921
+ if (comp instanceof Comparator) if (!!options.loose === comp.loose) return comp;
922
+ else comp = comp.value;
925
923
  comp = comp.trim().split(/\s+/).join(" ");
926
924
  debug3("comparator", comp, options);
927
925
  this.options = options;
@@ -990,10 +988,8 @@ var __webpack_modules__ = {
990
988
  }
991
989
  constructor(range, options) {
992
990
  options = parseOptions(options);
993
- if (range instanceof Range) {
994
- if (!!options.loose === range.loose && !!options.includePrerelease === range.includePrerelease) return range;
995
- return new Range(range.raw, options);
996
- }
991
+ if (range instanceof Range) if (!!options.loose === range.loose && !!options.includePrerelease === range.includePrerelease) return range;
992
+ else return new Range(range.raw, options);
997
993
  if (range instanceof Comparator) {
998
994
  this.raw = range.value;
999
995
  this.set = [
@@ -1255,10 +1251,9 @@ var __webpack_modules__ = {
1255
1251
  }
1256
1252
  constructor(version2, options) {
1257
1253
  options = parseOptions(options);
1258
- if (version2 instanceof SemVer) {
1259
- if (!!options.loose === version2.loose && !!options.includePrerelease === version2.includePrerelease) return version2;
1260
- version2 = version2.version;
1261
- } else if ("string" != typeof version2) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
1254
+ if (version2 instanceof SemVer) if (!!options.loose === version2.loose && !!options.includePrerelease === version2.includePrerelease) return version2;
1255
+ else version2 = version2.version;
1256
+ else if ("string" != typeof version2) throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
1262
1257
  if (version2.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
1263
1258
  debug3("SemVer", version2, options);
1264
1259
  this.options = options;
@@ -2105,12 +2100,10 @@ var __webpack_modules__ = {
2105
2100
  ]);
2106
2101
  const ranges = [];
2107
2102
  for (const [min, max] of set) if (min === max) ranges.push(min);
2108
- else if (max || min !== v[0]) {
2109
- if (max) {
2110
- if (min === v[0]) ranges.push(`<=${max}`);
2111
- else ranges.push(`${min} - ${max}`);
2112
- } else ranges.push(`>=${min}`);
2113
- } else ranges.push("*");
2103
+ else if (max || min !== v[0]) if (max) if (min === v[0]) ranges.push(`<=${max}`);
2104
+ else ranges.push(`${min} - ${max}`);
2105
+ else ranges.push(`>=${min}`);
2106
+ else ranges.push("*");
2114
2107
  const simplified = ranges.join(" || ");
2115
2108
  const original = "string" == typeof range.raw ? range.raw : String(range);
2116
2109
  return simplified.length < original.length ? simplified : range;
@@ -2145,14 +2138,10 @@ var __webpack_modules__ = {
2145
2138
  ];
2146
2139
  const simpleSubset = /* @__PURE__ */ __name((sub, dom, options) => {
2147
2140
  if (sub === dom) return true;
2148
- if (1 === sub.length && sub[0].semver === ANY) {
2149
- if (1 === dom.length && dom[0].semver === ANY) return true;
2150
- sub = options.includePrerelease ? minimumVersionWithPreRelease : minimumVersion;
2151
- }
2152
- if (1 === dom.length && dom[0].semver === ANY) {
2153
- if (options.includePrerelease) return true;
2154
- dom = minimumVersion;
2155
- }
2141
+ if (1 === sub.length && sub[0].semver === ANY) if (1 === dom.length && dom[0].semver === ANY) return true;
2142
+ else sub = options.includePrerelease ? minimumVersionWithPreRelease : minimumVersion;
2143
+ if (1 === dom.length && dom[0].semver === ANY) if (options.includePrerelease) return true;
2144
+ else dom = minimumVersion;
2156
2145
  const eqSet = /* @__PURE__ */ new Set();
2157
2146
  let gt, lt;
2158
2147
  for (const c of sub) if (">" === c.operator || ">=" === c.operator) gt = higherGT(gt, c, options);
@@ -3340,7 +3329,7 @@ var SignJWT = class {
3340
3329
  return sig.sign(key, options);
3341
3330
  }
3342
3331
  };
3343
- var withJwtSignedUrl = /* @__PURE__ */ __name(async ({ data, reqUrl, jwtSecret }) => {
3332
+ var withJwtSignedUrl = /* @__PURE__ */ __name(async ({ pathPrefix = "", data, reqUrl, jwtSecret }) => {
3344
3333
  if (!data) return null;
3345
3334
  if (data.id === NIL_UUID) return {
3346
3335
  ...data,
@@ -3349,7 +3338,7 @@ var withJwtSignedUrl = /* @__PURE__ */ __name(async ({ data, reqUrl, jwtSecret }
3349
3338
  const key = `${data.id}/bundle.zip`;
3350
3339
  const token = await signToken(key, jwtSecret);
3351
3340
  const url = new URL(reqUrl);
3352
- url.pathname = `/${key}`;
3341
+ url.pathname = `${pathPrefix}/${key}`;
3353
3342
  url.searchParams.set("token", token);
3354
3343
  return {
3355
3344
  ...data,