@freelog/tools-lib 0.1.150 → 0.1.152
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/service-API/operation.d.ts +1 -0
- package/dist/service-API/recombinations/index.d.ts +2 -1
- package/dist/service-API/resources.d.ts +7 -0
- package/dist/service-API/storages.d.ts +2 -1
- package/dist/tools-lib.cjs.development.js +23 -10
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +23 -10
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/collections.ts +82 -82
- package/src/service-API/nodes.ts +81 -81
- package/src/service-API/operation.ts +1 -0
- package/src/service-API/presentables.ts +292 -292
- package/src/service-API/recombinations/index.ts +7 -2
- package/src/service-API/resources.ts +622 -606
- package/src/service-API/storages.ts +362 -360
- package/src/utils/regexp.ts +5 -4
package/src/utils/regexp.ts
CHANGED
|
@@ -5,11 +5,11 @@ export const EXHIBIT_NAME: RegExp = new RegExp(/^(?!.*(\\|\/|:|\*|\?|"|<|>|\||\s
|
|
|
5
5
|
export const RESOURCE_NAME: RegExp = new RegExp(/^(?!.*(\\|\/|:|\*|\?|"|<|>|\||\s|@|\$|#)).{1,60}$/);
|
|
6
6
|
|
|
7
7
|
// 资源类型
|
|
8
|
-
|
|
9
|
-
export const RESOURCE_TYPE: RegExp = new RegExp(/^[a-z0-9][a-z0-9_]{1,18}[a-z0-9]$/);
|
|
8
|
+
export const RESOURCE_TYPE: RegExp = new RegExp('^[\u4e00-\u9fefa-zA-Z0-9\\-&.,]{1,40}$');
|
|
10
9
|
|
|
11
10
|
// 自定义属性键
|
|
12
|
-
export const CUSTOM_KEY: RegExp = new RegExp(/^[a-zA-Z0-9_]{1,
|
|
11
|
+
// export const CUSTOM_KEY: RegExp = new RegExp(/^[a-zA-Z_]([a-zA-Z0-9_]{1,19})?$/);
|
|
12
|
+
export const CUSTOM_KEY: RegExp = new RegExp('^[a-zA-Z]([a-zA-Z0-9_]{1,19})?$');
|
|
13
13
|
|
|
14
14
|
// 节点名称
|
|
15
15
|
export const NODE_NAME: RegExp = new RegExp(/^[\u4E00-\u9FA5|a-zA-Z0-9]{2,24}$/);
|
|
@@ -43,7 +43,8 @@ export const NATURAL_NUMBER: RegExp = new RegExp(/^[0-9]*$/);
|
|
|
43
43
|
export const POSITIVE_INTEGER = new RegExp(/^[1-9]\d*$/);
|
|
44
44
|
|
|
45
45
|
// 最多两位小数的正数
|
|
46
|
-
export const MAX_2_DECIMAL_POSITIVE_NUMBER = new RegExp(/^\d+(.\d{1,2})?$/);
|
|
46
|
+
// export const MAX_2_DECIMAL_POSITIVE_NUMBER = new RegExp(/^\d+(.\d{1,2})?$/);
|
|
47
|
+
export const MAX_2_DECIMAL_POSITIVE_NUMBER = new RegExp(/^\d+(\.\d{0,2})?$/);
|
|
47
48
|
|
|
48
49
|
// 对象的Bucket名称
|
|
49
50
|
export const BUCKET_NAME: RegExp = new RegExp(/^([a-z0-9][a-z0-9-]{0,61})?[a-z0-9]$/);
|