lucis-api-query
Advanced tools
Comparing version 0.6.4 to 0.6.5
@@ -1,2 +0,2 @@ | ||
const jsonpatch = require('fast-json-patch'); | ||
const jsonpatch = require('json-patch-mongoose'); | ||
@@ -252,3 +252,3 @@ function pluginMongoose (schema) { | ||
} | ||
jsonpatch.applyPatch(entidade, patches); | ||
jsonpatch.apply(entidade, patches); | ||
const validacao = entidade.validateSync(); | ||
@@ -264,3 +264,3 @@ | ||
} | ||
return callback(null, entidade) | ||
return callback(null, entidade); | ||
}); | ||
@@ -267,0 +267,0 @@ }); |
{ | ||
"name": "lucis-api-query", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "Adaptação do mongoose-api-query para necessidades mais comuns", | ||
@@ -12,4 +12,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"fast-json-patch": "^2.0.6" | ||
"json-patch-mongoose": "^0.5.0" | ||
} | ||
} |
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
15315
+ Addedjson-patch-mongoose@^0.5.0
+ Addedjson-patch-mongoose@0.5.0(transitive)
- Removedfast-json-patch@^2.0.6
- Removedfast-deep-equal@2.0.1(transitive)
- Removedfast-json-patch@2.2.1(transitive)