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

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.18",
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
+ }
@@ -21,5 +21,4 @@ async function userInputToJson({ input }: { input: userInput }) {
21
21
  return res.success ? res.data : res;
22
22
  }
23
23
  }
24
-
25
24
  export default userInputToJson
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;