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

block-sequence-mongo

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

block-sequence-mongo - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

5

CHANGELOG.md
# Change Log
## [1.2.0]
## Changed
- Updated dependencies
- Add the ability to specifiy the mongo client
## [1.1.0]

@@ -4,0 +9,0 @@ ### Changed

2

index.js
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

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