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

short-uuid

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

short-uuid - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

5

CHANGELOG.md

@@ -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

2

index.js

@@ -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');
});
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