mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
use uuid module for uuids
This commit is contained in:
@@ -1,9 +1 @@
|
|||||||
// TODO use node-uuid module
|
module.exports = require('uuid').v4;
|
||||||
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);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|||||||
@@ -61,6 +61,7 @@
|
|||||||
"morgan": "^1.7.0",
|
"morgan": "^1.7.0",
|
||||||
"nconf": "~0.8.2",
|
"nconf": "~0.8.2",
|
||||||
"newrelic": "~1.26.1",
|
"newrelic": "~1.26.1",
|
||||||
|
"uuid": "^2.0.1",
|
||||||
"nib": "~1.0.1",
|
"nib": "~1.0.1",
|
||||||
"nodemailer": "^1.9.0",
|
"nodemailer": "^1.9.0",
|
||||||
"pageres": "^4.1.1",
|
"pageres": "^4.1.1",
|
||||||
@@ -142,7 +143,6 @@
|
|||||||
"sinon": "^1.17.2",
|
"sinon": "^1.17.2",
|
||||||
"sinon-chai": "^2.8.0",
|
"sinon-chai": "^2.8.0",
|
||||||
"superagent-defaults": "^0.1.13",
|
"superagent-defaults": "^0.1.13",
|
||||||
"uuid": "^2.0.1",
|
|
||||||
"vinyl-source-stream": "^1.0.0",
|
"vinyl-source-stream": "^1.0.0",
|
||||||
"vinyl-transform": "^1.0.0"
|
"vinyl-transform": "^1.0.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user