@ywfe/fe-tools 1.2.1-beta.33 → 1.2.1-beta.34
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
@@ -8782,15 +8782,12 @@ function userInputToJson(_a) {
|
|
8782
8782
|
function JSON2String(_a) {
|
8783
8783
|
var input = _a.input;
|
8784
8784
|
var data = input.data;
|
8785
|
-
var result = { content: '' };
|
8786
8785
|
try {
|
8787
8786
|
var str = JSON.stringify(data);
|
8788
|
-
|
8789
|
-
return result;
|
8787
|
+
return '```json' + str + 'json```';
|
8790
8788
|
}
|
8791
8789
|
catch (error) {
|
8792
|
-
|
8793
|
-
return result;
|
8790
|
+
return '```json' + '{}' + 'json```';
|
8794
8791
|
}
|
8795
8792
|
}
|
8796
8793
|
|