@das-fed/utils 6.4.0-dev.102 → 6.4.0-dev.103

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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 获取文件后缀名
3
+ * @param filename
4
+ * @returns
5
+ */
6
+ export declare const getFileExtension: (filename: string) => any;
@@ -0,0 +1,7 @@
1
+ const n = (t) => {
2
+ const e = t.lastIndexOf(".");
3
+ return e === -1 ? "" : t.slice(e);
4
+ };
5
+ export {
6
+ n as getFileExtension
7
+ };
@@ -10,4 +10,5 @@ export * from '@das-fed/utils/common-tools/platform-tools';
10
10
  export * from '@das-fed/utils/common-tools/update-fav-icon';
11
11
  export * from '@das-fed/utils/common-tools/update-browser-title';
12
12
  export * from '@das-fed/utils/common-tools/extract-file-name';
13
+ export * from '@das-fed/utils/common-tools/get-file-extension';
13
14
  export * from '@das-fed/utils/common-tools/calc-text-width';
@@ -10,4 +10,5 @@ export * from "@das-fed/utils/common-tools/platform-tools";
10
10
  export * from "@das-fed/utils/common-tools/update-fav-icon";
11
11
  export * from "@das-fed/utils/common-tools/update-browser-title";
12
12
  export * from "@das-fed/utils/common-tools/extract-file-name";
13
+ export * from "@das-fed/utils/common-tools/get-file-extension";
13
14
  export * from "@das-fed/utils/common-tools/calc-text-width";
package/esm-map.json CHANGED
@@ -140,5 +140,6 @@
140
140
  "getPersonalConfig": "/common-info/index",
141
141
  "getProjectMessage": "/common-info/index",
142
142
  "analyApi": "/api-services/modules/iot/index",
143
- "calcTextWidth": "/common-tools/calc-text-width/index"
143
+ "calcTextWidth": "/common-tools/calc-text-width/index",
144
+ "getFileExtension": "/common-tools/get-file-extension/index"
144
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/utils",
3
- "version": "6.4.0-dev.102",
3
+ "version": "6.4.0-dev.103",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -9,7 +9,7 @@
9
9
  "license": "ISC",
10
10
  "dependencies": {
11
11
  "@antv/x6": "^2.18.1",
12
- "@das-fed/utils": "6.4.0-dev.102",
12
+ "@das-fed/utils": "6.4.0-dev.103",
13
13
  "@vue/shared": "^3.4.21",
14
14
  "@vueuse/core": "^9.6.0",
15
15
  "axios": "^1.6.7",
@@ -21,8 +21,8 @@
21
21
  "vue": "^3.4.21"
22
22
  },
23
23
  "devDependencies": {
24
- "@das-fed/cli": "6.4.0-dev.102",
25
- "@das-fed/web": "6.4.0-dev.102",
24
+ "@das-fed/cli": "6.4.0-dev.103",
25
+ "@das-fed/web": "6.4.0-dev.103",
26
26
  "@types/js-cookie": "^3.0.6",
27
27
  "@types/lodash-es": "^4.17.12",
28
28
  "@types/qs": "^6.9.15",