Comparing version 1.0.2 to 1.0.3
@@ -14,3 +14,2 @@ import BaseDefinition from "../definitions/BaseDefinition"; | ||
resolve: <T>(diContainer: IDIContainer) => T; | ||
private isConstructor; | ||
} |
@@ -52,3 +52,3 @@ "use strict"; | ||
}; | ||
if (!_this.isConstructor(constructorFunction)) { | ||
if (typeof constructorFunction !== "function") { | ||
throw new InvalidConstructorError_1.default(); | ||
@@ -78,5 +78,2 @@ } | ||
}; | ||
ObjectDefinition.prototype.isConstructor = function (constructorFunction) { | ||
return constructorFunction && !!constructorFunction.prototype && !!constructorFunction.prototype.constructor.name; | ||
}; | ||
return ObjectDefinition; | ||
@@ -83,0 +80,0 @@ }(BaseDefinition_1.default)); |
{ | ||
"name": "rsdi", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "dependency injection container", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
28715
412