@cobrowser/chatgpt 0.7.24 → 0.7.25
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.
|
@@ -109,7 +109,7 @@ class BaseService {
|
|
|
109
109
|
if (!data) {
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
112
|
-
const parsed = JSON.parse(data),
|
|
112
|
+
const parsed = JSON.parse(data), text = parsed.data[0].translation, sanitized = xss_validation_1.XSSProtector.sanitize(text), encoded = xss_validation_1.XSSProtector.encode(sanitized);
|
|
113
113
|
parsed.data[0].translation = encoded;
|
|
114
114
|
logger_1.default.info({ data, parsed, sanitized, encoded }, ':: Sanitized Response ::');
|
|
115
115
|
return JSON.stringify(parsed);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobrowser/chatgpt",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.25",
|
|
4
4
|
"description": "chatgpt services to connect our projects with chatgpt api",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chatgpt",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"bugs": {
|
|
41
41
|
"url": "https://bitbucket.org/cobrowser/cb_utils/issues"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "57125454a3d76587d6c7a193ce382c98c14c978d"
|
|
44
44
|
}
|