New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.6 to 0.2.7

2

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

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

@@ -95,4 +95,29 @@ var lazy = require('../index');

it('Should process hi complex data 2', function () {
lazy.assertValidate('08-hi-complex-data-2-assert',
require('./_mock/hi-data-2.mock'),
[
"array",
{
"atall": "null",
"atme": "null",
"chatId": "string",
"chatType": "number",
"lastActiveTime": "string",
"lastMessages": [
"array"
],
"lastReadMsgId": "string",
"lastReadMsgSeq": "string",
"lastRecvMsgId": "string",
"lastRecvMsgSeq": "string",
"name": "string",
"subType": "number",
"unreadCount": "number"
}
]
);
lazy.peek('08-hi-complex-data-2', lazy.validators.summarizeTypeValidator(require('./_mock/hi-data-2.mock')), -1);
});
});

@@ -361,2 +361,8 @@ var utils = require('./utils');

if (utils.isArray(target)) {
if (validator.length <= 1) {
return {
result: true
}
}
var itemResult, result;

@@ -363,0 +369,0 @@

Sorry, the diff of this file is not supported yet

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