Huge News!Announcing our $40M Series B led by Abstract Ventures.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.6.6 to 0.6.7

8

lib/clerobee.js
'use strict'
var os = require('os')
var crypto = require('crypto')
var forge = require('node-forge')

@@ -74,5 +74,5 @@ var RANDOM_MAX_LENGTH = 64

ClerobeeProto.cryptify = function ( string, length ) {
return crypto.createHash('md5')
.update( string, 'utf8')
.digest('hex')
return forge.md.sha256.create()
.update( string )
.digest().toHex()
.slice(-length )

@@ -79,0 +79,0 @@ }

{
"name": "clerobee",
"version": "0.6.6",
"version": "0.6.7",
"description": "A featureful dependency-free UID generator",

@@ -32,5 +32,7 @@ "keywords": [

"main": "./lib/clerobee.js",
"dependencies": {},
"dependencies": {
"node-forge": "^0.6.42"
},
"devDependencies": {
"chai": "^3.5.0",
"chai": "^3.5.0",
"gulp": "^3.9.1",

@@ -42,6 +44,5 @@ "gulp-eslint": "^3.0.1",

"browser": {
"fs": false,
"child_process": false,
"crypto": false
},
"fs": false,
"child_process": false
},
"engines": {

@@ -48,0 +49,0 @@ "node": ">= 4.0.0"

@@ -8,3 +8,3 @@ Clerobee - a featureful UID generator

========
[clerobee](https://github.com/imrefazekas/clerobee) is a very handy dependency-free utility library allowing to generate UIDs considering actual time, network resources and process in a distributed environment.
[clerobee](https://github.com/imrefazekas/clerobee) is a very handy utility library allowing to generate UIDs considering actual time, network resources and process in a distributed environment.

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