New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sails-mongo

Package Overview
Dependencies
Maintainers
4
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-mongo - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

docker-compose.yml

4

CHANGELOG.md
# Sails-Mongo Changelog
### 0.12.1
* [ENHANCEMENT] Sets the `reconnectInterval` to the mongo default and adds a `reconnectTries` configuration option. See [#118](https://github.com/balderdashy/sails-mongo/issues/118) for more details. Thanks [@luislobo](https://github.com/luislobo) for the patch!
### 0.12.0

@@ -4,0 +8,0 @@

@@ -69,3 +69,4 @@ /*---------------------------------------------------------------

disableDriverBSONSizeCheck: false,
reconnectInterval: 200,
reconnectTries: 30, // defaults to mongodb recommended settings
reconnectInterval: 1000, // defaults to mongodb recommended settings

@@ -338,3 +339,3 @@

*
* Find all matching documents in a colletion.
* Find all matching documents in a collection.
*

@@ -488,3 +489,9 @@ * @param {String} connectionName

var connectionObject = connections[connectionName];
if (!connectionObject) {
throw new Error('Consistency violation in sails-mongo: Unrecognized datastore (i.e. connection): `'+connectionName+'`.');
}
var collection = connectionObject.collections[collectionIdentity];
if (!collection) {
throw new Error('Consistency violation in sails-mongo: Unrecognized collection: `'+collectionIdentity+'` in datastore (i.e. connection): `'+connectionName+'`.');
}
return collection._getPK();

@@ -491,0 +498,0 @@ }

3

lib/connection.js

@@ -108,3 +108,4 @@

disableDriverBSONSizeCheck: this.config.disableDriverBSONSizeCheck,
reconnectInterval: this.config.reconnectInterval
reconnectInterval: this.config.reconnectInterval,
reconnectTries: this.config.reconnectTries
};

@@ -111,0 +112,0 @@

{
"name": "sails-mongo",
"version": "0.12.0",
"version": "0.12.1",
"description": "Mongo DB adapter for Sails.js",
"main": "./lib/adapter.js",
"scripts": {
"test": "make test"
"test": "make test",
"docker": "docker-compose run adapter bash"
},

@@ -46,11 +47,11 @@ "keywords": [

"lodash": "3.10.1",
"mongodb": "2.1.3",
"mongodb": "2.1.6",
"validator": "4.5.1",
"waterline-cursor": "~0.0.6",
"waterline-errors": "~0.10.0"
"waterline-errors": "~0.10.1"
},
"devDependencies": {
"mocha": "*",
"waterline-adapter-tests": "~0.10.0",
"captains-log": "~0.11.1"
"captains-log": "~0.11.11",
"mocha": "2.4.1",
"waterline-adapter-tests": "~0.11.1"
},

@@ -57,0 +58,0 @@ "waterlineAdapter": {

@@ -70,5 +70,5 @@ /**

config: {
host: 'localhost',
database: 'sails-mongo',
port: 27017,
host: process.env.MONGO_PORT_27017_TCP_ADDR || process.env.WATERLINE_ADAPTER_TESTS_HOST || 'localhost',
database: process.env.WATERLINE_ADAPTER_TESTS_DATABASE || 'sails-mongo',
port: process.env.WATERLINE_ADAPTER_TESTS_PORT || 27017,
schema: true,

@@ -82,7 +82,7 @@ poolSize: 1

interfaces: interfaces,
// The set of adapter features to test against.
// (grabbed these from this adapter's package.json file above)
features: features,
// Mocha options

@@ -93,5 +93,5 @@ // reference: https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically

},
mochaChainableMethods: {},
// Return code != 0 if any test failed

@@ -98,0 +98,0 @@ failOnError: true

module.exports = {
host: 'localhost',
database: 'sails-loadTest',
port: 27017,
host: process.env.MONGO_PORT_27017_TCP_ADDR || process.env.WATERLINE_ADAPTER_TESTS_HOST || 'localhost',
database: process.env.WATERLINE_ADAPTER_TESTS_DATABASE || 'sails-mongo',
port: process.env.WATERLINE_ADAPTER_TESTS_PORT || 27017,
nativeParser: false,
safe: true
};

Sorry, the diff of this file is not supported yet

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