@binance/common 1.2.5 → 1.2.6

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.mjs CHANGED
@@ -480,7 +480,6 @@ var TimeUnit = {
480
480
  microsecond: "microsecond"
481
481
  };
482
482
  var ALGO_REST_API_PROD_URL = "https://api.binance.com";
483
- var AUTO_INVEST_REST_API_PROD_URL = "https://api.binance.com";
484
483
  var C2C_REST_API_PROD_URL = "https://api.binance.com";
485
484
  var CONVERT_REST_API_PROD_URL = "https://api.binance.com";
486
485
  var COPY_TRADING_REST_API_PROD_URL = "https://api.binance.com";
@@ -952,6 +951,7 @@ var WebsocketCommon = class _WebsocketCommon extends WebsocketEventEmitter {
952
951
  } else if (targetConnection.closeInitiated) {
953
952
  this.closeConnectionGracefully(targetConnection.ws, targetConnection);
954
953
  } else {
954
+ targetConnection.reconnectionPending = false;
955
955
  this.emit("open", this);
956
956
  }
957
957
  this.sessionReLogon(targetConnection);
@@ -1065,6 +1065,7 @@ var WebsocketCommon = class _WebsocketCommon extends WebsocketEventEmitter {
1065
1065
  ws.on("close", (closeEventCode, reason) => {
1066
1066
  this.emit("close", closeEventCode, reason);
1067
1067
  if (!targetConnection.closeInitiated && !isRenewal) {
1068
+ this.cleanup(ws);
1068
1069
  this.logger.warn(
1069
1070
  `Connection with id ${targetConnection.id} closed due to ${closeEventCode}: ${reason}`
1070
1071
  );
@@ -1542,7 +1543,6 @@ function createStreamHandler(websocketBase, streamOrId, id) {
1542
1543
  }
1543
1544
  export {
1544
1545
  ALGO_REST_API_PROD_URL,
1545
- AUTO_INVEST_REST_API_PROD_URL,
1546
1546
  BadRequestError,
1547
1547
  C2C_REST_API_PROD_URL,
1548
1548
  CONVERT_REST_API_PROD_URL,