codify-plugin-lib 1.0.182-beta69 → 1.0.182-beta70

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 CHANGED
@@ -187,6 +187,7 @@ export class Plan {
187
187
  * or wants to set. If a parameter is not specified then it's not managed by Codify.
188
188
  */
189
189
  static filterCurrentParams(params) {
190
+ console.log('Filter current params', params.desired, params.current, params.state, params.settings, params.isStateful);
190
191
  const { desired, current, state, settings, isStateful } = params;
191
192
  if (!current) {
192
193
  return null;
@@ -195,6 +196,7 @@ export class Plan {
195
196
  if (!filteredCurrent) {
196
197
  return null;
197
198
  }
199
+ console.log('Before exit', isStateful, desired);
198
200
  // For stateful mode, we're done after filtering by the keys of desired + state. Stateless mode
199
201
  // requires additional filtering for stateful parameter arrays and objects.
200
202
  // We also want to filter parameters when in delete mode. We don't want to delete parameters that
@@ -202,6 +204,7 @@ export class Plan {
202
204
  if (isStateful && desired) {
203
205
  return filteredCurrent;
204
206
  }
207
+ console.log('Post exit', isStateful, desired);
205
208
  // TODO: Add object handling here in addition to arrays in the future
206
209
  const arrayStatefulParameters = Object.fromEntries(Object.entries(filteredCurrent)
207
210
  .filter(([k, v]) => isArrayParameterWithFiltering(k, v))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.182-beta69",
3
+ "version": "1.0.182-beta70",
4
4
  "description": "Library plugin library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
package/src/plan/plan.ts CHANGED
@@ -307,6 +307,8 @@ export class Plan<T extends StringIndexedObject> {
307
307
  settings: ResourceSettings<T>,
308
308
  isStateful: boolean,
309
309
  }): Partial<T> | null {
310
+ console.log('Filter current params', params.desired, params.current, params.state, params.settings, params.isStateful)
311
+
310
312
  const {
311
313
  desired,
312
314
  current,
@@ -324,6 +326,8 @@ export class Plan<T extends StringIndexedObject> {
324
326
  return null
325
327
  }
326
328
 
329
+ console.log('Before exit', isStateful, desired);
330
+
327
331
  // For stateful mode, we're done after filtering by the keys of desired + state. Stateless mode
328
332
  // requires additional filtering for stateful parameter arrays and objects.
329
333
  // We also want to filter parameters when in delete mode. We don't want to delete parameters that
@@ -332,6 +336,8 @@ export class Plan<T extends StringIndexedObject> {
332
336
  return filteredCurrent;
333
337
  }
334
338
 
339
+ console.log('Post exit', isStateful, desired);
340
+
335
341
  // TODO: Add object handling here in addition to arrays in the future
336
342
  const arrayStatefulParameters = Object.fromEntries(
337
343
  Object.entries(filteredCurrent)