@adeu/core 1.12.1 → 1.14.0

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/index.js CHANGED
@@ -3567,6 +3567,22 @@ var RedlineEngine = class {
3567
3567
  return errors;
3568
3568
  }
3569
3569
  process_batch(changes, dry_run = false) {
3570
+ if (Array.isArray(changes)) {
3571
+ changes = changes.map((item) => {
3572
+ if (typeof item === "string") {
3573
+ try {
3574
+ const parsed = JSON.parse(item);
3575
+ if (parsed !== null && typeof parsed === "object") {
3576
+ return parsed;
3577
+ }
3578
+ return item;
3579
+ } catch {
3580
+ return item;
3581
+ }
3582
+ }
3583
+ return item;
3584
+ });
3585
+ }
3570
3586
  if (dry_run) {
3571
3587
  const baselines = /* @__PURE__ */ new Map();
3572
3588
  for (const part of this.doc.pkg.parts) {