Comparing version 4.2.0 to 4.2.1
@@ -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 @@ |
@@ -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": { |
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
93322
20
2338
+ Added@types/node@22.9.3(transitive)
+ Addedbson@1.1.6(transitive)
+ Addedinflected@2.0.4(transitive)
+ Addedlodash@4.17.10(transitive)
+ Addedmongodb@3.1.13(transitive)
+ Addedmongodb-core@3.1.11(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedvalidator@10.2.0(transitive)
- Removed@types/node@22.10.0(transitive)
- Removedbson@1.0.9(transitive)
- Removedinflected@2.0.3(transitive)
- Removedlodash@4.17.4(transitive)
- Removedmongodb@3.0.11(transitive)
- Removedmongodb-core@3.0.11(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedvalidator@9.2.0(transitive)
Updatedanother-json-schema@^3.6.0
Updatedinflected@2.0.4
Updatedlodash@4.17.10
Updatedmongodb@~3.1.0-beta4
Updatedvalidator@10.2.0