Socket
Socket
Sign inDemoInstall

chai-nightwatch

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-nightwatch - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

16

lib/chai/core/assertions.js

@@ -49,16 +49,20 @@ /*!

return new Proxy(this, {
get: function(obj, prop) {
if (typeof prop != 'string') {
get: function(target, property) {
if (typeof property != 'string') {
return {};
}
if (prop in obj) {
return obj[prop];
if (!Reflect.has(target, property)) {
throw new Error(`Unknown property: "${property}". Please consult docs at: https://nightwatchjs.org/api/expect`)
}
if (prop === 'deferred' || isComponent) {
if ((property === 'deferred') || isComponent) {
return;
}
throw new Error(`Unknown property: "${prop}". Please consult docs at: http://nightwatchjs.org/api.`)
if (property === 'then' || property === 'catch') {
return target[property].bind(target); // Method Promise.prototype.then called on incompatible receiver [object Object]
}
return Reflect.get(target, property);
}

@@ -65,0 +69,0 @@ });

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "0.5.1",
"version": "0.5.2",
"repository": {

@@ -9,0 +9,0 @@ "type": "git",

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