@ywfe/fe-tools 1.2.1-beta.39 → 1.2.1-beta.40
Sign up to get free protection for your applications and to get access to all the features.
- package/JSON2String.ts +2 -5
- package/lib/JSON2String.d.ts +1 -3
- package/lib/ywfe-tools.cjs +2 -5
- package/lib/ywfe-tools.cjs.map +1 -1
- package/lib/ywfe-tools.esm.js +2 -5
- package/lib/ywfe-tools.esm.js.map +1 -1
- package/lib/ywfe-tools.umd.js +1 -1
- package/lib/ywfe-tools.umd.js.map +1 -1
- package/package.json +1 -1
package/lib/ywfe-tools.esm.js
CHANGED
@@ -8783,15 +8783,12 @@ function userInputToJson(_a) {
|
|
8783
8783
|
function JSON2String(_a) {
|
8784
8784
|
var input = _a.input;
|
8785
8785
|
var data = input.data;
|
8786
|
-
var result = { content: '' };
|
8787
8786
|
try {
|
8788
8787
|
var str = JSON.stringify(data);
|
8789
|
-
|
8790
|
-
return result;
|
8788
|
+
return '```json' + str + 'json```';
|
8791
8789
|
}
|
8792
8790
|
catch (error) {
|
8793
|
-
|
8794
|
-
return result;
|
8791
|
+
return '```json' + '{}' + 'json```';
|
8795
8792
|
}
|
8796
8793
|
}
|
8797
8794
|
|