@ywfe/fe-tools 1.0.2-beta.11 → 1.0.2-beta.13
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 +2 -0
- package/lib/request.d.ts +9 -0
- package/lib/userInputToJson.d.ts +8 -0
- package/lib/ywfe-tools.cjs.js +8782 -0
- package/lib/ywfe-tools.cjs.js.map +1 -0
- package/lib/ywfe-tools.esm.js +23 -26
- package/lib/ywfe-tools.esm.js.map +1 -1
- package/package.json +2 -2
- package/rollup.config.js +1 -1
- package/userInputToJson.ts +3 -1
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"private": false,
|
3
3
|
"name": "@ywfe/fe-tools",
|
4
|
-
"version": "1.0.2-beta.
|
4
|
+
"version": "1.0.2-beta.13",
|
5
5
|
"description": "工具函数库",
|
6
6
|
"main": "./lib/ywfe-tools.esm.js",
|
7
7
|
"module": "./lib/ywfe-tools.esm.js",
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"scripts": {
|
10
10
|
"build": "rollup -c",
|
11
11
|
"build:type": "tsc -p ./tsconfig.type.json",
|
12
|
-
"prepublishOnly": "npm run build",
|
12
|
+
"prepublishOnly": "npm run build && npm run build:type",
|
13
13
|
"test": "jest --coverage"
|
14
14
|
},
|
15
15
|
"repository": "ywfe",
|
package/rollup.config.js
CHANGED
package/userInputToJson.ts
CHANGED
@@ -4,7 +4,9 @@ interface userInput {
|
|
4
4
|
rules?:string,
|
5
5
|
}
|
6
6
|
async function userInputToJson({input}:{input:userInput}){
|
7
|
-
|
7
|
+
console.log(input)
|
8
|
+
//const {userInput, rules} = input
|
9
|
+
//@ts-ignore
|
8
10
|
const res = await feTools.request({
|
9
11
|
input:{
|
10
12
|
url:"https://fc-typechat.ywwl.com/userInputToJson",
|