@lntvow/utils 1.8.19 → 1.8.21

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.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vconsole");function E(){return`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`}function d(t){return t>10?d(10)+d(t-10):Math.random().toString(36).padEnd(12,"0").slice(2,t+2)}const b=Object.prototype.toString,l=t=>b.call(t),A=(...t)=>console.log(`%c ${t[0]} `,"padding: 2px; border-radius: 3px; color: #fff; background: #000; font-weight: bold;",t.slice(1).length>0?t.slice(1):""),j=(...t)=>console.warn(...t),$=(...t)=>console.error(...t),N=t=>l(t)==="[object Map]",M=t=>l(t)==="[object Set]",O=t=>l(t)==="[object Date]",S=t=>l(t)==="[object RegExp]",p=t=>typeof t=="function",U=t=>typeof t=="string",D=t=>typeof t=="symbol",f=t=>t!==null&&typeof t=="object",R=t=>f(t)&&p(t.then)&&p(t.catch),u=t=>t==null,P=t=>t===void 0,w=t=>t===null;function L(t){return t!=null}function T(t){return typeof t=="boolean"}const a=Array.isArray,y=(t,n)=>Object.hasOwn(t,n),x=(t,n)=>t!==n;function C(t){const n=new WeakMap;function r(e){if(O(e))return new Date(e);if(S(e))return new RegExp(e);if(f(e)){if(n.has(e))return n.get(e);let o={};if(a(e)){o=[],n.set(e,o);for(let i=0;i<e.length;i++)o[i]=r(e[i]);return o}n.set(e,o);for(const i in e)y(e,i)&&(o[i]=r(e[i]));return o}else return e}return r(t)}function g(t,n,r){return a(t)?I(t,n,r):F(t,n,r)}function F(t,n,r){const e=c(n,r);return Object.keys(t).forEach(i=>{u(n[i])?e[i]=c(t[i],r):e[i]=f(t[i])&&f(n[i])?g(t[i],n[i],r):c(n[i],r)}),e}function I(t,n,r){if(a(n)){const e=c(n,r);return e.push(...c(t,r)),e}else return c(t,r)}function c(t,n){const{isDeepClone:r=!0}=n||{};return r?C(t):t}function Z(t,n=1e3){let r=null;return function(...e){r&&clearTimeout(r),r=setTimeout(()=>{t.apply(this,e)},n)}}function _(t,n=1e3){let r=null;return function(...e){if(w(r))return r=Date.now(),t.apply(this,e);{const o=Date.now();if(o-r>=n)return r=o,t.apply(this,e)}}}let s={name:"LNTVOW_CONSOLE",time:3600,count:20};function z(t){s=g(s,t||{});const n=localStorage.getItem(s.name);if(!n)return;Date.now()-Number(n)>=1e3*s.time?localStorage.removeItem(s.name):new h}let m=0;function B(){m++,m>=s.count&&!localStorage.getItem(s.name)&&(localStorage.setItem(s.name,Date.now().toString()),new h)}const K={initConsole:z,showConsole:B};function V(...t){return t.reduce((n,r)=>function(...e){return r(n(...e))})}function W(...t){return t.reduce((n,r)=>function(...e){return n(r(...e))})}function q(t){return/^(?:(?:\+|00)86)?1(?:(?:3\d)|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8\d)|(?:9[1589]))\d{8}$/.test(t)}function G(t){return/^([\w-])+@([\w-])+(.[\w-])+/.test(t)}function H(t){return/^[A-Z]+$/.test(t)}function J(t){return!u(t)&&/^[a-z]+$/.test(t)}function Q(t){return/^\d+$/.test(t)}function X(t){return/^-?\d{1,3}\.\d{6}$/.test(t)}function Y(t){return t===""}function k(t){return!u(t)&&/^[\dA-Za-z\u4E00-\u9FA5]+$/.test(t)}function v(t){return!u(t)&&/^[A-Za-z\u4E00-\u9FA5]+$/.test(t)}function tt(t){return!u(t)&&/^[\d!"#$%&'()*+,./:;<=>?@A-Z[\\\]^_`{|}~]+$/.test(t)}function nt(t){return/^[\dA-Z_]+$/.test(t)}function et(t){return/^[1-9]\d*$/.test(t)}function rt(t){return/^(0*[1-9]+\d*\.?\d*|0+\.\d*[1-9]+\d*)$/.test(t)}function it(t){return Array.isArray(t)?t:[t]}exports.castArray=it;exports.compose=V;exports.composeRight=W;exports.debounce=Z;exports.deepClone=C;exports.deepMerge=g;exports.error=$;exports.getRandomColor=E;exports.getRandomString=d;exports.hasChanged=x;exports.hasOwn=y;exports.isArray=a;exports.isBoolean=T;exports.isChineseOrEnglish=v;exports.isChineseOrEnglishOrNumber=k;exports.isDate=O;exports.isDef=L;exports.isEmail=G;exports.isEmptyString=Y;exports.isFunction=p;exports.isLatitudeOrLongitude=X;exports.isLowerCase=J;exports.isMap=N;exports.isMobilePhone=q;exports.isNull=w;exports.isNumber=Q;exports.isObject=f;exports.isPositiveFloat=rt;exports.isPositiveInt=et;exports.isPromise=R;exports.isRegExp=S;exports.isSet=M;exports.isString=U;exports.isSymbol=D;exports.isUndef=u;exports.isUndefined=P;exports.isUpperCase=H;exports.isUppercaseOrNumbersOrSpecial=tt;exports.isUppercaseOrNumbersOrUnderline=nt;exports.log=A;exports.nConsole=K;exports.objectToString=b;exports.throttle=_;exports.toTypeString=l;exports.warn=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function S(){return`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`}function l(n){return n>10?l(10)+l(n-10):Math.random().toString(36).padEnd(12,"0").slice(2,n+2)}const a=Object.prototype.toString,f=n=>a.call(n),w=(...n)=>console.log(`%c ${n[0]} `,"padding: 2px; border-radius: 3px; color: #fff; background: #000; font-weight: bold;",n.slice(1).length>0?n.slice(1):""),E=(...n)=>console.warn(...n),C=(...n)=>console.error(...n),A=n=>f(n)==="[object Map]",j=n=>f(n)==="[object Set]",g=n=>f(n)==="[object Date]",h=n=>f(n)==="[object RegExp]",p=n=>typeof n=="function",$=n=>typeof n=="string",M=n=>typeof n=="symbol",u=n=>n!==null&&typeof n=="object",U=n=>u(n)&&p(n.then)&&p(n.catch),c=n=>n==null,N=n=>n===void 0,b=n=>n===null;function R(n){return n!=null}function D(n){return typeof n=="boolean"}const d=Array.isArray,m=(n,e)=>Object.hasOwn(n,e),P=(n,e)=>n!==e;function O(n){const e=new WeakMap;function r(t){if(g(t))return new Date(t);if(h(t))return new RegExp(t);if(u(t)){if(e.has(t))return e.get(t);let s={};if(d(t)){s=[],e.set(t,s);for(let i=0;i<t.length;i++)s[i]=r(t[i]);return s}e.set(t,s);for(const i in t)m(t,i)&&(s[i]=r(t[i]));return s}else return t}return r(n)}function y(n,e,r){return d(n)?x(n,e,r):T(n,e,r)}function T(n,e,r){const t=o(e,r);return Object.keys(n).forEach(i=>{c(e[i])?t[i]=o(n[i],r):t[i]=u(n[i])&&u(e[i])?y(n[i],e[i],r):o(e[i],r)}),t}function x(n,e,r){if(d(e)){const t=o(e,r);return t.push(...o(n,r)),t}else return o(n,r)}function o(n,e){const{isDeepClone:r=!0}=e||{};return r?O(n):n}function F(n,e=1e3){let r=null;return function(...t){r&&clearTimeout(r),r=setTimeout(()=>{n.apply(this,t)},e)}}function L(n,e=1e3){let r=null;return function(...t){if(b(r))return r=Date.now(),n.apply(this,t);{const s=Date.now();if(s-r>=e)return r=s,n.apply(this,t)}}}function Z(...n){return n.reduce((e,r)=>function(...t){return r(e(...t))})}function z(...n){return n.reduce((e,r)=>function(...t){return e(r(...t))})}function _(n){return/^(?:(?:\+|00)86)?1(?:(?:3\d)|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8\d)|(?:9[1589]))\d{8}$/.test(n)}function B(n){return/^([\w-])+@([\w-])+(.[\w-])+/.test(n)}function I(n){return/^[A-Z]+$/.test(n)}function K(n){return!c(n)&&/^[a-z]+$/.test(n)}function W(n){return/^\d+$/.test(n)}function q(n){return/^-?\d{1,3}\.\d{6}$/.test(n)}function G(n){return n===""}function H(n){return!c(n)&&/^[\dA-Za-z\u4E00-\u9FA5]+$/.test(n)}function J(n){return!c(n)&&/^[A-Za-z\u4E00-\u9FA5]+$/.test(n)}function Q(n){return!c(n)&&/^[\d!"#$%&'()*+,./:;<=>?@A-Z[\\\]^_`{|}~]+$/.test(n)}function V(n){return/^[\dA-Z_]+$/.test(n)}function X(n){return/^[1-9]\d*$/.test(n)}function Y(n){return/^(0*[1-9]+\d*\.?\d*|0+\.\d*[1-9]+\d*)$/.test(n)}function k(n){return Array.isArray(n)?n:[n]}exports.castArray=k;exports.compose=Z;exports.composeRight=z;exports.debounce=F;exports.deepClone=O;exports.deepMerge=y;exports.error=C;exports.getRandomColor=S;exports.getRandomString=l;exports.hasChanged=P;exports.hasOwn=m;exports.isArray=d;exports.isBoolean=D;exports.isChineseOrEnglish=J;exports.isChineseOrEnglishOrNumber=H;exports.isDate=g;exports.isDef=R;exports.isEmail=B;exports.isEmptyString=G;exports.isFunction=p;exports.isLatitudeOrLongitude=q;exports.isLowerCase=K;exports.isMap=A;exports.isMobilePhone=_;exports.isNull=b;exports.isNumber=W;exports.isObject=u;exports.isPositiveFloat=Y;exports.isPositiveInt=X;exports.isPromise=U;exports.isRegExp=h;exports.isSet=j;exports.isString=$;exports.isSymbol=M;exports.isUndef=c;exports.isUndefined=N;exports.isUpperCase=I;exports.isUppercaseOrNumbersOrSpecial=Q;exports.isUppercaseOrNumbersOrUnderline=V;exports.log=w;exports.objectToString=a;exports.throttle=L;exports.toTypeString=f;exports.warn=E;
package/dist/index.d.ts CHANGED
@@ -63,30 +63,6 @@ export declare const hasChanged: (oldValue: unknown, newValue: unknown) => boole
63
63
 
64
64
  export declare const hasOwn: <T extends object, U extends keyof T>(target: T, key: U) => boolean;
65
65
 
66
- /**
67
- * @description 初始化
68
- * @param options 初始化配置
69
- */
70
- declare function initConsole(options?: InitConsoleOptions): void;
71
-
72
- declare interface InitConsoleOptions {
73
- /**
74
- * @description 缓存的key
75
- * @default LNTVOW_CONSOLE
76
- */
77
- name?: string;
78
- /**
79
- * @description 显示console的时间 单位s
80
- * @default 3600 一个小时
81
- */
82
- time?: number;
83
- /**
84
- * @description 显示console的事件触发次数
85
- * @default 20
86
- */
87
- count?: number;
88
- }
89
-
90
66
  export declare const isArray: (arg: any) => arg is any[];
91
67
 
92
68
  export declare function isBoolean(val: unknown): val is boolean;
@@ -184,11 +160,6 @@ export declare function isUppercaseOrNumbersOrUnderline(value: string): boolean;
184
160
 
185
161
  export declare const log: (...arg: unknown[]) => void;
186
162
 
187
- export declare const nConsole: {
188
- initConsole: typeof initConsole;
189
- showConsole: typeof showConsole;
190
- };
191
-
192
163
  export declare const objectToString: () => string;
193
164
 
194
165
  declare interface Options {
@@ -199,11 +170,6 @@ declare interface Options {
199
170
  isDeepClone: boolean;
200
171
  }
201
172
 
202
- /**
203
- * @description 触发显示事件
204
- */
205
- declare function showConsole(): void;
206
-
207
173
  /**
208
174
  * @description 节流函数
209
175
  * @param target 目标函数
package/dist/index.mjs CHANGED
@@ -1,206 +1,184 @@
1
- import g from "vconsole";
2
- function M() {
1
+ function A() {
3
2
  return `#${Math.random().toString(16).slice(2, 8).padEnd(6, "0")}`;
4
3
  }
5
- function a(t) {
6
- return t > 10 ? a(10) + a(t - 10) : Math.random().toString(36).padEnd(12, "0").slice(2, t + 2);
4
+ function p(n) {
5
+ return n > 10 ? p(10) + p(n - 10) : Math.random().toString(36).padEnd(12, "0").slice(2, n + 2);
7
6
  }
8
- const b = Object.prototype.toString, l = (t) => b.call(t), N = (...t) => console.log(
9
- `%c ${t[0]} `,
7
+ const a = Object.prototype.toString, f = (n) => a.call(n), E = (...n) => console.log(
8
+ `%c ${n[0]} `,
10
9
  "padding: 2px; border-radius: 3px; color: #fff; background: #000; font-weight: bold;",
11
- t.slice(1).length > 0 ? t.slice(1) : ""
12
- ), x = (...t) => console.warn(...t), R = (...t) => console.error(...t), U = (t) => l(t) === "[object Map]", I = (t) => l(t) === "[object Set]", w = (t) => l(t) === "[object Date]", O = (t) => l(t) === "[object RegExp]", p = (t) => typeof t == "function", L = (t) => typeof t == "string", T = (t) => typeof t == "symbol", f = (t) => t !== null && typeof t == "object", Z = (t) => f(t) && p(t.then) && p(t.catch), u = (t) => t == null, F = (t) => t === void 0, S = (t) => t === null;
13
- function P(t) {
14
- return t != null;
15
- }
16
- function _(t) {
17
- return typeof t == "boolean";
18
- }
19
- const d = Array.isArray, y = (t, n) => Object.hasOwn(t, n), z = (t, n) => t !== n;
20
- function C(t) {
21
- const n = /* @__PURE__ */ new WeakMap();
22
- function o(e) {
23
- if (w(e))
24
- return new Date(e);
25
- if (O(e))
26
- return new RegExp(e);
27
- if (f(e)) {
28
- if (n.has(e))
29
- return n.get(e);
10
+ n.slice(1).length > 0 ? n.slice(1) : ""
11
+ ), S = (...n) => console.warn(...n), j = (...n) => console.error(...n), C = (n) => f(n) === "[object Map]", M = (n) => f(n) === "[object Set]", g = (n) => f(n) === "[object Date]", h = (n) => f(n) === "[object RegExp]", l = (n) => typeof n == "function", D = (n) => typeof n == "string", x = (n) => typeof n == "symbol", u = (n) => n !== null && typeof n == "object", R = (n) => u(n) && l(n.then) && l(n.catch), c = (n) => n == null, U = (n) => n === void 0, b = (n) => n === null;
12
+ function N(n) {
13
+ return n != null;
14
+ }
15
+ function Z(n) {
16
+ return typeof n == "boolean";
17
+ }
18
+ const d = Array.isArray, y = (n, e) => Object.hasOwn(n, e), F = (n, e) => n !== e;
19
+ function m(n) {
20
+ const e = /* @__PURE__ */ new WeakMap();
21
+ function r(t) {
22
+ if (g(t))
23
+ return new Date(t);
24
+ if (h(t))
25
+ return new RegExp(t);
26
+ if (u(t)) {
27
+ if (e.has(t))
28
+ return e.get(t);
30
29
  let i = {};
31
- if (d(e)) {
32
- i = [], n.set(e, i);
33
- for (let r = 0; r < e.length; r++)
34
- i[r] = o(e[r]);
30
+ if (d(t)) {
31
+ i = [], e.set(t, i);
32
+ for (let o = 0; o < t.length; o++)
33
+ i[o] = r(t[o]);
35
34
  return i;
36
35
  }
37
- n.set(e, i);
38
- for (const r in e)
39
- y(e, r) && (i[r] = o(e[r]));
36
+ e.set(t, i);
37
+ for (const o in t)
38
+ y(t, o) && (i[o] = r(t[o]));
40
39
  return i;
41
40
  } else
42
- return e;
41
+ return t;
43
42
  }
44
- return o(t);
43
+ return r(n);
45
44
  }
46
- function h(t, n, o) {
47
- return d(t) ? A(t, n, o) : $(t, n, o);
45
+ function w(n, e, r) {
46
+ return d(n) ? $(n, e, r) : O(n, e, r);
48
47
  }
49
- function $(t, n, o) {
50
- const e = c(n, o);
51
- return Object.keys(t).forEach((r) => {
52
- u(n[r]) ? e[r] = c(t[r], o) : e[r] = f(t[r]) && f(n[r]) ? h(t[r], n[r], o) : c(n[r], o);
53
- }), e;
48
+ function O(n, e, r) {
49
+ const t = s(e, r);
50
+ return Object.keys(n).forEach((o) => {
51
+ c(e[o]) ? t[o] = s(n[o], r) : t[o] = u(n[o]) && u(e[o]) ? w(n[o], e[o], r) : s(e[o], r);
52
+ }), t;
54
53
  }
55
- function A(t, n, o) {
56
- if (d(n)) {
57
- const e = c(n, o);
58
- return e.push(...c(t, o)), e;
54
+ function $(n, e, r) {
55
+ if (d(e)) {
56
+ const t = s(e, r);
57
+ return t.push(...s(n, r)), t;
59
58
  } else
60
- return c(t, o);
61
- }
62
- function c(t, n) {
63
- const { isDeepClone: o = !0 } = n || {};
64
- return o ? C(t) : t;
65
- }
66
- function K(t, n = 1e3) {
67
- let o = null;
68
- return function(...e) {
69
- o && clearTimeout(o), o = setTimeout(() => {
70
- t.apply(this, e);
71
- }, n);
59
+ return s(n, r);
60
+ }
61
+ function s(n, e) {
62
+ const { isDeepClone: r = !0 } = e || {};
63
+ return r ? m(n) : n;
64
+ }
65
+ function P(n, e = 1e3) {
66
+ let r = null;
67
+ return function(...t) {
68
+ r && clearTimeout(r), r = setTimeout(() => {
69
+ n.apply(this, t);
70
+ }, e);
72
71
  };
73
72
  }
74
- function V(t, n = 1e3) {
75
- let o = null;
76
- return function(...e) {
77
- if (S(o))
78
- return o = Date.now(), t.apply(this, e);
73
+ function T(n, e = 1e3) {
74
+ let r = null;
75
+ return function(...t) {
76
+ if (b(r))
77
+ return r = Date.now(), n.apply(this, t);
79
78
  {
80
79
  const i = Date.now();
81
- if (i - o >= n)
82
- return o = i, t.apply(this, e);
80
+ if (i - r >= e)
81
+ return r = i, n.apply(this, t);
83
82
  }
84
83
  };
85
84
  }
86
- let s = {
87
- name: "LNTVOW_CONSOLE",
88
- time: 3600,
89
- count: 20
90
- };
91
- function E(t) {
92
- s = h(s, t || {});
93
- const n = localStorage.getItem(s.name);
94
- if (!n)
95
- return;
96
- Date.now() - Number(n) >= 1e3 * s.time ? localStorage.removeItem(s.name) : new g();
97
- }
98
- let m = 0;
99
- function j() {
100
- m++, m >= s.count && !localStorage.getItem(s.name) && (localStorage.setItem(s.name, Date.now().toString()), new g());
101
- }
102
- const W = {
103
- initConsole: E,
104
- showConsole: j
105
- };
106
- function B(...t) {
107
- return t.reduce((n, o) => function(...e) {
108
- return o(n(...e));
85
+ function z(...n) {
86
+ return n.reduce((e, r) => function(...t) {
87
+ return r(e(...t));
109
88
  });
110
89
  }
111
- function q(...t) {
112
- return t.reduce((n, o) => function(...e) {
113
- return n(o(...e));
90
+ function L(...n) {
91
+ return n.reduce((e, r) => function(...t) {
92
+ return e(r(...t));
114
93
  });
115
94
  }
116
- function G(t) {
95
+ function _(n) {
117
96
  return /^(?:(?:\+|00)86)?1(?:(?:3\d)|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8\d)|(?:9[1589]))\d{8}$/.test(
118
- t
97
+ n
119
98
  );
120
99
  }
121
- function H(t) {
122
- return /^([\w-])+@([\w-])+(.[\w-])+/.test(t);
100
+ function K(n) {
101
+ return /^([\w-])+@([\w-])+(.[\w-])+/.test(n);
123
102
  }
124
- function J(t) {
125
- return /^[A-Z]+$/.test(t);
103
+ function B(n) {
104
+ return /^[A-Z]+$/.test(n);
126
105
  }
127
- function Q(t) {
128
- return !u(t) && /^[a-z]+$/.test(t);
106
+ function I(n) {
107
+ return !c(n) && /^[a-z]+$/.test(n);
129
108
  }
130
- function X(t) {
131
- return /^\d+$/.test(t);
109
+ function W(n) {
110
+ return /^\d+$/.test(n);
132
111
  }
133
- function Y(t) {
134
- return /^-?\d{1,3}\.\d{6}$/.test(t);
112
+ function q(n) {
113
+ return /^-?\d{1,3}\.\d{6}$/.test(n);
135
114
  }
136
- function k(t) {
137
- return t === "";
115
+ function G(n) {
116
+ return n === "";
138
117
  }
139
- function v(t) {
140
- return !u(t) && /^[\dA-Za-z\u4E00-\u9FA5]+$/.test(t);
118
+ function H(n) {
119
+ return !c(n) && /^[\dA-Za-z\u4E00-\u9FA5]+$/.test(n);
141
120
  }
142
- function tt(t) {
143
- return !u(t) && /^[A-Za-z\u4E00-\u9FA5]+$/.test(t);
121
+ function J(n) {
122
+ return !c(n) && /^[A-Za-z\u4E00-\u9FA5]+$/.test(n);
144
123
  }
145
- function nt(t) {
146
- return !u(t) && /^[\d!"#$%&'()*+,./:;<=>?@A-Z[\\\]^_`{|}~]+$/.test(t);
124
+ function Q(n) {
125
+ return !c(n) && /^[\d!"#$%&'()*+,./:;<=>?@A-Z[\\\]^_`{|}~]+$/.test(n);
147
126
  }
148
- function et(t) {
149
- return /^[\dA-Z_]+$/.test(t);
127
+ function V(n) {
128
+ return /^[\dA-Z_]+$/.test(n);
150
129
  }
151
- function ot(t) {
152
- return /^[1-9]\d*$/.test(t);
130
+ function X(n) {
131
+ return /^[1-9]\d*$/.test(n);
153
132
  }
154
- function rt(t) {
155
- return /^(0*[1-9]+\d*\.?\d*|0+\.\d*[1-9]+\d*)$/.test(t);
133
+ function Y(n) {
134
+ return /^(0*[1-9]+\d*\.?\d*|0+\.\d*[1-9]+\d*)$/.test(n);
156
135
  }
157
- function it(t) {
158
- return Array.isArray(t) ? t : [t];
136
+ function k(n) {
137
+ return Array.isArray(n) ? n : [n];
159
138
  }
160
139
  export {
161
- it as castArray,
162
- B as compose,
163
- q as composeRight,
164
- K as debounce,
165
- C as deepClone,
166
- h as deepMerge,
167
- R as error,
168
- M as getRandomColor,
169
- a as getRandomString,
170
- z as hasChanged,
140
+ k as castArray,
141
+ z as compose,
142
+ L as composeRight,
143
+ P as debounce,
144
+ m as deepClone,
145
+ w as deepMerge,
146
+ j as error,
147
+ A as getRandomColor,
148
+ p as getRandomString,
149
+ F as hasChanged,
171
150
  y as hasOwn,
172
151
  d as isArray,
173
- _ as isBoolean,
174
- tt as isChineseOrEnglish,
175
- v as isChineseOrEnglishOrNumber,
176
- w as isDate,
177
- P as isDef,
178
- H as isEmail,
179
- k as isEmptyString,
180
- p as isFunction,
181
- Y as isLatitudeOrLongitude,
182
- Q as isLowerCase,
183
- U as isMap,
184
- G as isMobilePhone,
185
- S as isNull,
186
- X as isNumber,
187
- f as isObject,
188
- rt as isPositiveFloat,
189
- ot as isPositiveInt,
190
- Z as isPromise,
191
- O as isRegExp,
192
- I as isSet,
193
- L as isString,
194
- T as isSymbol,
195
- u as isUndef,
196
- F as isUndefined,
197
- J as isUpperCase,
198
- nt as isUppercaseOrNumbersOrSpecial,
199
- et as isUppercaseOrNumbersOrUnderline,
200
- N as log,
201
- W as nConsole,
202
- b as objectToString,
203
- V as throttle,
204
- l as toTypeString,
205
- x as warn
152
+ Z as isBoolean,
153
+ J as isChineseOrEnglish,
154
+ H as isChineseOrEnglishOrNumber,
155
+ g as isDate,
156
+ N as isDef,
157
+ K as isEmail,
158
+ G as isEmptyString,
159
+ l as isFunction,
160
+ q as isLatitudeOrLongitude,
161
+ I as isLowerCase,
162
+ C as isMap,
163
+ _ as isMobilePhone,
164
+ b as isNull,
165
+ W as isNumber,
166
+ u as isObject,
167
+ Y as isPositiveFloat,
168
+ X as isPositiveInt,
169
+ R as isPromise,
170
+ h as isRegExp,
171
+ M as isSet,
172
+ D as isString,
173
+ x as isSymbol,
174
+ c as isUndef,
175
+ U as isUndefined,
176
+ B as isUpperCase,
177
+ Q as isUppercaseOrNumbersOrSpecial,
178
+ V as isUppercaseOrNumbersOrUnderline,
179
+ E as log,
180
+ a as objectToString,
181
+ T as throttle,
182
+ f as toTypeString,
183
+ S as warn
206
184
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/utils",
3
- "version": "1.8.19",
3
+ "version": "1.8.21",
4
4
  "description": "工具库",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -13,13 +13,13 @@
13
13
  "types": "dist/index.d.ts",
14
14
  "devDependencies": {
15
15
  "@lntvow/eslint-config": "^8.2.5",
16
- "@rollup/plugin-node-resolve": "^15.2.1",
17
16
  "bumpp": "^9.1.1",
18
17
  "commitizen": "^4.3.0",
19
18
  "cz-conventional-changelog": "^3.3.0",
20
19
  "deepmerge": "^4.3.1",
20
+ "terser": "^5.24.0",
21
21
  "typescript": "^5.0.4",
22
- "vite": "^4.4.4",
22
+ "vite": "^5.0.0",
23
23
  "vite-plugin-dts": "3.3.1",
24
24
  "vitest": "^0.33.0"
25
25
  },