Comparing version 3.1.4 to 3.1.5
@@ -0,1 +1,5 @@ | ||
## 3.1.5/2017-08-29 | ||
- fix #27 | ||
## 3.1.4/2017-08-20 | ||
@@ -2,0 +6,0 @@ |
'use strict'; | ||
const os = require('os'); | ||
const _ = require('lodash'); | ||
@@ -197,10 +196,10 @@ const co = require('co'); | ||
function addMongoErrorDetail(e) { | ||
const thisStackArr = this.stack.split(os.EOL); | ||
const errorStackArr = e.stack.split(os.EOL); | ||
const thisStackArr = this.stack.split('\n'); | ||
const errorStackArr = e.stack.split('\n'); | ||
thisStackArr[0] = e.toString(); | ||
// like: at Query.afterFind (...) | ||
if (errorStackArr[1].match(/^\s+at Query\./)) { | ||
if (errorStackArr[1] && errorStackArr[1].match(/^\s+at Query\./)) { | ||
thisStackArr.splice(1, 0, errorStackArr[1]); | ||
} | ||
e.stack = thisStackArr.join(os.EOL); | ||
e.stack = thisStackArr.join('\n'); | ||
// only for mongoError | ||
@@ -207,0 +206,0 @@ if (!e.model) { |
{ | ||
"name": "mongolass", | ||
"version": "3.1.4", | ||
"version": "3.1.5", | ||
"description": "Elegant MongoDB driver for Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
81943
2044