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

mongolass

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongolass - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

5

changelog.md

@@ -0,1 +1,6 @@

## 4.2.1/2018-05-14
- update deps
- use AJS Types
## 4.2.0/2018-04-13

@@ -2,0 +7,0 @@

4

lib/index.js

@@ -9,3 +9,3 @@ const _ = require('lodash')

const plugins = require('./plugins')
const Types = require('./Types')
const AJS = require('another-json-schema')

@@ -121,2 +121,2 @@ const DEFAULT_MONGODB_URL = 'mongodb://localhost:27017/test'

module.exports.Model = Model
module.exports.Types = Types
module.exports.Types = AJS.Types
const _ = require('lodash')
const Schema = require('another-json-schema')
const Types = require('./Types')
const AJS = require('another-json-schema')
const Types = AJS.Types
exports.Schema = class extends Schema {
exports.Schema = class extends AJS {
constructor (name, schema) {

@@ -144,3 +144,3 @@ if (!name || !_.isString(name)) {

function formatCreate (doc, schema, opts) {
if (schema instanceof Schema) {
if (schema instanceof AJS) {
const result = schema.validate(doc, opts)

@@ -147,0 +147,0 @@ if (!result.valid) {

{
"name": "mongolass",
"version": "4.2.0",
"version": "4.2.1",
"description": "Elegant MongoDB driver for Node.js.",

@@ -43,21 +43,21 @@ "main": "lib/index.js",

"dependencies": {
"another-json-schema": "^3.5.0",
"another-json-schema": "^3.6.0",
"debug": "3.1.0",
"inflected": "2.0.3",
"lodash": "4.17.4",
"mongodb": "~3.0.1",
"inflected": "2.0.4",
"lodash": "4.17.10",
"mongodb": "~3.1.0-beta4",
"mongolass-plugin-populate": "*",
"muri": "1.3.0",
"validator": "9.2.0"
"validator": "10.2.0"
},
"devDependencies": {
"co-mocha": "^1.2.1",
"eslint": "4.15.0",
"eslint-config-standard": "11.0.0-beta.0",
"eslint-plugin-import": "2.8.0",
"eslint-plugin-node": "5.2.1",
"eslint-plugin-promise": "3.6.0",
"eslint-plugin-standard": "3.0.1",
"co-mocha": "^1.2.2",
"eslint": "4.19.1",
"eslint-config-standard": "11.0.0",
"eslint-plugin-import": "2.11.0",
"eslint-plugin-node": "6.0.1",
"eslint-plugin-promise": "3.7.0",
"eslint-plugin-standard": "3.1.0",
"istanbul": "1.1.0-alpha.1",
"mocha": "^4.1.0"
"mocha": "^5.1.1"
},

@@ -64,0 +64,0 @@ "repository": {

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