block-sequence
Advanced tools
Comparing version 1.1.0 to 1.1.1
# Change Log | ||
## [1.1.1] | ||
### Changed | ||
- Fixed tests broken by mocha 5.0.2 | ||
## [1.1.0] | ||
@@ -4,0 +8,0 @@ ### Changed |
{ | ||
"name": "block-sequence", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A sequential id generator, which grabs blocks of ids rather than just one at a time", | ||
@@ -10,4 +10,5 @@ "main": "index.js", | ||
"istanbul": "istanbul cover --report html --report lcov _mocha", | ||
"codeclimate": "codeclimate-test-reporter < coverage/lcov.info", | ||
"prepush": "npm run lint && npm test" | ||
"codeclimate": "(test -e .codeclimate && npm run istanbul && source .codeclimate) || echo skipping codeclimate", | ||
"precommit": "npm run lint && npm test", | ||
"prepush": "npm run codeclimate" | ||
}, | ||
@@ -26,3 +27,3 @@ "keywords": [ | ||
"dot": "^1.1.2", | ||
"lodash": "^4.17.4" | ||
"lodash": "^4.17.10" | ||
}, | ||
@@ -32,3 +33,3 @@ "devDependencies": { | ||
"codeclimate-test-reporter": "^0.5.0", | ||
"eslint": "^4.11.0", | ||
"eslint": "^4.19.1", | ||
"eslint-config-imperative": "^2.0.1", | ||
@@ -38,3 +39,3 @@ "eslint-plugin-imperative": "^2.0.0", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^4.0.1" | ||
"mocha": "^5.1.1" | ||
}, | ||
@@ -41,0 +42,0 @@ "directories": { |
@@ -23,5 +23,9 @@ var bsr = require('block-sequence-reference') | ||
it('should require a driver', function(done) { | ||
new BlockArray({}).once('error', function(err) { | ||
var count = 0 | ||
new BlockArray({}).on('error', function(err) { | ||
assert.equal(err.message, 'driver is required') | ||
done() | ||
count++ | ||
assert.ok(count <= 2) | ||
if (count === 2) done() | ||
}) | ||
@@ -31,5 +35,8 @@ }) | ||
it('should require a sequence name', function(done) { | ||
new BlockArray({ block: { driver: driver } }).once('error', function(err) { | ||
var count = 0 | ||
new BlockArray({ block: { driver: driver } }).on('error', function(err) { | ||
assert.equal(err.message, 'sequence name is required') | ||
done() | ||
count++ | ||
assert.ok(count <= 2) | ||
if (count === 2) done() | ||
}) | ||
@@ -144,2 +151,2 @@ }) | ||
}) | ||
}) |
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
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
23859
451
0
Updatedlodash@^4.17.10