dlzn-ui 2.0.66 → 2.0.68
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.
- package/main.mjs +1 -0
- package/package.json +2 -1
- package/utils/index.mjs +3 -3
- package/utils/tool.d.ts +1 -0
- package/utils/tool.mjs +7 -3
package/main.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import { autoAnimatePlugin as a } from "@formkit/auto-animate/vue";
|
|
|
8
8
|
import { createApp as o } from "vue";
|
|
9
9
|
import "tdesign-vue-next/es/style/index.css";
|
|
10
10
|
//#region ../../packages/dlzn-ui/main.ts
|
|
11
|
+
VITE_APP_ID === "2" && import("navigator.locks");
|
|
11
12
|
var s = o(n);
|
|
12
13
|
s.config.throwUnhandledErrorInProduction = !0, s.use(i), s.use(t), s.use(r), s.use(a), e().getAppInfo();
|
|
13
14
|
//#endregion
|
package/package.json
CHANGED
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"@alova/adapter-xhr": "^2.3.3",
|
|
90
90
|
"@alova/scene-vue": "^1.6.2",
|
|
91
91
|
"@bprogress/core": "^1.3.4",
|
|
92
|
+
"@fingerprintjs/fingerprintjs": "^5.3.0",
|
|
92
93
|
"@formkit/auto-animate": "^0.10.0",
|
|
93
94
|
"@iconify/vue": "^5.0.1",
|
|
94
95
|
"@types/file-saver": "^2.0.7",
|
|
@@ -112,7 +113,7 @@
|
|
|
112
113
|
"> 1%",
|
|
113
114
|
"not dead"
|
|
114
115
|
],
|
|
115
|
-
"version": "2.0.
|
|
116
|
+
"version": "2.0.68",
|
|
116
117
|
"scripts": {
|
|
117
118
|
"dev": "vite --config play/vite.config.ts"
|
|
118
119
|
}
|
package/utils/index.mjs
CHANGED
|
@@ -3,6 +3,6 @@ import { getDomRangeWidth as n } from "./dom.mjs";
|
|
|
3
3
|
import { t as r } from "../chunks/utils-ag05P503.mjs";
|
|
4
4
|
import { formatNumber as i, formatSecondsToChinese as a } from "./number.mjs";
|
|
5
5
|
import { getFilenameFromUrl as o, queryStringToObject as s, stringDisplay as c } from "./string.mjs";
|
|
6
|
-
import { aesDecrypt as l, aesEncrypt as u,
|
|
7
|
-
import { flatArrToTree as
|
|
8
|
-
export { l as aesDecrypt, u as aesEncrypt, r as findLabel,
|
|
6
|
+
import { aesDecrypt as l, aesEncrypt as u, getFingerprint as d, sanitizeHtml as f, saveAs as p } from "./tool.mjs";
|
|
7
|
+
import { flatArrToTree as m, treeToFlatArr as h } from "./tree.mjs";
|
|
8
|
+
export { l as aesDecrypt, u as aesEncrypt, r as findLabel, m as flatArrToTree, i as formatNumber, a as formatSecondsToChinese, n as getDomRangeWidth, o as getFilenameFromUrl, d as getFingerprint, e as isFalsy, t as isValidNumberString, s as queryStringToObject, f as sanitizeHtml, p as saveAs, c as stringDisplay, h as treeToFlatArr };
|
package/utils/tool.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import { Config } from 'dompurify';
|
|
|
2
2
|
import { default as FileSaver } from 'file-saver';
|
|
3
3
|
export declare function aesDecrypt(word: string, keyWord: string): Promise<string>;
|
|
4
4
|
export declare function aesEncrypt(word: string, keyWord: string): Promise<string>;
|
|
5
|
+
export declare function getFingerprint(): Promise<string>;
|
|
5
6
|
export declare function sanitizeHtml(dirty: Node | string, cfg?: Config): Promise<string>;
|
|
6
7
|
export declare function saveAs(arg1: Parameters<typeof FileSaver.saveAs>[0], arg2?: Parameters<typeof FileSaver.saveAs>[1], arg3?: FileSaver.FileSaverOptions): Promise<void>;
|
package/utils/tool.mjs
CHANGED
|
@@ -13,13 +13,17 @@ async function t(e, t) {
|
|
|
13
13
|
padding: n.pad.Pkcs7
|
|
14
14
|
}).toString();
|
|
15
15
|
}
|
|
16
|
-
async function n(
|
|
16
|
+
async function n() {
|
|
17
|
+
let { default: e } = await import("@fingerprintjs/fingerprintjs");
|
|
18
|
+
return (await (await e.load()).get()).visitorId;
|
|
19
|
+
}
|
|
20
|
+
async function r(e, t) {
|
|
17
21
|
let { default: n } = await import("dompurify");
|
|
18
22
|
return n.sanitize(e, t);
|
|
19
23
|
}
|
|
20
|
-
async function
|
|
24
|
+
async function i(e, t, n) {
|
|
21
25
|
let { default: r } = await import("file-saver");
|
|
22
26
|
r(e, t, n);
|
|
23
27
|
}
|
|
24
28
|
//#endregion
|
|
25
|
-
export { e as aesDecrypt, t as aesEncrypt, n as
|
|
29
|
+
export { e as aesDecrypt, t as aesEncrypt, n as getFingerprint, r as sanitizeHtml, i as saveAs };
|