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.1 to 3.1.2

5

changelog.md

@@ -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 @@

2

lib/query.js

@@ -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)

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