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

uuidv4

Package Overview
Dependencies
Maintainers
4
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uuidv4 - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

2

dist/uuidv4.js

@@ -14,3 +14,3 @@ 'use strict';

if (!value) {
throw new Error('Value is missing.');
return false;
}

@@ -17,0 +17,0 @@

{
"name": "uuidv4",
"version": "1.0.1",
"version": "2.0.0",
"description": "uuid creates UUIDs.",

@@ -17,2 +17,6 @@ "contributors": [

"email": "jan-hendrik.grundhoefer@thenativeweb.io"
},
{
"name": "Sven Eppler",
"email": "sven.eppler@sodgeit.de"
}

@@ -23,7 +27,7 @@ ],

"sha-1": "0.1.1",
"uuid": "3.2.1"
"uuid": "3.3.2"
},
"devDependencies": {
"assertthat": "1.0.0",
"roboter": "1.0.4"
"roboter": "1.0.7"
},

@@ -30,0 +34,0 @@ "repository": {

@@ -14,3 +14,3 @@ 'use strict';

if (!value) {
throw new Error('Value is missing.');
return false;
}

@@ -17,0 +17,0 @@

@@ -33,6 +33,4 @@ 'use strict';

suite('is', () => {
test('throws an error if value is missing.', async () => {
assert.that(() => {
uuidv4.is();
}).is.throwing('Value is missing.');
test('returns false if value is missing.', async () => {
assert.that(uuidv4.is()).is.false();
});

@@ -39,0 +37,0 @@

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