@itgorillaz/configify 1.2.4 → 1.2.5

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@itgorillaz/configify",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "NestJS Config on Steroids",
5
5
  "author": "tommelo",
6
6
  "private": false,
@@ -44,7 +44,7 @@
44
44
  "@nestjs/testing": "^10.3.7",
45
45
  "@types/jest": "29.5.14",
46
46
  "@types/js-yaml": "^4.0.9",
47
- "@types/node": "22.9.0",
47
+ "@types/node": "22.9.3",
48
48
  "@types/supertest": "^6.0.2",
49
49
  "@typescript-eslint/eslint-plugin": "^8.1.0",
50
50
  "@typescript-eslint/parser": "^8.1.0",
@@ -28,7 +28,7 @@ export class ConfigurationRegistry {
28
28
  * @param {any} target the class target
29
29
  * @param {string} attribute the attribute name
30
30
  */
31
- static registerAttribute(target: any, attribute: string): void {
31
+ static registerAttribute(target: any, attribute: string | symbol): void {
32
32
  (
33
33
  target[VALUE_PROPERTIES_METADATA] ||
34
34
  (target[VALUE_PROPERTIES_METADATA] = [])
@@ -91,7 +91,7 @@ export class AwsParameterStoreConfigurationResolver
91
91
  return {
92
92
  id,
93
93
  key,
94
- error: e,
94
+ error: e as Error,
95
95
  success: false,
96
96
  };
97
97
  }
@@ -93,7 +93,7 @@ export class AwsSecretsManagerConfigurationResolver
93
93
  return {
94
94
  id,
95
95
  key,
96
- error: e,
96
+ error: e as Error,
97
97
  success: false,
98
98
  };
99
99
  }
@@ -40,7 +40,7 @@ export const Value = (
40
40
  key: string,
41
41
  options?: ValueOptions,
42
42
  ): PropertyDecorator => {
43
- return (target: object, property: string) => {
43
+ return (target: object, property: string | symbol) => {
44
44
  ConfigurationRegistry.registerAttribute(target, property);
45
45
  Reflect.defineMetadata(VALUE_METADATA, { key, options }, target, property);
46
46
  };
package/tsconfig.json CHANGED
@@ -12,6 +12,8 @@
12
12
  "baseUrl": "./",
13
13
  "incremental": true,
14
14
  "skipLibCheck": true,
15
+ "strict": true,
16
+ "strictPropertyInitialization": false,
15
17
  "strictNullChecks": true,
16
18
  "noImplicitAny": true,
17
19
  "strictBindCallApply": true,