@ywfe/fe-tools 1.2.1-beta.23 → 1.2.1-beta.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -8789,5 +8789,18 @@ function userInputToJson(_a) {
8789
8789
  });
8790
8790
  }
8791
8791
 
8792
- export { request, userInputToJson };
8792
+ // Ctrl-S保存代码
8793
+ function JSON2String(_a) {
8794
+ var input = _a.input;
8795
+ var data = input.data;
8796
+ try {
8797
+ var str = JSON.stringify(data);
8798
+ return '```json' + str + 'json```';
8799
+ }
8800
+ catch (error) {
8801
+ return '```json' + '{}' + 'json```';
8802
+ }
8803
+ }
8804
+
8805
+ export { JSON2String, request, userInputToJson };
8793
8806
  //# sourceMappingURL=ywfe-tools.esm.js.map