@ywfe/fe-tools 1.2.1-beta.23 → 1.2.1-beta.24
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.
- package/JSON2String.ts +14 -0
- package/index.ts +1 -0
- package/lib/JSON2String.d.ts +7 -0
- package/lib/index.d.ts +1 -0
- package/lib/ywfe-tools.cjs +14 -0
- package/lib/ywfe-tools.cjs.map +1 -1
- package/lib/ywfe-tools.esm.js +14 -1
- package/lib/ywfe-tools.esm.js.map +1 -1
- package/lib/ywfe-tools.umd.js +2 -2
- package/lib/ywfe-tools.umd.js.map +1 -1
- package/package.json +1 -1
package/lib/ywfe-tools.esm.js
CHANGED
@@ -8789,5 +8789,18 @@ function userInputToJson(_a) {
|
|
8789
8789
|
});
|
8790
8790
|
}
|
8791
8791
|
|
8792
|
-
|
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
|