@beseif-solutions/prow-core 1.0.5 → 1.0.6

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.
@@ -63,6 +63,9 @@ class Context {
63
63
  const path = (0, exports.getPath)(unresolved);
64
64
  if (lodash_1.default.has(clonedData, path)) {
65
65
  const get = lodash_1.default.get(clonedData, path);
66
+ if (get === null) {
67
+ return undefined;
68
+ }
66
69
  if (shouldInfer(field, get)) {
67
70
  resolved = get;
68
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beseif-solutions/prow-core",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Prow core functionalities and classes",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -77,6 +77,11 @@ class Context {
77
77
  const path = getPath(unresolved);
78
78
  if (_.has(clonedData, path)) {
79
79
  const get = _.get(clonedData, path);
80
+ if (get === null) {
81
+ // treat as empty value
82
+ return undefined;
83
+ }
84
+
80
85
  if (shouldInfer(field, get)) {
81
86
  resolved = get;
82
87
  } else {