Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fishpi

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fishpi - npm Package Compare versions

Comparing version 0.0.41 to 0.0.42

16

lib/chatroom.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc