simpl-schema
Advanced tools
Comparing version 1.7.2 to 1.7.3
@@ -41,3 +41,3 @@ "use strict"; | ||
// Is it an object? | ||
if (keyValue === Object(keyValue) && !(keyValue instanceof Date)) return; | ||
if (Object.prototype.toString.call(keyValue) === '[object Object]') return; | ||
return { | ||
@@ -44,0 +44,0 @@ type: _SimpleSchema.SimpleSchema.ErrorTypes.EXPECTED_TYPE, |
{ | ||
"name": "simpl-schema", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "A schema validation package that supports direct validation of MongoDB update modifier objects.", | ||
@@ -9,8 +9,9 @@ "author": "Eric Dobbertin <aldeed@gmail.com>", | ||
"type": "git", | ||
"url": "https://github.com/aldeed/node-simple-schema.git" | ||
"url": "https://github.com/aldeed/simpl-schema.git", | ||
"directory": "package" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/aldeed/node-simple-schema/issues" | ||
"url": "https://github.com/aldeed/simpl-schema/issues" | ||
}, | ||
"homepage": "https://github.com/aldeed/node-simple-schema", | ||
"homepage": "https://github.com/aldeed/simpl-schema", | ||
"files": [ | ||
@@ -28,3 +29,3 @@ "dist", | ||
"lintAndTest": "npm run lint && npm test", | ||
"prepublishOnly": "npm run lintAndTest && npm run copyFiles && npm run build", | ||
"prepublishOnly": "npm run copyFiles && npm run build", | ||
"test": "mocha --require @babel/register --recursive \"lib/**/*.tests.js\"", | ||
@@ -55,3 +56,4 @@ "test:file": "mocha --require @babel/register --watch", | ||
"expect": "^1.20.1", | ||
"mocha": "^7.1.1" | ||
"mocha": "^7.1.1", | ||
"semantic-release": "^17.0.7" | ||
}, | ||
@@ -108,3 +110,12 @@ "babel": { | ||
} | ||
}, | ||
"release": { | ||
"branches": [ | ||
"master" | ||
], | ||
"tagFormat": "${version}" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
# SimpleSchema (simpl-schema NPM package) | ||
[![Backers on Open Collective](https://opencollective.com/simple-schema-js/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/simple-schema-js/sponsors/badge.svg)](#sponsors) [![CircleCI](https://circleci.com/gh/aldeed/simple-schema-js/tree/master.svg?style=svg)](https://circleci.com/gh/aldeed/simple-schema-js/tree/master) | ||
[![Backers on Open Collective](https://opencollective.com/simple-schema-js/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/simple-schema-js/sponsors/badge.svg)](#sponsors) [![Lint, Test, and (Maybe) Publish](https://github.com/aldeed/simpl-schema/workflows/Lint,%20Test,%20and%20(Maybe)%20Publish/badge.svg?event=push)](https://github.com/aldeed/simpl-schema/actions?query=workflow%3A%22Lint%2C+Test%2C+and+%28Maybe%29+Publish%22) | ||
@@ -5,0 +5,0 @@ SimpleSchema validates JavaScript objects to ensure they match a schema. It can also clean the objects to automatically convert types, remove unsupported properties, and add automatic values such that the object is then more likely to pass validation. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
197370
17
1