knifecycle
Advanced tools
Comparing version 11.0.0 to 11.0.1
@@ -0,1 +1,10 @@ | ||
## [11.0.1](https://github.com/nfroidure/knifecycle/compare/v11.0.0...v11.0.1) (2020-12-06) | ||
### Bug Fixes | ||
* **build:** fix build issues with constants ([2d4d597](https://github.com/nfroidure/knifecycle/commit/2d4d597a54527f42d3e9bf9ad0a51d5018a9510b)) | ||
# [11.0.0](https://github.com/nfroidure/knifecycle/compare/v10.0.3...v11.0.0) (2020-11-22) | ||
@@ -2,0 +11,0 @@ |
@@ -359,3 +359,3 @@ "use strict"; | ||
const properties = (0, _util.unwrapInitializerProperties)(initializer); // Temporary cast constants into providers | ||
(0, _util.unwrapInitializerProperties)(initializer); // Temporary cast constants into providers | ||
// Best would be to threat each differently | ||
@@ -373,3 +373,7 @@ // at dependencies initialization level to boost performances | ||
service: value | ||
}), initializer[_util.SPECIAL_PROPS.NAME], [], true); | ||
}), initializer[_util.SPECIAL_PROPS.NAME], [], true); // Needed for the build utils to still recognize | ||
// this initializer as a constant value | ||
initializer[_util.SPECIAL_PROPS.VALUE] = value; | ||
initializer[_util.SPECIAL_PROPS.TYPE] = 'constant'; | ||
} else if ('undefined' !== typeof initializer[_util.SPECIAL_PROPS.VALUE]) { | ||
@@ -376,0 +380,0 @@ throw new _yerror.default(E_BAD_VALUED_NON_CONSTANT_INITIALIZER, initializer[_util.SPECIAL_PROPS.NAME]); |
{ | ||
"name": "knifecycle", | ||
"version": "11.0.0", | ||
"version": "11.0.1", | ||
"description": "Manage your NodeJS processes's lifecycle automatically with an unobtrusive dependency injection implementation.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
@@ -296,3 +296,3 @@ /* eslint max-len: ["warn", { "ignoreComments": true }] @typescript-eslint/no-this-alias: "warn" */ | ||
const properties = unwrapInitializerProperties(initializer); | ||
unwrapInitializerProperties(initializer); | ||
@@ -320,2 +320,7 @@ // Temporary cast constants into providers | ||
); | ||
// Needed for the build utils to still recognize | ||
// this initializer as a constant value | ||
initializer[SPECIAL_PROPS.VALUE] = value; | ||
initializer[SPECIAL_PROPS.TYPE] = 'constant'; | ||
} else if ('undefined' !== typeof initializer[SPECIAL_PROPS.VALUE]) { | ||
@@ -322,0 +327,0 @@ throw new YError( |
Sorry, the diff of this file is not supported yet
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
1178021
12958