ztxkutils 2.8.16 → 2.8.17
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/dist/index.js +1 -1
- package/dist/{tools-439efebb.js → tools-aa1fafe4.js} +10 -4
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +1 -1
- package/dist/workflow.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { c as authority } from './authority-5bc06c1a.js';
|
2
2
|
export { d as dataModel } from './dataModel-1fbaff40.js';
|
3
|
-
export { t as tools } from './tools-
|
3
|
+
export { t as tools } from './tools-aa1fafe4.js';
|
4
4
|
export { v as validate } from './validate-3e15dd74.js';
|
5
5
|
export { r as request } from './request-09b081d4.js';
|
6
6
|
export { r as reqUrl } from './reqUrl-88fcc5c5.js';
|
@@ -259,10 +259,16 @@ function copyContent(text) {
|
|
259
259
|
* @description 处理转义字符
|
260
260
|
*/
|
261
261
|
function dangerouslySetXss(str) {
|
262
|
-
var
|
263
|
-
|
264
|
-
|
265
|
-
|
262
|
+
var _a;
|
263
|
+
try {
|
264
|
+
var arrEntities_1 = { lt: '', gt: '', nbsp: ' ', amp: '&', quot: '"' };
|
265
|
+
return (_a = str === null || str === void 0 ? void 0 : str.replace) === null || _a === void 0 ? void 0 : _a.call(str, /&(lt|gt|nbsp|amp|quot);/gi, function (all, t) {
|
266
|
+
return arrEntities_1[t];
|
267
|
+
});
|
268
|
+
}
|
269
|
+
catch (err) {
|
270
|
+
return str;
|
271
|
+
}
|
266
272
|
}
|
267
273
|
|
268
274
|
var tools = /*#__PURE__*/Object.freeze({
|
package/dist/tools.d.ts
CHANGED
package/dist/tools.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import './tslib.es6-f9459658.js';
|
2
2
|
import 'dayjs';
|
3
3
|
export { minus, plus, times } from 'number-precision';
|
4
|
-
export { S as SHOWFRAME_KEY, c as clearAssignStr, h as copyContent, j as dangerouslySetXss, d as divide, e as exactRound, g as getUrlSearch, i as isEqualByKey, l as loadFileRename, s as showFrame, a as timeTransfrom, b as toThousand, f as transformFileSize } from './tools-
|
4
|
+
export { S as SHOWFRAME_KEY, c as clearAssignStr, h as copyContent, j as dangerouslySetXss, d as divide, e as exactRound, g as getUrlSearch, i as isEqualByKey, l as loadFileRename, s as showFrame, a as timeTransfrom, b as toThousand, f as transformFileSize } from './tools-aa1fafe4.js';
|
package/dist/workflow.js
CHANGED