@zhin.js/plugin-short-url 4.0.9 → 4.0.11

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.
@@ -1,5 +1,5 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { defineCommand } from '@zhin.js/command';
2
+ import { defineCommand } from 'zhin.js/command';
3
3
  import { expandUrl, isValidUrl } from "../../lib/short-url-lib.js";
4
4
  export default defineCommand({
5
5
  description: '展开一个短链接,显示原始地址',
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import { expandUrl, isValidUrl } from '../../src/short-url-lib.js';
3
3
 
4
4
  export default defineCommand({
@@ -1,5 +1,5 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { defineCommand } from '@zhin.js/command';
2
+ import { defineCommand } from 'zhin.js/command';
3
3
  import { isValidUrl, shortenUrl } from "../../lib/short-url-lib.js";
4
4
  export default defineCommand({
5
5
  description: '缩短一个 URL',
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import { isValidUrl, shortenUrl } from '../../src/short-url-lib.js';
3
3
 
4
4
  export default defineCommand({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/plugin-short-url",
3
- "version": "4.0.9",
3
+ "version": "4.0.11",
4
4
  "description": "URL shortener plugin for Zhin.js — shorten & expand URLs (Plugin Runtime)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -36,19 +36,17 @@
36
36
  "url": "https://github.com/lc-cn"
37
37
  },
38
38
  "license": "MIT",
39
- "dependencies": {
40
- "@zhin.js/command": "1.0.12",
41
- "@zhin.js/plugin-runtime": "1.1.6"
42
- },
43
39
  "devDependencies": {
44
40
  "typescript": "^6.0.3",
45
41
  "vitest": "^4.1.10",
46
42
  "zod": "^4.4.3",
47
- "@zhin.js/agent": "1.1.9"
43
+ "@zhin.js/agent": "1.1.11",
44
+ "zhin.js": "6.0.10"
48
45
  },
49
46
  "peerDependencies": {
50
47
  "zod": "^4.0.0",
51
- "@zhin.js/agent": "1.1.9"
48
+ "@zhin.js/agent": "1.1.11",
49
+ "zhin.js": "6.0.10"
52
50
  },
53
51
  "peerDependenciesMeta": {
54
52
  "@zhin.js/agent": {
package/plugin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { definePlugin } from '@zhin.js/plugin-runtime';
2
+ import { definePlugin } from 'zhin.js';
3
3
  export default definePlugin({
4
4
  name: 'short-url',
5
5
  metadata: {