New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fishpi

Package Overview
Dependencies
Maintainers
1
Versions
63
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.50 to 0.0.51

4

lib/chat.d.ts

@@ -68,3 +68,5 @@ import ReconnectingWebSocket from 'reconnecting-websocket';

*/
connect(user: string): Promise<ReconnectingWebSocket>;
connect(user: string, { onclose }?: {
onclose?: (e: any) => void;
}): Promise<ReconnectingWebSocket>;
/**

@@ -71,0 +73,0 @@ *

@@ -244,4 +244,5 @@ "use strict";

*/
Chat.prototype.connect = function (user) {
Chat.prototype.connect = function (user, _a) {
var _this = this;
var _b = _a === void 0 ? {} : _a, onclose = _b.onclose;
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {

@@ -291,5 +292,5 @@ var _a, _b, _c, _d, _e;

};
this._rwss[user].onclose = function (e) {
delete _this._rwss[user];
};
this._rwss[user].onclose = onclose !== null && onclose !== void 0 ? onclose : (function (e) {
console.log("[Chat] ".concat(user, " \u8FDE\u63A5\u5DF2\u5173\u95ED"), e);
});
return [2 /*return*/];

@@ -296,0 +297,0 @@ }

{
"name": "fishpi",
"version": "0.0.50",
"version": "0.0.51",
"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