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

random-uuid-v4

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-uuid-v4 - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "random-uuid-v4",
"version": "0.0.1",
"version": "0.0.2",
"description": "A lightweight version 4 UUID generator.",

@@ -5,0 +5,0 @@ "main": "uuidv4.js",

@@ -11,3 +11,3 @@ /**

module.exports = function() {
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);

@@ -14,0 +14,0 @@ return v.toString(16);

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