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

web3-core

Package Overview
Dependencies
Maintainers
2
Versions
489
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-core - npm Package Compare versions

Comparing version 1.0.0-beta.47 to 1.0.0-beta.48

3

dist/web3-core.cjs.js

@@ -20,2 +20,3 @@ 'use strict';

var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
var net = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
_classCallCheck(this, AbstractWeb3Module);

@@ -26,3 +27,3 @@ this.providersModuleFactory = providersModuleFactory;

this.givenProvider = this.providerDetector.detect();
this._currentProvider = this.providerResolver.resolve(provider);
this._currentProvider = this.providerResolver.resolve(provider, net);
this._defaultAccount = options.defaultAccount ? web3Utils.toChecksumAddress(options.defaultAccount) : undefined;

@@ -29,0 +30,0 @@ this._defaultBlock = options.defaultBlock || 'latest';

@@ -6,3 +6,3 @@ import isObject from 'lodash/isObject';

class AbstractWeb3Module {
constructor(provider, providersModuleFactory, methodModuleFactory = null, methodFactory = null, options = {}) {
constructor(provider, providersModuleFactory, methodModuleFactory = null, methodFactory = null, options = {}, net = null) {
this.providersModuleFactory = providersModuleFactory;

@@ -12,3 +12,3 @@ this.providerDetector = providersModuleFactory.createProviderDetector();

this.givenProvider = this.providerDetector.detect();
this._currentProvider = this.providerResolver.resolve(provider);
this._currentProvider = this.providerResolver.resolve(provider, net);
this._defaultAccount = options.defaultAccount ? toChecksumAddress(options.defaultAccount) : undefined;

@@ -15,0 +15,0 @@ this._defaultBlock = options.defaultBlock || 'latest';

@@ -18,2 +18,3 @@ (function (global, factory) {

var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
var net = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
_classCallCheck(this, AbstractWeb3Module);

@@ -24,3 +25,3 @@ this.providersModuleFactory = providersModuleFactory;

this.givenProvider = this.providerDetector.detect();
this._currentProvider = this.providerResolver.resolve(provider);
this._currentProvider = this.providerResolver.resolve(provider, net);
this._defaultAccount = options.defaultAccount ? web3Utils.toChecksumAddress(options.defaultAccount) : undefined;

@@ -27,0 +28,0 @@ this._defaultBlock = options.defaultBlock || 'latest';

{
"name": "web3-core",
"namespace": "ethereum",
"version": "1.0.0-beta.47",
"version": "1.0.0-beta.48",
"description": "Web3 core tools for sub packages. This is an internal package.",

@@ -22,8 +22,8 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.0/packages/web3-core",

"lodash": "^4.17.11",
"web3-utils": "1.0.0-beta.47"
"web3-utils": "1.0.0-beta.48"
},
"devDependencies": {
"dtslint": "^0.4.2",
"web3-eth-accounts": "1.0.0-beta.47",
"web3-providers": "1.0.0-beta.47"
"web3-eth-accounts": "1.0.0-beta.48",
"web3-providers": "1.0.0-beta.48"
},

@@ -30,0 +30,0 @@ "files": [

@@ -39,3 +39,4 @@ /*

methodFactory?: any,
options?: Web3ModuleOptions
options?: Web3ModuleOptions,
net?: net.Socket
);

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