sails-mongo
Advanced tools
Comparing version 0.12.0 to 0.12.1
# 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 @@ } |
@@ -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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
81540
24
2167
4
+ Addedmongodb@2.1.6(transitive)
+ Addedmongodb-core@1.3.1(transitive)
+ Addedrequire_optional@1.0.1(transitive)
+ Addedresolve-from@2.0.0(transitive)
+ Addedsemver@5.7.2(transitive)
- Removedkerberos@0.0.24(transitive)
- Removedmongodb@2.1.3(transitive)
- Removedmongodb-core@1.2.31(transitive)
- Removednan@2.10.0(transitive)
Updatedmongodb@2.1.6
Updatedwaterline-errors@~0.10.1