Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "node-hilo", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/LeanKit-Labs/node-hilo", | ||
@@ -29,5 +29,3 @@ "description": "NHibernate-style hi/lo ID generator for node.js & SQL Server", | ||
"scripts": { | ||
"test": "gulp test", | ||
"coverage": "gulp coverage", | ||
"show-coverage": "open ./coverage/lcov-report/index.html" | ||
"test": "gulp test" | ||
}, | ||
@@ -41,2 +39,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"biggulp": "0.0.4", | ||
"chai": "^2.0.0", | ||
@@ -46,12 +45,7 @@ "chai-as-promised": "^5.0.0", | ||
"gulp-changed": "^1.2.1", | ||
"gulp-istanbul": "^0.9.0", | ||
"gulp-jscs": "^1.6.0", | ||
"gulp-jshint": "^1.10.0", | ||
"gulp-mocha": "^2.0.1", | ||
"gulp-spawn-mocha": "^0.5.2", | ||
"gulp-util": "^3.0.4", | ||
"istanbul": "^0.3.2", | ||
"jshint-stylish": "^1.0.1", | ||
"mocha": "^2.1.0", | ||
"open": "0.0.5", | ||
"gulp-jshint": "^1.11.0", | ||
"gulp-util": "~3.0.5", | ||
"jshint": "^2.7.0", | ||
"jshint-stylish": "^2.0.0", | ||
"processhost": "^0.2.1", | ||
@@ -61,3 +55,5 @@ "proxyquire": "^1.4.0", | ||
"sinon": "~1.11.0", | ||
"sinon-chai": "^2.7.0" | ||
"sinon-chai": "^2.7.0", | ||
"stylish": "^0.6.0", | ||
"stylus": "^0.51.1" | ||
}, | ||
@@ -64,0 +60,0 @@ "engines": { |
@@ -79,9 +79,9 @@ # node-hilo | ||
* `gulp test-unit` to run unit tests | ||
* `gulp test-int` to run integration tests (warning, this take much longer than unit tests!) | ||
* `gulp test` to run all tests | ||
* `gulp coverage` to run instanbul in the console | ||
* `npm run coverage` to open the web istanbul report | ||
* `gulp` to run all tests and format/lint the code | ||
* `gulp test-behavior` to run only behavior tests | ||
* `gulp test-int` to run only integration tests | ||
* `gulp coverage` to run tests with instanbul report in the console | ||
* `gulp show-coverage` to run tests and show the web istanbul report | ||
* `gulp format` to run JSCS formatting rules | ||
* `gulp jshint` to lint the code | ||
* `gulp watch` to start a file watcher that re-runs tests with each change. | ||
@@ -30,5 +30,11 @@ var when = require( "when" ); | ||
initialState: "acquiring", | ||
initialState: "uninitialized", | ||
states: { | ||
uninitialized: { | ||
nextId: function() { | ||
this.deferUntilTransition(); | ||
this.transition( "acquiring" ); | ||
} | ||
}, | ||
acquiring: { | ||
@@ -100,3 +106,3 @@ _onEnter: function() { | ||
get: function() { | ||
return hiloFsm.hival.toString(); | ||
return hiloFsm.hival && hiloFsm.hival.toString(); | ||
} | ||
@@ -103,0 +109,0 @@ } |
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
7418
17
5
100