wechaty-web-panel 1.4.0 → 1.4.1
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.
|
@@ -6,7 +6,7 @@ exports.packageJson = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
exports.packageJson = {
|
|
8
8
|
"name": "wechaty-web-panel",
|
|
9
|
-
"version": "1.4.
|
|
9
|
+
"version": "1.4.1",
|
|
10
10
|
"description": "",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
@@ -79,8 +79,8 @@ exports.packageJson = {
|
|
|
79
79
|
"openai": "^3.1.0",
|
|
80
80
|
"puppeteer": "^13.3.2",
|
|
81
81
|
"qrcode-terminal": "^0.12.0",
|
|
82
|
-
"remark": "^
|
|
83
|
-
"strip-markdown": "^
|
|
82
|
+
"remark": "^13.0.0",
|
|
83
|
+
"strip-markdown": "^4.2.0",
|
|
84
84
|
"superagent": "^5.2.2"
|
|
85
85
|
},
|
|
86
86
|
"publishConfig": {
|
|
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.geGPTReply = void 0;
|
|
7
|
-
const remark_1 = require("remark");
|
|
7
|
+
const remark_1 = __importDefault(require("remark"));
|
|
8
8
|
const strip_markdown_1 = __importDefault(require("strip-markdown"));
|
|
9
9
|
const openai_1 = require("openai");
|
|
10
10
|
const configDb_js_1 = require("../db/configDb.js");
|
|
11
11
|
let openai = null;
|
|
12
12
|
function markdownToText(markdown) {
|
|
13
|
-
return (0, remark_1.
|
|
13
|
+
return (0, remark_1.default)()
|
|
14
14
|
.use(strip_markdown_1.default)
|
|
15
15
|
.processSync(markdown || '')
|
|
16
16
|
.toString();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const packageJson = {
|
|
5
5
|
"name": "wechaty-web-panel",
|
|
6
|
-
"version": "1.4.
|
|
6
|
+
"version": "1.4.1",
|
|
7
7
|
"description": "",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
@@ -76,8 +76,8 @@ export const packageJson = {
|
|
|
76
76
|
"openai": "^3.1.0",
|
|
77
77
|
"puppeteer": "^13.3.2",
|
|
78
78
|
"qrcode-terminal": "^0.12.0",
|
|
79
|
-
"remark": "^
|
|
80
|
-
"strip-markdown": "^
|
|
79
|
+
"remark": "^13.0.0",
|
|
80
|
+
"strip-markdown": "^4.2.0",
|
|
81
81
|
"superagent": "^5.2.2"
|
|
82
82
|
},
|
|
83
83
|
"publishConfig": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wechaty-web-panel",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"openai": "^3.1.0",
|
|
74
74
|
"puppeteer": "^13.3.2",
|
|
75
75
|
"qrcode-terminal": "^0.12.0",
|
|
76
|
-
"remark": "^
|
|
77
|
-
"strip-markdown": "^
|
|
76
|
+
"remark": "^13.0.0",
|
|
77
|
+
"strip-markdown": "^4.2.0",
|
|
78
78
|
"superagent": "^5.2.2"
|
|
79
79
|
},
|
|
80
80
|
"publishConfig": {
|