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

conflux-web-core-subscriptions

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conflux-web-core-subscriptions - npm Package Compare versions

Comparing version 1.35.1-alpha.0 to 1.36.0-alpha.0

40

dist/conflux-web-core-subscriptions.cjs.js

@@ -16,9 +16,11 @@ 'use strict';

var AbstractSubscription =
function (_EventEmitter) {
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var AbstractSubscription = function (_EventEmitter) {
_inherits(AbstractSubscription, _EventEmitter);
var _super = _createSuper(AbstractSubscription);
function AbstractSubscription(type, method, options, utils, formatters, moduleInstance) {
var _this;
_classCallCheck(this, AbstractSubscription);
_this = _possibleConstructorReturn(this, _getPrototypeOf(AbstractSubscription).call(this));
_this = _super.call(this);
_this.type = type;

@@ -91,9 +93,11 @@ _this.method = method;

var LogSubscription =
function (_AbstractSubscription) {
function _createSuper$1(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct$1()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var LogSubscription = function (_AbstractSubscription) {
_inherits(LogSubscription, _AbstractSubscription);
var _super = _createSuper$1(LogSubscription);
function LogSubscription(options, utils, formatters, moduleInstance, getPastLogsMethod) {
var _this;
_classCallCheck(this, LogSubscription);
_this = _possibleConstructorReturn(this, _getPrototypeOf(LogSubscription).call(this, 'eth_subscribe', 'logs', options, utils, formatters, moduleInstance));
_this = _super.call(this, 'eth_subscribe', 'logs', options, utils, formatters, moduleInstance);
_this.getPastLogsMethod = getPastLogsMethod;

@@ -138,8 +142,10 @@ return _this;

var NewHeadsSubscription =
function (_AbstractSubscription) {
function _createSuper$2(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct$2()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var NewHeadsSubscription = function (_AbstractSubscription) {
_inherits(NewHeadsSubscription, _AbstractSubscription);
var _super = _createSuper$2(NewHeadsSubscription);
function NewHeadsSubscription(utils, formatters, moduleInstance) {
_classCallCheck(this, NewHeadsSubscription);
return _possibleConstructorReturn(this, _getPrototypeOf(NewHeadsSubscription).call(this, 'eth_subscribe', 'newHeads', null, utils, formatters, moduleInstance));
return _super.call(this, 'eth_subscribe', 'newHeads', null, utils, formatters, moduleInstance);
}

@@ -155,8 +161,10 @@ _createClass(NewHeadsSubscription, [{

var NewPendingTransactionsSubscription =
function (_AbstractSubscription) {
function _createSuper$3(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct$3()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var NewPendingTransactionsSubscription = function (_AbstractSubscription) {
_inherits(NewPendingTransactionsSubscription, _AbstractSubscription);
var _super = _createSuper$3(NewPendingTransactionsSubscription);
function NewPendingTransactionsSubscription(utils, formatters, moduleInstance) {
_classCallCheck(this, NewPendingTransactionsSubscription);
return _possibleConstructorReturn(this, _getPrototypeOf(NewPendingTransactionsSubscription).call(this, 'eth_subscribe', 'newPendingTransactions', null, utils, formatters, moduleInstance));
return _super.call(this, 'eth_subscribe', 'newPendingTransactions', null, utils, formatters, moduleInstance);
}

@@ -166,9 +174,11 @@ return NewPendingTransactionsSubscription;

var SyncingSubscription =
function (_AbstractSubscription) {
function _createSuper$4(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct$4()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var SyncingSubscription = function (_AbstractSubscription) {
_inherits(SyncingSubscription, _AbstractSubscription);
var _super = _createSuper$4(SyncingSubscription);
function SyncingSubscription(utils, formatters, moduleInstance) {
var _this;
_classCallCheck(this, SyncingSubscription);
_this = _possibleConstructorReturn(this, _getPrototypeOf(SyncingSubscription).call(this, 'eth_subscribe', 'syncing', null, utils, formatters, moduleInstance));
_this = _super.call(this, 'eth_subscribe', 'syncing', null, utils, formatters, moduleInstance);
_this.isSyncing = null;

@@ -175,0 +185,0 @@ return _this;

@@ -57,2 +57,15 @@ import isFunction from 'lodash/isFunction';

function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
return true;
} catch (e) {
return false;
}
}
function _assertThisInitialized(self) {

@@ -74,2 +87,19 @@ if (self === void 0) {

function _createSuper(Derived) {
return function () {
var Super = _getPrototypeOf(Derived),
result;
if (_isNativeReflectConstruct()) {
var NewTarget = _getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return _possibleConstructorReturn(this, result);
};
}
function _superPropBase(object, property) {

@@ -105,9 +135,9 @@ while (!Object.prototype.hasOwnProperty.call(object, property)) {

var AbstractSubscription =
function (_EventEmitter) {
var AbstractSubscription = function (_EventEmitter) {
_inherits(AbstractSubscription, _EventEmitter);
var _super = _createSuper(AbstractSubscription);
function AbstractSubscription(type, method, options, utils, formatters, moduleInstance) {
var _this;
_classCallCheck(this, AbstractSubscription);
_this = _possibleConstructorReturn(this, _getPrototypeOf(AbstractSubscription).call(this));
_this = _super.call(this);
_this.type = type;

@@ -180,9 +210,9 @@ _this.method = method;

var LogSubscription =
function (_AbstractSubscription) {
var LogSubscription = function (_AbstractSubscription) {
_inherits(LogSubscription, _AbstractSubscription);
var _super = _createSuper(LogSubscription);
function LogSubscription(options, utils, formatters, moduleInstance, getPastLogsMethod) {
var _this;
_classCallCheck(this, LogSubscription);
_this = _possibleConstructorReturn(this, _getPrototypeOf(LogSubscription).call(this, 'eth_subscribe', 'logs', options, utils, formatters, moduleInstance));
_this = _super.call(this, 'eth_subscribe', 'logs', options, utils, formatters, moduleInstance);
_this.getPastLogsMethod = getPastLogsMethod;

@@ -227,8 +257,8 @@ return _this;

var NewHeadsSubscription =
function (_AbstractSubscription) {
var NewHeadsSubscription = function (_AbstractSubscription) {
_inherits(NewHeadsSubscription, _AbstractSubscription);
var _super = _createSuper(NewHeadsSubscription);
function NewHeadsSubscription(utils, formatters, moduleInstance) {
_classCallCheck(this, NewHeadsSubscription);
return _possibleConstructorReturn(this, _getPrototypeOf(NewHeadsSubscription).call(this, 'eth_subscribe', 'newHeads', null, utils, formatters, moduleInstance));
return _super.call(this, 'eth_subscribe', 'newHeads', null, utils, formatters, moduleInstance);
}

@@ -244,8 +274,8 @@ _createClass(NewHeadsSubscription, [{

var NewPendingTransactionsSubscription =
function (_AbstractSubscription) {
var NewPendingTransactionsSubscription = function (_AbstractSubscription) {
_inherits(NewPendingTransactionsSubscription, _AbstractSubscription);
var _super = _createSuper(NewPendingTransactionsSubscription);
function NewPendingTransactionsSubscription(utils, formatters, moduleInstance) {
_classCallCheck(this, NewPendingTransactionsSubscription);
return _possibleConstructorReturn(this, _getPrototypeOf(NewPendingTransactionsSubscription).call(this, 'eth_subscribe', 'newPendingTransactions', null, utils, formatters, moduleInstance));
return _super.call(this, 'eth_subscribe', 'newPendingTransactions', null, utils, formatters, moduleInstance);
}

@@ -255,9 +285,9 @@ return NewPendingTransactionsSubscription;

var SyncingSubscription =
function (_AbstractSubscription) {
var SyncingSubscription = function (_AbstractSubscription) {
_inherits(SyncingSubscription, _AbstractSubscription);
var _super = _createSuper(SyncingSubscription);
function SyncingSubscription(utils, formatters, moduleInstance) {
var _this;
_classCallCheck(this, SyncingSubscription);
_this = _possibleConstructorReturn(this, _getPrototypeOf(SyncingSubscription).call(this, 'eth_subscribe', 'syncing', null, utils, formatters, moduleInstance));
_this = _super.call(this, 'eth_subscribe', 'syncing', null, utils, formatters, moduleInstance);
_this.isSyncing = null;

@@ -264,0 +294,0 @@ return _this;

@@ -5,20 +5,22 @@ (function (global, factory) {

(global = global || self, factory(global.ConfluxWebCoreSubscriptions = {}, global._classCallCheck, global._createClass, global._possibleConstructorReturn, global._getPrototypeOf, global._inherits, global.isFunction, global.EventEmitter, global._get));
}(this, function (exports, _classCallCheck, _createClass, _possibleConstructorReturn, _getPrototypeOf, _inherits, isFunction, EventEmitter, _get) { 'use strict';
}(this, (function (exports, _classCallCheck, _createClass, _possibleConstructorReturn, _getPrototypeOf, _inherits, isFunction, EventEmitter, _get) { 'use strict';
_classCallCheck = _classCallCheck && _classCallCheck.hasOwnProperty('default') ? _classCallCheck['default'] : _classCallCheck;
_createClass = _createClass && _createClass.hasOwnProperty('default') ? _createClass['default'] : _createClass;
_possibleConstructorReturn = _possibleConstructorReturn && _possibleConstructorReturn.hasOwnProperty('default') ? _possibleConstructorReturn['default'] : _possibleConstructorReturn;
_getPrototypeOf = _getPrototypeOf && _getPrototypeOf.hasOwnProperty('default') ? _getPrototypeOf['default'] : _getPrototypeOf;
_inherits = _inherits && _inherits.hasOwnProperty('default') ? _inherits['default'] : _inherits;
isFunction = isFunction && isFunction.hasOwnProperty('default') ? isFunction['default'] : isFunction;
EventEmitter = EventEmitter && EventEmitter.hasOwnProperty('default') ? EventEmitter['default'] : EventEmitter;
_get = _get && _get.hasOwnProperty('default') ? _get['default'] : _get;
_classCallCheck = _classCallCheck && Object.prototype.hasOwnProperty.call(_classCallCheck, 'default') ? _classCallCheck['default'] : _classCallCheck;
_createClass = _createClass && Object.prototype.hasOwnProperty.call(_createClass, 'default') ? _createClass['default'] : _createClass;
_possibleConstructorReturn = _possibleConstructorReturn && Object.prototype.hasOwnProperty.call(_possibleConstructorReturn, 'default') ? _possibleConstructorReturn['default'] : _possibleConstructorReturn;
_getPrototypeOf = _getPrototypeOf && Object.prototype.hasOwnProperty.call(_getPrototypeOf, 'default') ? _getPrototypeOf['default'] : _getPrototypeOf;
_inherits = _inherits && Object.prototype.hasOwnProperty.call(_inherits, 'default') ? _inherits['default'] : _inherits;
isFunction = isFunction && Object.prototype.hasOwnProperty.call(isFunction, 'default') ? isFunction['default'] : isFunction;
EventEmitter = EventEmitter && Object.prototype.hasOwnProperty.call(EventEmitter, 'default') ? EventEmitter['default'] : EventEmitter;
_get = _get && Object.prototype.hasOwnProperty.call(_get, 'default') ? _get['default'] : _get;
var AbstractSubscription =
function (_EventEmitter) {
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var AbstractSubscription = function (_EventEmitter) {
_inherits(AbstractSubscription, _EventEmitter);
var _super = _createSuper(AbstractSubscription);
function AbstractSubscription(type, method, options, utils, formatters, moduleInstance) {
var _this;
_classCallCheck(this, AbstractSubscription);
_this = _possibleConstructorReturn(this, _getPrototypeOf(AbstractSubscription).call(this));
_this = _super.call(this);
_this.type = type;

@@ -91,9 +93,11 @@ _this.method = method;

var LogSubscription =
function (_AbstractSubscription) {
function _createSuper$1(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct$1()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var LogSubscription = function (_AbstractSubscription) {
_inherits(LogSubscription, _AbstractSubscription);
var _super = _createSuper$1(LogSubscription);
function LogSubscription(options, utils, formatters, moduleInstance, getPastLogsMethod) {
var _this;
_classCallCheck(this, LogSubscription);
_this = _possibleConstructorReturn(this, _getPrototypeOf(LogSubscription).call(this, 'eth_subscribe', 'logs', options, utils, formatters, moduleInstance));
_this = _super.call(this, 'eth_subscribe', 'logs', options, utils, formatters, moduleInstance);
_this.getPastLogsMethod = getPastLogsMethod;

@@ -138,8 +142,10 @@ return _this;

var NewHeadsSubscription =
function (_AbstractSubscription) {
function _createSuper$2(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct$2()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var NewHeadsSubscription = function (_AbstractSubscription) {
_inherits(NewHeadsSubscription, _AbstractSubscription);
var _super = _createSuper$2(NewHeadsSubscription);
function NewHeadsSubscription(utils, formatters, moduleInstance) {
_classCallCheck(this, NewHeadsSubscription);
return _possibleConstructorReturn(this, _getPrototypeOf(NewHeadsSubscription).call(this, 'eth_subscribe', 'newHeads', null, utils, formatters, moduleInstance));
return _super.call(this, 'eth_subscribe', 'newHeads', null, utils, formatters, moduleInstance);
}

@@ -155,8 +161,10 @@ _createClass(NewHeadsSubscription, [{

var NewPendingTransactionsSubscription =
function (_AbstractSubscription) {
function _createSuper$3(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct$3()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var NewPendingTransactionsSubscription = function (_AbstractSubscription) {
_inherits(NewPendingTransactionsSubscription, _AbstractSubscription);
var _super = _createSuper$3(NewPendingTransactionsSubscription);
function NewPendingTransactionsSubscription(utils, formatters, moduleInstance) {
_classCallCheck(this, NewPendingTransactionsSubscription);
return _possibleConstructorReturn(this, _getPrototypeOf(NewPendingTransactionsSubscription).call(this, 'eth_subscribe', 'newPendingTransactions', null, utils, formatters, moduleInstance));
return _super.call(this, 'eth_subscribe', 'newPendingTransactions', null, utils, formatters, moduleInstance);
}

@@ -166,9 +174,11 @@ return NewPendingTransactionsSubscription;

var SyncingSubscription =
function (_AbstractSubscription) {
function _createSuper$4(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct$4()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
var SyncingSubscription = function (_AbstractSubscription) {
_inherits(SyncingSubscription, _AbstractSubscription);
var _super = _createSuper$4(SyncingSubscription);
function SyncingSubscription(utils, formatters, moduleInstance) {
var _this;
_classCallCheck(this, SyncingSubscription);
_this = _possibleConstructorReturn(this, _getPrototypeOf(SyncingSubscription).call(this, 'eth_subscribe', 'syncing', null, utils, formatters, moduleInstance));
_this = _super.call(this, 'eth_subscribe', 'syncing', null, utils, formatters, moduleInstance);
_this.isSyncing = null;

@@ -207,2 +217,2 @@ return _this;

}));
})));
{
"name": "conflux-web-core-subscriptions",
"version": "1.35.1-alpha.0",
"version": "1.36.0-alpha.0",
"description": "Manages ConfluxWeb subscriptions. This is an internal package.",

@@ -22,4 +22,4 @@ "repository": "https://github.com/Conflux-Chain/ConfluxWeb/tree/master/packages/conflux-web-core-subscription",

"devDependencies": {
"conflux-web-core-helpers": "1.35.1-alpha.0",
"conflux-web-utils": "1.35.1-alpha.0",
"conflux-web-core-helpers": "1.36.0-alpha.0",
"conflux-web-utils": "1.36.0-alpha.0",
"definitelytyped-header-parser": "^1.0.1",

@@ -31,3 +31,3 @@ "dtslint": "0.4.2"

],
"gitHead": "be8ef8275e8e7b00cf2ecfc730b978ec78ebba3b"
"gitHead": "9c2c30752e95953d8da9e895b719f919f8bcf88b"
}

@@ -0,0 +0,0 @@ # conflux-web-core-subscriptions

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