Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "uuid-v4.js", | ||
"description": "random uuid (rfc-4122 v4) generator", | ||
"version": "1.0.2", | ||
"keywords": ["ender", "uuid"], | ||
"version": "1.0.3", | ||
"keywords": ["uuid"], | ||
"homepage": "https://github.com/makeable/uuid-v4.js", | ||
@@ -12,4 +12,3 @@ "authors": ["Matthew Williams <matt@makeable.co.uk>"], | ||
}, | ||
"main": "./uuid-v4.js", | ||
"ender": "./exports/ender.js" | ||
"main": "./uuid-v4.js" | ||
} |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/* | ||
@@ -34,4 +35,4 @@ ====================================================== | ||
(function(){ | ||
(function(scope){ | ||
var dec2hex = []; | ||
@@ -41,3 +42,3 @@ for (var i=0; i<=15; i++) { | ||
} | ||
var UUID = function() { | ||
@@ -53,3 +54,3 @@ var uuid = ''; | ||
} else { | ||
uuid += dec2hex[(Math.random()*15|0)]; | ||
uuid += dec2hex[(Math.random()*16|0)]; | ||
} | ||
@@ -59,9 +60,9 @@ } | ||
}; | ||
if (typeof exports !== 'undefined') { | ||
module.exports = UUID; | ||
} else { | ||
this.UUID = UUID; | ||
scope.UUID = UUID; | ||
} | ||
})(this); | ||
})(this); |
57
4458
5