first-di 1.0.16 → 1.0.17

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.
@@ -7,7 +7,9 @@ export class DI {
7
7
  this.reset = () => {
8
8
  this.makeReset();
9
9
  };
10
- this.resolve = (constructor, options, caller, propertyKey) => this.makeResolve(constructor, options, caller, propertyKey);
10
+ this.resolve = (constructor, options, caller, propertyKey
11
+ // eslint-disable-next-line @typescript-eslint/max-params
12
+ ) => this.makeResolve(constructor, options, caller, propertyKey);
11
13
  this.singleton = (constructor, options) => this.makeResolve(constructor, { ...options,
12
14
  lifeTime: AutowiredLifetimes.Singleton });
13
15
  this.instance = (constructor, options) => this.makeResolve(constructor, { ...options,
@@ -29,7 +31,7 @@ export class DI {
29
31
  });
30
32
  };
31
33
  }
32
- // eslint-disable-next-line max-statements
34
+ // eslint-disable-next-line max-statements, @typescript-eslint/max-params
33
35
  makeResolve(inConstructor, inOptions, caller, propertyKey) {
34
36
  let constructor = inConstructor;
35
37
  let options = inOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "first-di",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Easy dependency injection for typescript applications",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -9,15 +9,15 @@
9
9
  "reflect-metadata": ">=0.1.0"
10
10
  },
11
11
  "devDependencies": {
12
- "@labeg/code-style": "^3.0.6",
13
- "@types/chai": "^4.3.5",
14
- "@types/mocha": "^10.0.1",
15
- "@types/node": "^20.5.8",
16
- "chai": "^4.3.8",
12
+ "@labeg/code-style": "^3.0.8",
13
+ "@types/chai": "^4.3.11",
14
+ "@types/mocha": "^10.0.6",
15
+ "@types/node": "^20.10.2",
16
+ "chai": "^4.3.10",
17
17
  "mocha": "^10.2.0",
18
18
  "ts-node": "^10.9.1",
19
19
  "reflect-metadata": "^0.1.13",
20
- "typescript": "^5.2.2"
20
+ "typescript": "^5.3.2"
21
21
  },
22
22
  "scripts": {
23
23
  "lint": "eslint --fix -c .eslintrc.cjs --ext .tsx,.ts,.jsx,.js ./src/ ./tests/",