@whyour/qinglong 0.17.0 → 0.18.0

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.
Files changed (33) hide show
  1. package/package.json +2 -2
  2. package/sample/notify.js +3 -2
  3. package/sample/notify.py +136 -276
  4. package/sample/test.js +8 -0
  5. package/sample/test.py +8 -0
  6. package/shell/share.sh +14 -0
  7. package/static/build/api/script.js +1 -1
  8. package/static/build/config/util.js +4 -4
  9. package/static/build/services/cron.js +1 -1
  10. package/static/build/services/notify.js +1 -1
  11. package/static/build/services/subscription.js +1 -1
  12. package/static/dist/index.html +1 -1
  13. package/static/dist/{src__pages__crontab__detail.2ab4f3e8.async.js → src__pages__crontab__detail.a2bfd72a.async.js} +1 -1
  14. package/static/dist/src__pages__crontab__index.98d464c0.async.js +1 -0
  15. package/static/dist/src__pages__log__index.e7377c48.async.js +1 -0
  16. package/static/dist/src__pages__script__editNameModal.3eabdcdb.async.js +1 -0
  17. package/static/dist/src__pages__script__index.8d14185b.async.js +1 -0
  18. package/static/dist/{umi.3bb00f35.js → umi.11c81ea6.js} +1 -1
  19. package/version.yaml +10 -8
  20. package/static/build/data/cron.js +0 -69
  21. package/static/build/data/cronView.js +0 -39
  22. package/static/build/data/dependence.js +0 -70
  23. package/static/build/data/env.js +0 -38
  24. package/static/build/data/index.js +0 -27
  25. package/static/build/data/notify.js +0 -183
  26. package/static/build/data/open.js +0 -23
  27. package/static/build/data/sock.js +0 -12
  28. package/static/build/data/subscription.js +0 -82
  29. package/static/build/data/system.js +0 -36
  30. package/static/dist/src__pages__crontab__index.719429ac.async.js +0 -1
  31. package/static/dist/src__pages__log__index.44c6a008.async.js +0 -1
  32. package/static/dist/src__pages__script__editNameModal.55a6bcbb.async.js +0 -1
  33. package/static/dist/src__pages__script__index.2a8d8477.async.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whyour/qinglong",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Timed task management platform supporting Python3, JavaScript, Shell, Typescript",
5
5
  "repository": {
6
6
  "type": "git",
@@ -182,7 +182,7 @@
182
182
  "ts-node": "^10.6.0",
183
183
  "ts-proto": "^1.146.0",
184
184
  "tslib": "^2.4.0",
185
- "tsx": "^3.12.3",
185
+ "tsx": "^4.7.3",
186
186
  "typescript": "5.2.2",
187
187
  "vh-check": "^2.0.5",
188
188
  "virtualizedtableforantd4": "1.3.0",
package/sample/notify.js CHANGED
@@ -1121,7 +1121,7 @@ function fsBotNotify(text, desp) {
1121
1121
  console.log(err);
1122
1122
  } else {
1123
1123
  data = JSON.parse(data);
1124
- if (data.StatusCode === 0) {
1124
+ if (data.StatusCode === 0 || data.code === 0) {
1125
1125
  console.log('飞书发送通知消息成功🎉\n');
1126
1126
  } else {
1127
1127
  console.log(`${data.msg}\n`);
@@ -1379,7 +1379,7 @@ function parseHeaders(headers) {
1379
1379
 
1380
1380
  function parseBody(body, contentType, valueFormatFn) {
1381
1381
  if (contentType === 'text/plain' || !body) {
1382
- return body;
1382
+ return valueFormatFn && body ? valueFormatFn(body) : body;
1383
1383
  }
1384
1384
 
1385
1385
  const parsed = parseString(body, valueFormatFn);
@@ -1407,6 +1407,7 @@ function formatBodyFun(contentType, body) {
1407
1407
  case 'multipart/form-data':
1408
1408
  return { form: body };
1409
1409
  case 'application/x-www-form-urlencoded':
1410
+ case 'text/plain':
1410
1411
  return { body };
1411
1412
  }
1412
1413
  return {};