@beseif-solutions/prow-core 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -112,7 +112,9 @@ class Context {
112
112
  }
113
113
  const prop = lodash_1.default.get(i, map.value);
114
114
  if (typeof prop !== `undefined`) {
115
- if (shouldInfer(child, prop)) {
115
+ if (prop === null) {
116
+ }
117
+ else if (shouldInfer(child, prop)) {
116
118
  item[key] = prop;
117
119
  }
118
120
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beseif-solutions/prow-core",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Prow core functionalities and classes",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -125,7 +125,9 @@ class Context {
125
125
 
126
126
  const prop = _.get(i, map.value);
127
127
  if (typeof prop !== `undefined`) {
128
- if (shouldInfer(child, prop)) {
128
+ if (prop === null) {
129
+ // treat as empty value
130
+ } else if (shouldInfer(child, prop)) {
129
131
  item[key] = prop;
130
132
  } else {
131
133
  item[key] = _.toString(prop);