Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uuid-v4.js

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uuid-v4.js - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

Makefile

2

package.json
{
"name": "uuid-v4.js",
"description": "random uuid (rfc-4122 v4) generator",
"version": "1.0.1",
"version": "1.0.2",
"keywords": ["ender", "uuid"],

@@ -6,0 +6,0 @@ "homepage": "https://github.com/makeable/uuid-v4.js",

@@ -36,2 +36,7 @@ /*

var dec2hex = [];
for (var i=0; i<=15; i++) {
dec2hex[i] = i.toString(16);
}
var UUID = function() {

@@ -45,5 +50,5 @@ var uuid = '';

} else if (i===20) {
uuid += (Math.random()*4|0 + 8).toString(16);
uuid += dec2hex[(Math.random()*4|0 + 8)];
} else {
uuid += (Math.random()*15|0).toString(16);
uuid += dec2hex[(Math.random()*15|0)];
}

@@ -50,0 +55,0 @@ }

@@ -1,1 +0,1 @@

(function(){var b=function(){for(var b="",a=1;a<=36;a++)b+=a===9||a===14||a===19||a===24?"-":a===15?4:a===20?(Math.random()*4|8).toString(16):(Math.random()*15|0).toString(16);return b};typeof exports!=="undefined"?module.exports=b:this.UUID=b})(this);
(function(){var a=[];for(var b=0;b<=15;b++)a[b]=b.toString(16);var c=function(){var b="";for(var c=1;c<=36;c++)c===9||c===14||c===19||c===24?b+="-":c===15?b+=4:c===20?b+=a[Math.random()*4|8]:b+=a[Math.random()*15|0];return b};typeof exports!="undefined"?module.exports=c:this.UUID=c})(this);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc