@spacego/turbo-utils 1.0.0 → 1.0.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/lib/cjs/index.cjs +1 -1
- package/lib/es/index.js +72 -72
- package/lib/types/day/index.d.ts +2 -1
- package/package.json +1 -1
package/lib/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./calc/index.cjs");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./calc/index.cjs");const l=require("./_virtual/dayjs.min.cjs"),a=require("./day/dayjs.cjs"),e=require("./is/is.cjs"),u=require("./is/is-empty.cjs"),t=require("./is/is-equals.cjs"),c=require("./utils/classnames.cjs"),d=require("./utils/deep-clone.cjs"),m=require("./utils/pick.cjs"),r=require("./utils/query2params.cjs"),s=require("./utils/util.cjs"),n=require("./utils/uuid.cjs"),o=require("./validator/validate.cjs"),i=require("./validator/validator.cjs"),p=require("./calc/calc.cjs"),y=require("./node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.cjs");exports.dayjs=l;exports.WEEK_DAY=a.WEEK_DAY;exports.formatActivityTime=a.formatActivityTime;exports.formatDate=a.formatDate;exports.formatIosDate=a.formatIosDate;exports.getDateDiff=a.getDateDiff;exports.getDateParams=a.getDateParams;exports.isArray=e.isArray;exports.isBoolean=e.isBoolean;exports.isDate=e.isDate;exports.isFile=e.isFile;exports.isFunction=e.isFunction;exports.isMap=e.isMap;exports.isNull=e.isNull;exports.isNumber=e.isNumber;exports.isObject=e.isObject;exports.isPromise=e.isPromise;exports.isRegExp=e.isRegExp;exports.isSet=e.isSet;exports.isString=e.isString;exports.isUndefined=e.isUndefined;exports.isEmpty=u.isEmpty;exports.depsAreSame=t.depsAreSame;exports.isEquals=t.isEquals;exports.classnames=c.classnames;exports.deepClone=d.deepClone;exports.pick=m.pick;exports.filterParams=r.filterParams;exports.filterQuery=r.filterQuery;exports.filtrationEmpty=r.filtrationEmpty;exports.getUrlParam=r.getUrlParam;exports.json2params=r.json2params;exports.padQuery=r.padQuery;exports.params2json=r.params2json;exports.ObjectAssign=s.ObjectAssign;exports.browser=s.browser;exports.calculateDistance=s.calculateDistance;exports.dictEscape=s.dictEscape;exports.encryptString=s.encryptString;exports.isBrowser=s.isBrowser;exports.padZero=s.padZero;exports.thousands=s.thousands;exports.underlineToHump=s.underlineToHump;exports.randomString=n.randomString;exports.uuid=n.uuid;exports.validate=o.validate;exports.validateRequire=o.validateRequire;exports.isCard=i.isCard;exports.isCurrency=i.isCurrency;exports.isEmail=i.isEmail;exports.isIdCard=i.isIdCard;exports.isMobile=i.isMobile;exports.isPassport=i.isPassport;exports.isUrl=i.isUrl;exports.maxLength=i.maxLength;exports.minLength=i.minLength;exports.regs=i.regs;exports.required=i.required;exports.validateType=i.validateType;exports.validation=i.validation;exports.calc=p.default;exports.Decimal=y.Decimal;
|
package/lib/es/index.js
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
import "./calc/index.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { isArray as
|
|
5
|
-
import { isEmpty as
|
|
6
|
-
import { depsAreSame as
|
|
7
|
-
import { classnames as
|
|
8
|
-
import { deepClone as
|
|
9
|
-
import { pick as
|
|
10
|
-
import { filterParams as
|
|
11
|
-
import { ObjectAssign as
|
|
12
|
-
import { randomString as
|
|
13
|
-
import { validate as
|
|
14
|
-
import { isCard as
|
|
15
|
-
import { default as
|
|
16
|
-
import { Decimal as
|
|
2
|
+
import * as e from "./_virtual/dayjs.min.js";
|
|
3
|
+
import { WEEK_DAY as a, formatActivityTime as o, formatDate as s, formatIosDate as m, getDateDiff as p, getDateParams as n } from "./day/dayjs.js";
|
|
4
|
+
import { isArray as l, isBoolean as d, isDate as x, isFile as c, isFunction as u, isMap as g, isNull as y, isNumber as D, isObject as E, isPromise as j, isRegExp as b, isSet as v, isString as A, isUndefined as P } from "./is/is.js";
|
|
5
|
+
import { isEmpty as C } from "./is/is-empty.js";
|
|
6
|
+
import { depsAreSame as q, isEquals as T } from "./is/is-equals.js";
|
|
7
|
+
import { classnames as w } from "./utils/classnames.js";
|
|
8
|
+
import { deepClone as F } from "./utils/deep-clone.js";
|
|
9
|
+
import { pick as L } from "./utils/pick.js";
|
|
10
|
+
import { filterParams as N, filterQuery as O, filtrationEmpty as Q, getUrlParam as R, json2params as _, padQuery as k, params2json as H } from "./utils/query2params.js";
|
|
11
|
+
import { ObjectAssign as W, browser as Y, calculateDistance as Z, dictEscape as z, encryptString as G, isBrowser as J, padZero as V, thousands as X, underlineToHump as $ } from "./utils/util.js";
|
|
12
|
+
import { randomString as er, uuid as ir } from "./utils/uuid.js";
|
|
13
|
+
import { validate as ar, validateRequire as or } from "./validator/validate.js";
|
|
14
|
+
import { isCard as mr, isCurrency as pr, isEmail as nr, isIdCard as fr, isMobile as lr, isPassport as dr, isUrl as xr, maxLength as cr, minLength as ur, regs as gr, required as yr, validateType as Dr, validation as Er } from "./validator/validator.js";
|
|
15
|
+
import { default as br } from "./calc/calc.js";
|
|
16
|
+
import { Decimal as Ar } from "./node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
18
|
+
Ar as Decimal,
|
|
19
|
+
W as ObjectAssign,
|
|
20
|
+
a as WEEK_DAY,
|
|
21
|
+
Y as browser,
|
|
22
|
+
br as calc,
|
|
23
|
+
Z as calculateDistance,
|
|
24
|
+
w as classnames,
|
|
25
|
+
e as dayjs,
|
|
26
|
+
F as deepClone,
|
|
27
|
+
q as depsAreSame,
|
|
28
|
+
z as dictEscape,
|
|
29
|
+
G as encryptString,
|
|
30
|
+
N as filterParams,
|
|
31
|
+
O as filterQuery,
|
|
32
|
+
Q as filtrationEmpty,
|
|
33
|
+
o as formatActivityTime,
|
|
34
|
+
s as formatDate,
|
|
35
|
+
m as formatIosDate,
|
|
36
|
+
p as getDateDiff,
|
|
37
|
+
n as getDateParams,
|
|
38
|
+
R as getUrlParam,
|
|
39
|
+
l as isArray,
|
|
40
|
+
d as isBoolean,
|
|
41
|
+
J as isBrowser,
|
|
42
|
+
mr as isCard,
|
|
43
|
+
pr as isCurrency,
|
|
44
44
|
x as isDate,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
nr as isEmail,
|
|
46
|
+
C as isEmpty,
|
|
47
|
+
T as isEquals,
|
|
48
48
|
c as isFile,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
u as isFunction,
|
|
50
|
+
fr as isIdCard,
|
|
51
|
+
g as isMap,
|
|
52
|
+
lr as isMobile,
|
|
53
|
+
y as isNull,
|
|
54
|
+
D as isNumber,
|
|
55
|
+
E as isObject,
|
|
56
|
+
dr as isPassport,
|
|
57
57
|
j as isPromise,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
b as isRegExp,
|
|
59
|
+
v as isSet,
|
|
60
|
+
A as isString,
|
|
61
|
+
P as isUndefined,
|
|
62
62
|
xr as isUrl,
|
|
63
|
-
|
|
63
|
+
_ as json2params,
|
|
64
64
|
cr as maxLength,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
65
|
+
ur as minLength,
|
|
66
|
+
k as padQuery,
|
|
67
|
+
V as padZero,
|
|
68
|
+
H as params2json,
|
|
69
|
+
L as pick,
|
|
70
|
+
er as randomString,
|
|
71
|
+
gr as regs,
|
|
72
|
+
yr as required,
|
|
73
|
+
X as thousands,
|
|
74
|
+
$ as underlineToHump,
|
|
75
|
+
ir as uuid,
|
|
76
|
+
ar as validate,
|
|
77
|
+
or as validateRequire,
|
|
78
|
+
Dr as validateType,
|
|
79
|
+
Er as validation
|
|
80
80
|
};
|
package/lib/types/day/index.d.ts
CHANGED
package/package.json
CHANGED