Socket
Socket
Sign inDemoInstall

web3-core

Package Overview
Dependencies
Maintainers
2
Versions
454
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.46 to 1.0.0-beta.47

9

dist/web3-core.cjs.js

@@ -15,6 +15,4 @@ 'use strict';

function () {
function AbstractWeb3Module() {
function AbstractWeb3Module(provider, providersModuleFactory) {
var _this = this;
var provider = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : AbstractWeb3Module.throwIfMissing('provider');
var providersModuleFactory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : AbstractWeb3Module.throwIfMissing('ProvidersModuleFactory');
var methodModuleFactory = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

@@ -147,7 +145,2 @@ var methodFactory = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;

}], [{
key: "throwIfMissing",
value: function throwIfMissing(name) {
throw new Error("Missing parameter: ".concat(name));
}
}, {
key: "providers",

@@ -154,0 +147,0 @@ get: function get() {

5

dist/web3-core.esm.js

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

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

@@ -107,7 +107,4 @@ this.providerDetector = providersModuleFactory.createProviderDetector();

}
static throwIfMissing(name) {
throw new Error(`Missing parameter: ${name}`);
}
}
export { AbstractWeb3Module };

@@ -13,6 +13,4 @@ (function (global, factory) {

function () {
function AbstractWeb3Module() {
function AbstractWeb3Module(provider, providersModuleFactory) {
var _this = this;
var provider = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : AbstractWeb3Module.throwIfMissing('provider');
var providersModuleFactory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : AbstractWeb3Module.throwIfMissing('ProvidersModuleFactory');
var methodModuleFactory = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

@@ -145,7 +143,2 @@ var methodFactory = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;

}], [{
key: "throwIfMissing",
value: function throwIfMissing(name) {
throw new Error("Missing parameter: ".concat(name));
}
}, {
key: "providers",

@@ -152,0 +145,0 @@ get: function get() {

{
"name": "web3-core",
"namespace": "ethereum",
"version": "1.0.0-beta.46",
"version": "1.0.0-beta.47",
"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.46"
"web3-utils": "1.0.0-beta.47"
},
"devDependencies": {
"dtslint": "^0.4.2",
"web3-eth-accounts": "1.0.0-beta.46",
"web3-providers": "1.0.0-beta.46"
"web3-eth-accounts": "1.0.0-beta.47",
"web3-providers": "1.0.0-beta.47"
},

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

@@ -133,6 +133,7 @@ /*

to: string;
contractAddress: string;
contractAddress?: string;
cumulativeGasUsed: number;
gasUsed: number;
logs?: Log[];
logs: Log[];
logsBloom: string;
events?: {

@@ -139,0 +140,0 @@ [eventName: string]: EventLog;

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