@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@travetto/schema",
3
3
  "displayName": "Schema",
4
- "version": "2.2.0",
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.0",
33
- "@travetto/transformer": "^2.2.0"
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
- // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
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
  }
@@ -77,7 +77,7 @@ export interface FieldConfig extends DescribableConfig {
77
77
  /**
78
78
  * Owner class
79
79
  */
80
- owner: Class;
80
+ owner?: Class;
81
81
  /**
82
82
  * Field name
83
83
  */
@@ -18,8 +18,7 @@ export const CommonRegExp = {
18
18
  };
19
19
 
20
20
  // Rebind regexes
21
- // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
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
  }