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

lazy-assert

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lazy-assert - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

2

package.json
{
"name": "lazy-assert",
"version": "0.2.5",
"version": "0.2.6",
"description": "An way of doing assertion for lazy people ...",

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

@@ -761,3 +761,3 @@ var utils = require('./utils');

if (target[VALIDATE_KEY]) {
return [null, null, ['=' + target[VALIDATE_KEY]]];
return [null, null, []];
}

@@ -775,2 +775,3 @@ else {

delete target[VALIDATE_KEY];
return validator;

@@ -781,3 +782,3 @@ }

if (target[VALIDATE_KEY]) {
return [null, null, ['=' + target[VALIDATE_KEY]]];
return [null, null, []];
}

@@ -801,2 +802,5 @@ else {

});
delete target[VALIDATE_KEY];
return [validator, null, ['object']];

@@ -895,2 +899,4 @@ }

/**
* @deprecated this would not be needed as the key will always removed on the fly
*
* Clean all #@~VALIDATE_KEY flag from (sub) objects & (sub) arrays

@@ -1008,2 +1014,5 @@ *

}
else if (result.type === 'ref-check') {
result.finalMessage = result.message + ' source: ' + result.sourcePath + ' target: ' + result.targetPath;
}
else {

@@ -1010,0 +1019,0 @@ result.finalMessage = result.message;

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