Comparing version 0.0.41 to 0.0.42
@@ -102,6 +102,6 @@ import { ApiResponse, ChatContentType, ChatMessageType, ClientType, ChatRoomMessage, GestureType, Message, MuteItem, RedPacket, RedPacketInfo } from './typing'; | ||
*/ | ||
reconnect({ timeout, error, close }: { | ||
timeout?: number | undefined; | ||
error?: ((ev: any) => void) | undefined; | ||
close?: ((ev: any) => void) | undefined; | ||
reconnect({ timeout, error, close }?: { | ||
timeout?: number; | ||
error?: (ev: any) => void; | ||
close?: (ev: any) => void; | ||
}): Promise<unknown>; | ||
@@ -122,8 +122,8 @@ /** | ||
msg: Message; | ||
}) => void, { timeout, error, close }: { | ||
timeout?: number | undefined; | ||
error?: ((ev: any) => void) | undefined; | ||
close?: ((ev: any) => void) | undefined; | ||
}) => void, { timeout, error, close }?: { | ||
timeout?: number; | ||
error?: (ev: any) => void; | ||
close?: (ev: any) => void; | ||
}): Promise<void>; | ||
} | ||
export default ChatRoom; |
@@ -466,6 +466,6 @@ "use strict"; | ||
ChatRoom.prototype.reconnect = function (_a) { | ||
var _b = _a.timeout, timeout = _b === void 0 ? 10 : _b, _c = _a.error, error = _c === void 0 ? function (ev) { } : _c, _d = _a.close, close = _d === void 0 ? function (ev) { } : _d; | ||
var _b = _a === void 0 ? {} : _a, _c = _b.timeout, timeout = _c === void 0 ? 10 : _c, _d = _b.error, error = _d === void 0 ? function (ev) { } : _d, _e = _b.close, close = _e === void 0 ? function (ev) { } : _e; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_e) { | ||
return __generator(this, function (_f) { | ||
return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -585,6 +585,6 @@ var _a, _b, _c, _d; | ||
ChatRoom.prototype.addListener = function (wsCallback, _a) { | ||
var _b = _a.timeout, timeout = _b === void 0 ? 10 : _b, _c = _a.error, error = _c === void 0 ? function (ev) { } : _c, _d = _a.close, close = _d === void 0 ? function (ev) { } : _d; | ||
var _b = _a === void 0 ? {} : _a, _c = _b.timeout, timeout = _c === void 0 ? 10 : _c, _d = _b.error, error = _d === void 0 ? function (ev) { } : _d, _e = _b.close, close = _e === void 0 ? function (ev) { } : _e; | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_e) { | ||
switch (_e.label) { | ||
return __generator(this, function (_f) { | ||
switch (_f.label) { | ||
case 0: | ||
@@ -599,3 +599,3 @@ if (this._rws !== null) { | ||
case 1: | ||
_e.sent(); | ||
_f.sent(); | ||
return [2 /*return*/]; | ||
@@ -602,0 +602,0 @@ } |
{ | ||
"name": "fishpi", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"description": "A Package to use API of fishpi.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
235617