Pārlūkot izejas kodu

let's try CI again

master
nitowa 2 gadus atpakaļ
vecāks
revīzija
c12129c00e
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1
    1
      package.json
  2. 1
    1
      src/Decorator.ts

+ 1
- 1
package.json Parādīt failu

@@ -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 Parādīt failu

@@ -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
 

Notiek ielāde…
Atcelt
Saglabāt