koishi-plugin-cfmrmod 1.0.0

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.
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.apply = exports.Config = exports.name = void 0;
37
+ const cfmr = __importStar(require("../cfmr"));
38
+ exports.name = cfmr.name || 'minecraft-project-search';
39
+ exports.Config = cfmr.Config;
40
+ exports.apply = cfmr.apply;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.apply = exports.Config = exports.name = void 0;
37
+ const mcmod = __importStar(require("../mcmod"));
38
+ exports.name = mcmod.name || 'mcmod-search';
39
+ exports.Config = mcmod.Config;
40
+ exports.apply = mcmod.apply;
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "koishi-plugin-cfmrmod",
3
+ "version": "1.0.0",
4
+ "description": "Koishi 插件:搜索 CurseForge/Modrinth/MCMod 并渲染图片卡片",
5
+ "main": "dist/index.js",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "exports": {
10
+ ".": "./dist/index.js",
11
+ "./package.json": "./package.json"
12
+ },
13
+ "keywords": [
14
+ "koishi",
15
+ "koishi-plugin",
16
+ "minecraft",
17
+ "curseforge",
18
+ "modrinth",
19
+ "mod",
20
+ "modpack",
21
+ "mcmod",
22
+ "mcmod.cn"
23
+ ],
24
+ "author": "mai_xiyu",
25
+ "homepage": "https://github.com/Mai-xiyu/koishi-plugin-cfmrmod",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/Mai-xiyu/koishi-plugin-cfmrmod.git"
29
+ },
30
+ "bugs": {
31
+ "url": "https://github.com/Mai-xiyu/koishi-plugin-cfmrmod/issues"
32
+ },
33
+ "license": "MIT",
34
+ "engines": {
35
+ "node": ">=14"
36
+ },
37
+ "scripts": {
38
+ "build": "tsc -p tsconfig.json",
39
+ "pub": "npm run build && npm publish --access public"
40
+ },
41
+ "peerDependencies": {
42
+ "koishi": "^4.0.0"
43
+ },
44
+ "dependencies": {
45
+ "@napi-rs/canvas": "^0.1.55",
46
+ "cheerio": "^1.0.0-rc.12",
47
+ "marked": "^9.1.5",
48
+ "node-fetch": "^2.6.12"
49
+ },
50
+ "devDependencies": {
51
+ "typescript": "^5.6.3"
52
+ },
53
+ "koishi": {
54
+ "description": {
55
+ "zh": "从 CurseForge/Modrinth/MCMod 搜索模组/整合包/光影等内容,并生成图片卡片。"
56
+ }
57
+ }
58
+ }