Comparing version
@@ -13,6 +13,6 @@ "use strict"; | ||
PtPlugin = (0, tslib_1.__decorate)([ | ||
(0, typedi_1.Service)() | ||
(0, typedi_1.Service)("PtPlugin") | ||
], PtPlugin); | ||
exports.PtPlugin = PtPlugin; | ||
console.log(`PtPlugin injected: ${typedi_1.Container.has(PtPlugin)}`); | ||
console.log(`PtPlugin injected: ${typedi_1.Container.has("PtPlugin")}`); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "pt-plugin", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
import "reflect-metadata"; | ||
import { Container, Service } from "typedi"; | ||
@Service() | ||
@Service("PtPlugin") | ||
export class PtPlugin { | ||
@@ -11,2 +11,2 @@ foo() { | ||
console.log(`PtPlugin injected: ${Container.has(PtPlugin)}`); | ||
console.log(`PtPlugin injected: ${Container.has("PtPlugin")}`); |
Sorry, the diff of this file is not supported yet
2396
1.44%