ts-configurable
Advanced tools
Comparing version 2.0.1 to 2.1.0
# CHANGELOG | ||
## 2.1.0 | ||
- In case a property is an object create a new instance of that object instead of using a POJO (https://github.com/derbenoo/ts-configurable/issues/37) | ||
- | ||
## 2.0.1 | ||
@@ -4,0 +8,0 @@ - Fix a bug where non-ciphertext string values where set to null with setNullOnDecryptionFailure=true |
@@ -39,3 +39,3 @@ "use strict"; | ||
if (isObject(value)) { | ||
obj[key] = {}; | ||
obj[key] = new templateValue.constructor(); | ||
assignValuesByTemplate(obj[key], templateValue, value, options, decryption, `${parent}.${key}`); | ||
@@ -42,0 +42,0 @@ } |
{ | ||
"name": "ts-configurable", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Benjamin Assadsolimani (derbenoo)", |
@@ -22,3 +22,3 @@ # TS-Configurable | ||
Let's be real, configuration is not sexy. We all just want to set up our project's configuration as easily as possible and then move on to build whatever we _actually_ wanted to build. But what if I told you that you can meet all your configuration needs with a single line of code and then never have to worry about it again? | ||
Let's be real, configuration is no fun. We all just want to set up our project's configuration as easily as possible and then move on to build whatever we _actually_ wanted to build. But what if I told you that you can meet all your configuration needs with a single line of code and then never have to worry about it again? | ||
@@ -25,0 +25,0 @@ Simply create a class defining all configuration properties, tack on the `@Configurable()` decorator and off you go! Take advantage of type-safety, environment variable loading, command line argument parsing and much more right out-of-the-box. |
Sorry, the diff of this file is not supported yet
72474