@hot-updater/aws 0.20.2 → 0.20.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.
@@ -1811,7 +1811,6 @@ const fallbackSymbols = {
1811
1811
  };
1812
1812
  const shouldUseMain = isUnicodeSupported();
1813
1813
  const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
1814
- var figures_default = figures;
1815
1814
  const replacements = Object.entries(specialMainSymbols);
1816
1815
 
1817
1816
  //#endregion
@@ -1893,8 +1892,8 @@ const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, re
1893
1892
  const serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
1894
1893
  const padField = (field, padding) => String(field).padStart(padding, "0");
1895
1894
  const getFinalIcon = ({ failed, reject }) => {
1896
- if (!failed) return figures_default.tick;
1897
- return reject ? figures_default.cross : figures_default.warning;
1895
+ if (!failed) return figures.tick;
1896
+ return reject ? figures.cross : figures.warning;
1898
1897
  };
1899
1898
  const ICONS = {
1900
1899
  command: ({ piped }) => piped ? "|" : "$",
@@ -8845,7 +8844,7 @@ function App() {
8845
8844
 
8846
8845
  export default HotUpdater.wrap({
8847
8846
  source: getUpdateSource("%%source%%", {
8848
- updateStrategy: "fingerprint", // or "appVersion"
8847
+ updateStrategy: "appVersion", // or "fingerprint"
8849
8848
  }),
8850
8849
  })(App);`;
8851
8850
 
package/dist/iac/index.js CHANGED
@@ -1814,7 +1814,6 @@ const fallbackSymbols = {
1814
1814
  };
1815
1815
  const shouldUseMain = isUnicodeSupported();
1816
1816
  const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
1817
- var figures_default = figures;
1818
1817
  const replacements = Object.entries(specialMainSymbols);
1819
1818
 
1820
1819
  //#endregion
@@ -1896,8 +1895,8 @@ const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, re
1896
1895
  const serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
1897
1896
  const padField = (field, padding) => String(field).padStart(padding, "0");
1898
1897
  const getFinalIcon = ({ failed, reject }) => {
1899
- if (!failed) return figures_default.tick;
1900
- return reject ? figures_default.cross : figures_default.warning;
1898
+ if (!failed) return figures.tick;
1899
+ return reject ? figures.cross : figures.warning;
1901
1900
  };
1902
1901
  const ICONS = {
1903
1902
  command: ({ piped }) => piped ? "|" : "$",
@@ -8848,7 +8847,7 @@ function App() {
8848
8847
 
8849
8848
  export default HotUpdater.wrap({
8850
8849
  source: getUpdateSource("%%source%%", {
8851
- updateStrategy: "fingerprint", // or "appVersion"
8850
+ updateStrategy: "appVersion", // or "fingerprint"
8852
8851
  }),
8853
8852
  })(App);`;
8854
8853
 
package/dist/index.cjs CHANGED
@@ -29,7 +29,7 @@ const path = __toESM(require("path"));
29
29
  const fs_promises = __toESM(require("fs/promises"));
30
30
 
31
31
  //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/other.js
32
- const types$1 = {
32
+ const types = {
33
33
  "application/prs.cww": ["cww"],
34
34
  "application/prs.xsf+xml": ["xsf"],
35
35
  "application/vnd.1000minds.decision-model+xml": ["1km"],
@@ -840,12 +840,11 @@ const types$1 = {
840
840
  "video/x-smv": ["smv"],
841
841
  "x-conference/x-cooltalk": ["ice"]
842
842
  };
843
- Object.freeze(types$1);
844
- var other_default = types$1;
843
+ Object.freeze(types);
845
844
 
846
845
  //#endregion
847
846
  //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/standard.js
848
- const types = {
847
+ const types$1 = {
849
848
  "application/andrew-inset": ["ez"],
850
849
  "application/appinstaller": ["appinstaller"],
851
850
  "application/applixware": ["aw"],
@@ -1287,8 +1286,7 @@ const types = {
1287
1286
  "video/quicktime": ["qt", "mov"],
1288
1287
  "video/webm": ["webm"]
1289
1288
  };
1290
- Object.freeze(types);
1291
- var standard_default = types;
1289
+ Object.freeze(types$1);
1292
1290
 
1293
1291
  //#endregion
1294
1292
  //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/Mime.js
@@ -1360,11 +1358,10 @@ var Mime = class {
1360
1358
  }
1361
1359
  };
1362
1360
  _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
1363
- var Mime_default = Mime;
1364
1361
 
1365
1362
  //#endregion
1366
1363
  //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/index.js
1367
- var src_default = new Mime_default(standard_default, other_default)._freeze();
1364
+ var src_default = new Mime(types$1, types)._freeze();
1368
1365
 
1369
1366
  //#endregion
1370
1367
  //#region src/utils/streamToString.ts
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import path from "path";
6
6
  import fs from "fs/promises";
7
7
 
8
8
  //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/other.js
9
- const types$1 = {
9
+ const types = {
10
10
  "application/prs.cww": ["cww"],
11
11
  "application/prs.xsf+xml": ["xsf"],
12
12
  "application/vnd.1000minds.decision-model+xml": ["1km"],
@@ -817,12 +817,11 @@ const types$1 = {
817
817
  "video/x-smv": ["smv"],
818
818
  "x-conference/x-cooltalk": ["ice"]
819
819
  };
820
- Object.freeze(types$1);
821
- var other_default = types$1;
820
+ Object.freeze(types);
822
821
 
823
822
  //#endregion
824
823
  //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/standard.js
825
- const types = {
824
+ const types$1 = {
826
825
  "application/andrew-inset": ["ez"],
827
826
  "application/appinstaller": ["appinstaller"],
828
827
  "application/applixware": ["aw"],
@@ -1264,8 +1263,7 @@ const types = {
1264
1263
  "video/quicktime": ["qt", "mov"],
1265
1264
  "video/webm": ["webm"]
1266
1265
  };
1267
- Object.freeze(types);
1268
- var standard_default = types;
1266
+ Object.freeze(types$1);
1269
1267
 
1270
1268
  //#endregion
1271
1269
  //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/Mime.js
@@ -1337,11 +1335,10 @@ var Mime = class {
1337
1335
  }
1338
1336
  };
1339
1337
  _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
1340
- var Mime_default = Mime;
1341
1338
 
1342
1339
  //#endregion
1343
1340
  //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/index.js
1344
- var src_default = new Mime_default(standard_default, other_default)._freeze();
1341
+ var src_default = new Mime(types$1, types)._freeze();
1345
1342
 
1346
1343
  //#endregion
1347
1344
  //#region src/utils/streamToString.ts
@@ -3075,23 +3075,6 @@ const filterCompatibleAppVersions = (targetAppVersionList, currentVersion) => {
3075
3075
  };
3076
3076
  const encoder = new TextEncoder();
3077
3077
  const decoder = new TextDecoder();
3078
- var JOSEError = class extends Error {
3079
- static code = "ERR_JOSE_GENERIC";
3080
- code = "ERR_JOSE_GENERIC";
3081
- constructor(message$1, options) {
3082
- super(message$1, options);
3083
- this.name = this.constructor.name;
3084
- Error.captureStackTrace?.(this, this.constructor);
3085
- }
3086
- };
3087
- (class extends JOSEError {
3088
- [Symbol.asyncIterator];
3089
- static code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
3090
- code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
3091
- constructor(message$1 = "multiple matching keys found in the JSON Web Key Set", options) {
3092
- super(message$1, options);
3093
- }
3094
- });
3095
3078
  const minute = 60;
3096
3079
  const hour = minute * 60;
3097
3080
  const day = hour * 24;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/aws",
3
3
  "type": "module",
4
- "version": "0.20.2",
4
+ "version": "0.20.4",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
@@ -45,8 +45,8 @@
45
45
  "mime": "^4.0.4",
46
46
  "picocolors": "^1.0.0",
47
47
  "@clack/prompts": "0.10.0",
48
- "@hot-updater/core": "0.20.2",
49
- "@hot-updater/js": "0.20.2"
48
+ "@hot-updater/core": "0.20.4",
49
+ "@hot-updater/js": "0.20.4"
50
50
  },
51
51
  "dependencies": {
52
52
  "@aws-sdk/client-cloudfront": "3.772.0",
@@ -57,7 +57,7 @@
57
57
  "@aws-sdk/credential-providers": "3.772.0",
58
58
  "@aws-sdk/lib-storage": "3.772.0",
59
59
  "aws-lambda": "1.0.7",
60
- "@hot-updater/plugin-core": "0.20.2"
60
+ "@hot-updater/plugin-core": "0.20.4"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "tsdown",