@beseif-solutions/prow-core 1.0.5 → 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.
|
@@ -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
|
}
|
|
@@ -109,7 +112,9 @@ class Context {
|
|
|
109
112
|
}
|
|
110
113
|
const prop = lodash_1.default.get(i, map.value);
|
|
111
114
|
if (typeof prop !== `undefined`) {
|
|
112
|
-
if (
|
|
115
|
+
if (prop === null) {
|
|
116
|
+
}
|
|
117
|
+
else if (shouldInfer(child, prop)) {
|
|
113
118
|
item[key] = prop;
|
|
114
119
|
}
|
|
115
120
|
else {
|
package/package.json
CHANGED
|
@@ -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 {
|
|
@@ -120,7 +125,9 @@ class Context {
|
|
|
120
125
|
|
|
121
126
|
const prop = _.get(i, map.value);
|
|
122
127
|
if (typeof prop !== `undefined`) {
|
|
123
|
-
if (
|
|
128
|
+
if (prop === null) {
|
|
129
|
+
// treat as empty value
|
|
130
|
+
} else if (shouldInfer(child, prop)) {
|
|
124
131
|
item[key] = prop;
|
|
125
132
|
} else {
|
|
126
133
|
item[key] = _.toString(prop);
|