@trademe/ensure
Advanced tools
Comparing version 0.1.0-beta.2 to 0.1.0-beta.3
@@ -8,3 +8,2 @@ "use strict"; | ||
return function (injectable) { | ||
checkInjectable(injectable); | ||
var singleton = createSingleton(injectable); | ||
@@ -31,3 +30,5 @@ setPrototype(injectable, singleton); | ||
if (!instantiated) { | ||
checkInjectable(injectable); | ||
instantiated = true; | ||
this._reset = function () { return instantiated = false; }; | ||
return injectable.apply(this, arguments); | ||
@@ -34,0 +35,0 @@ } |
{ | ||
"name": "@trademe/ensure", | ||
"version": "0.1.0-beta.2", | ||
"version": "0.1.0-beta.3", | ||
"description": "Utility decorators for Angular applications", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"prepublish": "npm run build", | ||
"build": "npm run clean && npm run compile", | ||
"build": "npm run clean && npm run compile && npm run cover", | ||
"clean": "rimraf ./compiled && rimraf ./dist", | ||
@@ -12,0 +12,0 @@ "compile": "ngc -p ./tsconfig.json && tsc -p ./tsconfig.json", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
57984
187
0