@ywfe/fe-tools 1.2.1-beta.31 → 1.2.1-beta.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/userInputToJson.d.ts
CHANGED
package/lib/ywfe-tools.cjs
CHANGED
|
@@ -8760,28 +8760,21 @@ function request(_a) {
|
|
|
8760
8760
|
|
|
8761
8761
|
function userInputToJson(_a) {
|
|
8762
8762
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
8763
|
-
var res
|
|
8763
|
+
var res;
|
|
8764
8764
|
var input = _b.input;
|
|
8765
8765
|
return __generator(this, function (_c) {
|
|
8766
8766
|
switch (_c.label) {
|
|
8767
|
-
case 0:
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
|
|
8773
|
-
|
|
8774
|
-
},
|
|
8775
|
-
})];
|
|
8767
|
+
case 0: return [4 /*yield*/, request({
|
|
8768
|
+
input: {
|
|
8769
|
+
url: "https://fc-typechat.ywwl.com/userInputToJson",
|
|
8770
|
+
method: "GET",
|
|
8771
|
+
params: input,
|
|
8772
|
+
},
|
|
8773
|
+
})];
|
|
8776
8774
|
case 1:
|
|
8777
8775
|
res = _c.sent();
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
return [2 /*return*/, result.success ? result.data : result];
|
|
8781
|
-
}
|
|
8782
|
-
else {
|
|
8783
|
-
return [2 /*return*/, res.success ? res.data : res];
|
|
8784
|
-
}
|
|
8776
|
+
console.log('userINput1', res);
|
|
8777
|
+
return [2 /*return*/, res];
|
|
8785
8778
|
}
|
|
8786
8779
|
});
|
|
8787
8780
|
});
|