@ywfe/fe-tools 1.2.1-beta.16 → 1.2.1-beta.17

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@ywfe/fe-tools",
4
- "version": "1.2.1-beta.16",
4
+ "version": "1.2.1-beta.17",
5
5
  "description": "工具函数库",
6
6
  "main": "./lib/ywfe-tools.cjs",
7
7
  "module": "./lib/ywfe-tools.esm.js",
@@ -24,17 +24,16 @@
24
24
  "@rollup/plugin-node-resolve": "^15.2.3",
25
25
  "@rollup/plugin-replace": "^5.0.7",
26
26
  "@rollup/plugin-typescript": "^11.1.6",
27
- "@ywfe/utils": "^0.10.74",
28
27
  "crypto-js": "^4.0.0",
29
28
  "ramda": "^0.27.1",
30
- "rollup": "^4.18.0",
31
29
  "rollup-plugin-clear": "^2.0.7",
32
30
  "rollup-plugin-node-polyfills": "^0.2.1",
33
31
  "rollup-plugin-progress": "^1.1.2",
34
32
  "rollup-plugin-terser": "^7.0.2",
35
33
  "strtok3": "^6.3.0",
36
34
  "token-types": "^4.2.0",
37
- "uuid": "^8.3.2"
35
+ "uuid": "^8.3.2",
36
+ "rollup": "^4.18.0"
38
37
  },
39
38
  "gitHead": "795058c747c80a3a69f6904dccffb53c42acfcc7"
40
- }
39
+ }
package/JSON2String.ts DELETED
@@ -1,13 +0,0 @@
1
- interface userInput {
2
- data?: object;
3
- }
4
- function JSON2String({ input }) {
5
- const { data = {} } = input;
6
- try {
7
- return "```json" + JSON.stringify(data) + "json```";
8
- } catch (error) {
9
- return "```json" + JSON.stringify({}) + "json```";
10
- }
11
- }
12
-
13
- export default JSON2String
@@ -1,4 +0,0 @@
1
- declare function JSON2String({ input }: {
2
- input: any;
3
- }): string;
4
- export default JSON2String;
@@ -1,8 +0,0 @@
1
- interface userInput {
2
- userInput?: string;
3
- rules?: string;
4
- }
5
- declare function userInputToJson({ input }: {
6
- input: userInput;
7
- }): Promise<any>;
8
- export default userInputToJson;
@@ -1,25 +0,0 @@
1
- import {request} from './index'
2
- // Ctrl-S保存代码
3
- interface userInput {
4
- userInput?: string;
5
- rules?: string;
6
- }
7
- async function userInputToJson({ input }: { input: userInput }) {
8
- console.log("input", input);
9
- const res: { message: string; success: boolean; data: any } =
10
- await request({
11
- input: {
12
- url: "https://fc-typechat.ywwl.com/userInputToJson",
13
- method: "GET",
14
- params: input,
15
- },
16
- });
17
- if (res.success) {
18
- const result = res.data;
19
- return result.success ? result.data : result;
20
- } else {
21
- return res.success ? res.data : res;
22
- }
23
- }
24
-
25
- export default userInputToJson