Socket
Socket
Sign inDemoInstall

cosa

Package Overview
Dependencies
Maintainers
3
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosa - npm Package Compare versions

Comparing version 4.0.4 to 5.0.0

4

lib/utils.js

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

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