Skip to content

Commit

Permalink
[ADDED] version to the nuid library (incrementing from what is found …
Browse files Browse the repository at this point in the history
…on node-nats, as there's a bug fix).
  • Loading branch information
Alberto Ricart committed Aug 11, 2016
1 parent 64b2177 commit c642996
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/nuid.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ var crypto = require('crypto');
/**
* Constants
*/

var digits = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
var VERSION = '0.6.8',
digits = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
base = 36,
preLen = 12,
seqLen = 10,
Expand All @@ -26,6 +26,8 @@ var digits = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
maxInc = 333,
totalLen = preLen + seqLen;

exports.version = VERSION;

/**
* Create and initialize a nuid.
*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuid",
"version": "0.6.6",
"version": "0.6.8",
"description": "NUID - A highly performant unique identifier generator.",
"keywords": [
"unique",
Expand Down

0 comments on commit c642996

Please sign in to comment.