hot-updater 0.35.9 → 0.35.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/config.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as createAndInjectFingerprintFiles, c as generateFingerprints, n as getPublicKeyFromPrivate, o as createFingerprintJSON, r as loadPrivateKey, s as generateFingerprint, u as readLocalFingerprint } from "./keyGeneration-DVUvCTrW.mjs";
1
+ import { a as createAndInjectFingerprintFiles, c as generateFingerprints, n as getPublicKeyFromPrivate, o as createFingerprintJSON, r as loadPrivateKey, s as generateFingerprint, u as readLocalFingerprint } from "./keyGeneration-CRvaNREO.mjs";
2
2
  //#region src/config.ts
3
3
  const defineConfig = (config) => {
4
4
  return config;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env -S node --
2
- import { C as __toESM, S as __require, _ as IosConfigParser, a as createAndInjectFingerprintFiles, b as AndroidConfigParser, c as generateFingerprints, d as getFingerprintDiff, f as showFingerprintDiff, g as warnIfExpoCNG, h as isMissingFingerprintDependencyError, i as saveKeyPair, l as nativeFingerprint, m as require_out, n as getPublicKeyFromPrivate, p as isFingerprintEquals, r as loadPrivateKey, t as generateKeyPair, u as readLocalFingerprint, v as parsePlist, x as __commonJSMin, y as require_base64_js } from "./keyGeneration-DVUvCTrW.mjs";
2
+ import { C as __toESM, S as __require, _ as IosConfigParser, a as createAndInjectFingerprintFiles, b as AndroidConfigParser, c as generateFingerprints, d as getFingerprintDiff, f as showFingerprintDiff, g as warnIfExpoCNG, h as isMissingFingerprintDependencyError, i as saveKeyPair, l as nativeFingerprint, m as require_out, n as getPublicKeyFromPrivate, p as isFingerprintEquals, r as loadPrivateKey, t as generateKeyPair, u as readLocalFingerprint, v as parsePlist, x as __commonJSMin, y as require_base64_js } from "./keyGeneration-CRvaNREO.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import fs, { createReadStream, existsSync, realpathSync, statSync } from "fs";
5
5
  import path from "path";
@@ -20358,6 +20358,20 @@ var require_out = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20358
20358
  //#region src/utils/fingerprint/processExtraSources.ts
20359
20359
  var import_out = /* @__PURE__ */ __toESM(require_out(), 1);
20360
20360
  /**
20361
+ * Resolves the extra sources that apply to a single platform.
20362
+ *
20363
+ * An array is shared by both platforms; the object form only contributes the
20364
+ * entries scoped to the requested platform.
20365
+ * @param extraSources Shared array or platform-scoped object
20366
+ * @param platform Platform the fingerprint is computed for
20367
+ * @returns Array of file paths, directory paths, or glob patterns
20368
+ */
20369
+ function resolveExtraSources(extraSources, platform) {
20370
+ if (!extraSources) return [];
20371
+ if (Array.isArray(extraSources)) return extraSources;
20372
+ return extraSources[platform] ?? [];
20373
+ }
20374
+ /**
20361
20375
  * Processes extra source files and directories for fingerprinting.
20362
20376
  * @param extraSources Array of file paths, directory paths, or glob patterns
20363
20377
  * @param cwd Current working directory for resolving paths
@@ -20464,7 +20478,7 @@ async function getOtaFingerprintOptions(platform, path, options) {
20464
20478
  ...options.ignorePaths ?? []
20465
20479
  ],
20466
20480
  sourceSkips: SourceSkips.GitIgnore | SourceSkips.PackageJsonScriptsAll | SourceSkips.PackageJsonAndroidAndIosScriptsIfNotContainRun | SourceSkips.ExpoConfigAll | SourceSkips.ExpoConfigVersions | SourceSkips.ExpoConfigNames | SourceSkips.ExpoConfigRuntimeVersionIfString | SourceSkips.ExpoConfigAssets | SourceSkips.ExpoConfigExtraSection | SourceSkips.ExpoConfigEASProject | SourceSkips.ExpoConfigSchemes,
20467
- extraSources: processExtraSources(options.extraSources ?? [], path),
20481
+ extraSources: processExtraSources(resolveExtraSources(options.extraSources, platform), path),
20468
20482
  debug: options.debug
20469
20483
  };
20470
20484
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hot-updater",
3
3
  "type": "module",
4
- "version": "0.35.9",
4
+ "version": "0.35.10",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"
7
7
  },
@@ -49,13 +49,13 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "jiti": "2.6.1",
52
- "@hot-updater/apple-helper": "0.35.9",
53
- "@hot-updater/core": "0.35.9",
54
- "@hot-updater/plugin-core": "0.35.9",
55
- "@hot-updater/server": "0.35.9",
56
- "@hot-updater/cli-tools": "0.35.9",
57
- "@hot-updater/console": "0.35.9",
58
- "@hot-updater/android-helper": "0.35.9"
52
+ "@hot-updater/apple-helper": "0.35.10",
53
+ "@hot-updater/android-helper": "0.35.10",
54
+ "@hot-updater/console": "0.35.10",
55
+ "@hot-updater/plugin-core": "0.35.10",
56
+ "@hot-updater/core": "0.35.10",
57
+ "@hot-updater/server": "0.35.10",
58
+ "@hot-updater/cli-tools": "0.35.10"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@bacons/xcode": "1.0.0-alpha.24",
@@ -79,12 +79,12 @@
79
79
  "sql-formatter": "15.6.10",
80
80
  "@typescript/native": "npm:typescript@7.0.2",
81
81
  "typescript": "npm:@typescript/typescript6@6.0.2",
82
- "@hot-updater/cloudflare": "0.35.9",
83
- "@hot-updater/server": "0.35.9",
84
- "@hot-updater/firebase": "0.35.9",
85
- "@hot-updater/supabase": "0.35.9",
86
- "@hot-updater/test-utils": "0.35.9",
87
- "@hot-updater/aws": "0.35.9"
82
+ "@hot-updater/aws": "0.35.10",
83
+ "@hot-updater/cloudflare": "0.35.10",
84
+ "@hot-updater/firebase": "0.35.10",
85
+ "@hot-updater/server": "0.35.10",
86
+ "@hot-updater/supabase": "0.35.10",
87
+ "@hot-updater/test-utils": "0.35.10"
88
88
  },
89
89
  "peerDependencies": {
90
90
  "@expo/fingerprint": "*",