ns-rss-spider 1.1.12 → 1.1.14

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.
@@ -0,0 +1,4 @@
1
+ import { ParseTpl } from "../parseContent/newsletter/types";
2
+ import { ParseStrategy } from "../types";
3
+ export declare const tpl: ParseTpl;
4
+ export declare const aiweekly: ParseStrategy;
@@ -0,0 +1,56 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/parsers/aiweekly.ts
20
+ var aiweekly_exports = {};
21
+ __export(aiweekly_exports, {
22
+ aiweekly: () => aiweekly,
23
+ tpl: () => tpl
24
+ });
25
+ module.exports = __toCommonJS(aiweekly_exports);
26
+ var import_tpl = require("../parseContent/newsletter/tpl");
27
+ var tpl = {
28
+ description: ".category.cc-comment #comment > .item--issue",
29
+ descriptionRemoveLink: true,
30
+ groupTopic: {
31
+ group: ".issue__body > .category",
32
+ title: "h2.category__title",
33
+ item: ".item.item--issue",
34
+ noteLink: "h3.item__title > a",
35
+ noteBody: "p",
36
+ noteRichDesc: true,
37
+ noteRichDescRemoveLink: true
38
+ }
39
+ };
40
+ var aiweekly = {
41
+ parse: true,
42
+ fetcher: "http",
43
+ articleType: "newsletter",
44
+ getContentElementFromArticle($) {
45
+ return $("article.issue");
46
+ },
47
+ run: async ($, el) => {
48
+ const rst = await (0, import_tpl.parse)(tpl, $, el);
49
+ return rst;
50
+ }
51
+ };
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ aiweekly,
55
+ tpl
56
+ });
@@ -0,0 +1,2 @@
1
+ import { ParseStrategy } from "../types";
2
+ export declare const op7418: ParseStrategy;
@@ -0,0 +1,31 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/parsers/op7418.ts
20
+ var op7418_exports = {};
21
+ __export(op7418_exports, {
22
+ op7418: () => op7418
23
+ });
24
+ module.exports = __toCommonJS(op7418_exports);
25
+ var op7418 = {
26
+ parse: false
27
+ };
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ op7418
31
+ });
@@ -37,6 +37,8 @@ var import_iosdevweekly = require("./parsers/iosdevweekly");
37
37
  var import_cssweekly = require("./parsers/cssweekly");
38
38
  var import_javascriptweekly = require("./parsers/javascriptweekly");
39
39
  var import_oschina_project = require("./parsers/oschina-project");
40
+ var import_op7418 = require("./parsers/op7418");
41
+ var import_aiweekly = require("./parsers/aiweekly");
40
42
  var strategies = {
41
43
  cnbeta: import_cnbeta.cnbeta,
42
44
  ifanr: import_ifanr.ifanr,
@@ -55,7 +57,10 @@ var strategies = {
55
57
  javascriptweekly: import_javascriptweekly.javascriptweekly,
56
58
  nodeweekly: import_javascriptweekly.javascriptweekly,
57
59
  reactstatus: import_javascriptweekly.javascriptweekly,
58
- frontendfocus: import_javascriptweekly.javascriptweekly
60
+ frontendfocus: import_javascriptweekly.javascriptweekly,
61
+ // aigc weekly
62
+ op7418: import_op7418.op7418,
63
+ aiweekly: import_aiweekly.aiweekly
59
64
  };
60
65
  // Annotate the CommonJS export names for ESM import in node:
61
66
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ns-rss-spider",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",