@hot-updater/aws 0.25.8 → 0.25.10

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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { S3ClientConfig } from "@aws-sdk/client-s3";
2
- import * as _hot_updater_plugin_core1 from "@hot-updater/plugin-core";
2
+ import * as _hot_updater_plugin_core0 from "@hot-updater/plugin-core";
3
3
 
4
4
  //#region src/s3Database.d.ts
5
5
  interface S3DatabaseConfig extends S3ClientConfig {
@@ -14,7 +14,7 @@ interface S3DatabaseConfig extends S3ClientConfig {
14
14
  cloudfrontDistributionId?: string;
15
15
  apiBasePath?: string;
16
16
  }
17
- declare const s3Database: (config: S3DatabaseConfig, hooks?: _hot_updater_plugin_core1.DatabasePluginHooks) => () => _hot_updater_plugin_core1.DatabasePlugin;
17
+ declare const s3Database: (config: S3DatabaseConfig, hooks?: _hot_updater_plugin_core0.DatabasePluginHooks) => () => _hot_updater_plugin_core0.DatabasePlugin;
18
18
  //#endregion
19
19
  //#region src/s3Storage.d.ts
20
20
  interface S3StorageConfig extends S3ClientConfig {
@@ -24,6 +24,6 @@ interface S3StorageConfig extends S3ClientConfig {
24
24
  */
25
25
  basePath?: string;
26
26
  }
27
- declare const s3Storage: (config: S3StorageConfig, hooks?: _hot_updater_plugin_core1.StoragePluginHooks) => () => _hot_updater_plugin_core1.StoragePlugin;
27
+ declare const s3Storage: (config: S3StorageConfig, hooks?: _hot_updater_plugin_core0.StoragePluginHooks) => () => _hot_updater_plugin_core0.StoragePlugin;
28
28
  //#endregion
29
29
  export { S3DatabaseConfig, S3StorageConfig, s3Database, s3Storage };
@@ -26,10 +26,31 @@ var __toESM$1 = (mod, isNodeMode, target) => (target = mod != null ? __create$1(
26
26
  //#endregion
27
27
  let __aws_sdk_client_ssm = require("@aws-sdk/client-ssm");
28
28
  __aws_sdk_client_ssm = __toESM$1(__aws_sdk_client_ssm);
29
+ let path = require("path");
30
+ path = __toESM$1(path);
29
31
  let node_crypto = require("node:crypto");
30
32
  node_crypto = __toESM$1(node_crypto);
31
33
 
32
34
  //#region ../../packages/core/dist/index.js
35
+ const HOT_UPDATE_DIR_NAME = ".hot-updater";
36
+ const HOT_UPDATE_OUTPUT_DIR_NAME = "output";
37
+ const HOT_UPDATE_LOG_DIR_NAME = "log";
38
+ const HotUpdateDirUtil = {
39
+ dirName: HOT_UPDATE_DIR_NAME,
40
+ outputDirName: HOT_UPDATE_OUTPUT_DIR_NAME,
41
+ logDirName: HOT_UPDATE_LOG_DIR_NAME,
42
+ outputGitignorePath: `${HOT_UPDATE_DIR_NAME}/${HOT_UPDATE_OUTPUT_DIR_NAME}`,
43
+ logGitignorePath: `${HOT_UPDATE_DIR_NAME}/${HOT_UPDATE_LOG_DIR_NAME}`,
44
+ getDirPath: ({ cwd }) => {
45
+ return path.default.join(cwd, HOT_UPDATE_DIR_NAME);
46
+ },
47
+ getDefaultOutputPath: ({ cwd }) => {
48
+ return path.default.join(cwd, HOT_UPDATE_DIR_NAME, HOT_UPDATE_OUTPUT_DIR_NAME);
49
+ },
50
+ getLogDirPath: ({ cwd }) => {
51
+ return path.default.join(cwd, HOT_UPDATE_DIR_NAME, HOT_UPDATE_LOG_DIR_NAME);
52
+ }
53
+ };
33
54
  const NIL_UUID = "00000000-0000-0000-0000-000000000000";
34
55
 
35
56
  //#endregion
@@ -81,25 +102,25 @@ var handleParsingNestedValues = (form, key, value) => {
81
102
 
82
103
  //#endregion
83
104
  //#region ../../node_modules/.pnpm/hono@4.6.3/node_modules/hono/dist/utils/url.js
84
- var splitPath = (path) => {
85
- const paths = path.split("/");
105
+ var splitPath = (path$2) => {
106
+ const paths = path$2.split("/");
86
107
  if (paths[0] === "") paths.shift();
87
108
  return paths;
88
109
  };
89
110
  var splitRoutingPath = (routePath) => {
90
- const { groups, path } = extractGroupsFromPath(routePath);
91
- return replaceGroupMarks(splitPath(path), groups);
111
+ const { groups, path: path$2 } = extractGroupsFromPath(routePath);
112
+ return replaceGroupMarks(splitPath(path$2), groups);
92
113
  };
93
- var extractGroupsFromPath = (path) => {
114
+ var extractGroupsFromPath = (path$2) => {
94
115
  const groups = [];
95
- path = path.replace(/\{[^}]+\}/g, (match, index) => {
116
+ path$2 = path$2.replace(/\{[^}]+\}/g, (match, index) => {
96
117
  const mark = `@${index}`;
97
118
  groups.push([mark, match]);
98
119
  return mark;
99
120
  });
100
121
  return {
101
122
  groups,
102
- path
123
+ path: path$2
103
124
  };
104
125
  };
105
126
  var replaceGroupMarks = (paths, groups) => {
@@ -152,8 +173,8 @@ var getPath = (request) => {
152
173
  const charCode = url.charCodeAt(i);
153
174
  if (charCode === 37) {
154
175
  const queryIndex = url.indexOf("?", i);
155
- const path = url.slice(start, queryIndex === -1 ? void 0 : queryIndex);
156
- return tryDecodeURI(path.includes("%25") ? path.replace(/%25/g, "%2525") : path);
176
+ const path$2 = url.slice(start, queryIndex === -1 ? void 0 : queryIndex);
177
+ return tryDecodeURI(path$2.includes("%25") ? path$2.replace(/%25/g, "%2525") : path$2);
157
178
  } else if (charCode === 63) break;
158
179
  }
159
180
  return url.slice(start, i);
@@ -165,21 +186,21 @@ var getPathNoStrict = (request) => {
165
186
  var mergePath = (...paths) => {
166
187
  let p = "";
167
188
  let endsWithSlash = false;
168
- for (let path of paths) {
189
+ for (let path$2 of paths) {
169
190
  if (p[p.length - 1] === "/") {
170
191
  p = p.slice(0, -1);
171
192
  endsWithSlash = true;
172
193
  }
173
- if (path[0] !== "/") path = `/${path}`;
174
- if (path === "/" && endsWithSlash) p = `${p}/`;
175
- else if (path !== "/") p = `${p}${path}`;
176
- if (path === "/" && p === "") p = "/";
194
+ if (path$2[0] !== "/") path$2 = `/${path$2}`;
195
+ if (path$2 === "/" && endsWithSlash) p = `${p}/`;
196
+ else if (path$2 !== "/") p = `${p}${path$2}`;
197
+ if (path$2 === "/" && p === "") p = "/";
177
198
  }
178
199
  return p;
179
200
  };
180
- var checkOptionalParameter = (path) => {
181
- if (!path.match(/\:.+\?$/)) return null;
182
- const segments = path.split("/");
201
+ var checkOptionalParameter = (path$2) => {
202
+ if (!path$2.match(/\:.+\?$/)) return null;
203
+ const segments = path$2.split("/");
183
204
  const results = [];
184
205
  let basePath = "";
185
206
  segments.forEach((segment) => {
@@ -255,9 +276,9 @@ var HonoRequest = class {
255
276
  routeIndex = 0;
256
277
  path;
257
278
  bodyCache = {};
258
- constructor(request, path = "/", matchResult = [[]]) {
279
+ constructor(request, path$2 = "/", matchResult = [[]]) {
259
280
  this.raw = request;
260
- this.path = path;
281
+ this.path = path$2;
261
282
  this.#matchResult = matchResult;
262
283
  this.#validatedData = {};
263
284
  }
@@ -654,8 +675,8 @@ var Hono$1 = class {
654
675
  return this;
655
676
  };
656
677
  });
657
- this.on = (method, path, ...handlers) => {
658
- for (const p of [path].flat()) {
678
+ this.on = (method, path$2, ...handlers) => {
679
+ for (const p of [path$2].flat()) {
659
680
  this.#path = p;
660
681
  for (const m of [method].flat()) handlers.map((handler$1) => {
661
682
  this.addRoute(m.toUpperCase(), this.#path, handler$1);
@@ -689,8 +710,8 @@ var Hono$1 = class {
689
710
  }
690
711
  notFoundHandler = notFoundHandler;
691
712
  errorHandler = errorHandler;
692
- route(path, app$1) {
693
- const subApp = this.basePath(path);
713
+ route(path$2, app$1) {
714
+ const subApp = this.basePath(path$2);
694
715
  app$1.routes.map((r) => {
695
716
  let handler$1;
696
717
  if (app$1.errorHandler === errorHandler) handler$1 = r.handler;
@@ -702,9 +723,9 @@ var Hono$1 = class {
702
723
  });
703
724
  return this;
704
725
  }
705
- basePath(path) {
726
+ basePath(path$2) {
706
727
  const subApp = this.clone();
707
- subApp._basePath = mergePath(this._basePath, path);
728
+ subApp._basePath = mergePath(this._basePath, path$2);
708
729
  return subApp;
709
730
  }
710
731
  onError = (handler$1) => {
@@ -715,7 +736,7 @@ var Hono$1 = class {
715
736
  this.notFoundHandler = handler$1;
716
737
  return this;
717
738
  };
718
- mount(path, applicationHandler, options) {
739
+ mount(path$2, applicationHandler, options) {
719
740
  let replaceRequest;
720
741
  let optionHandler;
721
742
  if (options) if (typeof options === "function") optionHandler = options;
@@ -734,7 +755,7 @@ var Hono$1 = class {
734
755
  return [c.env, executionContext];
735
756
  };
736
757
  replaceRequest ||= (() => {
737
- const mergedPath = mergePath(this._basePath, path);
758
+ const mergedPath = mergePath(this._basePath, path$2);
738
759
  const pathPrefixLength = mergedPath === "/" ? 0 : mergedPath.length;
739
760
  return (request) => {
740
761
  const url = new URL(request.url);
@@ -747,22 +768,22 @@ var Hono$1 = class {
747
768
  if (res) return res;
748
769
  await next();
749
770
  };
750
- this.addRoute(METHOD_NAME_ALL, mergePath(path, "*"), handler$1);
771
+ this.addRoute(METHOD_NAME_ALL, mergePath(path$2, "*"), handler$1);
751
772
  return this;
752
773
  }
753
- addRoute(method, path, handler$1) {
774
+ addRoute(method, path$2, handler$1) {
754
775
  method = method.toUpperCase();
755
- path = mergePath(this._basePath, path);
776
+ path$2 = mergePath(this._basePath, path$2);
756
777
  const r = {
757
- path,
778
+ path: path$2,
758
779
  method,
759
780
  handler: handler$1
760
781
  };
761
- this.router.add(method, path, [handler$1, r]);
782
+ this.router.add(method, path$2, [handler$1, r]);
762
783
  this.routes.push(r);
763
784
  }
764
- matchRoute(method, path) {
765
- return this.router.match(method, path);
785
+ matchRoute(method, path$2) {
786
+ return this.router.match(method, path$2);
766
787
  }
767
788
  handleError(err, c) {
768
789
  if (err instanceof Error) return this.errorHandler(err, c);
@@ -770,10 +791,10 @@ var Hono$1 = class {
770
791
  }
771
792
  dispatch(request, executionCtx, env, method) {
772
793
  if (method === "HEAD") return (async () => new Response(null, await this.dispatch(request, executionCtx, env, "GET")))();
773
- const path = this.getPath(request, { env });
774
- const matchResult = this.matchRoute(method, path);
794
+ const path$2 = this.getPath(request, { env });
795
+ const matchResult = this.matchRoute(method, path$2);
775
796
  const c = new Context(request, {
776
- path,
797
+ path: path$2,
777
798
  matchResult,
778
799
  env,
779
800
  executionCtx,
@@ -810,8 +831,8 @@ var Hono$1 = class {
810
831
  return this.fetch(input, Env, executionCtx);
811
832
  }
812
833
  input = input.toString();
813
- const path = /^https?:\/\//.test(input) ? input : `http://localhost${mergePath("/", input)}`;
814
- const req = new Request(path, requestInit);
834
+ const path$2 = /^https?:\/\//.test(input) ? input : `http://localhost${mergePath("/", input)}`;
835
+ const req = new Request(path$2, requestInit);
815
836
  return this.fetch(req, Env, executionCtx);
816
837
  };
817
838
  fire = () => {
@@ -905,12 +926,12 @@ var Node$1 = class {
905
926
  var Trie = class {
906
927
  context = { varIndex: 0 };
907
928
  root = new Node$1();
908
- insert(path, index, pathErrorCheckOnly) {
929
+ insert(path$2, index, pathErrorCheckOnly) {
909
930
  const paramAssoc = [];
910
931
  const groups = [];
911
932
  for (let i = 0;;) {
912
933
  let replaced = false;
913
- path = path.replace(/\{[^}]+\}/g, (m) => {
934
+ path$2 = path$2.replace(/\{[^}]+\}/g, (m) => {
914
935
  const mark = `@\\${i}`;
915
936
  groups[i] = [mark, m];
916
937
  i++;
@@ -919,7 +940,7 @@ var Trie = class {
919
940
  });
920
941
  if (!replaced) break;
921
942
  }
922
- const tokens = path.match(/(?::[^\/]+)|(?:\/\*$)|./g) || [];
943
+ const tokens = path$2.match(/(?::[^\/]+)|(?:\/\*$)|./g) || [];
923
944
  for (let i = groups.length - 1; i >= 0; i--) {
924
945
  const [mark] = groups[i];
925
946
  for (let j = tokens.length - 1; j >= 0; j--) if (tokens[j].indexOf(mark) !== -1) {
@@ -968,8 +989,8 @@ var nullMatcher = [
968
989
  /* @__PURE__ */ Object.create(null)
969
990
  ];
970
991
  var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
971
- function buildWildcardRegExp(path) {
972
- return wildcardRegExpCache[path] ??= /* @__PURE__ */ new RegExp(path === "*" ? "" : `^${path.replace(/\/\*$|([.\\+*[^\]$()])/g, (_, metaChar) => metaChar ? `\\${metaChar}` : "(?:|/.*)")}$`);
992
+ function buildWildcardRegExp(path$2) {
993
+ return wildcardRegExpCache[path$2] ??= /* @__PURE__ */ new RegExp(path$2 === "*" ? "" : `^${path$2.replace(/\/\*$|([.\\+*[^\]$()])/g, (_, metaChar) => metaChar ? `\\${metaChar}` : "(?:|/.*)")}$`);
973
994
  }
974
995
  function clearWildcardRegExpCache() {
975
996
  wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
@@ -981,14 +1002,14 @@ function buildMatcherFromPreprocessedRoutes(routes) {
981
1002
  const routesWithStaticPathFlag = routes.map((route) => [!/\*|\/:/.test(route[0]), ...route]).sort(([isStaticA, pathA], [isStaticB, pathB]) => isStaticA ? 1 : isStaticB ? -1 : pathA.length - pathB.length);
982
1003
  const staticMap = /* @__PURE__ */ Object.create(null);
983
1004
  for (let i = 0, j = -1, len = routesWithStaticPathFlag.length; i < len; i++) {
984
- const [pathErrorCheckOnly, path, handlers] = routesWithStaticPathFlag[i];
985
- if (pathErrorCheckOnly) staticMap[path] = [handlers.map(([h]) => [h, /* @__PURE__ */ Object.create(null)]), emptyParam];
1005
+ const [pathErrorCheckOnly, path$2, handlers] = routesWithStaticPathFlag[i];
1006
+ if (pathErrorCheckOnly) staticMap[path$2] = [handlers.map(([h]) => [h, /* @__PURE__ */ Object.create(null)]), emptyParam];
986
1007
  else j++;
987
1008
  let paramAssoc;
988
1009
  try {
989
- paramAssoc = trie.insert(path, j, pathErrorCheckOnly);
1010
+ paramAssoc = trie.insert(path$2, j, pathErrorCheckOnly);
990
1011
  } catch (e) {
991
- throw e === PATH_ERROR ? new UnsupportedPathError(path) : e;
1012
+ throw e === PATH_ERROR ? new UnsupportedPathError(path$2) : e;
992
1013
  }
993
1014
  if (pathErrorCheckOnly) continue;
994
1015
  handlerData[j] = handlers.map(([h, paramCount]) => {
@@ -1016,9 +1037,9 @@ function buildMatcherFromPreprocessedRoutes(routes) {
1016
1037
  staticMap
1017
1038
  ];
1018
1039
  }
1019
- function findMiddleware(middleware, path) {
1040
+ function findMiddleware(middleware, path$2) {
1020
1041
  if (!middleware) return;
1021
- for (const k of Object.keys(middleware).sort((a, b) => b.length - a.length)) if (buildWildcardRegExp(k).test(path)) return [...middleware[k]];
1042
+ for (const k of Object.keys(middleware).sort((a, b) => b.length - a.length)) if (buildWildcardRegExp(k).test(path$2)) return [...middleware[k]];
1022
1043
  }
1023
1044
  var RegExpRouter = class {
1024
1045
  name = "RegExpRouter";
@@ -1028,7 +1049,7 @@ var RegExpRouter = class {
1028
1049
  this.middleware = { [METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) };
1029
1050
  this.routes = { [METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) };
1030
1051
  }
1031
- add(method, path, handler$1) {
1052
+ add(method, path$2, handler$1) {
1032
1053
  const { middleware, routes } = this;
1033
1054
  if (!middleware || !routes) throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT);
1034
1055
  if (!middleware[method]) [middleware, routes].forEach((handlerMap) => {
@@ -1037,14 +1058,14 @@ var RegExpRouter = class {
1037
1058
  handlerMap[method][p] = [...handlerMap[METHOD_NAME_ALL][p]];
1038
1059
  });
1039
1060
  });
1040
- if (path === "/*") path = "*";
1041
- const paramCount = (path.match(/\/:/g) || []).length;
1042
- if (/\*$/.test(path)) {
1043
- const re = buildWildcardRegExp(path);
1061
+ if (path$2 === "/*") path$2 = "*";
1062
+ const paramCount = (path$2.match(/\/:/g) || []).length;
1063
+ if (/\*$/.test(path$2)) {
1064
+ const re = buildWildcardRegExp(path$2);
1044
1065
  if (method === METHOD_NAME_ALL) Object.keys(middleware).forEach((m) => {
1045
- middleware[m][path] ||= findMiddleware(middleware[m], path) || findMiddleware(middleware[METHOD_NAME_ALL], path) || [];
1066
+ middleware[m][path$2] ||= findMiddleware(middleware[m], path$2) || findMiddleware(middleware[METHOD_NAME_ALL], path$2) || [];
1046
1067
  });
1047
- else middleware[method][path] ||= findMiddleware(middleware[method], path) || findMiddleware(middleware[METHOD_NAME_ALL], path) || [];
1068
+ else middleware[method][path$2] ||= findMiddleware(middleware[method], path$2) || findMiddleware(middleware[METHOD_NAME_ALL], path$2) || [];
1048
1069
  Object.keys(middleware).forEach((m) => {
1049
1070
  if (method === METHOD_NAME_ALL || method === m) Object.keys(middleware[m]).forEach((p) => {
1050
1071
  re.test(p) && middleware[m][p].push([handler$1, paramCount]);
@@ -1055,7 +1076,7 @@ var RegExpRouter = class {
1055
1076
  });
1056
1077
  return;
1057
1078
  }
1058
- const paths = checkOptionalParameter(path) || [path];
1079
+ const paths = checkOptionalParameter(path$2) || [path$2];
1059
1080
  for (let i = 0, len = paths.length; i < len; i++) {
1060
1081
  const path2 = paths[i];
1061
1082
  Object.keys(routes).forEach((m) => {
@@ -1066,7 +1087,7 @@ var RegExpRouter = class {
1066
1087
  });
1067
1088
  }
1068
1089
  }
1069
- match(method, path) {
1090
+ match(method, path$2) {
1070
1091
  clearWildcardRegExpCache();
1071
1092
  const matchers = this.buildAllMatchers();
1072
1093
  this.match = (method2, path2) => {
@@ -1078,7 +1099,7 @@ var RegExpRouter = class {
1078
1099
  const index = match.indexOf("", 1);
1079
1100
  return [matcher[1][index], match];
1080
1101
  };
1081
- return this.match(method, path);
1102
+ return this.match(method, path$2);
1082
1103
  }
1083
1104
  buildAllMatchers() {
1084
1105
  const matchers = /* @__PURE__ */ Object.create(null);
@@ -1092,11 +1113,11 @@ var RegExpRouter = class {
1092
1113
  const routes = [];
1093
1114
  let hasOwnRoute = method === METHOD_NAME_ALL;
1094
1115
  [this.middleware, this.routes].forEach((r) => {
1095
- const ownRoute = r[method] ? Object.keys(r[method]).map((path) => [path, r[method][path]]) : [];
1116
+ const ownRoute = r[method] ? Object.keys(r[method]).map((path$2) => [path$2, r[method][path$2]]) : [];
1096
1117
  if (ownRoute.length !== 0) {
1097
1118
  hasOwnRoute ||= true;
1098
1119
  routes.push(...ownRoute);
1099
- } else if (method !== METHOD_NAME_ALL) routes.push(...Object.keys(r[METHOD_NAME_ALL]).map((path) => [path, r[METHOD_NAME_ALL][path]]));
1120
+ } else if (method !== METHOD_NAME_ALL) routes.push(...Object.keys(r[METHOD_NAME_ALL]).map((path$2) => [path$2, r[METHOD_NAME_ALL][path$2]]));
1100
1121
  });
1101
1122
  if (!hasOwnRoute) return null;
1102
1123
  else return buildMatcherFromPreprocessedRoutes(routes);
@@ -1112,15 +1133,15 @@ var SmartRouter = class {
1112
1133
  constructor(init) {
1113
1134
  Object.assign(this, init);
1114
1135
  }
1115
- add(method, path, handler$1) {
1136
+ add(method, path$2, handler$1) {
1116
1137
  if (!this.routes) throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT);
1117
1138
  this.routes.push([
1118
1139
  method,
1119
- path,
1140
+ path$2,
1120
1141
  handler$1
1121
1142
  ]);
1122
1143
  }
1123
- match(method, path) {
1144
+ match(method, path$2) {
1124
1145
  if (!this.routes) throw new Error("Fatal error");
1125
1146
  const { routers, routes } = this;
1126
1147
  const len = routers.length;
@@ -1132,7 +1153,7 @@ var SmartRouter = class {
1132
1153
  routes.forEach((args) => {
1133
1154
  router.add(...args);
1134
1155
  });
1135
- res = router.match(method, path);
1156
+ res = router.match(method, path$2);
1136
1157
  } catch (e) {
1137
1158
  if (e instanceof UnsupportedPathError) continue;
1138
1159
  throw e;
@@ -1177,11 +1198,11 @@ var Node = class {
1177
1198
  }
1178
1199
  this.patterns = [];
1179
1200
  }
1180
- insert(method, path, handler$1) {
1181
- this.name = `${method} ${path}`;
1201
+ insert(method, path$2, handler$1) {
1202
+ this.name = `${method} ${path$2}`;
1182
1203
  this.order = ++this.order;
1183
1204
  let curNode = this;
1184
- const parts = splitRoutingPath(path);
1205
+ const parts = splitRoutingPath(path$2);
1185
1206
  const possibleKeys = [];
1186
1207
  for (let i = 0, len = parts.length; i < len; i++) {
1187
1208
  const p = parts[i];
@@ -1228,11 +1249,11 @@ var Node = class {
1228
1249
  }
1229
1250
  return handlerSets;
1230
1251
  }
1231
- search(method, path) {
1252
+ search(method, path$2) {
1232
1253
  const handlerSets = [];
1233
1254
  this.params = /* @__PURE__ */ Object.create(null);
1234
1255
  let curNodes = [this];
1235
- const parts = splitPath(path);
1256
+ const parts = splitPath(path$2);
1236
1257
  for (let i = 0, len = parts.length; i < len; i++) {
1237
1258
  const part = parts[i];
1238
1259
  const isLast = i === len - 1;
@@ -1297,16 +1318,16 @@ var TrieRouter = class {
1297
1318
  constructor() {
1298
1319
  this.node = new Node();
1299
1320
  }
1300
- add(method, path, handler$1) {
1301
- const results = checkOptionalParameter(path);
1321
+ add(method, path$2, handler$1) {
1322
+ const results = checkOptionalParameter(path$2);
1302
1323
  if (results) {
1303
1324
  for (const p of results) this.node.insert(method, p, handler$1);
1304
1325
  return;
1305
1326
  }
1306
- this.node.insert(method, path, handler$1);
1327
+ this.node.insert(method, path$2, handler$1);
1307
1328
  }
1308
- match(method, path) {
1309
- return this.node.search(method, path);
1329
+ match(method, path$2) {
1330
+ return this.node.search(method, path$2);
1310
1331
  }
1311
1332
  };
1312
1333
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/aws",
3
3
  "type": "module",
4
- "version": "0.25.8",
4
+ "version": "0.25.10",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
@@ -44,9 +44,9 @@
44
44
  "execa": "9.5.2",
45
45
  "hono": "^4.6.3",
46
46
  "mime": "^4.0.4",
47
- "@hot-updater/core": "0.25.8",
48
- "@hot-updater/js": "0.25.8",
49
- "@hot-updater/test-utils": "0.25.8"
47
+ "@hot-updater/core": "0.25.10",
48
+ "@hot-updater/test-utils": "0.25.10",
49
+ "@hot-updater/js": "0.25.10"
50
50
  },
51
51
  "dependencies": {
52
52
  "@aws-sdk/client-cloudfront": "3.772.0",
@@ -59,8 +59,8 @@
59
59
  "@aws-sdk/credential-providers": "3.958.0",
60
60
  "@aws-sdk/lib-storage": "3.772.0",
61
61
  "aws-lambda": "1.0.7",
62
- "@hot-updater/plugin-core": "0.25.8",
63
- "@hot-updater/cli-tools": "0.25.8"
62
+ "@hot-updater/cli-tools": "0.25.10",
63
+ "@hot-updater/plugin-core": "0.25.10"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "tsdown",