Comparing version 3.1.1 to 3.1.2
@@ -0,1 +1,6 @@ | ||
## 3.1.2/2017-08-19 | ||
- add error type | ||
- update another-json-schema@2.1.1 | ||
## 3.1.1/2017-08-19 | ||
@@ -2,0 +7,0 @@ |
@@ -195,3 +195,3 @@ 'use strict'; | ||
const errorStackArr = e.stack.split(os.EOL); | ||
thisStackArr[0] = e.message; | ||
thisStackArr[0] = e.constructor ? `${e.constructor.name || 'Error'}: ${e.message}` : `Error: ${e.message}`; | ||
// like: at Query.afterFind (...) | ||
@@ -198,0 +198,0 @@ if (errorStackArr[1].match(/^\s+at Query\./)) { |
{ | ||
"name": "mongolass", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Elegant MongoDB driver for Node.js.", | ||
@@ -41,3 +41,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"another-json-schema": "2.1.0", | ||
"another-json-schema": "2.1.1", | ||
"co": "4.6.0", | ||
@@ -44,0 +44,0 @@ "debug": "3.0.0", |
@@ -69,3 +69,3 @@ ## Mongolass | ||
/* | ||
{ ($.age: "wrong age") ✖ (type: number) | ||
{ TypeError: ($.age: "wrong age") ✖ (type: number) | ||
at Model.insertOne (/Users/nswbmw/Desktop/test/node_modules/mongolass/lib/query.js:105:16) | ||
@@ -169,3 +169,3 @@ at Object.<anonymous> (/Users/nswbmw/Desktop/test/app.js:23:4) | ||
/* | ||
{ ($.age: "wrong age") ✖ (type: number) | ||
{ TypeError: ($.age: "wrong age") ✖ (type: number) | ||
at Model.insertOne (/Users/nswbmw/Desktop/test/node_modules/mongolass/lib/query.js:105:16) | ||
@@ -172,0 +172,0 @@ at Object.<anonymous> (/Users/nswbmw/Desktop/test/app.js:23:4) |
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
79314
+ Addedanother-json-schema@2.1.1(transitive)
- Removedanother-json-schema@2.1.0(transitive)
Updatedanother-json-schema@2.1.1