ns-rss-spider 0.0.17 → 0.0.18

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,6 +1,7 @@
1
1
  import { ServerInfo } from "./upload";
2
2
  export declare function parseRss(name: string, feed: string, server?: ServerInfo): Promise<import("./types").Article[] | {
3
3
  storePath: any;
4
+ source?: string | undefined;
4
5
  type: "simple" | "rich";
5
6
  guid: string;
6
7
  title: string;
@@ -8,6 +9,5 @@ export declare function parseRss(name: string, feed: string, server?: ServerInfo
8
9
  description: string;
9
10
  pubDate: Date;
10
11
  author?: string | undefined;
11
- source?: string | undefined;
12
12
  categories?: string | undefined;
13
13
  }[]>;
package/dist/cjs/parse.js CHANGED
@@ -39,7 +39,11 @@ var import_parseContent = require("./parseContent");
39
39
  var import_upload = require("./upload");
40
40
  var import_axios = __toESM(require("axios"));
41
41
  async function parseRss(name, feed, server) {
42
- const parser = new import_rss_parser.default();
42
+ const parser = new import_rss_parser.default({
43
+ customFields: {
44
+ item: ["source"]
45
+ }
46
+ });
43
47
  console.log(import_zx.chalk.green("正在拉取 rss 列表"));
44
48
  const result = await parser.parseURL(feed);
45
49
  if (!result.items.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ns-rss-spider",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",
@@ -10,7 +10,6 @@
10
10
  "build": "father build",
11
11
  "build:deps": "father prebundle",
12
12
  "check": "father doctor",
13
- "prepublishOnly": "father doctor && npm run build",
14
13
  "sync": "echo '去更新 registry 版本: https://www.npmmirror.com/sync/ns-rss-spider'",
15
14
  "pub": "npm run check && npm version patch && npm run build && npm publish --registry=https://registry.npmjs.org && git push origin master --tags && npm run sync"
16
15
  },