@fsystem/fswt-ui-tools 0.3.6 → 0.3.7

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.
@@ -35,10 +35,10 @@ export function downloadBase64Image(fileName: string, base64: string): void;
35
35
  /**
36
36
  * 下载
37
37
  * @param {string} filename 下载文件名
38
- * @param {string} filetype 下载文件类型 'application/txt'
39
38
  * @param {array} buffer 下载数据
39
+ * @param {string} filetype 下载文件类型 不填写,则从 buffer中获取类型 'application/txt'
40
40
  */
41
- export function downloadFile(filename: string, filetype: string, buffer: array): void;
41
+ export function downloadFile(filename: string, buffer: array, filetype: string): Promise<void>;
42
42
  /**
43
43
  * 根据url地址下载
44
44
  * @param {*} url
package/package.json CHANGED
@@ -1,38 +1,39 @@
1
- {
2
- "name": "@fsystem/fswt-ui-tools",
3
- "version": "0.3.6",
4
- "description": "Personal package.",
5
- "main": "dist/fswt-ui-tools.umd.js",
6
- "module": "dist/fswt-ui-tools.es.js",
7
- "typings": "dist/types/index.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "type": "module",
12
- "scripts": {
13
- "dev": "vite",
14
- "build": "vite build --force",
15
- "serve": "vite preview",
16
- "upload": "npm run build && npm publish --registry https://registry.npmjs.com/ --access public"
17
- },
18
- "author": "@fsystem",
19
- "license": "MIT",
20
- "dependencies": {
21
- "iconv-lite": "^0.6.3",
22
- "rollup": "^3.18.0"
23
- },
24
- "publishConfig": {
25
- "registry": "https://registry.npmjs.org/",
26
- "access": "public"
27
- },
28
- "devDependencies": {
29
- "@rollup/plugin-commonjs": "^24.0.1",
30
- "@rollup/plugin-node-resolve": "^15.0.1",
31
- "@rollup/plugin-typescript": "^11.0.0",
32
- "eslint": "^8.36.0",
33
- "eslint-config-fswti": "workspace:*",
34
- "typescript": "^4.9.3",
35
- "vite": "^4.0.4",
36
- "vite-tsconfig-paths": "^4.0.7"
37
- }
38
- }
1
+ {
2
+ "name": "@fsystem/fswt-ui-tools",
3
+ "version": "0.3.7",
4
+ "description": "Personal package.",
5
+ "main": "dist/fswt-ui-tools.umd.js",
6
+ "module": "dist/fswt-ui-tools.es.js",
7
+ "typings": "dist/types/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "type": "module",
12
+ "scripts": {
13
+ "dev": "vite",
14
+ "build": "vite build --force",
15
+ "serve": "vite preview",
16
+ "upload": "npm run build && npm publish --registry https://registry.npmjs.com/ --access public"
17
+ },
18
+ "author": "@fsystem",
19
+ "license": "MIT",
20
+ "dependencies": {
21
+ "file-type": "^21.0.0",
22
+ "iconv-lite": "^0.6.3",
23
+ "rollup": "^3.18.0"
24
+ },
25
+ "publishConfig": {
26
+ "registry": "https://registry.npmjs.org/",
27
+ "access": "public"
28
+ },
29
+ "devDependencies": {
30
+ "@rollup/plugin-commonjs": "^24.0.1",
31
+ "@rollup/plugin-node-resolve": "^15.0.1",
32
+ "@rollup/plugin-typescript": "^11.0.0",
33
+ "eslint": "^8.36.0",
34
+ "eslint-config-fswti": "workspace:*",
35
+ "typescript": "^4.9.3",
36
+ "vite": "^4.0.4",
37
+ "vite-tsconfig-paths": "^4.0.7"
38
+ }
39
+ }