Comparing version 0.5.0 to 0.5.1
@@ -5,2 +5,9 @@ "use strict"; | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -11,3 +18,3 @@ const path_1 = __importDefault(require("path")); | ||
const tempy_1 = __importDefault(require("tempy")); | ||
const patch_apk_1 = __importDefault(require("./patch-apk")); | ||
const patch_apk_1 = __importStar(require("./patch-apk")); | ||
const patch_app_bundle_1 = require("./patch-app-bundle"); | ||
@@ -43,2 +50,3 @@ const apktool_1 = __importDefault(require("./tools/apktool")); | ||
case '.apks': | ||
case '.zip': | ||
taskFunction = patch_app_bundle_1.patchApksBundle; | ||
@@ -54,4 +62,5 @@ break; | ||
taskFunction({ inputPath, outputPath, tmpDir, apktool }).run().then(context => { | ||
if (context.onFinished) | ||
context.onFinished(); | ||
if (taskFunction === patch_apk_1.default && context.usesAppBundle) { | ||
patch_apk_1.showAppBundleWarning(); | ||
} | ||
console.log(chalk_1.default `\n {green.inverse Done! } Patched file: {bold ./${outputName}}\n`); | ||
@@ -58,0 +67,0 @@ }).catch((error) => { |
@@ -37,5 +37,3 @@ "use strict"; | ||
nscName = result.nscName; | ||
if (result.usesAppBundle) { | ||
context.onFinished = showAppBundleWarning; | ||
} | ||
context.usesAppBundle = result.usesAppBundle; | ||
}, | ||
@@ -102,1 +100,2 @@ }, | ||
} | ||
exports.showAppBundleWarning = showAppBundleWarning; |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"license": "MIT", | ||
@@ -16,0 +16,0 @@ "scripts": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18434861
529
0