Socket
Socket
Sign inDemoInstall

schema-typed

Package Overview
Dependencies
0
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.3.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 1.3.1
- Fixed an issue where `isOneOf` was not valid in `StringType` (#18)
# 1.3.0

@@ -2,0 +6,0 @@

2

es/StringType.js

@@ -84,3 +84,3 @@ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }

_Type.prototype.pushRule.call(this, function (v) {
return ~strArr.indexOf(v);
return !!~strArr.indexOf(v);
}, errorMessage);

@@ -87,0 +87,0 @@

@@ -93,3 +93,3 @@ "use strict";

_Type.prototype.pushRule.call(this, function (v) {
return ~strArr.indexOf(v);
return !!~strArr.indexOf(v);
}, errorMessage);

@@ -96,0 +96,0 @@

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc