@ywfe/fe-tools 1.2.1-beta.0 → 1.2.1-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/userInputToJson.d.ts +1 -1
- package/lib/ywfe-tools.cjs +14 -8
- package/lib/ywfe-tools.cjs.map +1 -1
- package/lib/ywfe-tools.esm.js +14 -8
- package/lib/ywfe-tools.esm.js.map +1 -1
- package/package.json +1 -1
- package/request.ts +1 -1
- package/userInputToJson.ts +8 -7
package/lib/userInputToJson.d.ts
CHANGED
package/lib/ywfe-tools.cjs
CHANGED
@@ -8757,16 +8757,22 @@ function request(_a) {
|
|
8757
8757
|
|
8758
8758
|
function userInputToJson(_a) {
|
8759
8759
|
return __awaiter(this, arguments, void 0, function (_b) {
|
8760
|
+
var res;
|
8760
8761
|
var input = _b.input;
|
8761
8762
|
return __generator(this, function (_c) {
|
8762
|
-
|
8763
|
-
|
8764
|
-
|
8765
|
-
|
8766
|
-
|
8767
|
-
|
8768
|
-
|
8769
|
-
|
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
|
+
}
|
8770
8776
|
});
|
8771
8777
|
});
|
8772
8778
|
}
|