@zhin.js/plugin-rss 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.
- package/commands/rss-add/[url].js +1 -1
- package/commands/rss-add/[url].ts +1 -1
- package/commands/rss-check/[[url]].js +1 -1
- package/commands/rss-check/[[url]].ts +1 -1
- package/commands/rss-list.js +1 -1
- package/commands/rss-list.ts +1 -1
- package/commands/rss-preview/[url].js +1 -1
- package/commands/rss-preview/[url].ts +1 -1
- package/commands/rss-remove/[url].js +1 -1
- package/commands/rss-remove/[url].ts +1 -1
- package/lib/db-store.d.ts +1 -1
- package/lib/db-store.d.ts.map +1 -1
- package/lib/db-store.js +1 -1
- package/lib/db-store.js.map +1 -1
- package/package.json +6 -6
- package/plugin.js +1 -1
- package/src/db-store.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { defineCommand } from '
|
|
2
|
+
import { defineCommand } from 'zhin.js/command';
|
|
3
3
|
import { extractChannelInfo } from "../../lib/channel.js";
|
|
4
4
|
import { getRssSeen, getRssSubs } from "../../lib/db-store.js";
|
|
5
5
|
import { fetchFeed, resolveRssConfig } from "../../lib/feed.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineCommand } from '
|
|
1
|
+
import { defineCommand } from 'zhin.js/command';
|
|
2
2
|
import { extractChannelInfo } from '../../src/channel.js';
|
|
3
3
|
import { getRssSeen, getRssSubs } from '../../src/db-store.js';
|
|
4
4
|
import { fetchFeed, resolveRssConfig, type RssConfig } from '../../src/feed.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { defineCommand } from '
|
|
2
|
+
import { defineCommand } from 'zhin.js/command';
|
|
3
3
|
import { extractChannelInfo } from "../../lib/channel.js";
|
|
4
4
|
import { getRssSubs } from "../../lib/db-store.js";
|
|
5
5
|
import { resolveRssConfig } from "../../lib/feed.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineCommand } from '
|
|
1
|
+
import { defineCommand } from 'zhin.js/command';
|
|
2
2
|
import { extractChannelInfo } from '../../src/channel.js';
|
|
3
3
|
import { getRssSubs } from '../../src/db-store.js';
|
|
4
4
|
import { resolveRssConfig, type RssConfig } from '../../src/feed.js';
|
package/commands/rss-list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { defineCommand } from '
|
|
2
|
+
import { defineCommand } from 'zhin.js/command';
|
|
3
3
|
import { extractChannelInfo } from "../lib/channel.js";
|
|
4
4
|
import { getRssSubs } from "../lib/db-store.js";
|
|
5
5
|
import { resolveRssConfig } from "../lib/feed.js";
|
package/commands/rss-list.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineCommand } from '
|
|
1
|
+
import { defineCommand } from 'zhin.js/command';
|
|
2
2
|
import { extractChannelInfo } from '../src/channel.js';
|
|
3
3
|
import { getRssSubs } from '../src/db-store.js';
|
|
4
4
|
import { resolveRssConfig, type RssConfig } from '../src/feed.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { defineCommand } from '
|
|
2
|
+
import { defineCommand } from 'zhin.js/command';
|
|
3
3
|
import { fetchFeed, formatFeedPreview, resolveRssConfig } from "../../lib/feed.js";
|
|
4
4
|
export default defineCommand({
|
|
5
5
|
description: '预览一个 RSS 源的最新内容(不订阅)',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { defineCommand } from '
|
|
2
|
+
import { defineCommand } from 'zhin.js/command';
|
|
3
3
|
import { extractChannelInfo } from "../../lib/channel.js";
|
|
4
4
|
import { getRssSubs } from "../../lib/db-store.js";
|
|
5
5
|
export default defineCommand({
|
package/lib/db-store.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createInMemoryRssDb, RSS_SEEN_TABLE, RSS_SUBS_TABLE, type RssMemoryDb, type RssModel, } from './memory-store.js';
|
|
2
|
-
import { type Dispose, type GenerationStoreContext } from '
|
|
2
|
+
import { type Dispose, type GenerationStoreContext } from 'zhin.js';
|
|
3
3
|
import { type RssMemoryDb, type RssModel } from './memory-store.js';
|
|
4
4
|
/**
|
|
5
5
|
* Generation-owned database binding used by Plugin Runtime setup().
|
package/lib/db-store.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-store.d.ts","sourceRoot":"","sources":["../src/db-store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,KAAK,WAAW,EAChB,KAAK,QAAQ,GACd,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAyB,KAAK,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"db-store.d.ts","sourceRoot":"","sources":["../src/db-store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,KAAK,WAAW,EAChB,KAAK,QAAQ,GACd,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAyB,KAAK,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAC3F,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,QAAQ,EACd,MAAM,mBAAmB,CAAC;AAO3B;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAEtF;AAED,wBAAgB,iBAAiB,IAAI,WAAW,CAK/C;AAED,wBAAgB,QAAQ,IAAI,WAAW,GAAG,IAAI,CAE7C;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI,CAErD;AAED,wBAAgB,UAAU,IAAI,IAAI,CAIjC;AAED,wBAAgB,UAAU,IAAI,QAAQ,GAAG,IAAI,CAE5C;AAED,wBAAgB,UAAU,IAAI,QAAQ,GAAG,IAAI,CAE5C"}
|
package/lib/db-store.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createInMemoryRssDb, RSS_SEEN_TABLE, RSS_SUBS_TABLE, } from './memory-store.js';
|
|
2
|
-
import { createGenerationStore } from '
|
|
2
|
+
import { createGenerationStore } from 'zhin.js';
|
|
3
3
|
import { createInMemoryRssDb, RSS_SEEN_TABLE, RSS_SUBS_TABLE, } from './memory-store.js';
|
|
4
4
|
const rssDbStore = createGenerationStore('rss/db');
|
|
5
5
|
let _db = null;
|
package/lib/db-store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-store.js","sourceRoot":"","sources":["../src/db-store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,cAAc,GAGf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,qBAAqB,EAA6C,MAAM,
|
|
1
|
+
{"version":3,"file":"db-store.js","sourceRoot":"","sources":["../src/db-store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,cAAc,GAGf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,qBAAqB,EAA6C,MAAM,SAAS,CAAC;AAC3F,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,cAAc,GAGf,MAAM,mBAAmB,CAAC;AAE3B,MAAM,UAAU,GAAG,qBAAqB,CAAc,QAAQ,CAAC,CAAC;AAEhE,IAAI,GAAG,GAAuB,IAAI,CAAC;AACnC,IAAI,SAAS,GAAuB,IAAI,CAAC;AAEzC;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,OAA+B,EAAE,EAAe;IAC3E,OAAO,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC/B,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC;IAC5C,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAC9B,IAAI,CAAC,SAAS;QAAE,SAAS,GAAG,mBAAmB,EAAE,CAAC;IAClD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,QAAQ;IACtB,OAAO,iBAAiB,EAAE,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,EAAsB;IAC7C,GAAG,GAAG,EAAE,CAAC;AACX,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,UAAU,CAAC,KAAK,EAAE,CAAC;IACnB,GAAG,GAAG,IAAI,CAAC;IACX,SAAS,GAAG,IAAI,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,OAAO,iBAAiB,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,OAAO,iBAAiB,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC;AAChE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/plugin-rss",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
4
4
|
"description": "RSS/Atom feed subscription plugin for Zhin.js (Plugin Runtime)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -40,19 +40,19 @@
|
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"rss-parser": "^3.13.0"
|
|
44
|
-
"@zhin.js/command": "1.0.12",
|
|
45
|
-
"@zhin.js/plugin-runtime": "1.1.6"
|
|
43
|
+
"rss-parser": "^3.13.0"
|
|
46
44
|
},
|
|
47
45
|
"devDependencies": {
|
|
48
46
|
"typescript": "^6.0.3",
|
|
49
47
|
"vitest": "^4.1.10",
|
|
50
48
|
"zod": "^4.4.3",
|
|
51
|
-
"@zhin.js/agent": "1.1.
|
|
49
|
+
"@zhin.js/agent": "1.1.11",
|
|
50
|
+
"zhin.js": "6.0.10"
|
|
52
51
|
},
|
|
53
52
|
"peerDependencies": {
|
|
54
53
|
"zod": "^4.0.0",
|
|
55
|
-
"@zhin.js/agent": "1.1.
|
|
54
|
+
"@zhin.js/agent": "1.1.11",
|
|
55
|
+
"zhin.js": "6.0.10"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@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, databaseHostToken, outboundHostToken, scheduleHostToken, } from '
|
|
2
|
+
import { definePlugin, databaseHostToken, outboundHostToken, scheduleHostToken, } from 'zhin.js';
|
|
3
3
|
import { fetchFeed, resolveRssConfig } from "./lib/feed.js";
|
|
4
4
|
import { ensureRssMemoryDb, getRssSubs, provideRssDb, RSS_SEEN_TABLE, RSS_SUBS_TABLE, } from "./lib/db-store.js";
|
|
5
5
|
import { setRssAgentDeps } from "./lib/rss-agent-deps.js";
|
package/src/db-store.ts
CHANGED
|
@@ -6,7 +6,7 @@ export {
|
|
|
6
6
|
type RssModel,
|
|
7
7
|
} from './memory-store.js';
|
|
8
8
|
|
|
9
|
-
import { createGenerationStore, type Dispose, type GenerationStoreContext } from '
|
|
9
|
+
import { createGenerationStore, type Dispose, type GenerationStoreContext } from 'zhin.js';
|
|
10
10
|
import {
|
|
11
11
|
createInMemoryRssDb,
|
|
12
12
|
RSS_SEEN_TABLE,
|