@ywfe/fe-tools 1.2.1-beta.20 → 1.2.1-beta.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -58,6 +58,28 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
58
58
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
59
59
  };
60
60
 
61
+ function userInputToJson(_a) {
62
+ return __awaiter(this, arguments, void 0, function (_b) {
63
+ var res;
64
+ var input = _b.input;
65
+ return __generator(this, function (_c) {
66
+ switch (_c.label) {
67
+ case 0:
68
+ input.userInput, input.rules;
69
+ return [4 /*yield*/, request({
70
+ input: {
71
+ url: "https://fc-typechat.ywwl.com/userInputToJson",
72
+ method: "GET"
73
+ }
74
+ })];
75
+ case 1:
76
+ res = _c.sent();
77
+ return [2 /*return*/, res];
78
+ }
79
+ });
80
+ });
81
+ }
82
+
61
83
  function getAugmentedNamespace(n) {
62
84
  if (n.__esModule) return n;
63
85
  var f = n.default;
@@ -8753,27 +8775,5 @@ function request(_a) {
8753
8775
  });
8754
8776
  }
8755
8777
 
8756
- function userInputToJson(_a) {
8757
- return __awaiter(this, arguments, void 0, function (_b) {
8758
- var res;
8759
- var input = _b.input;
8760
- return __generator(this, function (_c) {
8761
- switch (_c.label) {
8762
- case 0:
8763
- input.userInput, input.rules;
8764
- return [4 /*yield*/, request({
8765
- input: {
8766
- url: "https://fc-typechat.ywwl.com/userInputToJson",
8767
- method: "GET"
8768
- }
8769
- })];
8770
- case 1:
8771
- res = _c.sent();
8772
- return [2 /*return*/, res];
8773
- }
8774
- });
8775
- });
8776
- }
8777
-
8778
8778
  export { request, userInputToJson };
8779
8779
  //# sourceMappingURL=ywfe-tools.esm.js.map