New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

marionette-helper

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marionette-helper - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

24

index.js

@@ -95,3 +95,3 @@ var Marionette = require('marionette-client');

var next = this._waitFor.bind(
this, test, callback, timeout - interval, interval);
this, test, callback, interval, timeout - interval);
setTimeout(next, interval);

@@ -109,3 +109,3 @@ },

if (el instanceof Marionette.Element) {
if (isElement(el)) {
client.waitFor(function() { return el.displayed(); });

@@ -116,5 +116,21 @@ return el;

var result = client.findElement(el);
return this.waitForElement(
(result instanceof Marionette.Element) ? result : el);
return this.waitForElement(isElement(result) ? result : el);
}
};
/**
* @param {Object} maybeElement something that could or could not be an el.
* @return {boolean} Whether or not we have an element.
* @private
*/
function isElement(maybeElement) {
if (!maybeElement) {
return false;
}
if (maybeElement instanceof Marionette.Element) {
return true;
}
return typeof(maybeElement.id) === 'string' && maybeElement.client;
}

2

package.json
{
"name": "marionette-helper",
"version": "0.0.4",
"version": "0.0.5",
"author": {

@@ -5,0 +5,0 @@ "name": "Gareth Aye",

@@ -27,3 +27,3 @@ suite('MarionetteHelper', function() {

done();
});
}, 50, 1000);
});

@@ -30,0 +30,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