restful-goose
Advanced tools
Comparing version 1.3.8-b to 1.3.8-c
@@ -55,3 +55,3 @@ var crypto = require('crypto'); | ||
obj.title = 'Invalid Attribute'; | ||
obj.source = '/data/attributes/' + _.kebabCase(error.path).toLowerCase(); | ||
obj.source = { pointer: '/data/attributes/' + _.kebabCase(error.path).toLowerCase() }; | ||
} else if (error.name === 'MongoError' && error.code === 11000) { | ||
@@ -63,3 +63,3 @@ var errorPath = extractPathFromErrorMessage(error.message); | ||
obj.detail = 'That value ' + errorValue + ' is already in use. Please use another.'; | ||
obj.source = '/data/attributes/' + _.kebabCase(errorPath).toLowerCase(); | ||
obj.source = { pointer: '/data/attributes/' + _.kebabCase(errorPath).toLowerCase() }; | ||
} else { | ||
@@ -69,3 +69,2 @@ obj.status = res.status; | ||
obj.detail = error.name; | ||
obj.source = error.detail; | ||
} | ||
@@ -72,0 +71,0 @@ |
{ | ||
"name": "restful-goose", | ||
"version": "1.3.8b", | ||
"version": "1.3.8c", | ||
"description": "Yet another RESTful microservice generator for Mongoose with an emphasis on flexibility", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
69592
1751