@zgfe/business-lib 1.1.34-visual.10 → 1.1.34-visual.9

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.
@@ -22,12 +22,11 @@ declare class SocketClient {
22
22
  private ping;
23
23
  removeAllListeners(): void;
24
24
  removeListener(event: string, handle?: (data?: any) => void): void;
25
- private _getToken;
25
+ private getToken;
26
26
  open(url?: string, params?: Record<string, any>): void;
27
27
  close(): void;
28
28
  destroy(): void;
29
29
  private log;
30
30
  openLog(open: boolean): void;
31
- getToken(): string | undefined;
32
31
  }
33
32
  export default SocketClient;
@@ -207,9 +207,9 @@ var SocketClient = /*#__PURE__*/function () {
207
207
  }
208
208
  }
209
209
  }, {
210
- key: "_getToken",
210
+ key: "getToken",
211
211
  value: function () {
212
- var _getToken2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
212
+ var _getToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
213
213
  var res;
214
214
  return _regeneratorRuntime().wrap(function _callee$(_context) {
215
215
  while (1) switch (_context.prev = _context.next) {
@@ -230,16 +230,16 @@ var SocketClient = /*#__PURE__*/function () {
230
230
  }
231
231
  }, _callee, this);
232
232
  }));
233
- function _getToken() {
234
- return _getToken2.apply(this, arguments);
233
+ function getToken() {
234
+ return _getToken.apply(this, arguments);
235
235
  }
236
- return _getToken;
236
+ return getToken;
237
237
  }()
238
238
  }, {
239
239
  key: "open",
240
240
  value: function open(url, params) {
241
241
  var _this4 = this;
242
- this._getToken().then(function (token) {
242
+ this.getToken().then(function (token) {
243
243
  _this4.params = params || _this4.params;
244
244
  _this4.token = token;
245
245
  if (_this4.client) _this4.close();
@@ -293,11 +293,6 @@ var SocketClient = /*#__PURE__*/function () {
293
293
  value: function openLog(open) {
294
294
  this.showLog = open;
295
295
  }
296
- }, {
297
- key: "getToken",
298
- value: function getToken() {
299
- return this.token;
300
- }
301
296
  }]);
302
297
  return SocketClient;
303
298
  }();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.34-visual.10",
3
+ "version": "1.1.34-visual.9",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -59,5 +59,5 @@
59
59
  "react": "^16.12.0 || ^17.0.0",
60
60
  "yorkie": "^2.0.0"
61
61
  },
62
- "gitHead": "211636a80ee9071213fc580c4473aafef846f2a5"
62
+ "gitHead": "b8fa7a22e144c79fe39ef77900a0b870b431182e"
63
63
  }