浏览代码

let's try CI again

master
nitowa 2 年前
父节点
当前提交
c12129c00e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      package.json
  2. 1
    1
      src/Decorator.ts

+ 1
- 1
package.json 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存