Comparing version 2.0.1 to 2.0.2
@@ -6,2 +6,7 @@ Next | ||
2.0.2 / 2018-09-15 | ||
================== | ||
* Fixes a MongoDB connection string issue with Atlas ([#674]( | ||
https://github.com/agenda/agenda/pull/674) | ||
2.0.1 / 2018-08-30 | ||
@@ -8,0 +13,0 @@ ================== |
'use strict'; | ||
const {MongoClient} = require('mongodb'); | ||
const debug = require('debug')('agenda:database'); | ||
const hasMongoProtocol = require('./has-mongo-protocol'); | ||
@@ -23,3 +24,3 @@ /** | ||
const self = this; | ||
if (!url.match(/^mongodb:\/\/.*/)) { | ||
if (!hasMongoProtocol(url)) { | ||
url = 'mongodb://' + url; | ||
@@ -26,0 +27,0 @@ } |
{ | ||
"name": "agenda", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Light weight job scheduler for Node.js", | ||
@@ -9,2 +9,5 @@ "main": "index.js", | ||
], | ||
"engines": { | ||
"node": ">=8.0.0" | ||
}, | ||
"scripts": { | ||
@@ -11,0 +14,0 @@ "test": "npm run lint && npm run mocha", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104069
50
1534