Browse Source

let's try CI again

master
nitowa 2 years ago
parent
commit
c12129c00e
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      package.json
  2. 1
    1
      src/Decorator.ts

+ 1
- 1
package.json View File

1
 {
1
 {
2
   "name": "depents",
2
   "name": "depents",
3
-  "version": "0.0.3",
3
+  "version": "0.0.4",
4
   "description": "depents is a typescript dependency injector",
4
   "description": "depents is a typescript dependency injector",
5
   "main": "./js/Index.js",
5
   "main": "./js/Index.js",
6
   "repository": {
6
   "repository": {

+ 1
- 1
src/Decorator.ts View File

12
 
12
 
13
   return (clazz: Type<any>) => {
13
   return (clazz: Type<any>) => {
14
     Injector['singletonDefinitions'].push({
14
     Injector['singletonDefinitions'].push({
15
-      initializationPriority: config ?. initializationPriority,
15
+      initializationPriority: (config && config.initializationPriority) ? config.initializationPriority :  0,
16
       ctor: clazz
16
       ctor: clazz
17
     })
17
     })
18
 
18
 

Loading…
Cancel
Save