mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
use uuid module for uuids
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user