web3-core
Advanced tools
Comparing version 1.0.0-beta.46 to 1.0.0-beta.47
@@ -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() { |
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48662
551
+ Addedweb3-utils@1.0.0-beta.47(transitive)
- Removedweb3-utils@1.0.0-beta.46(transitive)
Updatedweb3-utils@1.0.0-beta.47