short-uuid
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -5,2 +5,7 @@ # Change Log | ||
## [4.0.3] - 2020.-9-07 | ||
### Changed | ||
- Fixed default generate length inconsistency identified by [thadeucity](https://github.com/thadeucity) | ||
- Added additional test. | ||
## [4.0.2] - 2020-09-07 | ||
@@ -7,0 +12,0 @@ ### Changed |
@@ -117,3 +117,3 @@ /** | ||
} | ||
return shortenUUID(uuidV4(), toFlickr); | ||
return toFlickr(); | ||
}; | ||
@@ -120,0 +120,0 @@ |
{ | ||
"name": "short-uuid", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Create and translate standard UUIDs with shorter formats.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,3 +12,3 @@ # short-uuid | ||
## v4.0.2 | ||
## v4.0.3 | ||
@@ -15,0 +15,0 @@ ### Major Changes in 4.0.0 |
@@ -253,1 +253,14 @@ /** | ||
}); | ||
test('quantity tests', (t) => { | ||
t.plan(1); | ||
let underLength = 0; | ||
for (let i = 0; i < 10000; i += 1) { | ||
const defaultGen = short.generate(); | ||
if (defaultGen.length !== 22) { | ||
underLength += 1; | ||
} | ||
} | ||
t.equal(underLength, 0, 'ensure default is padded to'); | ||
}); |
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
54168
346