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

moltyjs

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moltyjs - npm Package Compare versions

Comparing version 0.9.9 to 1.0.0

11

CHANGELOG.md

@@ -20,2 +20,12 @@ ## [Unreleased]

## [1.0.0] - 2018-07-02
### Added
- Updated mongodb native release [https://www.npmjs.com/package/mongodb](3.1.0)
### Changed
- Conection handler to make it compatible with new parser from MongoDB Native Driver
## [0.9.9] - 2018-07-02

@@ -495,2 +505,3 @@

[1.0.0]: https://github.com/Yonirt/moltyjs/compare/v0.9.9...v1.0.0
[0.9.9]: https://github.com/Yonirt/moltyjs/compare/v0.9.8...v0.9.9

@@ -497,0 +508,0 @@ [0.9.8]: https://github.com/Yonirt/moltyjs/compare/v0.9.7...v0.9.8

18

lib/clients/connectionManager.js

@@ -34,6 +34,10 @@ 'use strict';

const connectionOptions = Object.assign({}, defaultOptions, options.connection);
const poolOptions = Object.assign({}, defaultOptions, {
uri: options.uri,
engine: options.engine
});
const uri = connectionOptions.uri;
const uri = options.uri;
const i = uri.indexOf('://');

@@ -58,6 +62,8 @@ if (i < 0) {

create: () => new Promise((resolve, reject) => {
MongoDBClient.connect(uri, {
//console.log(uri);
MongoDBClient.connect(uri, _extends({
poolSize: 1,
native_parser: true
}).then(client => {
useNewUrlParser: true
}, options.connection), (err, client) => {
if (err) reject(err);
resolve(client);

@@ -71,3 +77,3 @@ });

})
}, connectionOptions);
}, poolOptions);
}

@@ -74,0 +80,0 @@

@@ -16,3 +16,2 @@ 'use strict';

this.connection = null;
this;

@@ -19,0 +18,0 @@ // Binding methods

{
"name": "moltyjs",
"version": "0.9.9",
"version": "1.0.0",
"description": "A tiny ODM for MongoDB with multy tenancy support.",

@@ -55,4 +55,4 @@ "main": "lib/index.js",

"mongo-oplog": "^2.1.0",
"mongodb": "^3.0.0-rc0"
"mongodb": "^3.1.0"
}
}
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