@ywfe/fe-tools 1.0.2-beta.11 → 1.0.2-beta.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,3 @@
1
- 'use strict';
2
-
3
1
  /******************************************************************************
4
2
  Copyright (c) Microsoft Corporation.
5
3
 
@@ -60,6 +58,28 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
60
58
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
61
59
  };
62
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
+ console.log(input);
69
+ return [4 /*yield*/, feTools.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
+
63
83
  function getAugmentedNamespace(n) {
64
84
  if (n.__esModule) return n;
65
85
  var f = n.default;
@@ -8755,28 +8775,5 @@ function request(_a) {
8755
8775
  });
8756
8776
  }
8757
8777
 
8758
- function userInputToJson(_a) {
8759
- return __awaiter(this, arguments, void 0, function (_b) {
8760
- var res;
8761
- var input = _b.input;
8762
- return __generator(this, function (_c) {
8763
- switch (_c.label) {
8764
- case 0:
8765
- input.userInput, input.rules;
8766
- return [4 /*yield*/, feTools.request({
8767
- input: {
8768
- url: "https://fc-typechat.ywwl.com/userInputToJson",
8769
- method: "GET"
8770
- }
8771
- })];
8772
- case 1:
8773
- res = _c.sent();
8774
- return [2 /*return*/, res];
8775
- }
8776
- });
8777
- });
8778
- }
8779
-
8780
- exports.request = request;
8781
- exports.userInputToJson = userInputToJson;
8778
+ export { request, userInputToJson };
8782
8779
  //# sourceMappingURL=ywfe-tools.esm.js.map