@waves.exchange/config-ws
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -7,4 +7,5 @@ "use strict"; | ||
configs: Object.create(null), | ||
filePath: null, | ||
type: null | ||
filePath: undefined, | ||
type: undefined, | ||
topic: undefined | ||
}; | ||
@@ -52,3 +53,4 @@ const RECONNECT_TIMEOUT = 5000; | ||
type: data.type, | ||
filePath: data.topic | ||
filePath: filePath, | ||
topic | ||
}); | ||
@@ -55,0 +57,0 @@ }); |
@@ -42,4 +42,5 @@ export declare type PingUpdate = { | ||
configs: Record<string, Record<any, any>>; | ||
filePath?: string | null; | ||
type?: string | null; | ||
topic?: string; | ||
filePath?: string; | ||
type?: string; | ||
}; | ||
@@ -46,0 +47,0 @@ export declare type SocketErrorEvent = { |
{ | ||
"name": "@waves.exchange/config-ws", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts", |
@@ -6,4 +6,5 @@ import { WebSocketSubject, webSocket, BehaviorSubject } from '@waves.exchange/reactive'; | ||
configs: Object.create(null), | ||
filePath: null, | ||
type: null | ||
filePath: undefined, | ||
type: undefined, | ||
topic: undefined | ||
}; | ||
@@ -77,3 +78,4 @@ | ||
type: data.type, | ||
filePath: data.topic | ||
filePath: filePath, | ||
topic | ||
}); | ||
@@ -80,0 +82,0 @@ }); |
@@ -50,3 +50,7 @@ | ||
export type ConfigState = { configs: Record<string, Record<any, any>>, filePath?: string|null, type?: string|null }; | ||
export type ConfigState = { | ||
configs: Record<string, Record<any, any>>; | ||
topic?: string; | ||
filePath?: string; type?: string; | ||
}; | ||
@@ -53,0 +57,0 @@ export type SocketErrorEvent = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
24170
462