Browse Source

let's try CI again

master
nitowa 1 year 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,6 +1,6 @@
1 1
 {
2 2
   "name": "depents",
3
-  "version": "0.0.3",
3
+  "version": "0.0.4",
4 4
   "description": "depents is a typescript dependency injector",
5 5
   "main": "./js/Index.js",
6 6
   "repository": {

+ 1
- 1
src/Decorator.ts View File

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

Loading…
Cancel
Save