block-sequence-mongo
Advanced tools
Comparing version 1.1.0 to 1.2.0
# Change Log | ||
## [1.2.0] | ||
## Changed | ||
- Updated dependencies | ||
- Add the ability to specifiy the mongo client | ||
## [1.1.0] | ||
@@ -4,0 +9,0 @@ ### Changed |
var debug = require('debug')('block-sequence:mongo') | ||
var MongoClient = require('mongodb').MongoClient | ||
var _ = require('lodash') | ||
@@ -13,2 +12,3 @@ var async = require('async') | ||
var MongoClient = config.client || require('mongodb').MongoClient | ||
var db | ||
@@ -15,0 +15,0 @@ var collection |
{ | ||
"name": "block-sequence-mongo", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A mongo implementation of block-sequence", | ||
@@ -25,7 +25,7 @@ "main": "index.js", | ||
"block-sequence-compliance-tests": "^2.0.1", | ||
"codeclimate-test-reporter": "^0.4.0", | ||
"eslint": "^3.12.2", | ||
"eslint-config-imperative": "^1.0.0", | ||
"eslint-plugin-imperative": "^1.0.0", | ||
"husky": "^0.13.1", | ||
"codeclimate-test-reporter": "^0.5.0", | ||
"eslint": "^4.11.0", | ||
"eslint-config-imperative": "^2.0.1", | ||
"eslint-plugin-imperative": "^2.0.0", | ||
"husky": "^0.14.3", | ||
"istanbul": "^0.4.5", | ||
@@ -35,7 +35,7 @@ "tap-spec": "^4.1.1" | ||
"dependencies": { | ||
"async": "^2.1.4", | ||
"big-integer": "^1.6.17", | ||
"debug": "^2.6.0", | ||
"async": "^2.6.0", | ||
"big-integer": "^1.6.25", | ||
"debug": "^3.1.0", | ||
"lodash": "^4.17.4", | ||
"mongodb": "^2.1.18", | ||
"mongodb": "^2.2.33", | ||
"safe-json-parse": "^4.0.0" | ||
@@ -42,0 +42,0 @@ }, |
@@ -17,5 +17,6 @@ # block-sequence-mongo | ||
const init = require('block-sequence-mongo') | ||
const MongoClient = require('mongodb').MongoClient | ||
// Initialise the Mongo Block Sequence Driver | ||
init({ url: 'mongodb://localhost/sequences', options: { } }, (err, driver) => { | ||
init({ url: 'mongodb://localhost/sequences', client: MongoClient, options: { } }, (err, driver) => { | ||
if (err) throw err | ||
@@ -22,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
8695
41
11
1
+ Addeddebug@3.2.7(transitive)
+ Addedms@2.1.3(transitive)
- Removeddebug@2.6.9(transitive)
- Removedms@2.0.0(transitive)
Updatedasync@^2.6.0
Updatedbig-integer@^1.6.25
Updateddebug@^3.1.0
Updatedmongodb@^2.2.33