codify-plugin-lib 1.0.182-beta67q → 1.0.182-beta69
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.
- package/dist/plan/plan.js +2 -1
- package/package.json +1 -1
- package/src/plan/plan.ts +3 -1
package/dist/plan/plan.js
CHANGED
|
@@ -199,13 +199,14 @@ export class Plan {
|
|
|
199
199
|
// requires additional filtering for stateful parameter arrays and objects.
|
|
200
200
|
// We also want to filter parameters when in delete mode. We don't want to delete parameters that
|
|
201
201
|
// are not specified in the original config.
|
|
202
|
-
if (isStateful && desired
|
|
202
|
+
if (isStateful && desired) {
|
|
203
203
|
return filteredCurrent;
|
|
204
204
|
}
|
|
205
205
|
// TODO: Add object handling here in addition to arrays in the future
|
|
206
206
|
const arrayStatefulParameters = Object.fromEntries(Object.entries(filteredCurrent)
|
|
207
207
|
.filter(([k, v]) => isArrayParameterWithFiltering(k, v))
|
|
208
208
|
.map(([k, v]) => [k, filterArrayStatefulParameter(k, v)]));
|
|
209
|
+
console.log('Result', { ...filteredCurrent, ...arrayStatefulParameters });
|
|
209
210
|
return { ...filteredCurrent, ...arrayStatefulParameters };
|
|
210
211
|
function filterCurrent() {
|
|
211
212
|
if (!current) {
|
package/package.json
CHANGED
package/src/plan/plan.ts
CHANGED
|
@@ -328,7 +328,7 @@ export class Plan<T extends StringIndexedObject> {
|
|
|
328
328
|
// requires additional filtering for stateful parameter arrays and objects.
|
|
329
329
|
// We also want to filter parameters when in delete mode. We don't want to delete parameters that
|
|
330
330
|
// are not specified in the original config.
|
|
331
|
-
if (isStateful && desired
|
|
331
|
+
if (isStateful && desired) {
|
|
332
332
|
return filteredCurrent;
|
|
333
333
|
}
|
|
334
334
|
|
|
@@ -339,6 +339,8 @@ export class Plan<T extends StringIndexedObject> {
|
|
|
339
339
|
.map(([k, v]) => [k, filterArrayStatefulParameter(k, v)])
|
|
340
340
|
)
|
|
341
341
|
|
|
342
|
+
console.log('Result', { ...filteredCurrent, ...arrayStatefulParameters });
|
|
343
|
+
|
|
342
344
|
return { ...filteredCurrent, ...arrayStatefulParameters }
|
|
343
345
|
|
|
344
346
|
function filterCurrent(): Partial<T> | null {
|