@0x/base-contract
Advanced tools
Comparing version
[ | ||
{ | ||
"version": "5.3.2", | ||
"changes": [ | ||
{ | ||
"note": "Updated to ethereumjs-blockstream@^7.0.0", | ||
"pr": 2089 | ||
} | ||
], | ||
"timestamp": 1566446343 | ||
}, | ||
{ | ||
"timestamp": 1565296576, | ||
@@ -4,0 +14,0 @@ "version": "5.3.1", |
@@ -8,2 +8,6 @@ <!-- | ||
## v5.3.2 - _August 22, 2019_ | ||
* Updated to ethereumjs-blockstream@^7.0.0 (#2089) | ||
## v5.3.1 - _August 8, 2019_ | ||
@@ -10,0 +14,0 @@ |
@@ -116,14 +116,16 @@ "use strict"; | ||
}; | ||
SubscriptionManager.prototype._onLogStateChanged = function (isRemoved, rawLog) { | ||
SubscriptionManager.prototype._onLogStateChanged = function (isRemoved, blockHash, rawLogs) { | ||
var _this = this; | ||
var log = web3_wrapper_1.marshaller.unmarshalLog(rawLog); | ||
_.forEach(this._filters, function (filter, filterToken) { | ||
if (filter_utils_1.filterUtils.matchesFilter(log, filter)) { | ||
var decodedLog = _this._tryToDecodeLogOrNoop(log); | ||
var logEvent = { | ||
log: decodedLog, | ||
isRemoved: isRemoved, | ||
}; | ||
_this._filterCallbacks[filterToken](null, logEvent); | ||
} | ||
var logs = rawLogs.map(function (rawLog) { return web3_wrapper_1.marshaller.unmarshalLog(rawLog); }); | ||
logs.forEach(function (log) { | ||
_.forEach(_this._filters, function (filter, filterToken) { | ||
if (filter_utils_1.filterUtils.matchesFilter(log, filter)) { | ||
var decodedLog = _this._tryToDecodeLogOrNoop(log); | ||
var logEvent = { | ||
log: decodedLog, | ||
isRemoved: isRemoved, | ||
}; | ||
_this._filterCallbacks[filterToken](null, logEvent); | ||
} | ||
}); | ||
}); | ||
@@ -141,5 +143,5 @@ }; | ||
var isRemoved = false; | ||
this._onLogAddedSubscriptionToken = this._blockAndLogStreamerIfExists.subscribeToOnLogAdded(this._onLogStateChanged.bind(this, isRemoved)); | ||
this._onLogAddedSubscriptionToken = this._blockAndLogStreamerIfExists.subscribeToOnLogsAdded(this._onLogStateChanged.bind(this, isRemoved)); | ||
isRemoved = true; | ||
this._onLogRemovedSubscriptionToken = this._blockAndLogStreamerIfExists.subscribeToOnLogRemoved(this._onLogStateChanged.bind(this, isRemoved)); | ||
this._onLogRemovedSubscriptionToken = this._blockAndLogStreamerIfExists.subscribeToOnLogsRemoved(this._onLogStateChanged.bind(this, isRemoved)); | ||
}; | ||
@@ -205,4 +207,4 @@ // This method only exists in order to comply with the expected interface of Blockstream's constructor | ||
} | ||
this._blockAndLogStreamerIfExists.unsubscribeFromOnLogAdded(this._onLogAddedSubscriptionToken); | ||
this._blockAndLogStreamerIfExists.unsubscribeFromOnLogRemoved(this._onLogRemovedSubscriptionToken); | ||
this._blockAndLogStreamerIfExists.unsubscribeFromOnLogsAdded(this._onLogAddedSubscriptionToken); | ||
this._blockAndLogStreamerIfExists.unsubscribeFromOnLogsRemoved(this._onLogRemovedSubscriptionToken); | ||
utils_1.intervalUtils.clearAsyncExcludingInterval(this._blockAndLogStreamIntervalIfExists); | ||
@@ -209,0 +211,0 @@ delete this._blockAndLogStreamerIfExists; |
{ | ||
"name": "@0x/base-contract", | ||
"version": "5.3.1", | ||
"version": "5.3.2", | ||
"engines": { | ||
@@ -45,9 +45,9 @@ "node": ">=6.12" | ||
"dependencies": { | ||
"@0x/assert": "^2.1.3", | ||
"@0x/json-schemas": "^3.1.13", | ||
"@0x/assert": "^2.1.4", | ||
"@0x/json-schemas": "^4.0.0", | ||
"@0x/typescript-typings": "^4.2.4", | ||
"@0x/utils": "^4.5.0", | ||
"@0x/web3-wrapper": "^6.0.10", | ||
"@0x/web3-wrapper": "^6.0.11", | ||
"ethereum-types": "^2.1.4", | ||
"ethereumjs-blockstream": "6.0.0", | ||
"ethereumjs-blockstream": "^7.0.0", | ||
"ethereumjs-util": "^5.1.1", | ||
@@ -62,3 +62,3 @@ "ethers": "~4.0.4", | ||
}, | ||
"gitHead": "f394d7dba9d9cdf31d5793ace9ebe605d5a2c24c" | ||
"gitHead": "bbd3c03969c332d87b6a94061657d79008d86fa4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
78018
0.77%1271
0.95%0
-100%+ Added
- Removed
- Removed
Updated
Updated
Updated