@zhin.js/plugin-short-url 1.1.6 → 1.1.8
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/README.md +4 -2
- package/package.json +8 -7
- package/plugin.js +1 -2
- package/schema.json +5 -0
package/README.md
CHANGED
|
@@ -10,11 +10,13 @@ pnpm exec zhin install @zhin.js/plugin-short-url
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
Run the installation command from your application directory. It installs the package and mounts the `short-url` instance in `
|
|
13
|
+
Run the installation command from your application directory. It installs the package and mounts the `short-url` instance in 主配置 `plugins` 映射. The corresponding `zhin.config.yml` node is:
|
|
14
14
|
|
|
15
15
|
```yaml
|
|
16
|
+
configVersion: 2
|
|
16
17
|
plugins:
|
|
17
|
-
short-url:
|
|
18
|
+
short-url: "@zhin.js/plugin-short-url"
|
|
19
|
+
short-url: {}
|
|
18
20
|
```
|
|
19
21
|
|
|
20
22
|
## Configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/plugin-short-url",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "URL shortener plugin for Zhin.js — shorten & expand URLs (Plugin Runtime)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"lib",
|
|
20
20
|
"tools",
|
|
21
21
|
"skills",
|
|
22
|
-
"README.md"
|
|
22
|
+
"README.md",
|
|
23
|
+
"schema.json"
|
|
23
24
|
],
|
|
24
25
|
"keywords": [
|
|
25
26
|
"zhin",
|
|
@@ -39,12 +40,12 @@
|
|
|
39
40
|
"typescript": "^6.0.3",
|
|
40
41
|
"vitest": "^4.1.10",
|
|
41
42
|
"zod": "^4.4.3",
|
|
42
|
-
"zhin.js": "1.1.
|
|
43
|
+
"zhin.js": "1.1.13"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
46
|
"zod": "^4.0.0",
|
|
46
|
-
"@zhin.js/command": "^1.1.
|
|
47
|
-
"zhin.js": "^1.1.
|
|
47
|
+
"@zhin.js/command": "^1.1.9",
|
|
48
|
+
"zhin.js": "^1.1.13"
|
|
48
49
|
},
|
|
49
50
|
"peerDependenciesMeta": {
|
|
50
51
|
"@zhin.js/command": {
|
|
@@ -89,8 +90,8 @@
|
|
|
89
90
|
"plugins": []
|
|
90
91
|
},
|
|
91
92
|
"dependencies": {
|
|
92
|
-
"@zhin.js/
|
|
93
|
-
"@zhin.js/
|
|
93
|
+
"@zhin.js/tool": "1.1.8",
|
|
94
|
+
"@zhin.js/skill": "1.1.8"
|
|
94
95
|
},
|
|
95
96
|
"scripts": {
|
|
96
97
|
"build": "tsc",
|
package/plugin.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { definePlugin
|
|
2
|
+
import { definePlugin } from 'zhin.js';
|
|
3
3
|
export default definePlugin({
|
|
4
4
|
name: 'short-url',
|
|
5
|
-
config: Schema.object({}),
|
|
6
5
|
metadata: {
|
|
7
6
|
displayName: 'Short URL',
|
|
8
7
|
},
|