Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongolass

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongolass - npm Package Compare versions

Comparing version 3.1.4 to 3.1.5

4

changelog.md

@@ -0,1 +1,5 @@

## 3.1.5/2017-08-29
- fix #27
## 3.1.4/2017-08-20

@@ -2,0 +6,0 @@

9

lib/query.js
'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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc