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

fishpi

Package Overview
Dependencies
Maintainers
1
Versions
56
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.46 to 0.0.47

7

lib/article.d.ts

@@ -83,6 +83,11 @@ import { ApiResponse, ArticlePost, ArticleListType, ArticleDetail, VoteStatus, ArticleList, ArticleType } from './typing';

* 关注/取消关注文章
* @param id 文章id
* @param followingId 文章id
*/
watch(followingId: string): Promise<ApiResponse<undefined>>;
/**
* 打赏文章
* @param id 文章id
*/
reward(id: string): Promise<ApiResponse<undefined>>;
/**
* 获取文章在线人数

@@ -89,0 +94,0 @@ * @param id 文章id

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

* 关注/取消关注文章
* @param id 文章id
* @param followingId 文章id
*/

@@ -363,2 +363,31 @@ Article.prototype.watch = function (followingId) {

/**
* 打赏文章
* @param id 文章id
*/
Article.prototype.reward = function (id) {
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: "article/reward?articleId=".concat(id),
method: 'post',
data: {
apiKey: this._apiKey,
},
})];
case 1:
rsp = _a.sent();
return [2 /*return*/, rsp];
case 2:
e_10 = _a.sent();
throw e_10;
case 3: return [2 /*return*/];
}
});
});
};
/**
* 获取文章在线人数

@@ -369,3 +398,3 @@ * @param id 文章id

return __awaiter(this, void 0, void 0, function () {
var rsp, e_10;
var rsp, e_11;
return __generator(this, function (_a) {

@@ -385,4 +414,4 @@ switch (_a.label) {

case 2:
e_10 = _a.sent();
throw e_10;
e_11 = _a.sent();
throw e_11;
case 3: return [2 /*return*/];

@@ -389,0 +418,0 @@ }

4

lib/typing.d.ts

@@ -545,3 +545,3 @@ /**

}
export interface MetalBase {
export declare class MetalBase {
/**

@@ -1983,3 +1983,3 @@ * 徽章属性

/**
* 是否开启打赏
* 是否已打赏
*/

@@ -1986,0 +1986,0 @@ rewarded?: boolean;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArticleListType = exports.ArticleStatus = exports.YesNoStatus = exports.VoteStatus = exports.PublicStatus = exports.ArticleType = exports.ReportType = exports.ReportDataType = exports.NoticeType = exports.ChatRoomMessageType = exports.ChatMessageType = exports.ChatContentType = exports.ClientType = exports.MetalAttr = exports.RedPacketType = exports.GestureType = exports.UserAppRole = exports.DataType = void 0;
exports.ArticleListType = exports.ArticleStatus = exports.YesNoStatus = exports.VoteStatus = exports.PublicStatus = exports.ArticleType = exports.ReportType = exports.ReportDataType = exports.NoticeType = exports.ChatRoomMessageType = exports.ChatMessageType = exports.ChatContentType = exports.ClientType = exports.MetalBase = exports.MetalAttr = exports.RedPacketType = exports.GestureType = exports.UserAppRole = exports.DataType = void 0;
/**

@@ -218,2 +218,24 @@ * 数据类型

exports.MetalAttr = MetalAttr;
var MetalBase = /** @class */ (function () {
function MetalBase() {
/**
* 徽章属性
*/
this.attr = new MetalAttr();
/**
* 徽章名
*/
this.name = '';
/**
* 徽章描述
*/
this.description = '';
/**
* 徽章数据
*/
this.data = '';
}
return MetalBase;
}());
exports.MetalBase = MetalBase;
var ClientType;

@@ -220,0 +242,0 @@ (function (ClientType) {

{
"name": "fishpi",
"version": "0.0.46",
"version": "0.0.47",
"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