New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clerobee

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clerobee - npm Package Compare versions

Comparing version 0.9.8 to 1.0.0

test/ParallelTest.js

13

lib/clerobee.js

@@ -14,2 +14,7 @@ var os = require('os')

}
function minmax (value, min, max) {
return value < min ? min : (value > max ? max : value)
}
function createConfig (length, useSystemRefs) {

@@ -20,6 +25,6 @@ if ( length < 4 || length > 256 )

var config = {
processLength: length >= 8 && useSystemRefs ? 2 : 0,
networkLength: length >= 8 && useSystemRefs ? 2 : 0,
timeLength: length < 16 ? 2 : (length >= 36 ? 8 : 4),
useSystemRefs: useSystemRefs
processLength: length > 16 && useSystemRefs ? 2 : 0,
networkLength: length > 16 && useSystemRefs ? 2 : 0,
timeLength: minmax( Math.floor( length / 8 ), 2, 8 ),
useSystemRefs: !!useSystemRefs
}

@@ -26,0 +31,0 @@ config.randomLength = length - config.processLength - config.networkLength - 2 * config.timeLength

{
"name": "clerobee",
"version": "0.9.8",
"version": "1.0.0",
"description": "A featureful dependency-free UID generator",

@@ -5,0 +5,0 @@ "keywords": [

@@ -27,2 +27,3 @@ var crypto = require('webcrypto')

it('should be generated with correct length', function (done) {
console.log('>>>>>', cerobee.generate(16))
cerobee.generate(16).should.to.have.length(16)

@@ -29,0 +30,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