cdk-real-drift 0.12.68 → 0.12.69

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
@@ -5852,7 +5852,7 @@ function cloneDeepWithSymbols(v) {
5852
5852
  }
5853
5853
  const isPolicyStatementArray = (arr) => arr.length > 0 && arr.every((el) => isNestedObject(el) && "Effect" in el);
5854
5854
  const isInlinePolicyArray = (arr) => arr.length > 0 && arr.every((el) => isNestedObject(el) && "PolicyDocument" in el);
5855
- const isKeyValueTagList = (arr) => arr.length > 0 && identityField(arr) === "Key" && arr.every((el) => isNestedObject(el) && "Value" in el);
5855
+ const isIdentitySortedObjectArray = (arr) => arr.length > 0 && identityField(arr) !== void 0;
5856
5856
  function isPolicySubsetOf(sub, sup) {
5857
5857
  for (const [k, v] of Object.entries(sub)) {
5858
5858
  if (!(k in sup)) return false;
@@ -6884,14 +6884,14 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
6884
6884
  const transformExpr = schema.propertyTransforms?.[d.path] ?? schema.propertyTransforms?.[d.path.replace(/\.\d+(?=\.|$)/g, ".*")];
6885
6885
  if (transformExpr !== void 0 && matchesPropertyTransform(transformExpr, d.stateValue, resolveParentObject(declared, d.path), declared, d.awsValue, d.path.split(".").at(-1) ?? d.path)) continue;
6886
6886
  if (schema.propertyTransforms !== void 0 && transformExpr === void 0 && matchesAncestorPropertyTransform(schema.propertyTransforms, d.path, declared, live)) continue;
6887
- const tagListWhole = !unorderedObjArray && Array.isArray(v) && isKeyValueTagList(v) && d.path.startsWith(`${k}.`);
6887
+ const identitySortedWhole = !unorderedObjArray && Array.isArray(v) && isIdentitySortedObjectArray(v) && d.path.startsWith(`${k}.`);
6888
6888
  const unorderedExtra = unorderedObjArray && Array.isArray(declaredVal) && declaredRemapSource ? {
6889
6889
  path: remapSortedIndexToDeclared(d.path, k, declaredVal, declaredRemapSource),
6890
6890
  wholeArrayRevert: {
6891
6891
  path: k,
6892
6892
  value: v
6893
6893
  }
6894
- } : tagListWhole ? { wholeArrayRevert: {
6894
+ } : identitySortedWhole ? { wholeArrayRevert: {
6895
6895
  path: k,
6896
6896
  value: v
6897
6897
  } } : {};