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

@dxfeed/dxlink-core

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxfeed/dxlink-core - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

build/index.js

@@ -1,2 +0,2 @@

var DXLinkAuthState,DXLinkConnectionState,DXLinkChannelState,DXLinkLogLevel;exports.DXLinkAuthState=void 0,(DXLinkAuthState=exports.DXLinkAuthState||(exports.DXLinkAuthState={})).UNAUTHORIZED="UNAUTHORIZED",DXLinkAuthState.AUTHORIZING="AUTHORIZING",DXLinkAuthState.AUTHORIZED="AUTHORIZED",exports.DXLinkConnectionState=void 0,(DXLinkConnectionState=exports.DXLinkConnectionState||(exports.DXLinkConnectionState={})).NOT_CONNECTED="NOT_CONNECTED",DXLinkConnectionState.CONNECTING="CONNECTING",DXLinkConnectionState.CONNECTED="CONNECTED",exports.DXLinkChannelState=void 0,(DXLinkChannelState=exports.DXLinkChannelState||(exports.DXLinkChannelState={})).REQUESTED="REQUESTED",DXLinkChannelState.OPENED="OPENED",DXLinkChannelState.CLOSED="CLOSED",exports.DXLinkLogLevel=void 0,(DXLinkLogLevel=exports.DXLinkLogLevel||(exports.DXLinkLogLevel={}))[DXLinkLogLevel.DEBUG=0]="DEBUG",DXLinkLogLevel[DXLinkLogLevel.INFO=1]="INFO",DXLinkLogLevel[DXLinkLogLevel.WARN=2]="WARN",DXLinkLogLevel[DXLinkLogLevel.ERROR=3]="ERROR",exports.Logger=class{constructor(prefix,level){this.prefix=void 0,this.level=void 0,this.prefix=prefix,this.level=level}debug(message){this.level<=exports.DXLinkLogLevel.DEBUG&&console.debug(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}info(message){this.level<=exports.DXLinkLogLevel.INFO&&console.info(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}warn(message){this.level<=exports.DXLinkLogLevel.WARN&&console.warn(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}error(message){this.level<=exports.DXLinkLogLevel.ERROR&&console.error(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}},exports.Scheduler=class{constructor(){this.timeoutIds={},this.schedule=(callback,timeout,key)=>(this.cancel(key),this.timeoutIds[key]=setTimeout(callback,timeout),key),this.cancel=key=>{void 0!==this.timeoutIds[key]&&(clearTimeout(this.timeoutIds[key]),delete this.timeoutIds[key])},this.clear=()=>{for(const key of Object.keys(this.timeoutIds))this.cancel(key)},this.has=key=>void 0!==this.timeoutIds[key]}};
var DXLinkAuthState,DXLinkConnectionState,DXLinkChannelState,DXLinkLogLevel;exports.DXLinkAuthState=void 0,(DXLinkAuthState=exports.DXLinkAuthState||(exports.DXLinkAuthState={})).UNAUTHORIZED="UNAUTHORIZED",DXLinkAuthState.AUTHORIZING="AUTHORIZING",DXLinkAuthState.AUTHORIZED="AUTHORIZED",exports.DXLinkConnectionState=void 0,(DXLinkConnectionState=exports.DXLinkConnectionState||(exports.DXLinkConnectionState={})).NOT_CONNECTED="NOT_CONNECTED",DXLinkConnectionState.CONNECTING="CONNECTING",DXLinkConnectionState.CONNECTED="CONNECTED",exports.DXLinkChannelState=void 0,(DXLinkChannelState=exports.DXLinkChannelState||(exports.DXLinkChannelState={})).REQUESTED="REQUESTED",DXLinkChannelState.OPENED="OPENED",DXLinkChannelState.CLOSED="CLOSED",exports.DXLinkLogLevel=void 0,(DXLinkLogLevel=exports.DXLinkLogLevel||(exports.DXLinkLogLevel={}))[DXLinkLogLevel.DEBUG=0]="DEBUG",DXLinkLogLevel[DXLinkLogLevel.INFO=1]="INFO",DXLinkLogLevel[DXLinkLogLevel.WARN=2]="WARN",DXLinkLogLevel[DXLinkLogLevel.ERROR=3]="ERROR",exports.Logger=class{constructor(prefix,level){this.prefix=void 0,this.level=void 0,this.prefix=prefix,this.level=level}debug(message){this.level<=exports.DXLinkLogLevel.DEBUG&&console.debug(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}info(message){this.level<=exports.DXLinkLogLevel.INFO&&console.info(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}warn(message){this.level<=exports.DXLinkLogLevel.WARN&&console.warn(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}error(message){this.level<=exports.DXLinkLogLevel.ERROR&&console.error(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}},exports.Scheduler=class{constructor(){this.timeoutIds={},this.schedule=(callback,timeout,key)=>(this.cancel(key),this.timeoutIds[key]=setTimeout(()=>{delete this.timeoutIds[key],callback()},timeout),key),this.cancel=key=>{void 0!==this.timeoutIds[key]&&(clearTimeout(this.timeoutIds[key]),delete this.timeoutIds[key])},this.clear=()=>{for(const key of Object.keys(this.timeoutIds))this.cancel(key)},this.has=key=>void 0!==this.timeoutIds[key]}};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

var DXLinkAuthState,DXLinkConnectionState,DXLinkChannelState,DXLinkLogLevel;!function(DXLinkAuthState){DXLinkAuthState.UNAUTHORIZED="UNAUTHORIZED",DXLinkAuthState.AUTHORIZING="AUTHORIZING",DXLinkAuthState.AUTHORIZED="AUTHORIZED"}(DXLinkAuthState||(DXLinkAuthState={})),function(DXLinkConnectionState){DXLinkConnectionState.NOT_CONNECTED="NOT_CONNECTED",DXLinkConnectionState.CONNECTING="CONNECTING",DXLinkConnectionState.CONNECTED="CONNECTED"}(DXLinkConnectionState||(DXLinkConnectionState={})),function(DXLinkChannelState){DXLinkChannelState.REQUESTED="REQUESTED",DXLinkChannelState.OPENED="OPENED",DXLinkChannelState.CLOSED="CLOSED"}(DXLinkChannelState||(DXLinkChannelState={})),function(DXLinkLogLevel){DXLinkLogLevel[DXLinkLogLevel.DEBUG=0]="DEBUG",DXLinkLogLevel[DXLinkLogLevel.INFO=1]="INFO",DXLinkLogLevel[DXLinkLogLevel.WARN=2]="WARN",DXLinkLogLevel[DXLinkLogLevel.ERROR=3]="ERROR"}(DXLinkLogLevel||(DXLinkLogLevel={}));class Logger{constructor(prefix,level){this.prefix=void 0,this.level=void 0,this.prefix=prefix,this.level=level}debug(message){this.level<=DXLinkLogLevel.DEBUG&&console.debug(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}info(message){this.level<=DXLinkLogLevel.INFO&&console.info(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}warn(message){this.level<=DXLinkLogLevel.WARN&&console.warn(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}error(message){this.level<=DXLinkLogLevel.ERROR&&console.error(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}}class Scheduler{constructor(){this.timeoutIds={},this.schedule=(callback,timeout,key)=>(this.cancel(key),this.timeoutIds[key]=setTimeout(callback,timeout),key),this.cancel=key=>{void 0!==this.timeoutIds[key]&&(clearTimeout(this.timeoutIds[key]),delete this.timeoutIds[key])},this.clear=()=>{for(const key of Object.keys(this.timeoutIds))this.cancel(key)},this.has=key=>void 0!==this.timeoutIds[key]}}export{DXLinkAuthState,DXLinkChannelState,DXLinkConnectionState,DXLinkLogLevel,Logger,Scheduler};
var DXLinkAuthState,DXLinkConnectionState,DXLinkChannelState,DXLinkLogLevel;!function(DXLinkAuthState){DXLinkAuthState.UNAUTHORIZED="UNAUTHORIZED",DXLinkAuthState.AUTHORIZING="AUTHORIZING",DXLinkAuthState.AUTHORIZED="AUTHORIZED"}(DXLinkAuthState||(DXLinkAuthState={})),function(DXLinkConnectionState){DXLinkConnectionState.NOT_CONNECTED="NOT_CONNECTED",DXLinkConnectionState.CONNECTING="CONNECTING",DXLinkConnectionState.CONNECTED="CONNECTED"}(DXLinkConnectionState||(DXLinkConnectionState={})),function(DXLinkChannelState){DXLinkChannelState.REQUESTED="REQUESTED",DXLinkChannelState.OPENED="OPENED",DXLinkChannelState.CLOSED="CLOSED"}(DXLinkChannelState||(DXLinkChannelState={})),function(DXLinkLogLevel){DXLinkLogLevel[DXLinkLogLevel.DEBUG=0]="DEBUG",DXLinkLogLevel[DXLinkLogLevel.INFO=1]="INFO",DXLinkLogLevel[DXLinkLogLevel.WARN=2]="WARN",DXLinkLogLevel[DXLinkLogLevel.ERROR=3]="ERROR"}(DXLinkLogLevel||(DXLinkLogLevel={}));class Logger{constructor(prefix,level){this.prefix=void 0,this.level=void 0,this.prefix=prefix,this.level=level}debug(message){this.level<=DXLinkLogLevel.DEBUG&&console.debug(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}info(message){this.level<=DXLinkLogLevel.INFO&&console.info(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}warn(message){this.level<=DXLinkLogLevel.WARN&&console.warn(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}error(message){this.level<=DXLinkLogLevel.ERROR&&console.error(`[${this.prefix}] ${message}`,...[].slice.call(arguments,1))}}class Scheduler{constructor(){this.timeoutIds={},this.schedule=(callback,timeout,key)=>(this.cancel(key),this.timeoutIds[key]=setTimeout(()=>{delete this.timeoutIds[key],callback()},timeout),key),this.cancel=key=>{void 0!==this.timeoutIds[key]&&(clearTimeout(this.timeoutIds[key]),delete this.timeoutIds[key])},this.clear=()=>{for(const key of Object.keys(this.timeoutIds))this.cancel(key)},this.has=key=>void 0!==this.timeoutIds[key]}}export{DXLinkAuthState,DXLinkChannelState,DXLinkConnectionState,DXLinkLogLevel,Logger,Scheduler};
//# sourceMappingURL=index.module.js.map
{
"name": "@dxfeed/dxlink-core",
"version": "0.1.1",
"version": "0.1.2",
"private": false,

@@ -5,0 +5,0 @@ "sideEffects": false,

Sorry, the diff of this file is not supported yet

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