@nightlylabs/dex-sdk 0.3.18 → 0.3.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24410,6 +24410,9 @@ var Client = class _Client {
|
|
|
24410
24410
|
const decodedMsg = JSON.parse(data);
|
|
24411
24411
|
const topic = getTopicFromMessage(decodedMsg);
|
|
24412
24412
|
const callback = this._subscriptions.get(topic);
|
|
24413
|
+
if (decodedMsg.type === "Liquidation" || decodedMsg.type === "PartialLiquidation" || decodedMsg.type === "GlobalLiquidation" || decodedMsg.type === "GlobalPartialLiquidation") {
|
|
24414
|
+
console.log("[SDK] Liquidation event received:", decodedMsg.type, "topic:", topic, "hasCallback:", !!callback, "subscriptionKeys:", [...this._subscriptions.keys()]);
|
|
24415
|
+
}
|
|
24413
24416
|
if (callback) {
|
|
24414
24417
|
callback(decodedMsg);
|
|
24415
24418
|
}
|
package/dist/index.js
CHANGED
|
@@ -24358,6 +24358,9 @@ var Client = class _Client {
|
|
|
24358
24358
|
const decodedMsg = JSON.parse(data);
|
|
24359
24359
|
const topic = getTopicFromMessage(decodedMsg);
|
|
24360
24360
|
const callback = this._subscriptions.get(topic);
|
|
24361
|
+
if (decodedMsg.type === "Liquidation" || decodedMsg.type === "PartialLiquidation" || decodedMsg.type === "GlobalLiquidation" || decodedMsg.type === "GlobalPartialLiquidation") {
|
|
24362
|
+
console.log("[SDK] Liquidation event received:", decodedMsg.type, "topic:", topic, "hasCallback:", !!callback, "subscriptionKeys:", [...this._subscriptions.keys()]);
|
|
24363
|
+
}
|
|
24361
24364
|
if (callback) {
|
|
24362
24365
|
callback(decodedMsg);
|
|
24363
24366
|
}
|