ztxkutils 2.1.8 → 2.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  export { c as authority } from './authority-17b7fde2.js';
2
2
  export { d as dataModel } from './dataModel-1fbaff40.js';
3
- export { t as tools } from './tools-8207f0a0.js';
4
- export { v as validate } from './validate-e4351b64.js';
3
+ export { t as tools } from './tools-e7de0bcc.js';
4
+ export { v as validate } from './validate-01242f5f.js';
5
5
  export { r as request } from './request-74ca7860.js';
6
6
  export { r as reqUrl } from './reqUrl-68c864fb.js';
7
7
  import './tslib.es6-b9033aad.js';
@@ -0,0 +1,200 @@
1
+ import { _ as __assign, a as __spreadArray } from './tslib.es6-b9033aad.js';
2
+ import dayjs from 'dayjs';
3
+ import { divide as divide$1, round, plus, minus, times } from 'number-precision';
4
+
5
+ /**
6
+ * @description 时间格式转换
7
+ */
8
+ function timeTransfrom(timeParams) {
9
+ var _a, _b, _c, _d, _e;
10
+ var params = timeParams.params, fromKey = timeParams.fromKey, toKey = timeParams.toKey, _f = timeParams.type, type = _f === void 0 ? 'string' : _f;
11
+ var copyParams = __assign({}, params);
12
+ for (var i = 0; i < fromKey.length; i++) {
13
+ var fromKeyItem = fromKey[i];
14
+ var toKeyItem = toKey[i];
15
+ // 从一个键转换成两个键
16
+ if (typeof fromKeyItem === 'string' && typeof toKeyItem === 'object') {
17
+ if (type === 'string' && copyParams[fromKeyItem]) {
18
+ var _g = copyParams[fromKeyItem], startMoment = _g[0], endMoment = _g[1];
19
+ var start = void 0, end = void 0;
20
+ if (dayjs.isDayjs(startMoment)) {
21
+ start = startMoment.format('YYYY-MM-DD');
22
+ }
23
+ if (dayjs.isDayjs(endMoment)) {
24
+ end = endMoment.format('YYYY-MM-DD');
25
+ }
26
+ delete copyParams[fromKeyItem];
27
+ copyParams = __assign(__assign({}, copyParams), (_a = {}, _a[toKeyItem[0]] = start, _a[toKeyItem[1]] = end, _a));
28
+ }
29
+ else {
30
+ copyParams = __assign(__assign({}, copyParams), (_b = {}, _b[toKeyItem[0]] = undefined, _b[toKeyItem[1]] = undefined, _b));
31
+ }
32
+ }
33
+ // 从一个键转换成一个键
34
+ if (typeof fromKeyItem === 'string' && typeof toKeyItem === 'string') {
35
+ if (type === 'string') {
36
+ var _dayjsObj = copyParams[fromKeyItem];
37
+ var start = void 0;
38
+ if (dayjs.isDayjs(_dayjsObj)) {
39
+ start = _dayjsObj.format('YYYY-MM-DD');
40
+ }
41
+ delete copyParams[fromKeyItem];
42
+ copyParams = __assign(__assign({}, copyParams), (_c = {}, _c[toKeyItem] = start, _c));
43
+ }
44
+ if (type === 'object') {
45
+ var start = copyParams[fromKeyItem]
46
+ ? dayjs(copyParams[fromKeyItem])
47
+ : undefined;
48
+ delete copyParams[fromKeyItem];
49
+ copyParams = __assign(__assign({}, copyParams), (_d = {}, _d[toKeyItem] = start, _d));
50
+ }
51
+ }
52
+ // 从两个键转换成一个键
53
+ if (typeof fromKeyItem === 'object' && typeof toKeyItem === 'string') {
54
+ if (type === 'object') {
55
+ var startMoment = fromKeyItem[0], endMoment = fromKeyItem[1];
56
+ var intime = copyParams[toKeyItem] || [null, null];
57
+ if (copyParams[startMoment]) {
58
+ intime[0] = dayjs(copyParams[startMoment]);
59
+ delete copyParams[startMoment];
60
+ }
61
+ if (copyParams[endMoment]) {
62
+ intime[1] = dayjs(copyParams[endMoment]);
63
+ delete copyParams[endMoment];
64
+ }
65
+ if (intime[0] == null || intime[1] == null) {
66
+ intime = null;
67
+ }
68
+ copyParams = __assign(__assign({}, copyParams), (_e = {}, _e[toKeyItem] = intime, _e));
69
+ }
70
+ }
71
+ }
72
+ return copyParams;
73
+ }
74
+ function divide(num1, num2) {
75
+ var others = [];
76
+ for (var _i = 2; _i < arguments.length; _i++) {
77
+ others[_i - 2] = arguments[_i];
78
+ }
79
+ try {
80
+ return divide$1.apply(void 0, __spreadArray([num1, num2], others));
81
+ }
82
+ catch (err) {
83
+ console.log(err);
84
+ return 0;
85
+ }
86
+ }
87
+ /**
88
+ * @description 精确四舍五入后保留几位小数
89
+ */
90
+ function exactRound(num, ratio) {
91
+ var typeNum = typeof num;
92
+ if (typeNum !== 'number' && typeNum !== 'string') {
93
+ return num;
94
+ }
95
+ try {
96
+ return round(num, ratio).toFixed(ratio);
97
+ }
98
+ catch (err) {
99
+ console.error(err);
100
+ return num;
101
+ }
102
+ }
103
+ /**
104
+ * @description 添加千分符符号
105
+ */
106
+ function toThousand(num) {
107
+ var typeNum = typeof num;
108
+ if (typeNum !== 'number' && typeNum !== 'string') {
109
+ return num;
110
+ }
111
+ var str = (num + '').replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g, '$1,');
112
+ return str;
113
+ }
114
+ /**
115
+ * @description 去除指定字符串
116
+ */
117
+ function clearAssignStr(str, originalStr) {
118
+ if (!originalStr) {
119
+ return originalStr;
120
+ }
121
+ if (originalStr.startsWith(str)) {
122
+ return originalStr.replace(str, '');
123
+ }
124
+ return originalStr;
125
+ }
126
+ /**
127
+ * @description 下载重命名
128
+ */
129
+ function loadFileRename(fileUrl, fileName) {
130
+ var xhr = new XMLHttpRequest();
131
+ xhr.open('GET', fileUrl, true);
132
+ xhr.responseType = 'blob';
133
+ xhr.onload = function () {
134
+ if (xhr.status === 200) {
135
+ var link = document.createElement('a');
136
+ var body = document.querySelector('body');
137
+ link.href = window.URL.createObjectURL(xhr.response);
138
+ link.download = fileName;
139
+ // fix Firefox
140
+ link.style.display = 'none';
141
+ body.appendChild(link);
142
+ link.click();
143
+ body.removeChild(link);
144
+ window.URL.revokeObjectURL(link.href);
145
+ }
146
+ };
147
+ xhr.send();
148
+ }
149
+ /**
150
+ * @description 文件大小提示转换
151
+ */
152
+ function transformFileSize(value) {
153
+ if (value < 1024) {
154
+ return round(value, 2).toFixed(2) + 'B';
155
+ }
156
+ else if (value < 1024 * 1024) {
157
+ return round(divide(value, 1024), 2).toFixed(2) + 'KB';
158
+ }
159
+ return round(divide(value, 1024, 1024), 2).toFixed(2) + 'MB';
160
+ }
161
+ /**
162
+ * @description 更具key判断前后值是否一致
163
+ */
164
+ function isEqualByKey(keys, record, preRecord) {
165
+ var isEqual = false; // 是否相等
166
+ if (!record || !preRecord) {
167
+ isEqual = true;
168
+ return isEqual;
169
+ }
170
+ // 如果数据源相同的话,那么判断是初次更改,应该更新
171
+ if (record === preRecord) {
172
+ isEqual = true;
173
+ return isEqual;
174
+ }
175
+ for (var i = 0; i < keys.length; i++) {
176
+ var key = keys[i];
177
+ if (record[key] !== preRecord[key]) {
178
+ isEqual = true;
179
+ break;
180
+ }
181
+ }
182
+ return isEqual;
183
+ }
184
+
185
+ var tools = /*#__PURE__*/Object.freeze({
186
+ __proto__: null,
187
+ timeTransfrom: timeTransfrom,
188
+ plus: plus,
189
+ minus: minus,
190
+ times: times,
191
+ divide: divide,
192
+ exactRound: exactRound,
193
+ toThousand: toThousand,
194
+ clearAssignStr: clearAssignStr,
195
+ loadFileRename: loadFileRename,
196
+ transformFileSize: transformFileSize,
197
+ isEqualByKey: isEqualByKey
198
+ });
199
+
200
+ export { timeTransfrom as a, toThousand as b, clearAssignStr as c, divide as d, exactRound as e, transformFileSize as f, isEqualByKey as i, loadFileRename as l, tools as t };
@@ -0,0 +1,205 @@
1
+ import { _ as __assign, a as __spreadArray } from './tslib.es6-b9033aad.js';
2
+ import dayjs from 'dayjs';
3
+ import { divide as divide$1, round, plus, minus, times } from 'number-precision';
4
+
5
+ /**
6
+ * @description 时间格式转换
7
+ */
8
+ function timeTransfrom(timeParams) {
9
+ var _a, _b, _c, _d, _e;
10
+ var params = timeParams.params, fromKey = timeParams.fromKey, toKey = timeParams.toKey, _f = timeParams.type, type = _f === void 0 ? 'string' : _f, format = timeParams.format;
11
+ var copyParams = __assign({}, params);
12
+ for (var i = 0; i < fromKey.length; i++) {
13
+ var fromKeyItem = fromKey[i];
14
+ var toKeyItem = toKey[i];
15
+ var formatItem = Array.isArray(format)
16
+ ? format[i]
17
+ : format
18
+ ? format
19
+ : 'YYYY-MM-DD';
20
+ // 从一个键转换成两个键
21
+ if (typeof fromKeyItem === 'string' && typeof toKeyItem === 'object') {
22
+ if (type === 'string' && copyParams[fromKeyItem]) {
23
+ var _g = copyParams[fromKeyItem], startMoment = _g[0], endMoment = _g[1];
24
+ var start = void 0, end = void 0;
25
+ if (dayjs.isDayjs(startMoment)) {
26
+ start = startMoment.format(formatItem);
27
+ }
28
+ if (dayjs.isDayjs(endMoment)) {
29
+ end = endMoment.format(formatItem);
30
+ }
31
+ delete copyParams[fromKeyItem];
32
+ copyParams = __assign(__assign({}, copyParams), (_a = {}, _a[toKeyItem[0]] = start, _a[toKeyItem[1]] = end, _a));
33
+ }
34
+ else {
35
+ copyParams = __assign(__assign({}, copyParams), (_b = {}, _b[toKeyItem[0]] = undefined, _b[toKeyItem[1]] = undefined, _b));
36
+ }
37
+ }
38
+ // 从一个键转换成一个键
39
+ if (typeof fromKeyItem === 'string' && typeof toKeyItem === 'string') {
40
+ if (type === 'string') {
41
+ var _dayjsObj = copyParams[fromKeyItem];
42
+ var start = void 0;
43
+ if (dayjs.isDayjs(_dayjsObj)) {
44
+ start = _dayjsObj.format(formatItem);
45
+ }
46
+ delete copyParams[fromKeyItem];
47
+ copyParams = __assign(__assign({}, copyParams), (_c = {}, _c[toKeyItem] = start, _c));
48
+ }
49
+ if (type === 'object') {
50
+ var start = copyParams[fromKeyItem]
51
+ ? dayjs(copyParams[fromKeyItem])
52
+ : undefined;
53
+ delete copyParams[fromKeyItem];
54
+ copyParams = __assign(__assign({}, copyParams), (_d = {}, _d[toKeyItem] = start, _d));
55
+ }
56
+ }
57
+ // 从两个键转换成一个键
58
+ if (typeof fromKeyItem === 'object' && typeof toKeyItem === 'string') {
59
+ if (type === 'object') {
60
+ var startMoment = fromKeyItem[0], endMoment = fromKeyItem[1];
61
+ var intime = copyParams[toKeyItem] || [null, null];
62
+ if (copyParams[startMoment]) {
63
+ intime[0] = dayjs(copyParams[startMoment]);
64
+ delete copyParams[startMoment];
65
+ }
66
+ if (copyParams[endMoment]) {
67
+ intime[1] = dayjs(copyParams[endMoment]);
68
+ delete copyParams[endMoment];
69
+ }
70
+ if (intime[0] == null || intime[1] == null) {
71
+ intime = null;
72
+ }
73
+ copyParams = __assign(__assign({}, copyParams), (_e = {}, _e[toKeyItem] = intime, _e));
74
+ }
75
+ }
76
+ }
77
+ return copyParams;
78
+ }
79
+ function divide(num1, num2) {
80
+ var others = [];
81
+ for (var _i = 2; _i < arguments.length; _i++) {
82
+ others[_i - 2] = arguments[_i];
83
+ }
84
+ try {
85
+ return divide$1.apply(void 0, __spreadArray([num1, num2], others));
86
+ }
87
+ catch (err) {
88
+ console.log(err);
89
+ return 0;
90
+ }
91
+ }
92
+ /**
93
+ * @description 精确四舍五入后保留几位小数
94
+ */
95
+ function exactRound(num, ratio) {
96
+ var typeNum = typeof num;
97
+ if (typeNum !== 'number' && typeNum !== 'string') {
98
+ return num;
99
+ }
100
+ try {
101
+ return round(num, ratio).toFixed(ratio);
102
+ }
103
+ catch (err) {
104
+ console.error(err);
105
+ return num;
106
+ }
107
+ }
108
+ /**
109
+ * @description 添加千分符符号
110
+ */
111
+ function toThousand(num) {
112
+ var typeNum = typeof num;
113
+ if (typeNum !== 'number' && typeNum !== 'string') {
114
+ return num;
115
+ }
116
+ var str = (num + '').replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g, '$1,');
117
+ return str;
118
+ }
119
+ /**
120
+ * @description 去除指定字符串
121
+ */
122
+ function clearAssignStr(str, originalStr) {
123
+ if (!originalStr) {
124
+ return originalStr;
125
+ }
126
+ if (originalStr.startsWith(str)) {
127
+ return originalStr.replace(str, '');
128
+ }
129
+ return originalStr;
130
+ }
131
+ /**
132
+ * @description 下载重命名
133
+ */
134
+ function loadFileRename(fileUrl, fileName) {
135
+ var xhr = new XMLHttpRequest();
136
+ xhr.open('GET', fileUrl, true);
137
+ xhr.responseType = 'blob';
138
+ xhr.onload = function () {
139
+ if (xhr.status === 200) {
140
+ var link = document.createElement('a');
141
+ var body = document.querySelector('body');
142
+ link.href = window.URL.createObjectURL(xhr.response);
143
+ link.download = fileName;
144
+ // fix Firefox
145
+ link.style.display = 'none';
146
+ body.appendChild(link);
147
+ link.click();
148
+ body.removeChild(link);
149
+ window.URL.revokeObjectURL(link.href);
150
+ }
151
+ };
152
+ xhr.send();
153
+ }
154
+ /**
155
+ * @description 文件大小提示转换
156
+ */
157
+ function transformFileSize(value) {
158
+ if (value < 1024) {
159
+ return round(value, 2).toFixed(2) + 'B';
160
+ }
161
+ else if (value < 1024 * 1024) {
162
+ return round(divide(value, 1024), 2).toFixed(2) + 'KB';
163
+ }
164
+ return round(divide(value, 1024, 1024), 2).toFixed(2) + 'MB';
165
+ }
166
+ /**
167
+ * @description 更具key判断前后值是否一致
168
+ */
169
+ function isEqualByKey(keys, record, preRecord) {
170
+ var isEqual = false; // 是否相等
171
+ if (!record || !preRecord) {
172
+ isEqual = true;
173
+ return isEqual;
174
+ }
175
+ // 如果数据源相同的话,那么判断是初次更改,应该更新
176
+ if (record === preRecord) {
177
+ isEqual = true;
178
+ return isEqual;
179
+ }
180
+ for (var i = 0; i < keys.length; i++) {
181
+ var key = keys[i];
182
+ if (record[key] !== preRecord[key]) {
183
+ isEqual = true;
184
+ break;
185
+ }
186
+ }
187
+ return isEqual;
188
+ }
189
+
190
+ var tools = /*#__PURE__*/Object.freeze({
191
+ __proto__: null,
192
+ timeTransfrom: timeTransfrom,
193
+ plus: plus,
194
+ minus: minus,
195
+ times: times,
196
+ divide: divide,
197
+ exactRound: exactRound,
198
+ toThousand: toThousand,
199
+ clearAssignStr: clearAssignStr,
200
+ loadFileRename: loadFileRename,
201
+ transformFileSize: transformFileSize,
202
+ isEqualByKey: isEqualByKey
203
+ });
204
+
205
+ export { timeTransfrom as a, toThousand as b, clearAssignStr as c, divide as d, exactRound as e, transformFileSize as f, isEqualByKey as i, loadFileRename as l, tools as t };
package/dist/tools.d.ts CHANGED
@@ -12,6 +12,8 @@ interface ITimeTransfrom {
12
12
  fromKey: Array<string[] | string>;
13
13
  /**需要转成的键值 [['startDate', 'endDate']] */
14
14
  toKey: Array<string[] | string>;
15
+ /**需要format的格式 */
16
+ format?: string[] | string;
15
17
  }
16
18
  /**
17
19
  * @description 时间格式转换
package/dist/tools.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import './tslib.es6-b9033aad.js';
2
2
  import 'dayjs';
3
3
  export { minus, plus, times } from 'number-precision';
4
- export { c as clearAssignStr, d as divide, e as exactRound, i as isEqualByKey, l as loadFileRename, a as timeTransfrom, b as toThousand, f as transformFileSize } from './tools-8207f0a0.js';
4
+ export { c as clearAssignStr, d as divide, e as exactRound, i as isEqualByKey, l as loadFileRename, a as timeTransfrom, b as toThousand, f as transformFileSize } from './tools-e7de0bcc.js';
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @description 常用正则表达式
3
+ */
4
+ var validate = {
5
+ /**
6
+ * @description 长度验证,最小长度字符,0-200个字符
7
+ */
8
+ smallLenValidate: /^(?:\s*)[\s\S]{0,200}(?:\s*)$/,
9
+ /**
10
+ * @description 长度验证,中等长度字符,0-400个字符
11
+ */
12
+ middleLenValidate: /^(?:\s*)[\s\S]{0,400}(?:\s*)$/,
13
+ /**
14
+ * @description 长度验证,最大长度字符,0-600个字符
15
+ */
16
+ largeLenValidate: /^(?:\s*)[\s\S]{0,600}(?:\s*)$/,
17
+ /**
18
+ * @description 电话号码验证
19
+ */
20
+ // phoneValidate: /^1(3\d|4\d|5\d|6\d|7\d|8\d|9\d)\d{8}$/,
21
+ phoneValidate: /^[0-9]*$/,
22
+ /**
23
+ * @description 身份证验证
24
+ * 18位 最后一位可以是X x
25
+ */
26
+ idCardValidate: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
27
+ /**
28
+ * @description 邮箱验证
29
+ */
30
+ emailValidate: /^([\s\S])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,8})$/,
31
+ /**
32
+ * @description 密码验证
33
+ */
34
+ passwordValidate: /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$)^.{8,16}$/,
35
+ };
36
+ var commonMessage = {
37
+ smallLenMessage: function (type) {
38
+ if (type === void 0) { type = ''; }
39
+ return type + "\u8D85\u8FC7\u6700\u5927\u5B57\u7B26\u957F\u5EA6200";
40
+ },
41
+ middleLenMessage: function (type) {
42
+ if (type === void 0) { type = ''; }
43
+ return type + "\u8D85\u8FC7\u6700\u5927\u5B57\u7B26\u957F\u5EA6400";
44
+ },
45
+ largeLenMessage: function (type) {
46
+ if (type === void 0) { type = ''; }
47
+ return type + "\u8D85\u8FC7\u6700\u5927\u5B57\u7B26\u957F\u5EA6600";
48
+ },
49
+ phoneMessage: '请输入正确的手机号',
50
+ idCardMessage: '请输入正确的身份证',
51
+ emailMessage: '请输入正确的邮箱',
52
+ passwordMessage: '密码由8-16位的字母+数字,字母+特殊字符,数字+特殊字符组成',
53
+ };
54
+
55
+ var validate$1 = /*#__PURE__*/Object.freeze({
56
+ __proto__: null,
57
+ validate: validate,
58
+ commonMessage: commonMessage
59
+ });
60
+
61
+ export { validate as a, commonMessage as c, validate$1 as v };
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @description 常用正则表达式
3
+ */
4
+ var validate = {
5
+ /**
6
+ * @description 长度验证,最小长度字符,0-200个字符
7
+ */
8
+ smallLenValidate: /^(?:\s*)[\s\S]{0,200}(?:\s*)$/,
9
+ /**
10
+ * @description 长度验证,中等长度字符,0-400个字符
11
+ */
12
+ middleLenValidate: /^(?:\s*)[\s\S]{0,400}(?:\s*)$/,
13
+ /**
14
+ * @description 长度验证,最大长度字符,0-600个字符
15
+ */
16
+ largeLenValidate: /^(?:\s*)[\s\S]{0,600}(?:\s*)$/,
17
+ /**
18
+ * @description 电话号码验证
19
+ */
20
+ // phoneValidate: /^1(3\d|4\d|5\d|6\d|7\d|8\d|9\d)\d{8}$/,
21
+ phoneValidate: /^[0-9]*$/,
22
+ /**
23
+ * @description 身份证验证
24
+ * 18位 最后一位可以是X x
25
+ */
26
+ idCardValidate: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
27
+ /**
28
+ * @description 邮箱验证
29
+ */
30
+ emailValidate: /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
31
+ /**
32
+ * @description 密码验证
33
+ */
34
+ passwordValidate: /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$)^.{8,16}$/,
35
+ };
36
+ var commonMessage = {
37
+ smallLenMessage: function (type) {
38
+ if (type === void 0) { type = ''; }
39
+ return type + "\u8D85\u8FC7\u6700\u5927\u5B57\u7B26\u957F\u5EA6200";
40
+ },
41
+ middleLenMessage: function (type) {
42
+ if (type === void 0) { type = ''; }
43
+ return type + "\u8D85\u8FC7\u6700\u5927\u5B57\u7B26\u957F\u5EA6400";
44
+ },
45
+ largeLenMessage: function (type) {
46
+ if (type === void 0) { type = ''; }
47
+ return type + "\u8D85\u8FC7\u6700\u5927\u5B57\u7B26\u957F\u5EA6600";
48
+ },
49
+ phoneMessage: '请输入正确的手机号',
50
+ idCardMessage: '请输入正确的身份证',
51
+ emailMessage: '请输入正确的邮箱',
52
+ passwordMessage: '密码由8-16位的字母+数字,字母+特殊字符,数字+特殊字符组成',
53
+ };
54
+
55
+ var validate$1 = /*#__PURE__*/Object.freeze({
56
+ __proto__: null,
57
+ validate: validate,
58
+ commonMessage: commonMessage
59
+ });
60
+
61
+ export { validate as a, commonMessage as c, validate$1 as v };
package/dist/validate.js CHANGED
@@ -1 +1 @@
1
- export { c as commonMessage, a as validate } from './validate-e4351b64.js';
1
+ export { c as commonMessage, a as validate } from './validate-01242f5f.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.1.8",
3
+ "version": "2.2.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",