hot-updater 0.36.16 → 0.36.18

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-CaZJ23gF.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-CateYGdG.mjs";
2
2
  //#region src/config.ts
3
3
  const defineConfig = (config) => {
4
4
  return config;
package/dist/index.mjs CHANGED
@@ -1,13 +1,14 @@
1
1
  #!/usr/bin/env node
2
- import { C as __require, S as __commonJSMin, _ as IosConfigParser, a as createAndInjectFingerprintFiles, b as require_lib$2, 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, w as __toESM, x as AndroidConfigParser, y as require_base64_js } from "./keyGeneration-CaZJ23gF.mjs";
2
+ import { C as __require, S as __commonJSMin, _ as IosConfigParser, a as createAndInjectFingerprintFiles, b as require_lib$2, 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, w as __toESM, x as AndroidConfigParser, y as require_base64_js } from "./keyGeneration-CateYGdG.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import fs, { createReadStream, existsSync, realpathSync, statSync } from "fs";
5
5
  import path from "path";
6
6
  import { HotUpdateDirUtil, InitError, MissingInitInputsError, banner, colors, createTarBrTargetFiles, createTarGzTargetFiles, createZipTargetFiles, ensureInstallPackages, getCwd, getHotUpdaterEnvValue, getMissingInitInputs, getMissingInitProviderInputs, getPackageManager, loadConfig, makeEnv, p, printBanner, promoteBundle, readHotUpdaterInitEnv, readPackageUp, resolveInitProviderInputs } from "@hot-updater/cli-tools";
7
+ import path$1 from "node:path";
8
+ import { fileURLToPath } from "node:url";
7
9
  import { promisify } from "util";
8
10
  import crypto from "node:crypto";
9
11
  import fs$1, { constants } from "node:fs/promises";
10
- import path$1 from "node:path";
11
12
  import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
12
13
  import childProcess, { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
13
14
  import fs$2, { appendFileSync, createReadStream as createReadStream$1, createWriteStream, readFileSync, statSync as statSync$1, writeFileSync } from "node:fs";
@@ -17,7 +18,6 @@ import crypto$1 from "crypto";
17
18
  import os, { constants as constants$1 } from "node:os";
18
19
  import { buildAndroid, enrichNativeBuildAndroidScheme, runAndroid } from "@hot-updater/android-helper";
19
20
  import { buildIos, enrichNativeBuildIosScheme, runIos } from "@hot-updater/apple-helper";
20
- import { fileURLToPath } from "node:url";
21
21
  import { StringDecoder } from "node:string_decoder";
22
22
  import { aborted, callbackify, debuglog, inspect, promisify as promisify$1, stripVTControlCharacters } from "node:util";
23
23
  import tty from "node:tty";
@@ -2,9 +2,10 @@ import { createRequire } from "node:module";
2
2
  import fs from "fs";
3
3
  import path from "path";
4
4
  import { colors, getCwd, loadConfig, p } from "@hot-updater/cli-tools";
5
+ import path$1 from "node:path";
6
+ import { pathToFileURL } from "node:url";
5
7
  import crypto from "node:crypto";
6
8
  import fs$1 from "node:fs/promises";
7
- import path$1 from "node:path";
8
9
  //#region \0rolldown/runtime.js
9
10
  var __create = Object.create;
10
11
  var __defProp = Object.defineProperty;
@@ -14593,6 +14594,7 @@ const getPackageManager$1 = () => {
14593
14594
  };
14594
14595
  //#endregion
14595
14596
  //#region src/utils/fingerprint/dependency.ts
14597
+ const require$1 = createRequire(import.meta.url);
14596
14598
  const PACKAGE_NAME = "@expo/fingerprint";
14597
14599
  const MISSING_DEPENDENCY_ERROR_NAME = "MissingFingerprintDependencyError";
14598
14600
  const getInstallCommand = () => {
@@ -14619,13 +14621,15 @@ const isMissingFingerprintDependencyError = (error) => error instanceof Error &&
14619
14621
  const isMissingExpoFingerprintError = (error) => {
14620
14622
  return (error && typeof error === "object" && "code" in error ? error.code : void 0) === "ERR_MODULE_NOT_FOUND" || error instanceof Error && (error.message.includes("Cannot find package '@expo/fingerprint'") || error.message.includes("Cannot find module '@expo/fingerprint'"));
14621
14623
  };
14622
- const loadExpoFingerprint = async () => {
14624
+ const loadExpoFingerprint = async (projectRoot) => {
14625
+ let modulePath;
14623
14626
  try {
14624
- return await import("@expo/fingerprint");
14627
+ modulePath = require$1.resolve("@expo/fingerprint", { paths: [path$1.resolve(projectRoot)] });
14625
14628
  } catch (error) {
14626
14629
  if (isMissingExpoFingerprintError(error)) throw createMissingFingerprintDependencyError();
14627
14630
  throw error;
14628
14631
  }
14632
+ return import(pathToFileURL(modulePath).href);
14629
14633
  };
14630
14634
  //#endregion
14631
14635
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
@@ -20437,7 +20441,7 @@ function getDefaultIgnorePaths() {
20437
20441
  ];
20438
20442
  }
20439
20443
  async function getOtaFingerprintOptions(platform, path, options) {
20440
- const { SourceSkips } = await loadExpoFingerprint();
20444
+ const { SourceSkips } = await loadExpoFingerprint(path);
20441
20445
  return {
20442
20446
  useRNCoreAutolinkingFromExpo: isExpo(),
20443
20447
  platforms: [platform],
@@ -20495,7 +20499,7 @@ function isFingerprintEquals(lhs, rhs) {
20495
20499
  //#region src/utils/fingerprint/diff.ts
20496
20500
  async function getFingerprintDiff(oldFingerprint, options) {
20497
20501
  const projectPath = getCwd();
20498
- const { diffFingerprintChangesAsync } = await loadExpoFingerprint();
20502
+ const { diffFingerprintChangesAsync } = await loadExpoFingerprint(projectPath);
20499
20503
  return await diffFingerprintChangesAsync(oldFingerprint, projectPath, await getOtaFingerprintOptions(options.platform, projectPath, options));
20500
20504
  }
20501
20505
  function getSourcePath(source) {
@@ -20520,7 +20524,7 @@ function showFingerprintDiff(diff, platform) {
20520
20524
  */
20521
20525
  async function nativeFingerprint(path, options) {
20522
20526
  const platform = options.platform;
20523
- const { createFingerprintAsync } = await loadExpoFingerprint();
20527
+ const { createFingerprintAsync } = await loadExpoFingerprint(path);
20524
20528
  return createFingerprintAsync(path, await getOtaFingerprintOptions(platform, path, options));
20525
20529
  }
20526
20530
  const generateFingerprints = async () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hot-updater",
3
3
  "type": "module",
4
- "version": "0.36.16",
4
+ "version": "0.36.18",
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/android-helper": "0.36.16",
53
- "@hot-updater/apple-helper": "0.36.16",
54
- "@hot-updater/console": "0.36.16",
55
- "@hot-updater/core": "0.36.16",
56
- "@hot-updater/cli-tools": "0.36.16",
57
- "@hot-updater/plugin-core": "0.36.16",
58
- "@hot-updater/server": "0.36.16"
52
+ "@hot-updater/android-helper": "0.36.18",
53
+ "@hot-updater/cli-tools": "0.36.18",
54
+ "@hot-updater/core": "0.36.18",
55
+ "@hot-updater/apple-helper": "0.36.18",
56
+ "@hot-updater/console": "0.36.18",
57
+ "@hot-updater/server": "0.36.18",
58
+ "@hot-updater/plugin-core": "0.36.18"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@bacons/xcode": "1.0.0-alpha.33",
@@ -78,12 +78,12 @@
78
78
  "@typescript/native": "npm:typescript@7.0.2",
79
79
  "typescript": "npm:@typescript/typescript6@6.0.2",
80
80
  "verkit": "0.3.2",
81
- "@hot-updater/aws": "0.36.16",
82
- "@hot-updater/cloudflare": "0.36.16",
83
- "@hot-updater/firebase": "0.36.16",
84
- "@hot-updater/server": "0.36.16",
85
- "@hot-updater/test-utils": "0.36.16",
86
- "@hot-updater/supabase": "0.36.16"
81
+ "@hot-updater/firebase": "0.36.18",
82
+ "@hot-updater/cloudflare": "0.36.18",
83
+ "@hot-updater/supabase": "0.36.18",
84
+ "@hot-updater/test-utils": "0.36.18",
85
+ "@hot-updater/server": "0.36.18",
86
+ "@hot-updater/aws": "0.36.18"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@expo/fingerprint": "*",