Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hermione-retry-command

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hermione-retry-command - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

5

lib/conditions/blank-screenshot/index.js

@@ -7,5 +7,7 @@ 'use strict';

const utils = require('./utils');
const commonUtils = require('../../utils');
module.exports = (browser, {retryCount, retryInterval}) => {
const originScreenshot = browser.screenshot.bind(browser);
const isWdioLatest = commonUtils.isWdioLatest(browser);

@@ -22,3 +24,4 @@ const screenshotWithRetries = async () => {

while (retriesLeft && utils.isBlankScreenshot(base64.value)) {
const strBase64 = isWdioLatest ? base64 : base64.value;
while (retriesLeft && utils.isBlankScreenshot(strBase64)) {
await Promise.delay(retryInterval);

@@ -25,0 +28,0 @@

2

lib/utils.js

@@ -10,1 +10,3 @@ 'use strict';

};
exports.isWdioLatest = (browser) => Boolean(browser.overwriteCommand);
{
"name": "hermione-retry-command",
"version": "1.2.0",
"version": "1.3.0",
"description": "Plugin to retry commands in hermione",

@@ -5,0 +5,0 @@ "main": "index.js",

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