@ywfe/fe-tools 1.2.1-beta.21 → 1.2.1-beta.22
Sign up to get free protection for your applications and to get access to all the features.
- package/index.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/userInputToJson.d.ts +1 -1
- package/lib/ywfe-tools.cjs +22 -16
- package/lib/ywfe-tools.cjs.map +1 -1
- package/lib/ywfe-tools.esm.js +22 -16
- package/lib/ywfe-tools.esm.js.map +1 -1
- package/package.json +1 -1
- package/userInputToJson.ts +8 -7
package/lib/ywfe-tools.esm.js
CHANGED
@@ -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,21 +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 input = _b.input;
|
8759
|
-
return __generator(this, function (_c) {
|
8760
|
-
input.userInput, input.rules;
|
8761
|
-
//const res = await fetools.request({
|
8762
|
-
//input:{
|
8763
|
-
//url:"https://fc-typechat.ywwl.com/userInputToJson",
|
8764
|
-
//method:"GET"
|
8765
|
-
//}
|
8766
|
-
//})
|
8767
|
-
return [2 /*return*/, "2"];
|
8768
|
-
});
|
8769
|
-
});
|
8770
|
-
}
|
8771
|
-
|
8772
8778
|
export { request, userInputToJson };
|
8773
8779
|
//# sourceMappingURL=ywfe-tools.esm.js.map
|