@zondax/zemu
Advanced tools
Comparing version 0.14.5 to 0.15.0
@@ -8,5 +8,5 @@ export declare const DEV_CERT_PRIVATE_KEY = "ff701d781f43ce106f72dc26a46b6a83e053b5d07bb3d4ceab79c91ca822a66b"; | ||
private readonly elfLocalPath; | ||
private name; | ||
private readonly name; | ||
private startDelay; | ||
private image; | ||
private readonly image; | ||
private libElfs; | ||
@@ -13,0 +13,0 @@ private currentContainer; |
@@ -219,17 +219,15 @@ "use strict"; | ||
switch (_c.label) { | ||
case 0: return [4 /*yield*/, Zemu.checkAndPullImage()]; | ||
case 1: | ||
_c.sent(); | ||
case 0: | ||
this.startOptions = options; | ||
this.log("Checking ELF"); | ||
Zemu.checkElf((_a = this.startOptions.model) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_MODEL, this.elfPath); | ||
_c.label = 2; | ||
_c.label = 1; | ||
case 1: | ||
_c.trys.push([1, 6, , 7]); | ||
return [4 /*yield*/, Zemu.stopAllEmuContainers()]; | ||
case 2: | ||
_c.trys.push([2, 7, , 8]); | ||
return [4 /*yield*/, Zemu.stopAllEmuContainers()]; | ||
case 3: | ||
_c.sent(); | ||
this.log("Starting Container"); | ||
return [4 /*yield*/, this.emuContainer.runContainer(options)]; | ||
case 4: | ||
case 3: | ||
_c.sent(); | ||
@@ -243,3 +241,3 @@ this.log("Started Container"); | ||
})]; | ||
case 5: | ||
case 4: | ||
// eslint-disable-next-line func-names | ||
@@ -251,11 +249,11 @@ _c.sent(); | ||
return [4 /*yield*/, this.snapshot()]; | ||
case 6: | ||
case 5: | ||
// Captures main screen | ||
_b.mainMenuSnapshot = _c.sent(); | ||
return [3 /*break*/, 8]; | ||
case 7: | ||
return [3 /*break*/, 7]; | ||
case 6: | ||
e_1 = _c.sent(); | ||
this.log("[ZEMU] " + e_1); | ||
throw e_1; | ||
case 8: return [2 /*return*/]; | ||
case 7: return [2 /*return*/]; | ||
} | ||
@@ -262,0 +260,0 @@ }); |
@@ -90,2 +90,12 @@ "use strict"; | ||
var APP_SEED = 'equip will roof matter pink blind book anxiety banner elbow sun young'; | ||
beforeAll(function () { return __awaiter(void 0, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, src_1["default"].checkAndPullImage()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); }); | ||
var ZEMU_OPTIONS_S = __assign(__assign({}, src_1.DEFAULT_START_OPTIONS), { X11: true, logging: true, custom: "-s \"" + APP_SEED + "\" " }); | ||
@@ -92,0 +102,0 @@ var ZEMU_OPTIONS_X = __assign(__assign({}, src_1.DEFAULT_START_OPTIONS), { X11: true, logging: true, custom: "-s \"" + APP_SEED + "\" ", model: 'nanox' }); |
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
transformIgnorePatterns: ['^.+\\.js$'], | ||
} | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
transformIgnorePatterns: ["^.+\\.js$"] | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "0.14.5", | ||
"version": "0.15.0", | ||
"description": "Zemu Testing Framework", | ||
@@ -31,4 +31,4 @@ "main": "./dist/src/index.js", | ||
"dependencies": { | ||
"@grpc/grpc-js": "^1.3.2", | ||
"@grpc/proto-loader": "^0.6.2", | ||
"@grpc/grpc-js": "^1.3.4", | ||
"@grpc/proto-loader": "^0.6.4", | ||
"@ledgerhq/hw-transport": "^5.51.1", | ||
@@ -52,16 +52,16 @@ "@ledgerhq/hw-transport-http": "^5.51.1", | ||
"@types/sleep": "^0.0.8", | ||
"@typescript-eslint/eslint-plugin": "^4.24.0", | ||
"@typescript-eslint/parser": "^4.24.0", | ||
"@typescript-eslint/eslint-plugin": "^4.28.1", | ||
"@typescript-eslint/parser": "^4.28.1", | ||
"copyfiles": "^2.4.1", | ||
"eslint": "^7.27.0", | ||
"eslint": "^7.29.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.23.3", | ||
"eslint-plugin-import": "^2.23.4", | ||
"eslint-plugin-jest": "^24.3.6", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"jest": "^26.6.3", | ||
"jest": "^27.0.6", | ||
"jest-serial-runner": "^1.1.0", | ||
"js-sha512": "^0.8.0", | ||
"prettier": "^2.3.0", | ||
"ts-jest": "^26.5.6", | ||
"typescript": "^4.2.4" | ||
"prettier": "^2.3.2", | ||
"ts-jest": "^27.0.3", | ||
"typescript": "^4.3.4" | ||
}, | ||
@@ -68,0 +68,0 @@ "moduleDirectories": [ |
@@ -27,5 +27,5 @@ /** ****************************************************************************** | ||
private readonly elfLocalPath: string | ||
private name: string | ||
private readonly name: string | ||
private startDelay: number | ||
private image: any | ||
private readonly image: any | ||
private libElfs: any | ||
@@ -32,0 +32,0 @@ private currentContainer: any | null |
@@ -192,4 +192,2 @@ /** ****************************************************************************** | ||
async start(options: StartOptions) { | ||
await Zemu.checkAndPullImage() | ||
this.startOptions = options | ||
@@ -196,0 +194,0 @@ |
@@ -26,2 +26,6 @@ /** ****************************************************************************** | ||
beforeAll( async() => { | ||
await Zemu.checkAndPullImage() | ||
}) | ||
const ZEMU_OPTIONS_S: StartOptions = { | ||
@@ -28,0 +32,0 @@ ...DEFAULT_START_OPTIONS, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2918706
2502
Updated@grpc/grpc-js@^1.3.4
Updated@grpc/proto-loader@^0.6.4