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 +1 -0
- package/lib/typing.js +9 -0
- package/package.json +1 -1
package/lib/typing.d.ts
CHANGED
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;
|