@zhin.js/plugin-60s 4.0.10 → 4.0.12

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/commands/60s.js CHANGED
@@ -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 handler from "../lib/handlers/60s-news.js";
4
4
  export default defineCommand({
5
5
  description: '每日60秒新闻',
package/commands/60s.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import handler from '../src/handlers/60s-news.js';
3
3
 
4
4
  export default defineCommand({
package/commands/bing.js CHANGED
@@ -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 handler from "../lib/handlers/bing-image.js";
4
4
  export default defineCommand({
5
5
  description: 'Bing 每日壁纸',
package/commands/bing.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import handler from '../src/handlers/bing-image.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 handler from "../../lib/handlers/douyin-hot.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 handler from '../../src/handlers/douyin-hot.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 handler from "../lib/handlers/duanzi.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 handler from '../src/handlers/duanzi.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 handler from "../lib/handlers/exchange-rate.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 handler from '../src/handlers/exchange-rate.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 handler from "../../lib/handlers/translate.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 handler from '../../src/handlers/translate.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 handler from "../../lib/handlers/fuel-price.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 handler from '../../src/handlers/fuel-price.js';
3
3
 
4
4
  export default defineCommand({
package/commands/gold.js CHANGED
@@ -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 handler from "../lib/handlers/gold-price.js";
4
4
  export default defineCommand({
5
5
  description: '今日金价',
package/commands/gold.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import handler from '../src/handlers/gold-price.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 handler from "../lib/handlers/history-today.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 handler from '../src/handlers/history-today.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 handler from "../../lib/handlers/hitokoto.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 handler from '../../src/handlers/hitokoto.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 handler from "../../lib/handlers/ip-query.js";
4
4
  export default defineCommand({
5
5
  description: 'IP 查询',
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import handler from '../../src/handlers/ip-query.js';
3
3
 
4
4
  export default defineCommand({
package/commands/kfc.js CHANGED
@@ -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 handler from "../lib/handlers/kfc.js";
4
4
  export default defineCommand({
5
5
  description: 'KFC 文案',
package/commands/kfc.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import handler from '../src/handlers/kfc.js';
3
3
 
4
4
  export default defineCommand({
package/commands/moyu.js CHANGED
@@ -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 handler from "../lib/handlers/moyu.js";
4
4
  export default defineCommand({
5
5
  description: '摸鱼日历',
package/commands/moyu.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import handler from '../src/handlers/moyu.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 handler from "../../lib/handlers/toutiao-hot.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 handler from '../../src/handlers/toutiao-hot.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 handler from "../../lib/handlers/weather.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 handler from '../../src/handlers/weather.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 handler from "../../lib/handlers/weibo-hot.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 handler from '../../src/handlers/weibo-hot.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 handler from "../../lib/handlers/zhihu-hot.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 handler from '../../src/handlers/zhihu-hot.js';
3
3
 
4
4
  export default defineCommand({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/plugin-60s",
3
- "version": "4.0.10",
3
+ "version": "4.0.12",
4
4
  "description": "60s API aggregation plugin for Zhin.js — news, weather, hot searches, utilities (Plugin Runtime)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -45,24 +45,28 @@
45
45
  },
46
46
  "license": "MIT",
47
47
  "dependencies": {
48
- "@zhin.js/command": "1.0.13",
49
- "@zhin.js/plugin-runtime": "1.1.6",
50
- "@zhin.js/tool": "1.0.10"
48
+ "@zhin.js/tool": "1.0.11"
51
49
  },
52
50
  "devDependencies": {
53
51
  "typescript": "^6.0.3",
54
52
  "vitest": "^4.1.10",
55
53
  "zod": "^4.4.3",
56
- "@zhin.js/agent": "1.1.10"
54
+ "@zhin.js/agent": "1.1.12",
55
+ "zhin.js": "6.0.10"
57
56
  },
58
57
  "peerDependencies": {
59
58
  "zod": "^4.0.0",
60
- "@zhin.js/agent": "1.1.10"
59
+ "@zhin.js/agent": "1.1.12",
60
+ "@zhin.js/command": "1.0.14",
61
+ "zhin.js": "6.0.10"
61
62
  },
62
63
  "peerDependenciesMeta": {
63
64
  "@zhin.js/agent": {
64
65
  "optional": true
65
66
  },
67
+ "@zhin.js/command": {
68
+ "optional": true
69
+ },
66
70
  "zod": {
67
71
  "optional": true
68
72
  }
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
  import { DEFAULT_API_BASE, registerSixtySApiBase } from "./lib/runtime-deps.js";
4
4
  export default definePlugin({
5
5
  name: 'sixty-s',