Comparing version 4.0.1 to 4.0.2
{ | ||
"name": "pdi", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Minimal Promise based dependency injection framework", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/davidgtonge/pdi", |
@@ -82,3 +82,3 @@ const Promise = require("bluebird") | ||
} | ||
throw new Error(`Invalid property access: ${prop}`) | ||
throw new Error(`Invalid property access (${prop}) in ${item.name}`) | ||
}, | ||
@@ -92,3 +92,3 @@ }) | ||
throw new Error( | ||
`Depended on property not accessed: ${notAccessed.join(",")}`, | ||
`Depended on property (${notAccessed.join(",")}) not accessed in ${item.name}`, | ||
) | ||
@@ -95,0 +95,0 @@ } |
@@ -195,3 +195,3 @@ /* eslint max-nested-callbacks: 0 */ | ||
pdi.add("c", fn3) | ||
return rejects(() => pdi.start(), {message: "Invalid property access: d"}) | ||
return rejects(() => pdi.start(), {message: "Invalid property access (d) in a"}) | ||
}) | ||
@@ -210,3 +210,3 @@ | ||
return rejects(() => pdi.start(), { | ||
message: "Depended on property not accessed: c", | ||
message: "Depended on property (c) not accessed in a", | ||
}) | ||
@@ -226,3 +226,3 @@ }) | ||
return rejects(() => pdi.start(), { | ||
message: "Depended on property not accessed: c", | ||
message: "Depended on property (c) not accessed in a", | ||
}) | ||
@@ -229,0 +229,0 @@ }) |
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
16326