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

schema-typed

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schema-typed - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# 1.2.2
> Aug 30, 2019
- **Bugfix**: Fix an issue where addRule is not called
# 1.2.0

@@ -2,0 +8,0 @@

4

lib/Type.js

@@ -40,3 +40,3 @@ 'use strict';

return { hasError: true, errorMessage: errorMessage };
} else if ((typeof checkResult === 'undefined' ? 'undefined' : _typeof(checkResult)) === 'object') {
} else if ((typeof checkResult === 'undefined' ? 'undefined' : _typeof(checkResult)) === 'object' && checkResult.hasError) {
return checkResult;

@@ -55,3 +55,3 @@ }

return { hasError: true, errorMessage: errorMessage };
} else if ((typeof checkResultAsync === 'undefined' ? 'undefined' : _typeof(checkResultAsync)) === 'object') {
} else if ((typeof checkResult === 'undefined' ? 'undefined' : _typeof(checkResult)) === 'object' && checkResult.hasError) {
return checkResult;

@@ -58,0 +58,0 @@ }

{
"name": "schema-typed",
"version": "1.2.1",
"version": "1.2.2",
"description": "Schema for data modeling & validation",

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

@@ -27,3 +27,3 @@ function isEmpty(value) {

return { hasError: true, errorMessage };
} else if (typeof checkResult === 'object') {
} else if (typeof checkResult === 'object' && checkResult.hasError) {
return checkResult;

@@ -42,3 +42,3 @@ }

return { hasError: true, errorMessage };
} else if (typeof checkResultAsync === 'object') {
} else if (typeof checkResult === 'object' && checkResult.hasError) {
return checkResult;

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