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

fishpi

Package Overview
Dependencies
Maintainers
0
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.56 to 0.0.57

2

lib/breezemoon.js

@@ -99,3 +99,3 @@ "use strict";

return [4 /*yield*/, (0, utils_1.request)({
url: "api/user/".concat(user, "breezemoons?p=").concat(page, "&size=").concat(size, "&apiKey=").concat(this._apiKey)
url: "api/user/".concat(user, "/breezemoons?p=").concat(page, "&size=").concat(size, "&apiKey=").concat(this._apiKey)
})];

@@ -102,0 +102,0 @@ case 1:

@@ -96,2 +96,7 @@ import { ApiResponse, ChatContentType, ChatMessageType, ClientType, ChatRoomMessage, GestureType, Message, MuteItem, RedPacket, RedPacketInfo } from './typing';

/**
* 获取聊天室节点
* @returns 返回节点地址
*/
getNode(): Promise<string>;
/**
* 重连聊天室

@@ -103,3 +108,4 @@ * @param timeout 超时时间

*/
reconnect({ timeout, error, close }?: {
reconnect({ url, timeout, error, close }?: {
url?: string;
timeout?: number;

@@ -106,0 +112,0 @@ error?: (ev: any) => void;

@@ -456,2 +456,28 @@ "use strict";

/**
* 获取聊天室节点
* @returns 返回节点地址
*/
ChatRoom.prototype.getNode = function () {
return __awaiter(this, void 0, void 0, function () {
var rsp, e_10;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, (0, utils_1.request)({
url: "chat-room/node/get",
method: 'get',
})];
case 1:
rsp = _a.sent();
return [2 /*return*/, rsp.data];
case 2:
e_10 = _a.sent();
throw e_10;
case 3: return [2 /*return*/];
}
});
});
};
/**
* 重连聊天室

@@ -464,6 +490,6 @@ * @param timeout 超时时间

ChatRoom.prototype.reconnect = function (_a) {
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;
var _b = _a === void 0 ? {} : _a, _c = _b.url, url = _c === void 0 ? "wss://".concat(utils_1.domain, "/chat-room-channel") : _c, _d = _b.timeout, timeout = _d === void 0 ? 10 : _d, _e = _b.error, error = _e === void 0 ? function (ev) { } : _e, _f = _b.close, close = _f === void 0 ? function (ev) { } : _f;
return __awaiter(this, void 0, void 0, function () {
var _this = this;
return __generator(this, function (_f) {
return __generator(this, function (_g) {
return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {

@@ -480,3 +506,3 @@ var _a, _b, _c, _d;

_b = reconnecting_websocket_1.default.bind;
_c = [void 0, "wss://".concat(utils_1.domain, "/chat-room-channel?apiKey=").concat(this._apiKey), []];
_c = [void 0, "".concat(url, "?apiKey=").concat(this._apiKey), []];
_e = {};

@@ -483,0 +509,0 @@ if (!utils_1.isBrowse) return [3 /*break*/, 1];

{
"name": "fishpi",
"version": "0.0.56",
"version": "0.0.57",
"description": "A Package to use API of fishpi.",

@@ -13,2 +13,3 @@ "main": "./lib/index.js",

"prepublish": "npm run build",
"prepare": "npm run build",
"test": "NODE_OPTIONS=\"-r ts-node/register --no-warnings\" node ./test/index.ts",

@@ -15,0 +16,0 @@ "publish": "npm publish"

@@ -0,0 +0,0 @@ # 摸鱼派 API Package

Sorry, the diff of this file is not supported yet

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