Selaa lähdekoodia

CI pls

master
nitowa 2 vuotta sitten
vanhempi
commit
dee4b7d6e4
5 muutettua tiedostoa jossa 283 lisäystä ja 9 poistoa
  1. 4
    4
      .drone.yml
  2. 2
    1
      .gitignore
  3. 272
    2
      package-lock.json
  4. 4
    1
      package.json
  5. 1
    1
      src/Decorator.ts

+ 4
- 4
.drone.yml Näytä tiedosto

@@ -16,12 +16,12 @@ steps:
16 16
     path: /cache
17 17
 
18 18
 - name: npm install
19
-  image: node:12
19
+  image: node:14
20 20
   commands:
21 21
   - npm install
22 22
 
23 23
 - name: npm run build
24
-  image: node:12
24
+  image: node:14
25 25
   commands:
26 26
   - npm run build
27 27
 
@@ -36,12 +36,12 @@ steps:
36 36
     path: /cache
37 37
 
38 38
 - name: npm run test
39
-  image: node:12
39
+  image: node:14
40 40
   commands:
41 41
   - npm run test
42 42
 
43 43
 - name: build docs
44
-  image: node:12
44
+  image: node:14
45 45
   commands:
46 46
   - npm run docs
47 47
   when:

+ 2
- 1
.gitignore Näytä tiedosto

@@ -1,2 +1,3 @@
1 1
 js
2
-node_modules
2
+node_modules
3
+docs

+ 272
- 2
package-lock.json Näytä tiedosto

@@ -1,6 +1,6 @@
1 1
 {
2
-  "name": "dependjs",
3
-  "version": "0.0.1",
2
+  "name": "depents",
3
+  "version": "0.0.4",
4 4
   "lockfileVersion": 1,
5 5
   "requires": true,
6 6
   "dependencies": {
@@ -16,6 +16,12 @@
16 16
       "integrity": "sha512-Q5Vn3yjTDyCMV50TB6VRIbQNxSE4OmZR86VSbGaNpfUolm0iePBB4KdEEHmxoY5sT2+2DIvXW0rvMDP2nHZ4Mg==",
17 17
       "dev": true
18 18
     },
19
+    "@types/minimatch": {
20
+      "version": "3.0.3",
21
+      "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz",
22
+      "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==",
23
+      "dev": true
24
+    },
19 25
     "@types/mocha": {
20 26
       "version": "5.2.7",
21 27
       "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-5.2.7.tgz",
@@ -77,6 +83,21 @@
77 83
       "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",
78 84
       "dev": true
79 85
     },
86
+    "at-least-node": {
87
+      "version": "1.0.0",
88
+      "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",
89
+      "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",
90
+      "dev": true
91
+    },
92
+    "backbone": {
93
+      "version": "1.4.1",
94
+      "resolved": "https://registry.npmjs.org/backbone/-/backbone-1.4.1.tgz",
95
+      "integrity": "sha512-ADy1ztN074YkWbHi8ojJVFe3vAanO/lrzMGZWUClIP7oDD/Pjy2vrASraUP+2EVCfIiTtCW4FChVow01XneivA==",
96
+      "dev": true,
97
+      "requires": {
98
+        "underscore": ">=1.8.3"
99
+      }
100
+    },
80 101
     "balanced-match": {
81 102
       "version": "1.0.2",
82 103
       "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
@@ -365,6 +386,17 @@
365 386
         "is-buffer": "~2.0.3"
366 387
       }
367 388
     },
389
+    "fs-extra": {
390
+      "version": "8.1.0",
391
+      "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
392
+      "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
393
+      "dev": true,
394
+      "requires": {
395
+        "graceful-fs": "^4.2.0",
396
+        "jsonfile": "^4.0.0",
397
+        "universalify": "^0.1.0"
398
+      }
399
+    },
368 400
     "fs.realpath": {
369 401
       "version": "1.0.0",
370 402
       "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
@@ -442,12 +474,31 @@
442 474
         "path-is-absolute": "^1.0.0"
443 475
       }
444 476
     },
477
+    "graceful-fs": {
478
+      "version": "4.2.10",
479
+      "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz",
480
+      "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==",
481
+      "dev": true
482
+    },
445 483
     "growl": {
446 484
       "version": "1.10.5",
447 485
       "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz",
448 486
       "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==",
449 487
       "dev": true
450 488
     },
489
+    "handlebars": {
490
+      "version": "4.7.7",
491
+      "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz",
492
+      "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==",
493
+      "dev": true,
494
+      "requires": {
495
+        "minimist": "^1.2.5",
496
+        "neo-async": "^2.6.0",
497
+        "source-map": "^0.6.1",
498
+        "uglify-js": "^3.1.4",
499
+        "wordwrap": "^1.0.0"
500
+      }
501
+    },
451 502
     "has": {
452 503
       "version": "1.0.3",
453 504
       "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
@@ -499,6 +550,12 @@
499 550
       "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
500 551
       "dev": true
501 552
     },
553
+    "highlight.js": {
554
+      "version": "9.18.5",
555
+      "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.18.5.tgz",
556
+      "integrity": "sha512-a5bFyofd/BHCX52/8i8uJkjr9DYwXIPnM/plwI6W7ezItLGqzt7X2G2nXuYSfsIJdkwwj/g9DG1LkcGJI/dDoA==",
557
+      "dev": true
558
+    },
502 559
     "inflight": {
503 560
       "version": "1.0.6",
504 561
       "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
@@ -526,6 +583,12 @@
526 583
         "side-channel": "^1.0.4"
527 584
       }
528 585
     },
586
+    "interpret": {
587
+      "version": "1.4.0",
588
+      "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz",
589
+      "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==",
590
+      "dev": true
591
+    },
529 592
     "is-bigint": {
530 593
       "version": "1.0.4",
531 594
       "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz",
@@ -557,6 +620,15 @@
557 620
       "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==",
558 621
       "dev": true
559 622
     },
623
+    "is-core-module": {
624
+      "version": "2.10.0",
625
+      "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz",
626
+      "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==",
627
+      "dev": true,
628
+      "requires": {
629
+        "has": "^1.0.3"
630
+      }
631
+    },
560 632
     "is-date-object": {
561 633
       "version": "1.0.5",
562 634
       "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz",
@@ -639,6 +711,12 @@
639 711
       "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
640 712
       "dev": true
641 713
     },
714
+    "jquery": {
715
+      "version": "3.6.1",
716
+      "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.1.tgz",
717
+      "integrity": "sha512-opJeO4nCucVnsjiXOE+/PcCgYw9Gwpvs/a6B1LL/lQhwWwpbVEVYDZ1FokFr8PRc7ghYlrFPuyHuiiDNTQxmcw==",
718
+      "dev": true
719
+    },
642 720
     "js-yaml": {
643 721
       "version": "3.13.1",
644 722
       "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz",
@@ -649,6 +727,15 @@
649 727
         "esprima": "^4.0.0"
650 728
       }
651 729
     },
730
+    "jsonfile": {
731
+      "version": "4.0.0",
732
+      "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
733
+      "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",
734
+      "dev": true,
735
+      "requires": {
736
+        "graceful-fs": "^4.1.6"
737
+      }
738
+    },
652 739
     "locate-path": {
653 740
       "version": "3.0.0",
654 741
       "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
@@ -683,6 +770,18 @@
683 770
         "get-func-name": "^2.0.0"
684 771
       }
685 772
     },
773
+    "lunr": {
774
+      "version": "2.3.9",
775
+      "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz",
776
+      "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==",
777
+      "dev": true
778
+    },
779
+    "marked": {
780
+      "version": "0.8.2",
781
+      "resolved": "https://registry.npmjs.org/marked/-/marked-0.8.2.tgz",
782
+      "integrity": "sha512-EGwzEeCcLniFX51DhTpmTom+dSA/MG/OBUDjnWtHbEnjAH180VzUeAw+oE4+Zv+CoYBWyRlYOTR0N8SO9R1PVw==",
783
+      "dev": true
784
+    },
686 785
     "minimatch": {
687 786
       "version": "3.0.4",
688 787
       "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
@@ -744,6 +843,12 @@
744 843
       "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
745 844
       "dev": true
746 845
     },
846
+    "neo-async": {
847
+      "version": "2.6.2",
848
+      "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
849
+      "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
850
+      "dev": true
851
+    },
747 852
     "node-environment-flags": {
748 853
       "version": "1.0.5",
749 854
       "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz",
@@ -835,12 +940,33 @@
835 940
       "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
836 941
       "dev": true
837 942
     },
943
+    "path-parse": {
944
+      "version": "1.0.7",
945
+      "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
946
+      "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
947
+      "dev": true
948
+    },
838 949
     "pathval": {
839 950
       "version": "1.1.1",
840 951
       "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz",
841 952
       "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",
842 953
       "dev": true
843 954
     },
955
+    "progress": {
956
+      "version": "2.0.3",
957
+      "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",
958
+      "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
959
+      "dev": true
960
+    },
961
+    "rechoir": {
962
+      "version": "0.6.2",
963
+      "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz",
964
+      "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==",
965
+      "dev": true,
966
+      "requires": {
967
+        "resolve": "^1.1.6"
968
+      }
969
+    },
844 970
     "reflect-metadata": {
845 971
       "version": "0.1.13",
846 972
       "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz",
@@ -869,6 +995,17 @@
869 995
       "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==",
870 996
       "dev": true
871 997
     },
998
+    "resolve": {
999
+      "version": "1.22.1",
1000
+      "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz",
1001
+      "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==",
1002
+      "dev": true,
1003
+      "requires": {
1004
+        "is-core-module": "^2.9.0",
1005
+        "path-parse": "^1.0.7",
1006
+        "supports-preserve-symlinks-flag": "^1.0.0"
1007
+      }
1008
+    },
872 1009
     "semver": {
873 1010
       "version": "5.7.1",
874 1011
       "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
@@ -881,6 +1018,17 @@
881 1018
       "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",
882 1019
       "dev": true
883 1020
     },
1021
+    "shelljs": {
1022
+      "version": "0.8.5",
1023
+      "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz",
1024
+      "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==",
1025
+      "dev": true,
1026
+      "requires": {
1027
+        "glob": "^7.0.0",
1028
+        "interpret": "^1.0.0",
1029
+        "rechoir": "^0.6.2"
1030
+      }
1031
+    },
884 1032
     "side-channel": {
885 1033
       "version": "1.0.4",
886 1034
       "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
@@ -892,6 +1040,12 @@
892 1040
         "object-inspect": "^1.9.0"
893 1041
       }
894 1042
     },
1043
+    "source-map": {
1044
+      "version": "0.6.1",
1045
+      "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
1046
+      "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
1047
+      "dev": true
1048
+    },
895 1049
     "sprintf-js": {
896 1050
       "version": "1.0.3",
897 1051
       "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
@@ -954,12 +1108,110 @@
954 1108
         "has-flag": "^3.0.0"
955 1109
       }
956 1110
     },
1111
+    "supports-preserve-symlinks-flag": {
1112
+      "version": "1.0.0",
1113
+      "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
1114
+      "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
1115
+      "dev": true
1116
+    },
957 1117
     "type-detect": {
958 1118
       "version": "4.0.8",
959 1119
       "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
960 1120
       "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
961 1121
       "dev": true
962 1122
     },
1123
+    "typedoc": {
1124
+      "version": "0.15.8",
1125
+      "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.15.8.tgz",
1126
+      "integrity": "sha512-a0zypcvfIFsS7Gqpf2MkC1+jNND3K1Om38pbDdy/gYWX01NuJZhC5+O0HkIp0oRIZOo7PWrA5+fC24zkANY28Q==",
1127
+      "dev": true,
1128
+      "requires": {
1129
+        "@types/minimatch": "3.0.3",
1130
+        "fs-extra": "^8.1.0",
1131
+        "handlebars": "^4.7.0",
1132
+        "highlight.js": "^9.17.1",
1133
+        "lodash": "^4.17.15",
1134
+        "marked": "^0.8.0",
1135
+        "minimatch": "^3.0.0",
1136
+        "progress": "^2.0.3",
1137
+        "shelljs": "^0.8.3",
1138
+        "typedoc-default-themes": "^0.6.3",
1139
+        "typescript": "3.7.x"
1140
+      },
1141
+      "dependencies": {
1142
+        "typescript": {
1143
+          "version": "3.7.7",
1144
+          "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.7.tgz",
1145
+          "integrity": "sha512-MmQdgo/XenfZPvVLtKZOq9jQQvzaUAUpcKW8Z43x9B2fOm4S5g//tPtMweZUIP+SoBqrVPEIm+dJeQ9dfO0QdA==",
1146
+          "dev": true
1147
+        }
1148
+      }
1149
+    },
1150
+    "typedoc-default-themes": {
1151
+      "version": "0.6.3",
1152
+      "resolved": "https://registry.npmjs.org/typedoc-default-themes/-/typedoc-default-themes-0.6.3.tgz",
1153
+      "integrity": "sha512-rouf0TcIA4M2nOQFfC7Zp4NEwoYiEX4vX/ZtudJWU9IHA29MPC+PPgSXYLPESkUo7FuB//GxigO3mk9Qe1xp3Q==",
1154
+      "dev": true,
1155
+      "requires": {
1156
+        "backbone": "^1.4.0",
1157
+        "jquery": "^3.4.1",
1158
+        "lunr": "^2.3.8",
1159
+        "underscore": "^1.9.1"
1160
+      }
1161
+    },
1162
+    "typedoc-plugin-markdown": {
1163
+      "version": "2.4.2",
1164
+      "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-2.4.2.tgz",
1165
+      "integrity": "sha512-BBH+9/Uq5XbsqfzCDl8Jq4iaLXRMXRuAHZRFarAZX7df8+F3vUjDx/WHWoWqbZ/XUFzduLC2Iuy2qwsJX8SQ7A==",
1166
+      "dev": true,
1167
+      "requires": {
1168
+        "fs-extra": "^9.0.1",
1169
+        "handlebars": "^4.7.6"
1170
+      },
1171
+      "dependencies": {
1172
+        "fs-extra": {
1173
+          "version": "9.1.0",
1174
+          "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
1175
+          "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
1176
+          "dev": true,
1177
+          "requires": {
1178
+            "at-least-node": "^1.0.0",
1179
+            "graceful-fs": "^4.2.0",
1180
+            "jsonfile": "^6.0.1",
1181
+            "universalify": "^2.0.0"
1182
+          }
1183
+        },
1184
+        "jsonfile": {
1185
+          "version": "6.1.0",
1186
+          "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
1187
+          "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
1188
+          "dev": true,
1189
+          "requires": {
1190
+            "graceful-fs": "^4.1.6",
1191
+            "universalify": "^2.0.0"
1192
+          }
1193
+        },
1194
+        "universalify": {
1195
+          "version": "2.0.0",
1196
+          "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
1197
+          "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",
1198
+          "dev": true
1199
+        }
1200
+      }
1201
+    },
1202
+    "typescript": {
1203
+      "version": "4.8.4",
1204
+      "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz",
1205
+      "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==",
1206
+      "dev": true
1207
+    },
1208
+    "uglify-js": {
1209
+      "version": "3.17.3",
1210
+      "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.3.tgz",
1211
+      "integrity": "sha512-JmMFDME3iufZnBpyKL+uS78LRiC+mK55zWfM5f/pWBJfpOttXAqYfdDGRukYhJuyRinvPVAtUhvy7rlDybNtFg==",
1212
+      "dev": true,
1213
+      "optional": true
1214
+    },
963 1215
     "unbox-primitive": {
964 1216
       "version": "1.0.2",
965 1217
       "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",
@@ -972,6 +1224,18 @@
972 1224
         "which-boxed-primitive": "^1.0.2"
973 1225
       }
974 1226
     },
1227
+    "underscore": {
1228
+      "version": "1.13.6",
1229
+      "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz",
1230
+      "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==",
1231
+      "dev": true
1232
+    },
1233
+    "universalify": {
1234
+      "version": "0.1.2",
1235
+      "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
1236
+      "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
1237
+      "dev": true
1238
+    },
975 1239
     "which": {
976 1240
       "version": "1.3.1",
977 1241
       "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
@@ -1009,6 +1273,12 @@
1009 1273
         "string-width": "^1.0.2 || 2"
1010 1274
       }
1011 1275
     },
1276
+    "wordwrap": {
1277
+      "version": "1.0.0",
1278
+      "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
1279
+      "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==",
1280
+      "dev": true
1281
+    },
1012 1282
     "wrap-ansi": {
1013 1283
       "version": "5.1.0",
1014 1284
       "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz",

+ 4
- 1
package.json Näytä tiedosto

@@ -22,7 +22,8 @@
22 22
     "tsc": "tsc",
23 23
     "build": "npm run clean && tsc",
24 24
     "clean": "rm -rf js",
25
-    "test": "npm run clean && npm run build && mocha --bail=true js/test/BasicTest && mocha --bail=true js/test/InitializationTest"
25
+    "test": "npm run clean && npm run build && mocha --bail=true js/test/BasicTest && mocha --bail=true js/test/InitializationTest",
26
+    "docs": "typedoc --out docs ./src --readme ./README.md --plugin typedoc-plugin-markdown --mode file --hideBreadcrumbs --hideSources"
26 27
   },
27 28
   "license": "MIT",
28 29
   "dependencies": {
@@ -36,6 +37,8 @@
36 37
     "@types/mocha": "^5.2.7",
37 38
     "chai": "^4.3.4",
38 39
     "chai-as-promised": "^7.1.1",
40
+    "typedoc": "^0.15.0",
41
+    "typedoc-plugin-markdown": "^2.2.6",
39 42
     "mocha": "^6.2.0"
40 43
   },
41 44
   "files": [

+ 1
- 1
src/Decorator.ts Näytä tiedosto

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

Loading…
Peruuta
Tallenna