@inf-monkeys-tech/monkeys 1.1.16 → 1.1.17

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.
@@ -24710,6 +24710,7 @@ var acceptsPreviousSchema = (previous, next) => {
24710
24710
  required: oldRequired,
24711
24711
  additionalProperties: oldAdditional,
24712
24712
  enum: oldEnum,
24713
+ items: oldItems,
24713
24714
  ...oldFixed
24714
24715
  } = before;
24715
24716
  const {
@@ -24717,9 +24718,11 @@ var acceptsPreviousSchema = (previous, next) => {
24717
24718
  required: newRequired,
24718
24719
  additionalProperties: newAdditional,
24719
24720
  enum: newEnum,
24721
+ items: newItems,
24720
24722
  ...newFixed
24721
24723
  } = after;
24722
24724
  if (canonicalContentHash(oldFixed) !== canonicalContentHash(newFixed)) return false;
24725
+ if (!acceptsPreviousSchema(oldItems ?? true, newItems ?? true)) return false;
24723
24726
  if (newEnum && (!oldEnum || oldEnum.some((value) => !newEnum.some((candidate) => canonicalContentHash(candidate) === canonicalContentHash(value))))) return false;
24724
24727
  if ((newRequired ?? []).some((key) => !(oldRequired ?? []).includes(key))) return false;
24725
24728
  const oldExtra = oldAdditional ?? true;