Comparing version
@@ -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 @@ |
6912
-0.22%109
-1.8%+ Added
- Removed
Updated