ts-ioc-container 21.0.7 → 21.0.8

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -60,10 +60,10 @@ const container = new Container(injector, { tags: ['root'] });
60
60
  container.register(fromFn((container, ...args) => new Logger(...args)).forKey('ILogger').build());
61
61
 
62
62
  // Available only in root scope and all his children
63
- container.register(fromClass(Logger).forKey('ILogger').perTags(['root']).build());
63
+ container.register(fromClass(Logger).forKey('ILogger').perTags('root').build());
64
64
 
65
65
  // Singleton per root tag and all his children
66
- container.register(fromClass(Logger).forKey('ILogger').asSingleton().perTags(['root']).build());
66
+ container.register(fromClass(Logger).forKey('ILogger').asSingleton().perTags('root').build());
67
67
  // OR
68
68
  container.register(fromClass(Logger).forKey('ILogger').asSingleton('root').build());
69
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-ioc-container",
3
- "version": "21.0.7",
3
+ "version": "21.0.8",
4
4
  "description": "Typescript IoC container",
5
5
  "author": "ibabkin <igba14@gmail.com>",
6
6
  "homepage": "https://github.com/IgorBabkin/ts-ioc-container/tree/master/packages/ts-ioc-container",
@@ -48,5 +48,5 @@
48
48
  "ts-jest": "27.0.5",
49
49
  "typescript": "4.4.3"
50
50
  },
51
- "gitHead": "c3a854d12081ac547092bcde06aa2b1d6a159dca"
51
+ "gitHead": "3e41f7f07a8628af8585801527c14235e39af579"
52
52
  }