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

hyperid

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperid - npm Package Compare versions

Comparing version 3.1.1 to 3.2.0

test/buffer.js

9

hyperid.js

@@ -6,3 +6,10 @@ 'use strict'

const maxInt = Math.pow(2, 31) - 1
const Buffer = require('buffer').Buffer
const Buffer = loadBuffer()
function loadBuffer () {
const b = require('buffer')
// use third party module if no buffer module
return b && b.Buffer
? b.Buffer
: require('buffer/').Buffer
}
const base64Padding = Buffer.from('==', 'base64')

@@ -9,0 +16,0 @@

10

package.json
{
"name": "hyperid",
"version": "3.1.1",
"version": "3.2.0",
"description": "Uber-fast unique id generation, for Node.js and the browser",

@@ -15,3 +15,3 @@ "main": "hyperid",

"typescript": "tsc --project ./test/tsconfig.json",
"test": "standard && tape test/test.js test/uniqueness.js | tap-dot && npm run typescript"
"test": "standard && tape test/test.js test/uniqueness.js test/buffer.js | tap-dot && npm run typescript"
},

@@ -45,7 +45,9 @@ "repository": {

"tape": "^5.0.0",
"typescript": "^4.3.4"
"typescript": "^4.3.4",
"proxyquire": "^2.1.3"
},
"dependencies": {
"uuid": "^8.3.2",
"uuid-parse": "^1.1.0"
"uuid-parse": "^1.1.0",
"buffer": "^5.2.1"
},

@@ -52,0 +54,0 @@ "browser": {

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