@travetto/schema 2.2.0 → 2.2.1
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/package.json +3 -3
- package/src/bind-util.ts +1 -2
- package/src/service/types.ts +1 -1
- package/src/validate/regexp.ts +1 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/schema",
|
|
3
3
|
"displayName": "Schema",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.1",
|
|
5
5
|
"description": "Data type registry for runtime validation, reflection and binding. ",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"schema",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"directory": "module/schema"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@travetto/registry": "^2.2.
|
|
33
|
-
"@travetto/transformer": "^2.2.
|
|
32
|
+
"@travetto/registry": "^2.2.1",
|
|
33
|
+
"@travetto/transformer": "^2.2.1"
|
|
34
34
|
},
|
|
35
35
|
"optionalPeerDependencies": {
|
|
36
36
|
"@types/faker": "^5.5.9",
|
package/src/bind-util.ts
CHANGED
|
@@ -186,8 +186,7 @@ export class BindUtil {
|
|
|
186
186
|
|
|
187
187
|
// If no configuration
|
|
188
188
|
if (!conf) {
|
|
189
|
-
|
|
190
|
-
for (const k of Object.keys(data) as (keyof typeof obj)[]) {
|
|
189
|
+
for (const k of Object.keys(data)) {
|
|
191
190
|
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
192
191
|
obj[k] = data[k as keyof typeof data];
|
|
193
192
|
}
|
package/src/service/types.ts
CHANGED
package/src/validate/regexp.ts
CHANGED
|
@@ -18,8 +18,7 @@ export const CommonRegExp = {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
// Rebind regexes
|
|
21
|
-
|
|
22
|
-
for (const k of Object.keys(CommonRegExp) as (keyof typeof CommonRegExp)[]) {
|
|
21
|
+
for (const k of Object.keys(CommonRegExp)) {
|
|
23
22
|
CommonRegExp[k].name = `[[:${k}:]]`;
|
|
24
23
|
Messages.set(CommonRegExp[k].name!, Messages.get(k)!);
|
|
25
24
|
}
|