@ywfe/fe-tools 1.2.1-beta.21 → 1.2.1-beta.22
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/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/index.ts
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/userInputToJson.d.ts
CHANGED
package/lib/ywfe-tools.cjs
CHANGED
|
@@ -60,6 +60,28 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
60
60
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
+
function userInputToJson(_a) {
|
|
64
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
65
|
+
var res;
|
|
66
|
+
var input = _b.input;
|
|
67
|
+
return __generator(this, function (_c) {
|
|
68
|
+
switch (_c.label) {
|
|
69
|
+
case 0:
|
|
70
|
+
input.userInput, input.rules;
|
|
71
|
+
return [4 /*yield*/, request({
|
|
72
|
+
input: {
|
|
73
|
+
url: "https://fc-typechat.ywwl.com/userInputToJson",
|
|
74
|
+
method: "GET"
|
|
75
|
+
}
|
|
76
|
+
})];
|
|
77
|
+
case 1:
|
|
78
|
+
res = _c.sent();
|
|
79
|
+
return [2 /*return*/, res];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
63
85
|
function getAugmentedNamespace(n) {
|
|
64
86
|
if (n.__esModule) return n;
|
|
65
87
|
var f = n.default;
|
|
@@ -8755,22 +8777,6 @@ function request(_a) {
|
|
|
8755
8777
|
});
|
|
8756
8778
|
}
|
|
8757
8779
|
|
|
8758
|
-
function userInputToJson(_a) {
|
|
8759
|
-
return __awaiter(this, arguments, void 0, function (_b) {
|
|
8760
|
-
var input = _b.input;
|
|
8761
|
-
return __generator(this, function (_c) {
|
|
8762
|
-
input.userInput, input.rules;
|
|
8763
|
-
//const res = await fetools.request({
|
|
8764
|
-
//input:{
|
|
8765
|
-
//url:"https://fc-typechat.ywwl.com/userInputToJson",
|
|
8766
|
-
//method:"GET"
|
|
8767
|
-
//}
|
|
8768
|
-
//})
|
|
8769
|
-
return [2 /*return*/, "2"];
|
|
8770
|
-
});
|
|
8771
|
-
});
|
|
8772
|
-
}
|
|
8773
|
-
|
|
8774
8780
|
exports.request = request;
|
|
8775
8781
|
exports.userInputToJson = userInputToJson;
|
|
8776
8782
|
//# sourceMappingURL=ywfe-tools.cjs.map
|