Socket
Socket
Sign inDemoInstall

rttc

Package Overview
Dependencies
Maintainers
4
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rttc - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

lib/helpers/validate-recursive.js

@@ -205,7 +205,7 @@ /**

}
if (coercedValue.length === 0) {
return [];
}
var arrayItemTpl = expected[0];
return [_validateRecursive(arrayItemTpl, coercedValue[0], errors, ensureSerializable)];
return _.reduce(coercedValue, function (memo, coercedVal){
memo.push(_validateRecursive(arrayItemTpl, coercedVal, errors, ensureSerializable));
return memo;
}, []);
}

@@ -212,0 +212,0 @@ if (isExpectingDictionary) {

{
"name": "rttc",
"version": "1.0.0",
"version": "1.0.1",
"description": "Runtime type-checking for JavaScript.",

@@ -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