ztxkutils 2.7.3 → 2.7.4

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/request.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './tslib.es6-f9459658.js';
2
2
  import 'axios';
3
3
  import 'ztxkui';
4
- export { a as default } from './request-90475df7.js';
4
+ export { a as default } from './request-35b10c4f.js';
5
5
  import './authority-fad2028d.js';
6
6
  import './crypto-c481f616.js';
7
7
  import 'crypto';
@@ -128,18 +128,16 @@ var StompClient = /** @class */ (function () {
128
128
  // 重连逻辑, 默认3秒后重连
129
129
  // 重连间隔,每隔5秒递增,超过最大间隔时间后,取最大间隔时间重连
130
130
  _this.client.disconnect(function () {
131
+ _this.client = null;
132
+ _this.reconnectionNum++;
133
+ // const timeInterval =
134
+ // Math.ceil(this.reconnectionNum / 5) *
135
+ // (this.connectWsConfig.reconnectionTime ?? 3000);
136
+ var timeInterval = 3000;
137
+ console.log("\u7B2C" + _this.reconnectionNum + "\u6B21\u91CD\u8FDE\uFF01");
131
138
  setTimeout(function () {
132
- _this.client = null;
133
- _this.reconnectionNum++;
134
- // const timeInterval =
135
- // Math.ceil(this.reconnectionNum / 5) *
136
- // (this.connectWsConfig.reconnectionTime ?? 3000);
137
- var timeInterval = 3000;
138
- console.log("\u7B2C" + _this.reconnectionNum + "\u6B21\u91CD\u8FDE\uFF01");
139
- setTimeout(function () {
140
- _this.init();
141
- }, timeInterval);
142
- }, 300);
139
+ _this.init();
140
+ }, timeInterval);
143
141
  });
144
142
  });
145
143
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.7.3",
3
+ "version": "2.7.4",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",