fishpi 0.0.47 → 0.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/typing.d.ts CHANGED
@@ -559,6 +559,7 @@ export declare class MetalBase {
559
559
  * 徽章数据
560
560
  */
561
561
  data: string;
562
+ toUrl(includeText?: boolean): string;
562
563
  }
563
564
  /**
564
565
  * 徽章信息
package/lib/typing.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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;
4
+ var utils_1 = require("./utils");
4
5
  /**
5
6
  * 数据类型
6
7
  */
@@ -234,6 +235,14 @@ var MetalBase = /** @class */ (function () {
234
235
  */
235
236
  this.data = '';
236
237
  }
238
+ MetalBase.prototype.toUrl = function (includeText) {
239
+ if (includeText === void 0) { includeText = true; }
240
+ var url = "https://".concat(utils_1.domain, "/gen?txt=").concat(this.description, "&").concat(this.attr.toString());
241
+ if (!includeText) {
242
+ url = "https://".concat(utils_1.domain, "/gen?txt=&").concat(this.attr.toString());
243
+ }
244
+ return url;
245
+ };
237
246
  return MetalBase;
238
247
  }());
239
248
  exports.MetalBase = MetalBase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fishpi",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "A Package to use API of fishpi.",
5
5
  "main": "./lib/index.js",
6
6
  "files": [