Comparing version 0.1.2 to 1.0.0
@@ -1,2 +0,4 @@ | ||
## 0.1.x | ||
## 1.0.0 | ||
* Made the hilo table name configurable. | ||
* Updated to biggulp 0.2.0 | ||
@@ -3,0 +5,0 @@ ### 0.1.2 |
138
package.json
{ | ||
"name": "node-hilo", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/LeanKit-Labs/node-hilo", | ||
"description": "NHibernate-style hi/lo ID generator for node.js & SQL Server", | ||
"author": "Jim Cowart", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/LeanKit-Labs/node-hilo.git" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Jim Cowart", | ||
"email": "jim@ifandelse.com", | ||
"url": "http://ifandelse.com" | ||
"name": "node-hilo", | ||
"version": "1.0.0", | ||
"homepage": "https://github.com/LeanKit-Labs/node-hilo", | ||
"description": "NHibernate-style hi/lo ID generator for node.js & SQL Server", | ||
"author": "Jim Cowart", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org" | ||
}, | ||
{ | ||
"name": "Matt Dunlap", | ||
"email": "matt.dunlap@leankit.com", | ||
"url": "https://github.com/prestaul" | ||
} | ||
], | ||
"main": "./src/index.js", | ||
"keywords": [ | ||
"hilo", | ||
"hi-lo", | ||
"hi/lo", | ||
"NHibernate" | ||
], | ||
"scripts": { | ||
"test": "gulp test" | ||
}, | ||
"dependencies": { | ||
"big-integer": "^1.4.4", | ||
"lodash": "3.x", | ||
"machina": "^1.0.0", | ||
"when": "^3.7.3" | ||
}, | ||
"devDependencies": { | ||
"biggulp": "0.0.4", | ||
"chai": "^2.0.0", | ||
"chai-as-promised": "^5.0.0", | ||
"gulp": "^3.8.8", | ||
"gulp-changed": "^1.2.1", | ||
"gulp-jscs": "^1.6.0", | ||
"gulp-jshint": "^1.11.0", | ||
"gulp-util": "~3.0.5", | ||
"jshint": "^2.7.0", | ||
"jshint-stylish": "^2.0.0", | ||
"processhost": "^0.2.1", | ||
"proxyquire": "^1.4.0", | ||
"seriate": "^0.3.6", | ||
"sinon": "~1.11.0", | ||
"sinon-chai": "^2.7.0", | ||
"stylish": "^0.6.0", | ||
"stylus": "^0.51.1" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://opensource.org/licenses/MIT" | ||
} | ||
], | ||
"files": [ | ||
"src", | ||
"LICENSE" | ||
] | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/LeanKit-Labs/node-hilo.git" | ||
}, | ||
"contributors": [{ | ||
"name": "Jim Cowart", | ||
"email": "jim@ifandelse.com", | ||
"url": "http://ifandelse.com" | ||
}, { | ||
"name": "Matt Dunlap", | ||
"email": "matt.dunlap@leankit.com", | ||
"url": "https://github.com/prestaul" | ||
}], | ||
"main": "./src/index.js", | ||
"keywords": [ | ||
"hilo", | ||
"hi-lo", | ||
"hi/lo", | ||
"NHibernate" | ||
], | ||
"scripts": { | ||
"test": "gulp test" | ||
}, | ||
"dependencies": { | ||
"big-integer": "^1.4.4", | ||
"lodash": "3.x", | ||
"machina": "^1.0.0", | ||
"when": "^3.7.3" | ||
}, | ||
"devDependencies": { | ||
"biggulp": "^0.2.0", | ||
"chai": "^2.0.0", | ||
"chai-as-promised": "^5.0.0", | ||
"gulp": "^3.8.8", | ||
"gulp-changed": "^1.2.1", | ||
"gulp-jscs": "^1.6.0", | ||
"gulp-jshint": "^1.11.0", | ||
"gulp-util": "~3.0.5", | ||
"jshint": "^2.7.0", | ||
"jshint-stylish": "^2.0.0", | ||
"processhost": "^0.2.1", | ||
"proxyquire": "^1.4.0", | ||
"seriate": "^0.3.6", | ||
"sinon": "~1.11.0", | ||
"sinon-as-promised": "^4.0.0", | ||
"sinon-chai": "^2.7.0", | ||
"stylish": "^0.6.0", | ||
"stylus": "^0.51.1" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"licenses": [{ | ||
"type": "MIT", | ||
"url": "http://opensource.org/licenses/MIT" | ||
}], | ||
"files": [ | ||
"src", | ||
"LICENSE" | ||
] | ||
} |
@@ -5,2 +5,3 @@ var when = require( "when" ); | ||
var util = require( "util" ); | ||
var _ = require( "lodash" ); | ||
@@ -94,5 +95,11 @@ function HiloGenerationError() { | ||
this.retryDelay = 1; | ||
this.table = config.hilo.table || "dbo.hibernate_unique_key"; | ||
var preparedSql = _.template( seriate.fromFile( "./sql/nexthi.sql" ) )( { | ||
TABLE: this.table | ||
} ); | ||
this.getNextHival = function() { | ||
return seriate.executeTransaction( config.sql, { | ||
preparedSql: seriate.fromFile( "./sql/nexthi.sql" ) | ||
preparedSql: preparedSql | ||
} ).then( function( data ) { | ||
@@ -99,0 +106,0 @@ return data.transaction.commit() |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8688
120
0
0
18