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

isomorphic.js

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isomorphic.js - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

10

iso-browser.js

@@ -12,13 +12,15 @@ /* eslint-env browser */

// browser
const arr = new Uint8Array(len)
const buf = new ArrayBuffer(len)
const arr = new Uint8Array(buf)
isoCrypto.getRandomValues(arr)
return arr.buffer
return buf
}
: len => {
// polyfill
const arr = new Uint8Array(len)
const buf = new ArrayBuffer(len)
const arr = new Uint8Array(buf)
for (let i = 0; i < len; i++) {
arr[i] = Math.ceil((Math.random() * 0xFFFFFFFF) >>> 0)
}
return arr.buffer
return buf
}

@@ -25,0 +27,0 @@

13

package.json
{
"name": "isomorphic.js",
"version": "0.1.3",
"version": "0.1.4",
"description": "Isomorphic JavaScript helper functions (performance, crpyto, ..)",

@@ -8,7 +8,12 @@ "sideEffects": false,

"browser": "./iso-browser.js",
"unpkg": "./iso-browser.js",
"dependencies": {},
"funding": {
"type": "GitHub Sponsors ❤",
"url": "https://github.com/sponsors/dmonad"
},
"devDependencies": {
"standard": "^14.0.0",
"typescript": "^3.7.4",
"@types/node": "^13.1.6"
"@types/node": "^13.13.9",
"standard": "^14.3.4",
"typescript": "^3.9.3"
},

@@ -15,0 +20,0 @@ "scripts": {

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