@ywfe/fe-tools 1.2.1-beta.31 → 1.2.1-beta.33
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/userInputToJson.d.ts +5 -1
- package/lib/ywfe-tools.cjs +10 -17
- package/lib/ywfe-tools.cjs.map +1 -1
- package/lib/ywfe-tools.esm.js +10 -17
- package/lib/ywfe-tools.esm.js.map +1 -1
- package/lib/ywfe-tools.umd.js +1 -1
- package/lib/ywfe-tools.umd.js.map +1 -1
- package/package.json +1 -1
- package/userInputToJson.ts +3 -7
package/lib/ywfe-tools.esm.js
CHANGED
@@ -8758,28 +8758,21 @@ function request(_a) {
|
|
8758
8758
|
|
8759
8759
|
function userInputToJson(_a) {
|
8760
8760
|
return __awaiter(this, arguments, void 0, function (_b) {
|
8761
|
-
var res
|
8761
|
+
var res;
|
8762
8762
|
var input = _b.input;
|
8763
8763
|
return __generator(this, function (_c) {
|
8764
8764
|
switch (_c.label) {
|
8765
|
-
case 0:
|
8766
|
-
|
8767
|
-
|
8768
|
-
|
8769
|
-
|
8770
|
-
|
8771
|
-
|
8772
|
-
},
|
8773
|
-
})];
|
8765
|
+
case 0: return [4 /*yield*/, request({
|
8766
|
+
input: {
|
8767
|
+
url: "https://fc-typechat.ywwl.com/userInputToJson",
|
8768
|
+
method: "GET",
|
8769
|
+
params: input,
|
8770
|
+
},
|
8771
|
+
})];
|
8774
8772
|
case 1:
|
8775
8773
|
res = _c.sent();
|
8776
|
-
|
8777
|
-
|
8778
|
-
return [2 /*return*/, result.success ? result.data : result];
|
8779
|
-
}
|
8780
|
-
else {
|
8781
|
-
return [2 /*return*/, res.success ? res.data : res];
|
8782
|
-
}
|
8774
|
+
console.log('userINput1', res);
|
8775
|
+
return [2 /*return*/, res];
|
8783
8776
|
}
|
8784
8777
|
});
|
8785
8778
|
});
|