@vef-framework/shared 1.0.99 → 1.0.100

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.
@@ -1,191 +1,3 @@
1
- /*! VefFramework version: 1.0.99, build time: 2025-03-07T13:41:55.370Z, made by Venus. */
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- const validator = require('validator');
7
-
8
- function isAlpha(value) {
9
- return validator.isAlpha(value);
10
- }
11
- function isAlphanumeric(value) {
12
- return validator.isAlphanumeric(value);
13
- }
14
- function isAscii(value) {
15
- return validator.isAscii(value);
16
- }
17
- function isNumeric(value) {
18
- return validator.isNumeric(value);
19
- }
20
- function isDecimal(value) {
21
- return validator.isDecimal(value);
22
- }
23
- function isFloat(value, options) {
24
- return validator.isFloat(value, options);
25
- }
26
- function isBoolean(value) {
27
- return validator.isBoolean(value, {
28
- loose: false
29
- });
30
- }
31
- function isDate(value) {
32
- return validator.isDate(value, {
33
- format: "YYYY-MM-DD",
34
- strictMode: true
35
- });
36
- }
37
- function isEmpty(value) {
38
- return validator.isEmpty(value);
39
- }
40
- function isBlank(value) {
41
- return validator.isEmpty(value, {
42
- ignore_whitespace: true
43
- });
44
- }
45
- function isIdentityCard(value) {
46
- return validator.isIdentityCard(value, "zh-CN");
47
- }
48
- function isAfter(value, date) {
49
- return validator.isAfter(value, date);
50
- }
51
- function isBefore(value, date) {
52
- return validator.isBefore(value, date);
53
- }
54
- function isEmail(value) {
55
- return validator.isEmail(value);
56
- }
57
- function isHexColor(value) {
58
- return validator.isHexColor(value);
59
- }
60
- function isIn(value, values) {
61
- return validator.isIn(value, values);
62
- }
63
- function isInt(value, options) {
64
- return validator.isInt(value, options);
65
- }
66
- function isIp(value, version) {
67
- return validator.isIP(value, version);
68
- }
69
- function isIpRange(value, version) {
70
- return validator.isIPRange(value, version);
71
- }
72
- function isJson(value) {
73
- return validator.isJSON(value);
74
- }
75
- function isJwt(value) {
76
- return validator.isJWT(value);
77
- }
78
- function isLatLong(value) {
79
- return validator.isLatLong(value);
80
- }
81
- function isLength(value, options) {
82
- return validator.isLength(value, options);
83
- }
84
- function isMimeType(value) {
85
- return validator.isMimeType(value);
86
- }
87
- function isMobilePhone(value) {
88
- return validator.isMobilePhone(value, "zh-CN");
89
- }
90
- function isPort(value) {
91
- return validator.isPort(value);
92
- }
93
- function isPostalCode(value) {
94
- return validator.isPostalCode(value, "CN");
95
- }
96
- function isSemVer(value) {
97
- return validator.isSemVer(value);
98
- }
99
- function isSlug(value) {
100
- return validator.isSlug(value);
101
- }
102
- function isStrongPassword(value) {
103
- return validator.isStrongPassword(value, {
104
- minLength: 8,
105
- minLowercase: 1,
106
- minUppercase: 1,
107
- minNumbers: 1,
108
- minSymbols: 1
109
- });
110
- }
111
- function isTime(value, options) {
112
- return validator.isTime(value, options);
113
- }
114
- function isUrl(value) {
115
- return validator.isURL(value, {
116
- protocols: ["http", "https"],
117
- require_tld: true,
118
- require_protocol: true,
119
- require_host: true,
120
- require_port: false,
121
- require_valid_protocol: true,
122
- allow_underscores: true
123
- });
124
- }
125
- function isUri(value) {
126
- return validator.isURL(value, {
127
- protocols: [],
128
- require_tld: false,
129
- require_protocol: false,
130
- require_host: false,
131
- require_port: false,
132
- require_valid_protocol: false,
133
- allow_underscores: true,
134
- allow_fragments: false,
135
- allow_query_components: false,
136
- allow_protocol_relative_urls: false
137
- });
138
- }
139
- function isUuid(value, version) {
140
- return validator.isUUID(value, version);
141
- }
142
- function isDateTime(value) {
143
- const [date, time] = value.split(" ", 2);
144
- return isDate(date) && isTime(time);
145
- }
146
- function matches(value, pattern, modifiers) {
147
- return validator.matches(value, pattern, modifiers);
148
- }
149
- const chineseNameRegExp = /^[\u4E00-\u9FA5]+\d*$/;
150
- function isChineseName(value) {
151
- return chineseNameRegExp.test(value);
152
- }
153
-
154
- exports.isAfter = isAfter;
155
- exports.isAlpha = isAlpha;
156
- exports.isAlphanumeric = isAlphanumeric;
157
- exports.isAscii = isAscii;
158
- exports.isBefore = isBefore;
159
- exports.isBlank = isBlank;
160
- exports.isBoolean = isBoolean;
161
- exports.isChineseName = isChineseName;
162
- exports.isDate = isDate;
163
- exports.isDateTime = isDateTime;
164
- exports.isDecimal = isDecimal;
165
- exports.isEmail = isEmail;
166
- exports.isEmpty = isEmpty;
167
- exports.isFloat = isFloat;
168
- exports.isHexColor = isHexColor;
169
- exports.isIdentityCard = isIdentityCard;
170
- exports.isIn = isIn;
171
- exports.isInt = isInt;
172
- exports.isIp = isIp;
173
- exports.isIpRange = isIpRange;
174
- exports.isJson = isJson;
175
- exports.isJwt = isJwt;
176
- exports.isLatLong = isLatLong;
177
- exports.isLength = isLength;
178
- exports.isMimeType = isMimeType;
179
- exports.isMobilePhone = isMobilePhone;
180
- exports.isNumeric = isNumeric;
181
- exports.isPort = isPort;
182
- exports.isPostalCode = isPostalCode;
183
- exports.isSemVer = isSemVer;
184
- exports.isSlug = isSlug;
185
- exports.isStrongPassword = isStrongPassword;
186
- exports.isTime = isTime;
187
- exports.isUri = isUri;
188
- exports.isUrl = isUrl;
189
- exports.isUuid = isUuid;
190
- exports.matches = matches;
1
+ /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:51.660Z, made by Venus. */
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("validator");function isDate(e){return i.isDate(e,{format:"YYYY-MM-DD",strictMode:!0})}function isTime(e,r){return i.isTime(e,r)}const e=/^[\u4E00-\u9FA5]+\d*$/;exports.isAfter=function isAfter(e,r){return i.isAfter(e,r)},exports.isAlpha=function isAlpha(e){return i.isAlpha(e)},exports.isAlphanumeric=function isAlphanumeric(e){return i.isAlphanumeric(e)},exports.isAscii=function isAscii(e){return i.isAscii(e)},exports.isBefore=function isBefore(e,r){return i.isBefore(e,r)},exports.isBlank=function isBlank(e){return i.isEmpty(e,{ignore_whitespace:!0})},exports.isBoolean=function isBoolean(e){return i.isBoolean(e,{loose:!1})},exports.isChineseName=function isChineseName(i){return e.test(i)},exports.isDate=isDate,exports.isDateTime=function isDateTime(i){const[e,r]=i.split(" ",2);return isDate(e)&&isTime(r)},exports.isDecimal=function isDecimal(e){return i.isDecimal(e)},exports.isEmail=function isEmail(e){return i.isEmail(e)},exports.isEmpty=function isEmpty(e){return i.isEmpty(e)},exports.isFloat=function isFloat(e,r){return i.isFloat(e,r)},exports.isHexColor=function isHexColor(e){return i.isHexColor(e)},exports.isIdentityCard=function isIdentityCard(e){return i.isIdentityCard(e,"zh-CN")},exports.isIn=function isIn(e,r){return i.isIn(e,r)},exports.isInt=function isInt(e,r){return i.isInt(e,r)},exports.isIp=function isIp(e,r){return i.isIP(e,r)},exports.isIpRange=function isIpRange(e,r){return i.isIPRange(e,r)},exports.isJson=function isJson(e){return i.isJSON(e)},exports.isJwt=function isJwt(e){return i.isJWT(e)},exports.isLatLong=function isLatLong(e){return i.isLatLong(e)},exports.isLength=function isLength(e,r){return i.isLength(e,r)},exports.isMimeType=function isMimeType(e){return i.isMimeType(e)},exports.isMobilePhone=function isMobilePhone(e){return i.isMobilePhone(e,"zh-CN")},exports.isNumeric=function isNumeric(e){return i.isNumeric(e)},exports.isPort=function isPort(e){return i.isPort(e)},exports.isPostalCode=function isPostalCode(e){return i.isPostalCode(e,"CN")},exports.isSemVer=function isSemVer(e){return i.isSemVer(e)},exports.isSlug=function isSlug(e){return i.isSlug(e)},exports.isStrongPassword=function isStrongPassword(e){return i.isStrongPassword(e,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1})},exports.isTime=isTime,exports.isUri=function isUri(e){return i.isURL(e,{protocols:[],require_tld:!1,require_protocol:!1,require_host:!1,require_port:!1,require_valid_protocol:!1,allow_underscores:!0,allow_fragments:!1,allow_query_components:!1,allow_protocol_relative_urls:!1})},exports.isUrl=function isUrl(e){return i.isURL(e,{protocols:["http","https"],require_tld:!0,require_protocol:!0,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!0})},exports.isUuid=function isUuid(e,r){return i.isUUID(e,r)},exports.matches=function matches(e,r,t){return i.matches(e,r,t)};
191
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/yaml.cjs CHANGED
@@ -1,13 +1,3 @@
1
- /*! VefFramework version: 1.0.99, build time: 2025-03-07T13:41:55.370Z, made by Venus. */
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- const jsYaml = require('js-yaml');
7
-
8
- function loadYaml(content) {
9
- return jsYaml.load(content);
10
- }
11
-
12
- exports.loadYaml = loadYaml;
1
+ /*! VefFramework version: 1.0.100, build time: 2025-03-07T13:52:51.660Z, made by Venus. */
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("js-yaml");exports.loadYaml=function loadYaml(o){return e.load(o)};
13
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vef-framework/shared",
3
3
  "type": "module",
4
- "version": "1.0.99",
4
+ "version": "1.0.100",
5
5
  "private": false,
6
6
  "packageManager": "pnpm@9.15.0",
7
7
  "description": "Shared fundamental to the VEF framework",