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.0.0 to 1.0.1

_config.yml

6

CHANGELOG.md
# Change Log
## [Unreleased]
## [1.0.1]
### Changed
- Fixed race condition which could result in duplicate sequences
## [1.0.0]
### Changed
- General Tidy Up
The format is based on [Keep a Changelog](http://keepachangelog.com/)

9

index.js

@@ -27,2 +27,4 @@ var debug = require('debug')('block-sequence:mongo')

function(err, result) {
// Turns out there's no such thing as an atomic upsert in mongo
if (err && err.code === 11000) return ensure(options, cb)
if (err) return cb(err)

@@ -73,4 +75,7 @@ cb(null, _.chain({})

debug('Ensuring gs_block_sequence collection')
collection = db.collection('gs_block_sequence')
collection.createIndex('gs_block_sequence_name', { name: 1 }, { unique:true, w:1}, cb)
db.collection('gs_block_sequence', function(err, _collection) {
collection = _collection
collection = db.collection('gs_block_sequence')
collection.createIndex({ name: 1 }, { unique: true, w: 1 }, cb)
})
}

@@ -77,0 +82,0 @@

{
"name": "block-sequence-mongo",
"version": "1.0.0",
"version": "1.0.1",
"description": "A mongo implementation of block-sequence",

@@ -24,3 +24,3 @@ "main": "index.js",

"devDependencies": {
"block-sequence-compliance-tests": "^1.1.0",
"block-sequence-compliance-tests": "^1.2.0",
"codeclimate-test-reporter": "^0.4.0",

@@ -27,0 +27,0 @@ "eslint": "^3.12.2",

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