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

create-web3-provider

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-web3-provider - npm Package Compare versions

Comparing version 1.3.2 to 1.4.0

15

package.json
{
"name": "create-web3-provider",
"version": "1.3.2",
"version": "1.4.0",
"description": "Easily create a web3 provider from scratch.",

@@ -16,7 +16,7 @@ "main": "src/index.js",

"dependencies": {
"ethereumjs-util": "^5.2.0",
"lodash": "^4.17.10",
"web3-providers-http": "^1.0.0-beta.35",
"web3-providers-ipc": "^1.0.0-beta.35",
"web3-providers-ws": "^1.0.0-beta.35"
"ethereumjs-util": "^6.0.0",
"lodash": "^4.17.11",
"web3-providers-http": "^1.0.0-beta.37",
"web3-providers-ipc": "^1.0.0-beta.37",
"web3-providers-ws": "^1.0.0-beta.37"
},

@@ -32,3 +32,4 @@ "keywords": [

"zero-conf"
]
],
"devDependencies": {}
}

@@ -62,16 +62,10 @@ 'use strict'

network = network || 'main';
infuraKey = infuraKey || createInfuraKey();
infuraKey = infuraKey || 'b9618835284c4f5984bf6fe7332c2b2e';
if (network == 'main')
network = 'mainnet';
if (websocket)
return `wss://${network}.infura.io/ws/${infuraKey}`;
return `https://${network}.infura.io/${infuraKey}`;
return `wss://${network}.infura.io/ws/v3/${infuraKey}`;
return `https://${network}.infura.io/v3/${infuraKey}`;
}
function createInfuraKey() {
const symbols =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
return _.times(20, () => symbols[_.random(0, symbols.length-1)]).join('');
}
module.exports = createProvider;

Sorry, the diff of this file is not supported yet

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