react-native-update-cli 2.29.2 → 2.29.3
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/package.js +9 -4
- package/package.json +1 -1
package/lib/package.js
CHANGED
|
@@ -23,6 +23,11 @@ const hermes_base_1 = require("./utils/hermes-base");
|
|
|
23
23
|
const i18n_1 = require("./utils/i18n");
|
|
24
24
|
const options_1 = require("./utils/options");
|
|
25
25
|
const zip_range_1 = require("./utils/zip-range");
|
|
26
|
+
// parse* output is JSON so the bundleHash (content fingerprint) can be piped
|
|
27
|
+
// into jq; the raw bundle bytes are dropped — a Buffer preview is just noise.
|
|
28
|
+
function printPackageInfo({ bundleFile: _bundleFile, ...info }) {
|
|
29
|
+
console.log(JSON.stringify(info, null, 2));
|
|
30
|
+
}
|
|
26
31
|
// the AAB parser drags in protobufjs; load it only for the aab commands
|
|
27
32
|
function loadExtractApk() {
|
|
28
33
|
return require('./utils/app-info-parser/aab').extractApk;
|
|
@@ -270,28 +275,28 @@ exports.packageCommands = {
|
|
|
270
275
|
if (!fn?.endsWith('.app')) {
|
|
271
276
|
throw new Error((0, i18n_1.t)('usageParseApp'));
|
|
272
277
|
}
|
|
273
|
-
|
|
278
|
+
printPackageInfo(await (0, utils_1.getAppInfo)(fn));
|
|
274
279
|
},
|
|
275
280
|
parseIpa: async ({ args }) => {
|
|
276
281
|
const fn = args[0];
|
|
277
282
|
if (!fn?.endsWith('.ipa')) {
|
|
278
283
|
throw new Error((0, i18n_1.t)('usageParseIpa'));
|
|
279
284
|
}
|
|
280
|
-
|
|
285
|
+
printPackageInfo(await (0, utils_1.getIpaInfo)(fn));
|
|
281
286
|
},
|
|
282
287
|
parseApk: async ({ args }) => {
|
|
283
288
|
const fn = args[0];
|
|
284
289
|
if (!fn?.endsWith('.apk')) {
|
|
285
290
|
throw new Error((0, i18n_1.t)('usageParseApk'));
|
|
286
291
|
}
|
|
287
|
-
|
|
292
|
+
printPackageInfo(await (0, utils_1.getApkInfo)(fn));
|
|
288
293
|
},
|
|
289
294
|
parseAab: async ({ args }) => {
|
|
290
295
|
const fn = args[0];
|
|
291
296
|
if (!fn?.endsWith('.aab')) {
|
|
292
297
|
throw new Error((0, i18n_1.t)('usageParseAab'));
|
|
293
298
|
}
|
|
294
|
-
|
|
299
|
+
printPackageInfo(await (0, utils_1.getAabInfo)(fn));
|
|
295
300
|
},
|
|
296
301
|
extractApk: async ({ args, options, }) => {
|
|
297
302
|
const source = ensureFileByExt(args[0], '.aab', 'usageExtractApk');
|
package/package.json
CHANGED