ns-rss-spider 0.0.9 → 0.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/dist/cjs/parse.js CHANGED
@@ -64,10 +64,10 @@ async function parseRss(name, feed, server) {
64
64
  ...server
65
65
  });
66
66
  if (server.callback) {
67
- const r2 = await import_axios.default.post(server.callback, {}, {
68
- timeout: 1e3 * 5
67
+ import_axios.default.post(server.callback, {}, {
68
+ timeout: 1e3 * 1
69
+ }).catch((e) => {
69
70
  });
70
- console.log("callback result", r2);
71
71
  }
72
72
  return r;
73
73
  } else {
@@ -51,7 +51,8 @@ async function uploadContent({
51
51
  }
52
52
  let result = [];
53
53
  for (let item of filterItems) {
54
- console.log(import_zx.chalk.green("正在获取上传地址", item.title));
54
+ console.log(import_zx.chalk.green("start", item.title));
55
+ console.log(import_zx.chalk.green("正在获取上传地址"));
55
56
  const uploadRst = await import_axios.default.post(getUploadApi, {
56
57
  app,
57
58
  name: (0, import_dayjs.default)(item.pubDate).format("MM-DDTHH-mm-ss") + Math.random().toString(32).slice(2)
@@ -66,7 +67,7 @@ async function uploadContent({
66
67
  }
67
68
  const url = uploadRst.data.data.url;
68
69
  const storePath = uploadRst.data.data.storePath;
69
- console.log(import_zx.chalk.green("正在上传", item.title, url));
70
+ console.log(import_zx.chalk.green("正在上传"));
70
71
  const res = await import_axios.default.put(url, item).catch((e) => {
71
72
  console.error(import_zx.chalk.red("upload oss error"), e);
72
73
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ns-rss-spider",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",