Comparing version 1.0.1 to 2.0.0
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6912
109
+ Addeduuid@3.3.2(transitive)
- Removeduuid@3.2.1(transitive)
Updateduuid@3.3.2