react-native-update-cli 2.22.7 → 2.22.8
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/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/cli.json +5 -0
- package/lib/api.d.ts +7 -0
- package/lib/api.js +106 -38
- package/lib/app.js +3 -2
- package/lib/bin.js +16 -2
- package/lib/bundle-runner.d.ts +11 -4
- package/lib/bundle-runner.js +176 -90
- package/lib/bundle.d.ts +1 -0
- package/lib/bundle.js +2 -0
- package/lib/diff.d.ts +9 -0
- package/lib/diff.js +162 -120
- package/lib/locales/en.d.ts +1 -0
- package/lib/locales/en.js +1 -0
- package/lib/locales/zh.d.ts +1 -0
- package/lib/locales/zh.js +1 -0
- package/lib/package.d.ts +7 -3
- package/lib/package.js +22 -12
- package/lib/types.d.ts +2 -0
- package/lib/utils/dep-versions.d.ts +7 -0
- package/lib/utils/dep-versions.js +66 -31
- package/lib/utils/hbcTransform.d.ts +21 -0
- package/lib/utils/hbcTransform.js +146 -5
- package/lib/utils/hermes-base.d.ts +21 -4
- package/lib/utils/hermes-base.js +146 -37
- package/lib/utils/http-helper.d.ts +6 -1
- package/lib/utils/http-helper.js +23 -11
- package/lib/utils/index.d.ts +30 -1
- package/lib/utils/index.js +98 -24
- package/lib/utils/latest-version/index.d.ts +11 -8
- package/lib/utils/latest-version/index.js +63 -18
- package/lib/utils/zip-entries.js +20 -15
- package/lib/utils/zip-options.d.ts +2 -0
- package/lib/utils/zip-options.js +9 -4
- package/lib/utils/zip-range.d.ts +47 -15
- package/lib/utils/zip-range.js +192 -83
- package/lib/versions.js +19 -9
- package/package.json +11 -11
- package/src/api.ts +126 -46
- package/src/app.ts +3 -2
- package/src/bin.ts +17 -2
- package/src/bundle-runner.ts +225 -113
- package/src/bundle.ts +3 -0
- package/src/diff.ts +210 -153
- package/src/locales/en.ts +2 -0
- package/src/locales/zh.ts +2 -0
- package/src/package.ts +26 -13
- package/src/types.ts +2 -0
- package/src/utils/dep-versions.ts +76 -33
- package/src/utils/hbcTransform.ts +194 -5
- package/src/utils/hermes-base.ts +156 -45
- package/src/utils/http-helper.ts +24 -13
- package/src/utils/index.ts +136 -26
- package/src/utils/latest-version/index.ts +82 -29
- package/src/utils/zip-entries.ts +18 -16
- package/src/utils/zip-options.ts +8 -3
- package/src/utils/zip-range.ts +244 -88
- package/src/versions.ts +17 -7
|
@@ -1,37 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Installed versions of every dependency/devDependency of the project in cwd.
|
|
3
|
+
// Resolving them means reading one package.json per dependency, so this is
|
|
4
|
+
// done lazily (on first use) and memoized rather than at import time, which
|
|
5
|
+
// used to cost every command ~3-30 ms before it even parsed its arguments.
|
|
2
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
7
|
exports.depVersions = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
8
|
+
exports.getDepVersions = getDepVersions;
|
|
9
|
+
let cached;
|
|
10
|
+
function readDepVersions() {
|
|
11
|
+
let currentPackage = null;
|
|
12
|
+
try {
|
|
13
|
+
currentPackage = require(`${process.cwd()}/package.json`);
|
|
14
|
+
}
|
|
15
|
+
catch (_e) {
|
|
16
|
+
// console.warn('No package.json file were found');
|
|
17
|
+
}
|
|
18
|
+
const versions = {};
|
|
19
|
+
if (currentPackage) {
|
|
20
|
+
const depKeys = currentPackage.dependencies
|
|
21
|
+
? Object.keys(currentPackage.dependencies)
|
|
22
|
+
: [];
|
|
23
|
+
const devDepKeys = currentPackage.devDependencies
|
|
24
|
+
? Object.keys(currentPackage.devDependencies)
|
|
25
|
+
: [];
|
|
26
|
+
const dedupedDeps = [...new Set([...depKeys, ...devDepKeys])];
|
|
27
|
+
for (const dep of dedupedDeps) {
|
|
28
|
+
try {
|
|
29
|
+
const packageJsonPath = require.resolve(`${dep}/package.json`, {
|
|
30
|
+
paths: [process.cwd()],
|
|
31
|
+
});
|
|
32
|
+
versions[dep] = require(packageJsonPath).version;
|
|
33
|
+
}
|
|
34
|
+
catch (_e) { }
|
|
27
35
|
}
|
|
28
|
-
catch (_e) { }
|
|
29
36
|
}
|
|
37
|
+
// sorted keys: the object is sent to the server as-is and diffed
|
|
38
|
+
return Object.keys(versions)
|
|
39
|
+
.sort()
|
|
40
|
+
.reduce((obj, key) => {
|
|
41
|
+
obj[key] = versions[key];
|
|
42
|
+
return obj;
|
|
43
|
+
}, {});
|
|
30
44
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
45
|
+
/** Installed versions of the cwd project's dependencies, keys sorted. */
|
|
46
|
+
function getDepVersions() {
|
|
47
|
+
if (!cached) {
|
|
48
|
+
cached = readDepVersions();
|
|
49
|
+
}
|
|
50
|
+
return cached;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Same data as `getDepVersions()` but as a lazily populated object, for the
|
|
54
|
+
* remaining property-access call sites (`depVersions['react-native']`).
|
|
55
|
+
* Nothing is resolved until the first property access.
|
|
56
|
+
*/
|
|
57
|
+
exports.depVersions = new Proxy({}, {
|
|
58
|
+
get: (_target, key) => typeof key === 'string' ? getDepVersions()[key] : undefined,
|
|
59
|
+
has: (_target, key) => typeof key === 'string' && key in getDepVersions(),
|
|
60
|
+
ownKeys: () => Object.keys(getDepVersions()),
|
|
61
|
+
getOwnPropertyDescriptor: (_target, key) => {
|
|
62
|
+
if (typeof key !== 'string' || !(key in getDepVersions())) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
value: getDepVersions()[key],
|
|
67
|
+
writable: false,
|
|
68
|
+
enumerable: true,
|
|
69
|
+
configurable: true,
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
});
|
|
@@ -67,6 +67,18 @@ export declare function transformHbc(buf: Buffer, inverse?: boolean): Buffer | n
|
|
|
67
67
|
/** 返回该 buffer 结构上匹配的布局(候选中第一个校验通过者)。 */
|
|
68
68
|
export declare function pickLayout(buf: Buffer): HbcLayout | null;
|
|
69
69
|
export declare function transformHbcWithLayout(buf: Buffer, layout: HbcLayout, inverse: boolean): Buffer | null;
|
|
70
|
+
/**
|
|
71
|
+
* 原地变换:直接改写 buf,不再分配整块副本。调用方须持有 buf 的所有权
|
|
72
|
+
* (例如 patch() 刚返回的新 Buffer)。结构不匹配时返回 false 且 buf 不变。
|
|
73
|
+
*/
|
|
74
|
+
export declare function transformHbcWithLayoutInPlace(buf: Buffer, layout: HbcLayout, inverse: boolean): boolean;
|
|
75
|
+
/**
|
|
76
|
+
* 文件版 transformHbcWithLayout:把 src 复制到 dst,再仅对含差分字段的
|
|
77
|
+
* 段(位于 [128, 最后一段末尾) 区间内)做定位读写改写。任一时刻内存中
|
|
78
|
+
* 只有一个段的内容,不会持有整个 bundle。输出与内存版逐字节一致。
|
|
79
|
+
* 结构不匹配时返回 false 并清理 dst。
|
|
80
|
+
*/
|
|
81
|
+
export declare function transformHbcFile(src: string, dst: string, layout: HbcLayout, inverse: boolean): Promise<boolean>;
|
|
70
82
|
export declare const HBC_TRANSFORM_VERSION = 1;
|
|
71
83
|
export type HbcTransformMeta = {
|
|
72
84
|
v: number;
|
|
@@ -83,4 +95,13 @@ export declare function tryTransformPair(oldBuf: Buffer, newBuf: Buffer): {
|
|
|
83
95
|
layout: HbcLayout;
|
|
84
96
|
meta: HbcTransformMeta;
|
|
85
97
|
} | null;
|
|
98
|
+
/**
|
|
99
|
+
* tryTransformPair 的文件版:只读两侧头部即可选定布局,变换结果直接写到
|
|
100
|
+
* tOldPath / tNewPath,全程不把 bundle 读进内存。无可用布局时返回 null
|
|
101
|
+
* (不产生输出文件)。
|
|
102
|
+
*/
|
|
103
|
+
export declare function tryTransformPairFiles(oldPath: string, newPath: string, tOldPath: string, tNewPath: string): Promise<{
|
|
104
|
+
layout: HbcLayout;
|
|
105
|
+
meta: HbcTransformMeta;
|
|
106
|
+
} | null>;
|
|
86
107
|
export {};
|
|
@@ -23,7 +23,11 @@ exports.findLayouts = findLayouts;
|
|
|
23
23
|
exports.transformHbc = transformHbc;
|
|
24
24
|
exports.pickLayout = pickLayout;
|
|
25
25
|
exports.transformHbcWithLayout = transformHbcWithLayout;
|
|
26
|
+
exports.transformHbcWithLayoutInPlace = transformHbcWithLayoutInPlace;
|
|
27
|
+
exports.transformHbcFile = transformHbcFile;
|
|
26
28
|
exports.tryTransformPair = tryTransformPair;
|
|
29
|
+
exports.tryTransformPairFiles = tryTransformPairFiles;
|
|
30
|
+
const promises_1 = require("node:fs/promises");
|
|
27
31
|
const HBC_MAGIC = Buffer.from([0xc6, 0x1f, 0xbc, 0x03, 0xc1, 0x03, 0x19, 0x1f]);
|
|
28
32
|
const HEADER_COUNTS_OFFSET = 32; // magic(8) + version(4) + sourceHash(20)
|
|
29
33
|
const HBC_HEADER_SIZE = 128;
|
|
@@ -266,19 +270,29 @@ const align4 = (x) => (x + 3) & ~3;
|
|
|
266
270
|
* 描述表视为不可信输入,所有算术做显式边界检查。
|
|
267
271
|
*/
|
|
268
272
|
function resolveSections(buf, layout) {
|
|
273
|
+
return resolveSectionsFromHeader(buf, buf.length, layout);
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* 只依赖头部 128 字节与文件总长即可解析段边界(表偏移全部来自头部计数),
|
|
277
|
+
* 文件版变换据此无需把整个 bundle 读进内存。
|
|
278
|
+
*/
|
|
279
|
+
function resolveSectionsFromHeader(header, fileLength, layout) {
|
|
269
280
|
const headerEnd = HEADER_COUNTS_OFFSET + layout.headerFields.length * 4;
|
|
270
|
-
if (
|
|
281
|
+
if (header.length < HBC_HEADER_SIZE ||
|
|
282
|
+
fileLength < HBC_HEADER_SIZE ||
|
|
283
|
+
headerEnd > HBC_HEADER_SIZE) {
|
|
271
284
|
return null;
|
|
285
|
+
}
|
|
272
286
|
const counts = {};
|
|
273
287
|
layout.headerFields.forEach((name, i) => {
|
|
274
|
-
counts[name] =
|
|
288
|
+
counts[name] = header.readUInt32LE(HEADER_COUNTS_OFFSET + i * 4);
|
|
275
289
|
});
|
|
276
|
-
if (counts.fileLength !==
|
|
290
|
+
if (counts.fileLength !== fileLength)
|
|
277
291
|
return null;
|
|
278
292
|
const debugInfoOffset = counts.debugInfoOffset;
|
|
279
293
|
if (!Number.isInteger(debugInfoOffset) ||
|
|
280
294
|
debugInfoOffset < HBC_HEADER_SIZE ||
|
|
281
|
-
debugInfoOffset >
|
|
295
|
+
debugInfoOffset > fileLength) {
|
|
282
296
|
return null;
|
|
283
297
|
}
|
|
284
298
|
const resolved = [];
|
|
@@ -356,11 +370,99 @@ function transformHbcWithLayout(buf, layout, inverse) {
|
|
|
356
370
|
if (!sections)
|
|
357
371
|
return null;
|
|
358
372
|
const out = Buffer.from(buf);
|
|
373
|
+
applyDeltaSections(out, sections, inverse);
|
|
374
|
+
return out;
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* 原地变换:直接改写 buf,不再分配整块副本。调用方须持有 buf 的所有权
|
|
378
|
+
* (例如 patch() 刚返回的新 Buffer)。结构不匹配时返回 false 且 buf 不变。
|
|
379
|
+
*/
|
|
380
|
+
function transformHbcWithLayoutInPlace(buf, layout, inverse) {
|
|
381
|
+
const sections = resolveSections(buf, layout);
|
|
382
|
+
if (!sections)
|
|
383
|
+
return false;
|
|
384
|
+
applyDeltaSections(buf, sections, inverse);
|
|
385
|
+
return true;
|
|
386
|
+
}
|
|
387
|
+
function applyDeltaSections(out, sections, inverse) {
|
|
359
388
|
for (const s of sections) {
|
|
360
389
|
if (s.desc.deltaFields?.length)
|
|
361
390
|
applyDelta(out, s, inverse);
|
|
362
391
|
}
|
|
363
|
-
|
|
392
|
+
}
|
|
393
|
+
/** 读取文件头 128 字节与总长;文件过短或非 HBC 时返回 null。 */
|
|
394
|
+
async function readHbcFileHeader(filePath) {
|
|
395
|
+
const { size } = await (0, promises_1.stat)(filePath);
|
|
396
|
+
if (size < HBC_HEADER_SIZE)
|
|
397
|
+
return null;
|
|
398
|
+
const header = Buffer.alloc(HBC_HEADER_SIZE);
|
|
399
|
+
const handle = await (0, promises_1.open)(filePath, 'r');
|
|
400
|
+
try {
|
|
401
|
+
await readExact(handle, header, 0);
|
|
402
|
+
}
|
|
403
|
+
finally {
|
|
404
|
+
await handle.close();
|
|
405
|
+
}
|
|
406
|
+
if (getHbcVersion(header) === null)
|
|
407
|
+
return null;
|
|
408
|
+
return { header, size };
|
|
409
|
+
}
|
|
410
|
+
async function readExact(handle, buffer, position) {
|
|
411
|
+
let done = 0;
|
|
412
|
+
while (done < buffer.length) {
|
|
413
|
+
const { bytesRead } = await handle.read(buffer, done, buffer.length - done, position + done);
|
|
414
|
+
if (bytesRead <= 0) {
|
|
415
|
+
throw new Error('unexpected end of file while reading HBC section');
|
|
416
|
+
}
|
|
417
|
+
done += bytesRead;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
async function writeExact(handle, buffer, position) {
|
|
421
|
+
let done = 0;
|
|
422
|
+
while (done < buffer.length) {
|
|
423
|
+
const { bytesWritten } = await handle.write(buffer, done, buffer.length - done, position + done);
|
|
424
|
+
if (bytesWritten <= 0) {
|
|
425
|
+
throw new Error('short write while rewriting HBC section');
|
|
426
|
+
}
|
|
427
|
+
done += bytesWritten;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* 文件版 transformHbcWithLayout:把 src 复制到 dst,再仅对含差分字段的
|
|
432
|
+
* 段(位于 [128, 最后一段末尾) 区间内)做定位读写改写。任一时刻内存中
|
|
433
|
+
* 只有一个段的内容,不会持有整个 bundle。输出与内存版逐字节一致。
|
|
434
|
+
* 结构不匹配时返回 false 并清理 dst。
|
|
435
|
+
*/
|
|
436
|
+
async function transformHbcFile(src, dst, layout, inverse) {
|
|
437
|
+
const info = await readHbcFileHeader(src);
|
|
438
|
+
const sections = info
|
|
439
|
+
? resolveSectionsFromHeader(info.header, info.size, layout)
|
|
440
|
+
: null;
|
|
441
|
+
if (!sections) {
|
|
442
|
+
return false;
|
|
443
|
+
}
|
|
444
|
+
await (0, promises_1.copyFile)(src, dst);
|
|
445
|
+
try {
|
|
446
|
+
const handle = await (0, promises_1.open)(dst, 'r+');
|
|
447
|
+
try {
|
|
448
|
+
for (const s of sections) {
|
|
449
|
+
if (!s.desc.deltaFields?.length || s.size === 0)
|
|
450
|
+
continue;
|
|
451
|
+
const chunk = Buffer.alloc(s.size);
|
|
452
|
+
await readExact(handle, chunk, s.start);
|
|
453
|
+
applyDelta(chunk, { start: 0, size: s.size, desc: s.desc }, inverse);
|
|
454
|
+
await writeExact(handle, chunk, s.start);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
finally {
|
|
458
|
+
await handle.close();
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
catch (error) {
|
|
462
|
+
await (0, promises_1.rm)(dst, { force: true });
|
|
463
|
+
throw error;
|
|
464
|
+
}
|
|
465
|
+
return true;
|
|
364
466
|
}
|
|
365
467
|
exports.HBC_TRANSFORM_VERSION = 1;
|
|
366
468
|
/**
|
|
@@ -391,3 +493,42 @@ function tryTransformPair(oldBuf, newBuf) {
|
|
|
391
493
|
}
|
|
392
494
|
return null;
|
|
393
495
|
}
|
|
496
|
+
/**
|
|
497
|
+
* tryTransformPair 的文件版:只读两侧头部即可选定布局,变换结果直接写到
|
|
498
|
+
* tOldPath / tNewPath,全程不把 bundle 读进内存。无可用布局时返回 null
|
|
499
|
+
* (不产生输出文件)。
|
|
500
|
+
*/
|
|
501
|
+
async function tryTransformPairFiles(oldPath, newPath, tOldPath, tNewPath) {
|
|
502
|
+
const [oldInfo, newInfo] = await Promise.all([
|
|
503
|
+
readHbcFileHeader(oldPath),
|
|
504
|
+
readHbcFileHeader(newPath),
|
|
505
|
+
]);
|
|
506
|
+
if (!oldInfo || !newInfo)
|
|
507
|
+
return null;
|
|
508
|
+
const oldVersion = getHbcVersion(oldInfo.header);
|
|
509
|
+
const newVersion = getHbcVersion(newInfo.header);
|
|
510
|
+
if (oldVersion === null || newVersion === null || oldVersion !== newVersion) {
|
|
511
|
+
return null;
|
|
512
|
+
}
|
|
513
|
+
for (const layout of findLayouts(newVersion)) {
|
|
514
|
+
if (!resolveSectionsFromHeader(oldInfo.header, oldInfo.size, layout) ||
|
|
515
|
+
!resolveSectionsFromHeader(newInfo.header, newInfo.size, layout)) {
|
|
516
|
+
continue;
|
|
517
|
+
}
|
|
518
|
+
const [tOld, tNew] = await Promise.all([
|
|
519
|
+
transformHbcFile(oldPath, tOldPath, layout, false),
|
|
520
|
+
transformHbcFile(newPath, tNewPath, layout, false),
|
|
521
|
+
]);
|
|
522
|
+
if (!tOld || !tNew)
|
|
523
|
+
continue;
|
|
524
|
+
return {
|
|
525
|
+
layout,
|
|
526
|
+
meta: {
|
|
527
|
+
v: exports.HBC_TRANSFORM_VERSION,
|
|
528
|
+
hbcVersion: newVersion,
|
|
529
|
+
layout: compileLayoutToWire(layout),
|
|
530
|
+
},
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
return null;
|
|
534
|
+
}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
export type HermesBaseOption = 'auto' | 'none' | string;
|
|
2
|
+
/**
|
|
3
|
+
* The base cannot be obtained whatever the transport or how often it is
|
|
4
|
+
* retried (wrong content on the server, no bundle in the package, ...).
|
|
5
|
+
*/
|
|
6
|
+
export declare class PermanentBaseError extends Error {
|
|
7
|
+
}
|
|
8
|
+
/** The fetched bundle's sha256 differs from what the server recorded. */
|
|
9
|
+
export declare class BundleHashMismatchError extends PermanentBaseError {
|
|
10
|
+
constructor(actual: string, expected: string);
|
|
11
|
+
}
|
|
2
12
|
export interface HermesBaseSelection {
|
|
3
13
|
/** path of the bundle (HBC) handed to hermesc as -base-bytecode */
|
|
4
14
|
path: string;
|
|
@@ -31,6 +41,10 @@ export declare function classifyHermesCommand(hermesCommand: string): {
|
|
|
31
41
|
reason?: string;
|
|
32
42
|
};
|
|
33
43
|
export declare function sha256Hex(data: Buffer): string;
|
|
44
|
+
/** sha256 of a file, streamed (a cached base can be tens of MB) */
|
|
45
|
+
export declare function sha256File(file: string): Promise<string>;
|
|
46
|
+
/** HBC version from the first bytes of a file, without reading the rest */
|
|
47
|
+
export declare function readFileHbcVersion(file: string): Promise<number | null>;
|
|
34
48
|
/**
|
|
35
49
|
* Which HBC version this hermesc emits. The answer is remembered per binary
|
|
36
50
|
* (path, size, mtime) in the cache dir so only the first run of a given
|
|
@@ -62,6 +76,7 @@ export declare function cachePut(bundle: Buffer, maxMb?: number, knownHash?: str
|
|
|
62
76
|
bundleHash: string;
|
|
63
77
|
}>;
|
|
64
78
|
export declare function enforceCacheLimits(maxMb?: number, keep?: string): Promise<void>;
|
|
79
|
+
/** Remove every cached bundle (and staging leftovers); returns the bundle count. */
|
|
65
80
|
export declare function cleanCache(): Promise<number>;
|
|
66
81
|
export declare function cacheStats(): Promise<{
|
|
67
82
|
dir: string;
|
|
@@ -106,11 +121,13 @@ interface FetchedBaseBundle {
|
|
|
106
121
|
* is skipped);
|
|
107
122
|
* 3. the whole archive, as before.
|
|
108
123
|
* A server that ignores Range (HTTP 200) streams the full archive into
|
|
109
|
-
* `archive` without a second request.
|
|
110
|
-
* `record.bundleHash
|
|
111
|
-
*
|
|
124
|
+
* `archive` without a second request. Every result is verified against
|
|
125
|
+
* `record.bundleHash`. A mismatch of the located bytes (1) may only mean the
|
|
126
|
+
* recorded location is stale, so the directory transport (2) still runs; a
|
|
127
|
+
* mismatch of the entry itself (2, 3) is final — the same bytes would come
|
|
128
|
+
* back however they are fetched — and raises BundleHashMismatchError.
|
|
112
129
|
*/
|
|
113
|
-
export declare function fetchBaseBundle(record: HermesBaseServerRecord, artifactType: BaseArtifactType, archive: string, log?: (message: string) => void): Promise<FetchedBaseBundle
|
|
130
|
+
export declare function fetchBaseBundle(record: HermesBaseServerRecord, artifactType: BaseArtifactType, archive: string, log?: (message: string) => void): Promise<FetchedBaseBundle>;
|
|
114
131
|
export interface ResolveHermesBaseParams {
|
|
115
132
|
option: HermesBaseOption;
|
|
116
133
|
hermesCommand: string;
|