react-native-update-cli 2.27.0 → 2.27.1
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/lib/locales/en.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.default = {
|
|
|
4
4
|
accountSummary: 'Account: {{account}} | Plan: {{tier}} | Expires at: {{expiry}}',
|
|
5
5
|
accountUnknown: 'Unknown',
|
|
6
6
|
accountNoExpiry: 'No expiry specified',
|
|
7
|
-
accountRenewalWarning: '[
|
|
7
|
+
accountRenewalWarning: '[Notice] Your Pushy paid plan expires in {{days}} days. Renew soon to avoid service disruption: {{url}}',
|
|
8
8
|
accountLookupFailed: '[Warning] Unable to retrieve account information. Continuing with the command.',
|
|
9
9
|
addedToGitignore: 'Added {{line}} to .gitignore',
|
|
10
10
|
androidCrunchPngsWarning: 'The crunchPngs option of android seems not disabled (Please ignore this warning if already disabled), which may cause abnormal consumption of mobile network traffic. Please refer to https://cresc.dev/docs/getting-started#disable-crunchpngs-on-android \n',
|
package/lib/locales/zh.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.default = {
|
|
|
4
4
|
accountSummary: '当前账号:{{account}} | 等级:{{tier}} | 有效期至:{{expiry}}',
|
|
5
5
|
accountUnknown: '未知',
|
|
6
6
|
accountNoExpiry: '未设置有效期',
|
|
7
|
-
accountRenewalWarning: '[
|
|
7
|
+
accountRenewalWarning: '[注意] 您的 Pushy 付费套餐将在 {{days}} 天内到期,请及时续费,以免影响服务:{{url}}',
|
|
8
8
|
accountLookupFailed: '[警告] 暂时无法获取账号信息,将继续执行命令。',
|
|
9
9
|
addedToGitignore: '已将 {{line}} 添加到 .gitignore',
|
|
10
10
|
androidCrunchPngsWarning: 'android 的 crunchPngs 选项似乎尚未禁用(如已禁用则请忽略此提示),这可能导致热更包体积异常增大,具体请参考 https://pushy.reactnative.cn/docs/getting-started.html#%E7%A6%81%E7%94%A8-android-%E7%9A%84-crunch-%E4%BC%98%E5%8C%96 \n',
|
package/lib/utils/hermes-base.js
CHANGED
|
@@ -82,6 +82,7 @@ const stream_1 = require("stream");
|
|
|
82
82
|
const promises_1 = require("stream/promises");
|
|
83
83
|
const constants_1 = require("./constants");
|
|
84
84
|
const hbcTransform_1 = require("./hbcTransform");
|
|
85
|
+
const hermes_cached_object_1 = require("./hermes-cached-object");
|
|
85
86
|
const hermes_literals_1 = require("./hermes-literals");
|
|
86
87
|
const hermes_raw_1 = require("./hermes-raw");
|
|
87
88
|
const hermes_timeout_1 = require("./hermes-timeout");
|
|
@@ -898,6 +899,9 @@ function normalizeDisassemblyLine(line, strings, literals) {
|
|
|
898
899
|
if (opcode === 'Offset' && line.startsWith('Offset in debug table', indent)) {
|
|
899
900
|
return null;
|
|
900
901
|
}
|
|
902
|
+
if (opcode === 'CacheNewObject') {
|
|
903
|
+
return (0, hermes_cached_object_1.normalizeCachedObjectInstruction)(line, literals);
|
|
904
|
+
}
|
|
901
905
|
let m;
|
|
902
906
|
if (opcode.startsWith('New') && opcode.includes('WithBuffer')) {
|
|
903
907
|
// v98's AndParent form takes the parent object in a second register,
|
|
@@ -925,12 +929,26 @@ function normalizeDisassemblyLine(line, strings, literals) {
|
|
|
925
929
|
return `${m[1]} ${m[3]}${normalizeOperandSpacing(m[4])}`;
|
|
926
930
|
}
|
|
927
931
|
if (opcode.startsWith('DefineOwnById')) {
|
|
928
|
-
|
|
932
|
+
// BytecodeList.def annotates the string operand of DefineOwnByIdLong but
|
|
933
|
+
// not of DefineOwnById, so one instruction has two pretty renderings: the
|
|
934
|
+
// plain compile keeps small ids and prints the bare id, while a base
|
|
935
|
+
// compile inherits the base's string table, spills past 16 bits, picks the
|
|
936
|
+
// Long form and prints the *text* — cut to hermesc's display budget
|
|
937
|
+
// (`"equivalenceCheckP"...` for `equivalenceCheckPropertyName`). Neither side can
|
|
938
|
+
// be turned into the other: that budget also drops non-ASCII silently and
|
|
939
|
+
// without a marker (`ab\u4e2d` prints as `"ab"`), so a resolved name never
|
|
940
|
+
// equals a printed one. The operand is folded away here and the property
|
|
941
|
+
// name is compared by the raw audit, which decodes it from the string
|
|
942
|
+
// table in full (STRING_OPERANDS supplies the missing annotation).
|
|
943
|
+
m = /^(\s*DefineOwnById\w*\s+r\d+, r\d+, \d+, )(\d+)?.*$/.exec(line);
|
|
929
944
|
if (m) {
|
|
930
|
-
|
|
931
|
-
|
|
945
|
+
// An id form whose id is not in the table means the string table was
|
|
946
|
+
// not read at all; that still fails closed rather than folding an
|
|
947
|
+
// operand nothing could resolve.
|
|
948
|
+
if (m[2] !== undefined && !strings.has(Number(m[2]))) {
|
|
932
949
|
throw new Error(`unresolved string id ${m[2]}`);
|
|
933
|
-
|
|
950
|
+
}
|
|
951
|
+
line = `${m[1]}<str>`;
|
|
934
952
|
}
|
|
935
953
|
}
|
|
936
954
|
// Operand-width variants of one instruction (GetByIdShort/GetById/GetByIdLong,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.normalizeCachedObjectInstruction = normalizeCachedObjectInstruction;
|
|
4
|
+
/** Normalize the shape reference, not the registers or the per-function cache. */
|
|
5
|
+
function normalizeCachedObjectInstruction(line, literals) {
|
|
6
|
+
const m = /^(\s*)CacheNewObject\s+(r\d+),\s*(r\d+),\s*(\d+),\s*(\d+)\s*$/.exec(line);
|
|
7
|
+
if (!m)
|
|
8
|
+
throw new Error(`unsupported cached object operands: ${line.trim()}`);
|
|
9
|
+
const prefix = `${m[1]}CacheNewObject ${m[2]}, ${m[3]}, `;
|
|
10
|
+
// Diagnostic-only fallback: compareHermesBytecode still requires readable
|
|
11
|
+
// binary data and a successful raw audit before returning equivalent.
|
|
12
|
+
if (!literals)
|
|
13
|
+
return `${prefix}<shape>, ${m[5]}`;
|
|
14
|
+
const shape = literals.shape(Number(m[4]));
|
|
15
|
+
const keys = shape && literals.objectKeys(shape.keyOffset, shape.count);
|
|
16
|
+
if (!shape || !keys) {
|
|
17
|
+
throw new Error(`undecodable cached object shape ${m[4]}`);
|
|
18
|
+
}
|
|
19
|
+
// JSON preserves key order, complete string contents and significant spaces.
|
|
20
|
+
return `${prefix}keys=${JSON.stringify(keys)}, ${m[5]}`;
|
|
21
|
+
}
|
package/package.json
CHANGED