xdbc 1.0.90 → 1.0.93
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/DBC/REGEX.js +2 -1
- package/package.json +2 -1
- package/src/DBC/AE.ts +1 -1
- package/src/DBC/EQ.ts +1 -1
- package/src/DBC/GREATER.ts +1 -1
- package/src/DBC/INSTANCE.ts +1 -1
- package/src/DBC/JSON.OP.ts +1 -1
- package/src/DBC/JSON.Parse.ts +1 -1
- package/src/DBC/OR.ts +1 -1
- package/src/DBC/REGEX.ts +3 -2
- package/src/DBC/TYPE.ts +1 -1
- package/xpackage-lock.json +122 -0
package/dist/DBC/REGEX.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DBC } from "../DBC
|
|
1
|
+
import { DBC } from "../DBC";
|
|
2
2
|
/**
|
|
3
3
|
* A {@link DBC } providing {@link REGEX }-contracts and standard {@link RegExp } for common use cases in {@link REGEX.stdExp }.
|
|
4
4
|
*
|
|
@@ -87,6 +87,7 @@ export class REGEX extends DBC {
|
|
|
87
87
|
}
|
|
88
88
|
/** Stores often used {@link RegExp }s. */
|
|
89
89
|
REGEX.stdExp = {
|
|
90
|
+
htmlAttributeName: /^[a-zA-Z_:][a-zA-Z0-9_.:-]*$/,
|
|
90
91
|
eMail: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/i,
|
|
91
92
|
property: /^[$_A-Za-z][$_A-Za-z0-9]*$/,
|
|
92
93
|
url: /^(?:(?:http:|https?|ftp):\/\/)?(?:\S+(?::\S*)?@)?(?:localhost|(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,})(?::\d{2,5})?(?:\/(?:[\w\-\.]*\/)*[\w\-\.]+(?:\?\S*)?(?:#\S*)?)?$/i,
|
package/package.json
CHANGED
package/src/DBC/AE.ts
CHANGED
|
@@ -203,7 +203,7 @@ export class AE extends DBC {
|
|
|
203
203
|
* @param toCheck See {@link EQ.checkAlgorithm }.
|
|
204
204
|
*
|
|
205
205
|
* @returns See {@link EQ.checkAlgorithm}. */
|
|
206
|
-
public check(toCheck: object) {
|
|
206
|
+
public override check(toCheck: object) {
|
|
207
207
|
if (Array.isArray(this.conditions)) {
|
|
208
208
|
for (const currentCondition of this.conditions) {
|
|
209
209
|
const result = AE.checkAlgorithm(
|
package/src/DBC/EQ.ts
CHANGED
|
@@ -103,7 +103,7 @@ export class EQ extends DBC {
|
|
|
103
103
|
*
|
|
104
104
|
* @returns See {@link EQ.checkAlgorithm}. */
|
|
105
105
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
106
|
-
public check(toCheck: any) {
|
|
106
|
+
public override check(toCheck: any) {
|
|
107
107
|
return EQ.checkAlgorithm(toCheck, this.equivalent, this.invert);
|
|
108
108
|
}
|
|
109
109
|
/**
|
package/src/DBC/GREATER.ts
CHANGED
|
@@ -102,7 +102,7 @@ export class GREATER extends DBC {
|
|
|
102
102
|
* @param toCheck See {@link GREATER.checkAlgorithm }.
|
|
103
103
|
*
|
|
104
104
|
* @returns See {@link GREATER.checkAlgorithm}. */
|
|
105
|
-
check(toCheck) {
|
|
105
|
+
public override check(toCheck) {
|
|
106
106
|
return GREATER.checkAlgorithm(
|
|
107
107
|
toCheck,
|
|
108
108
|
this.equivalent,
|
package/src/DBC/INSTANCE.ts
CHANGED
|
@@ -93,7 +93,7 @@ export class INSTANCE extends DBC {
|
|
|
93
93
|
*
|
|
94
94
|
* @returns See {@link INSTANCE.checkAlgorithm}. */
|
|
95
95
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
96
|
-
public check(toCheck: any) {
|
|
96
|
+
public override check(toCheck: any) {
|
|
97
97
|
return INSTANCE.checkAlgorithm(toCheck, this.reference);
|
|
98
98
|
}
|
|
99
99
|
/**
|
package/src/DBC/JSON.OP.ts
CHANGED
|
@@ -132,7 +132,7 @@ export class JSON_OP extends DBC {
|
|
|
132
132
|
*
|
|
133
133
|
* @returns See {@link JSON_OP.checkAlgorithm}. */
|
|
134
134
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
135
|
-
public check(toCheck: any) {
|
|
135
|
+
public override check(toCheck: any) {
|
|
136
136
|
return JSON_OP.checkAlgorithm(
|
|
137
137
|
toCheck,
|
|
138
138
|
this.necessaryProperties,
|
package/src/DBC/JSON.Parse.ts
CHANGED
|
@@ -103,7 +103,7 @@ export class JSON_Parse extends DBC {
|
|
|
103
103
|
*
|
|
104
104
|
* @returns See {@link JSON_Parse.checkAlgorithm}. */
|
|
105
105
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
106
|
-
public check(toCheck: any) {
|
|
106
|
+
public override check(toCheck: any) {
|
|
107
107
|
return JSON_Parse.checkAlgorithm(toCheck, this.receptor);
|
|
108
108
|
}
|
|
109
109
|
/**
|
package/src/DBC/OR.ts
CHANGED
|
@@ -127,7 +127,7 @@ export class OR extends DBC {
|
|
|
127
127
|
* @param toCheck See {@link OR.checkAlgorithm }.
|
|
128
128
|
*
|
|
129
129
|
* @returns See {@link OR.checkAlgorithm}. */
|
|
130
|
-
public check(toCheck: unknown | null | undefined) {
|
|
130
|
+
public override check(toCheck: unknown | null | undefined) {
|
|
131
131
|
return OR.checkAlgorithm(this.conditions, toCheck);
|
|
132
132
|
}
|
|
133
133
|
/**
|
package/src/DBC/REGEX.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DBC } from "../DBC
|
|
1
|
+
import { DBC } from "../DBC";
|
|
2
2
|
/**
|
|
3
3
|
* A {@link DBC } providing {@link REGEX }-contracts and standard {@link RegExp } for common use cases in {@link REGEX.stdExp }.
|
|
4
4
|
*
|
|
@@ -7,6 +7,7 @@ import { DBC } from "../DBC.js";
|
|
|
7
7
|
export class REGEX extends DBC {
|
|
8
8
|
/** Stores often used {@link RegExp }s. */
|
|
9
9
|
public static stdExp = {
|
|
10
|
+
htmlAttributeName: /^[a-zA-Z_:][a-zA-Z0-9_.:-]*$/,
|
|
10
11
|
eMail: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/i,
|
|
11
12
|
property: /^[$_A-Za-z][$_A-Za-z0-9]*$/,
|
|
12
13
|
url: /^(?:(?:http:|https?|ftp):\/\/)?(?:\S+(?::\S*)?@)?(?:localhost|(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,})(?::\d{2,5})?(?:\/(?:[\w\-\.]*\/)*[\w\-\.]+(?:\?\S*)?(?:#\S*)?)?$/i,
|
|
@@ -104,7 +105,7 @@ export class REGEX extends DBC {
|
|
|
104
105
|
* @param toCheck See {@link EQ.checkAlgorithm }.
|
|
105
106
|
*
|
|
106
107
|
* @returns See {@link EQ.checkAlgorithm}. */
|
|
107
|
-
public check(toCheck: unknown | null | undefined) {
|
|
108
|
+
public override check(toCheck: unknown | null | undefined) {
|
|
108
109
|
return REGEX.checkAlgorithm(toCheck, this.expression);
|
|
109
110
|
}
|
|
110
111
|
/**
|
package/src/DBC/TYPE.ts
CHANGED
|
@@ -91,7 +91,7 @@ export class TYPE extends DBC {
|
|
|
91
91
|
*
|
|
92
92
|
* @returns See {@link TYPE.checkAlgorithm}. */
|
|
93
93
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
94
|
-
public check(toCheck: any) {
|
|
94
|
+
public override check(toCheck: any) {
|
|
95
95
|
return TYPE.checkAlgorithm(toCheck, this.type);
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "XDBC",
|
|
3
|
+
"lockfileVersion": 3,
|
|
4
|
+
"requires": true,
|
|
5
|
+
"packages": {
|
|
6
|
+
"": {
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"undici-types": "^7.7.0"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@types/express": "^5.0.1"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"node_modules/@types/body-parser": {
|
|
15
|
+
"version": "1.19.5",
|
|
16
|
+
"resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz",
|
|
17
|
+
"integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==",
|
|
18
|
+
"dev": true,
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@types/connect": "*",
|
|
21
|
+
"@types/node": "*"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"node_modules/@types/connect": {
|
|
25
|
+
"version": "3.4.38",
|
|
26
|
+
"resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",
|
|
27
|
+
"integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==",
|
|
28
|
+
"dev": true,
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@types/node": "*"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"node_modules/@types/express": {
|
|
34
|
+
"version": "5.0.1",
|
|
35
|
+
"resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.1.tgz",
|
|
36
|
+
"integrity": "sha512-UZUw8vjpWFXuDnjFTh7/5c2TWDlQqeXHi6hcN7F2XSVT5P+WmUnnbFS3KA6Jnc6IsEqI2qCVu2bK0R0J4A8ZQQ==",
|
|
37
|
+
"dev": true,
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@types/body-parser": "*",
|
|
40
|
+
"@types/express-serve-static-core": "^5.0.0",
|
|
41
|
+
"@types/serve-static": "*"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"node_modules/@types/express-serve-static-core": {
|
|
45
|
+
"version": "5.0.6",
|
|
46
|
+
"resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.0.6.tgz",
|
|
47
|
+
"integrity": "sha512-3xhRnjJPkULekpSzgtoNYYcTWgEZkp4myc+Saevii5JPnHNvHMRlBSHDbs7Bh1iPPoVTERHEZXyhyLbMEsExsA==",
|
|
48
|
+
"dev": true,
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@types/node": "*",
|
|
51
|
+
"@types/qs": "*",
|
|
52
|
+
"@types/range-parser": "*",
|
|
53
|
+
"@types/send": "*"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"node_modules/@types/http-errors": {
|
|
57
|
+
"version": "2.0.4",
|
|
58
|
+
"resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz",
|
|
59
|
+
"integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==",
|
|
60
|
+
"dev": true
|
|
61
|
+
},
|
|
62
|
+
"node_modules/@types/mime": {
|
|
63
|
+
"version": "1.3.5",
|
|
64
|
+
"resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz",
|
|
65
|
+
"integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==",
|
|
66
|
+
"dev": true
|
|
67
|
+
},
|
|
68
|
+
"node_modules/@types/node": {
|
|
69
|
+
"version": "22.14.0",
|
|
70
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.0.tgz",
|
|
71
|
+
"integrity": "sha512-Kmpl+z84ILoG+3T/zQFyAJsU6EPTmOCj8/2+83fSN6djd6I4o7uOuGIH6vq3PrjY5BGitSbFuMN18j3iknubbA==",
|
|
72
|
+
"dev": true,
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"undici-types": "~6.21.0"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"node_modules/@types/node/node_modules/undici-types": {
|
|
78
|
+
"version": "6.21.0",
|
|
79
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
|
|
80
|
+
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
|
|
81
|
+
"dev": true
|
|
82
|
+
},
|
|
83
|
+
"node_modules/@types/qs": {
|
|
84
|
+
"version": "6.9.18",
|
|
85
|
+
"resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.18.tgz",
|
|
86
|
+
"integrity": "sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==",
|
|
87
|
+
"dev": true
|
|
88
|
+
},
|
|
89
|
+
"node_modules/@types/range-parser": {
|
|
90
|
+
"version": "1.2.7",
|
|
91
|
+
"resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz",
|
|
92
|
+
"integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==",
|
|
93
|
+
"dev": true
|
|
94
|
+
},
|
|
95
|
+
"node_modules/@types/send": {
|
|
96
|
+
"version": "0.17.4",
|
|
97
|
+
"resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz",
|
|
98
|
+
"integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==",
|
|
99
|
+
"dev": true,
|
|
100
|
+
"dependencies": {
|
|
101
|
+
"@types/mime": "^1",
|
|
102
|
+
"@types/node": "*"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"node_modules/@types/serve-static": {
|
|
106
|
+
"version": "1.15.7",
|
|
107
|
+
"resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz",
|
|
108
|
+
"integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==",
|
|
109
|
+
"dev": true,
|
|
110
|
+
"dependencies": {
|
|
111
|
+
"@types/http-errors": "*",
|
|
112
|
+
"@types/node": "*",
|
|
113
|
+
"@types/send": "*"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"node_modules/undici-types": {
|
|
117
|
+
"version": "7.7.0",
|
|
118
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.7.0.tgz",
|
|
119
|
+
"integrity": "sha512-9zJ2zD8nHfvO3zn1Xm9seFc+ATCmdtcNc7umXyMk6xj9fp+COVCNlH3pq2ZrFLVaBKLDTlvXLTq88+knkNs+BQ=="
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|