cdk-real-drift 0.2.31 → 0.2.32

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/cli.js CHANGED
@@ -3280,7 +3280,10 @@ function stripCcApiAwsManagedFields(awsProps) {
3280
3280
  }
3281
3281
  function stripWalk(value, freeForm) {
3282
3282
  if (value === null || value === void 0) return value;
3283
- if (Array.isArray(value)) return value.map((v) => stripWalk(v, freeForm));
3283
+ if (Array.isArray(value)) {
3284
+ const mapped = value.map((v) => stripWalk(v, freeForm));
3285
+ return freeForm ? mapped : mapped.filter((v) => v !== null && v !== void 0);
3286
+ }
3284
3287
  if (typeof value === "object") {
3285
3288
  const out = {};
3286
3289
  for (const [k, child] of Object.entries(value)) {