@hot-updater/bare 1.0.0-rc.3 → 1.0.0-rc.31
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.cjs +3 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +2 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -49,6 +49,7 @@ let node_stream_promises = require("node:stream/promises");
|
|
|
49
49
|
let node_stream = require("node:stream");
|
|
50
50
|
let node_buffer = require("node:buffer");
|
|
51
51
|
let uuidv7 = require("uuidv7");
|
|
52
|
+
let node_module = require("node:module");
|
|
52
53
|
//#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
|
|
53
54
|
function isPlainObject(value) {
|
|
54
55
|
if (typeof value !== "object" || value === null) return false;
|
|
@@ -6263,6 +6264,7 @@ createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
|
|
|
6263
6264
|
const { sendMessage, getOneMessage, getEachMessage, getCancelSignal } = getIpcExport();
|
|
6264
6265
|
//#endregion
|
|
6265
6266
|
//#region src/hermes.ts
|
|
6267
|
+
const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
|
|
6266
6268
|
/**
|
|
6267
6269
|
* Returns the Hermes OS binary folder name for the current platform.
|
|
6268
6270
|
*/
|
|
@@ -6282,7 +6284,7 @@ function getHermesOSExe() {
|
|
|
6282
6284
|
}
|
|
6283
6285
|
function getHermesCompilerPackagePath(reactNativePath) {
|
|
6284
6286
|
try {
|
|
6285
|
-
return path.default.dirname(require.resolve("hermes-compiler/package.json", { paths: [reactNativePath] }));
|
|
6287
|
+
return path.default.dirname(require$1.resolve("hermes-compiler/package.json", { paths: [reactNativePath] }));
|
|
6286
6288
|
} catch {
|
|
6287
6289
|
return null;
|
|
6288
6290
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BuildAdapter, BuildAdapterArgs, BuildAdapterConfig } from "@hot-updater/plugin-core";
|
|
2
2
|
//#region src/bare.d.ts
|
|
3
|
-
interface
|
|
3
|
+
interface BareAdapterConfig extends BuildAdapterConfig {
|
|
4
4
|
/**
|
|
5
5
|
* @default "index.js"
|
|
6
6
|
* The entry file to bundle.
|
|
@@ -24,7 +24,7 @@ interface BarePluginConfig extends BuildPluginConfig {
|
|
|
24
24
|
*/
|
|
25
25
|
resetCache?: boolean;
|
|
26
26
|
}
|
|
27
|
-
declare const bare: (config:
|
|
27
|
+
declare const bare: (config: BareAdapterConfig) => ({ cwd }: BuildAdapterArgs) => BuildAdapter;
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/hermes.d.ts
|
|
30
30
|
/**
|
|
@@ -52,4 +52,4 @@ declare function compileHermes({ cwd, sourcemap, inputJsFile }: {
|
|
|
52
52
|
hermesVersion: string;
|
|
53
53
|
}>;
|
|
54
54
|
//#endregion
|
|
55
|
-
export {
|
|
55
|
+
export { BareAdapterConfig, bare, compileHermes, getHermesCommand };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BuildAdapter, BuildAdapterArgs, BuildAdapterConfig } from "@hot-updater/plugin-core";
|
|
2
2
|
//#region src/bare.d.ts
|
|
3
|
-
interface
|
|
3
|
+
interface BareAdapterConfig extends BuildAdapterConfig {
|
|
4
4
|
/**
|
|
5
5
|
* @default "index.js"
|
|
6
6
|
* The entry file to bundle.
|
|
@@ -24,7 +24,7 @@ interface BarePluginConfig extends BuildPluginConfig {
|
|
|
24
24
|
*/
|
|
25
25
|
resetCache?: boolean;
|
|
26
26
|
}
|
|
27
|
-
declare const bare: (config:
|
|
27
|
+
declare const bare: (config: BareAdapterConfig) => ({ cwd }: BuildAdapterArgs) => BuildAdapter;
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/hermes.d.ts
|
|
30
30
|
/**
|
|
@@ -52,4 +52,4 @@ declare function compileHermes({ cwd, sourcemap, inputJsFile }: {
|
|
|
52
52
|
hermesVersion: string;
|
|
53
53
|
}>;
|
|
54
54
|
//#endregion
|
|
55
|
-
export {
|
|
55
|
+
export { BareAdapterConfig, bare, compileHermes, getHermesCommand };
|
package/dist/index.mjs
CHANGED
|
@@ -6258,6 +6258,7 @@ createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
|
|
|
6258
6258
|
const { sendMessage, getOneMessage, getEachMessage, getCancelSignal } = getIpcExport();
|
|
6259
6259
|
//#endregion
|
|
6260
6260
|
//#region src/hermes.ts
|
|
6261
|
+
const require$1 = createRequire(import.meta.url);
|
|
6261
6262
|
/**
|
|
6262
6263
|
* Returns the Hermes OS binary folder name for the current platform.
|
|
6263
6264
|
*/
|
|
@@ -6277,7 +6278,7 @@ function getHermesOSExe() {
|
|
|
6277
6278
|
}
|
|
6278
6279
|
function getHermesCompilerPackagePath(reactNativePath) {
|
|
6279
6280
|
try {
|
|
6280
|
-
return path.dirname(
|
|
6281
|
+
return path.dirname(require$1.resolve("hermes-compiler/package.json", { paths: [reactNativePath] }));
|
|
6281
6282
|
} catch {
|
|
6282
6283
|
return null;
|
|
6283
6284
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/bare",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.31",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"uuidv7": "^1.0.2",
|
|
28
|
-
"@hot-updater/cli-tools": "1.0.0-rc.
|
|
29
|
-
"@hot-updater/plugin-core": "1.0.0-rc.
|
|
28
|
+
"@hot-updater/cli-tools": "1.0.0-rc.31",
|
|
29
|
+
"@hot-updater/plugin-core": "1.0.0-rc.28"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^20",
|