@tsed/di
Advanced tools
Comparing version 5.18.0 to 5.18.1
@@ -24,3 +24,5 @@ "use strict"; | ||
} | ||
this.message = "Injection failed on " + this.tokens.map(token => core_1.nameOf(token)).join(" > ") + "\nOrigin: " + this.origin.message; | ||
const originMessage = this.origin ? "\nOrigin: " + this.origin.message : ""; | ||
const tokensMessage = this.tokens.map(token => core_1.nameOf(token)).join(" > "); | ||
this.message = `Injection failed on ${tokensMessage}${originMessage}`; | ||
} | ||
@@ -27,0 +29,0 @@ } |
{ | ||
"name": "@tsed/di", | ||
"version": "5.18.0", | ||
"version": "5.18.1", | ||
"description": "DI module for Ts.ED Framework", | ||
@@ -11,3 +11,3 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"@tsed/core": "5.18.0" | ||
"@tsed/core": "5.18.1" | ||
}, | ||
@@ -28,3 +28,3 @@ "devDependencies": {}, | ||
"license": "MIT", | ||
"gitHead": "6fcec33cc31c593cfcf72a1fb6432730e8fb958e" | ||
"gitHead": "3c196dedc27e8dcdc774246577cc023f68471fd5" | ||
} |
@@ -29,4 +29,7 @@ import {isString, nameOf} from "@tsed/core"; | ||
this.message = "Injection failed on " + this.tokens.map(token => nameOf(token)).join(" > ") + "\nOrigin: " + this.origin.message; | ||
const originMessage = this.origin ? "\nOrigin: " + this.origin.message : ""; | ||
const tokensMessage = this.tokens.map(token => nameOf(token)).join(" > "); | ||
this.message = `Injection failed on ${tokensMessage}${originMessage}`; | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
298846
5188