@zhin.js/plugin-short-url 1.1.4 → 1.1.6
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 -10
- package/package.json +7 -9
- package/plugin.js +2 -1
- package/schema.json +0 -6
package/README.md
CHANGED
|
@@ -5,24 +5,18 @@ Zhin.js plugin for short-url functionality.
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
pnpm
|
|
8
|
+
pnpm exec zhin install @zhin.js/plugin-short-url
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Run the installation command from your application directory. It installs the package and mounts the `short-url` instance in `package.json#zhin.plugins`. The corresponding `zhin.config.yml` node is:
|
|
14
14
|
|
|
15
15
|
```yaml
|
|
16
16
|
plugins:
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Or via CLI:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
zhin install @zhin.js/plugin-short-url
|
|
17
|
+
short-url: {}
|
|
24
18
|
```
|
|
25
19
|
|
|
26
20
|
## Configuration
|
|
27
21
|
|
|
28
|
-
|
|
22
|
+
This plugin currently has no configuration fields. Its `plugin.ts` declares `config: Schema.object({})`, shared by Runtime validation and Console forms, and accepts an empty object; do not place package names in a `plugins` array.
|
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.6",
|
|
4
4
|
"description": "URL shortener plugin for Zhin.js — shorten & expand URLs (Plugin Runtime)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -8,14 +8,12 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./lib/index.d.ts",
|
|
11
|
-
"development": "./src/index.ts",
|
|
12
11
|
"import": "./lib/index.js"
|
|
13
12
|
},
|
|
14
13
|
"./package.json": "./package.json"
|
|
15
14
|
},
|
|
16
15
|
"files": [
|
|
17
16
|
"plugin.js",
|
|
18
|
-
"schema.json",
|
|
19
17
|
"commands",
|
|
20
18
|
"src",
|
|
21
19
|
"lib",
|
|
@@ -41,12 +39,12 @@
|
|
|
41
39
|
"typescript": "^6.0.3",
|
|
42
40
|
"vitest": "^4.1.10",
|
|
43
41
|
"zod": "^4.4.3",
|
|
44
|
-
"zhin.js": "1.1.
|
|
42
|
+
"zhin.js": "1.1.9"
|
|
45
43
|
},
|
|
46
44
|
"peerDependencies": {
|
|
47
45
|
"zod": "^4.0.0",
|
|
48
|
-
"@zhin.js/command": "^1.1.
|
|
49
|
-
"zhin.js": "^1.1.
|
|
46
|
+
"@zhin.js/command": "^1.1.7",
|
|
47
|
+
"zhin.js": "^1.1.9"
|
|
50
48
|
},
|
|
51
49
|
"peerDependenciesMeta": {
|
|
52
50
|
"@zhin.js/command": {
|
|
@@ -66,7 +64,7 @@
|
|
|
66
64
|
"registry": "https://registry.npmjs.org"
|
|
67
65
|
},
|
|
68
66
|
"engines": {
|
|
69
|
-
"node": "
|
|
67
|
+
"node": ">=22.19.0"
|
|
70
68
|
},
|
|
71
69
|
"zhin": {
|
|
72
70
|
"protocol": 1,
|
|
@@ -91,8 +89,8 @@
|
|
|
91
89
|
"plugins": []
|
|
92
90
|
},
|
|
93
91
|
"dependencies": {
|
|
94
|
-
"@zhin.js/
|
|
95
|
-
"@zhin.js/
|
|
92
|
+
"@zhin.js/skill": "1.1.6",
|
|
93
|
+
"@zhin.js/tool": "1.1.6"
|
|
96
94
|
},
|
|
97
95
|
"scripts": {
|
|
98
96
|
"build": "tsc",
|
package/plugin.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { definePlugin } from 'zhin.js';
|
|
2
|
+
import { definePlugin, Schema } from 'zhin.js';
|
|
3
3
|
export default definePlugin({
|
|
4
4
|
name: 'short-url',
|
|
5
|
+
config: Schema.object({}),
|
|
5
6
|
metadata: {
|
|
6
7
|
displayName: 'Short URL',
|
|
7
8
|
},
|