Skip to content

Commit c642996

Browse files
author
Alberto Ricart
committed
[ADDED] version to the nuid library (incrementing from what is found on node-nats, as there's a bug fix).
1 parent 64b2177 commit c642996

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/nuid.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ var crypto = require('crypto');
1616
/**
1717
* Constants
1818
*/
19-
20-
var digits = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
19+
var VERSION = '0.6.8',
20+
digits = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
2121
base = 36,
2222
preLen = 12,
2323
seqLen = 10,
@@ -26,6 +26,8 @@ var digits = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
2626
maxInc = 333,
2727
totalLen = preLen + seqLen;
2828

29+
exports.version = VERSION;
30+
2931
/**
3032
* Create and initialize a nuid.
3133
*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuid",
3-
"version": "0.6.6",
3+
"version": "0.6.8",
44
"description": "NUID - A highly performant unique identifier generator.",
55
"keywords": [
66
"unique",

0 commit comments

Comments
 (0)