mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-21 13:18:53 +00:00
use uuid module for uuids
This commit is contained in:
parent
590e185ecd
commit
a0e63c0eb2
2 changed files with 2 additions and 10 deletions
|
|
@ -1,9 +1 @@
|
|||
// TODO use node-uuid module
|
||||
module.exports = function() {
|
||||
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
|
||||
var r, v;
|
||||
r = Math.random() * 16 | 0;
|
||||
v = (c === "x" ? r : r & 0x3 | 0x8);
|
||||
return v.toString(16);
|
||||
});
|
||||
};
|
||||
module.exports = require('uuid').v4;
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@
|
|||
"morgan": "^1.7.0",
|
||||
"nconf": "~0.8.2",
|
||||
"newrelic": "~1.26.1",
|
||||
"uuid": "^2.0.1",
|
||||
"nib": "~1.0.1",
|
||||
"nodemailer": "^1.9.0",
|
||||
"pageres": "^4.1.1",
|
||||
|
|
@ -142,7 +143,6 @@
|
|||
"sinon": "^1.17.2",
|
||||
"sinon-chai": "^2.8.0",
|
||||
"superagent-defaults": "^0.1.13",
|
||||
"uuid": "^2.0.1",
|
||||
"vinyl-source-stream": "^1.0.0",
|
||||
"vinyl-transform": "^1.0.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue