Socket
Socket
Sign inDemoInstall

@zondax/zemu

Package Overview
Dependencies
Maintainers
3
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zondax/zemu - npm Package Compare versions

Comparing version 0.36.2-beta.3 to 0.36.2-beta.4

2

dist/constants.d.ts

@@ -23,3 +23,3 @@ /** ******************************************************************************

export declare const DEFAULT_HOST = "127.0.0.1";
export declare const BASE_NAME = "zemu-test-";
export declare const BASE_NAME = "zemu-";
export declare const DEFAULT_START_TIMEOUT = 30000;

@@ -26,0 +26,0 @@ export declare const KILL_TIMEOUT = 5000;

@@ -10,3 +10,3 @@ "use strict";

exports.DEFAULT_HOST = "127.0.0.1";
exports.BASE_NAME = "zemu-test-";
exports.BASE_NAME = "zemu-";
exports.DEFAULT_START_TIMEOUT = 30000;

@@ -13,0 +13,0 @@ exports.KILL_TIMEOUT = 5000;

@@ -56,3 +56,3 @@ "use strict";

});
this.containerName = constants_1.BASE_NAME + randomstring_1.default.generate(12); // generate 12 chars long string
this.containerName = constants_1.BASE_NAME + randomstring_1.default.generate(8);
this.emuContainer = new emulator_1.default(this.elfPath, this.libElfs, emuImage, this.containerName);

@@ -236,3 +236,3 @@ }

let currentSnapshotBufferHex = (await this.snapshot("")).data;
this.log(`Wait for screen change`);
this.log(`Wait until screen is`);
while (!inputSnapshotBufferHex.equals(currentSnapshotBufferHex)) {

@@ -242,3 +242,4 @@ const currentTime = new Date();

if (elapsed > timeout) {
throw new Error(`Timeout waiting for screen to change (${timeout} ms)`);
this.log("Timeout waiting for screen to be");
throw new Error(`Timeout waiting for screen to be (${timeout} ms)`);
}

@@ -255,3 +256,3 @@ await Zemu.sleep();

let currentSnapshotBufferHex = (await this.snapshot("")).data;
this.log(`Wait for screen change`);
this.log(`Wait until screen is not`);
while (inputSnapshotBufferHex.equals(currentSnapshotBufferHex)) {

@@ -261,3 +262,4 @@ const currentTime = new Date();

if (elapsed > timeout) {
throw new Error(`Timeout waiting for screen to change (${timeout} ms)`);
this.log("Timeout waiting for screen to be not");
throw new Error(`Timeout waiting for screen to be not (${timeout} ms)`);
}

@@ -273,5 +275,7 @@ await Zemu.sleep();

const startTime = new Date();
this.log(`Wait for screen changes`);
while (currEvents.length === prevEvents.length) {
const elapsed = new Date().getTime() - startTime.getTime();
if (elapsed > timeout) {
this.log("Timeout waiting for screen to change");
throw new Error(`Timeout waiting for screen to change (${timeout} ms)`);

@@ -278,0 +282,0 @@ }

@@ -5,3 +5,3 @@ {

"license": "Apache-2.0",
"version": "0.36.2-beta.3",
"version": "0.36.2-beta.4",
"description": "Zemu Testing Framework",

@@ -8,0 +8,0 @@ "main": "./dist/index.js",

@@ -25,3 +25,3 @@ /** ******************************************************************************

export const DEFAULT_HOST = "127.0.0.1";
export const BASE_NAME = "zemu-test-";
export const BASE_NAME = "zemu-";
export const DEFAULT_START_TIMEOUT = 30000;

@@ -28,0 +28,0 @@ export const KILL_TIMEOUT = 5000;

@@ -113,3 +113,3 @@ /** ******************************************************************************

this.containerName = BASE_NAME + rndstr.generate(12); // generate 12 chars long string
this.containerName = BASE_NAME + rndstr.generate(8);
this.emuContainer = new EmuContainer(this.elfPath, this.libElfs, emuImage, this.containerName);

@@ -329,3 +329,3 @@ }

this.log(`Wait for screen change`);
this.log(`Wait until screen is`);

@@ -336,3 +336,4 @@ while (!inputSnapshotBufferHex.equals(currentSnapshotBufferHex)) {

if (elapsed > timeout) {
throw new Error(`Timeout waiting for screen to change (${timeout} ms)`);
this.log("Timeout waiting for screen to be");
throw new Error(`Timeout waiting for screen to be (${timeout} ms)`);
}

@@ -352,3 +353,3 @@ await Zemu.sleep();

this.log(`Wait for screen change`);
this.log(`Wait until screen is not`);

@@ -359,3 +360,4 @@ while (inputSnapshotBufferHex.equals(currentSnapshotBufferHex)) {

if (elapsed > timeout) {
throw new Error(`Timeout waiting for screen to change (${timeout} ms)`);
this.log("Timeout waiting for screen to be not");
throw new Error(`Timeout waiting for screen to be not (${timeout} ms)`);
}

@@ -372,5 +374,9 @@ await Zemu.sleep();

const startTime = new Date();
this.log(`Wait for screen changes`);
while (currEvents.length === prevEvents.length) {
const elapsed = new Date().getTime() - startTime.getTime();
if (elapsed > timeout) {
this.log("Timeout waiting for screen to change");
throw new Error(`Timeout waiting for screen to change (${timeout} ms)`);

@@ -377,0 +383,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc