Comparing version 4.0.4 to 5.0.0
@@ -84,3 +84,3 @@ const joi = require('@hapi/joi'); | ||
if (!Array.isArray(propertyDef.valid)) { | ||
propertyDef.valid = [ propertyDef.valid ]; | ||
propertyDef.valid = [ propertyDef.valid ]; | ||
} | ||
@@ -91,3 +91,3 @@ schema = schema.valid(...propertyDef.valid); | ||
if (!Array.isArray(propertyDef.invalid)) { | ||
propertyDef.invalid = [ propertyDef.invalid ]; | ||
propertyDef.invalid = [ propertyDef.invalid ]; | ||
} | ||
@@ -94,0 +94,0 @@ schema = schema.invalid(...propertyDef.invalid); |
{ | ||
"name": "cosa", | ||
"version": "4.0.4", | ||
"version": "5.0.0", | ||
"description": "Cosa Models for MongoDB", | ||
"main": "lib/index.js", | ||
"engines": { | ||
"node": ">=10", | ||
"node": ">=12", | ||
"yarn": ">=1.2.1" | ||
@@ -37,5 +37,5 @@ }, | ||
"dependencies": { | ||
"bson": "~1.1.4", | ||
"bson": "~1.1.5", | ||
"clone": "^2.1.2", | ||
"debug": "^4.1.1", | ||
"debug": "^4.2.0", | ||
"defaults": "^1.0.3", | ||
@@ -45,17 +45,17 @@ "error": "^7.0.2", | ||
"@hapi/joi": "^17.1.1", | ||
"mongodb": "~3.6.0", | ||
"mongodb": "~3.6.2", | ||
"mongodb-extended-json": "~1.11.0", | ||
"object-assign": "^4.1.1", | ||
"object-path": "^0.11.4", | ||
"omnibelt": "^1.3.3" | ||
"object-path": "^0.11.5", | ||
"omnibelt": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"@losant/eslint-config-losant": "^1.3.11", | ||
"husky": "^4.2.5", | ||
"lint-staged": "^10.2.10", | ||
"@losant/eslint-config-losant": "^1.4.0", | ||
"husky": "^4.3.0", | ||
"lint-staged": "^10.5.1", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-datetime": "^1.6.0", | ||
"documentation": "^12.3.0", | ||
"mocha": "^7.2.0", | ||
"chai-datetime": "^1.7.0", | ||
"documentation": "^13.1.0", | ||
"mocha": "^8.2.1", | ||
"string-template": "^1.0.0" | ||
@@ -62,0 +62,0 @@ }, |
# Cosa | ||
[![Build Status](https://travis-ci.org/Losant/cosa.svg?branch=master)](https://travis-ci.org/Losant/cosa) [![npm version](https://badge.fury.io/js/cosa.svg)](https://badge.fury.io/js/cosa) | ||
[![Build Status](https://travis-ci.com/Losant/cosa.svg?branch=master)](https://travis-ci.com/Losant/cosa) [![npm version](https://badge.fury.io/js/cosa.svg)](https://badge.fury.io/js/cosa) | ||
@@ -5,0 +5,0 @@ Simplified object modeling for MongoDB |
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
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
59086
+ Added@rjhilgefort/export-dir@2.0.0(transitive)
+ Addedomnibelt@2.1.0(transitive)
- Removed@rjhilgefort/export-dir@1.1.4(transitive)
- Removedomnibelt@1.3.3(transitive)
Updatedbson@~1.1.5
Updateddebug@^4.2.0
Updatedmongodb@~3.6.2
Updatedobject-path@^0.11.5
Updatedomnibelt@^2.0.1