@withgateway/sdk 0.2.1 → 0.2.2

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.
@@ -2647,14 +2647,19 @@ async function importLocalWorldData(dir, rows, opts, creds) {
2647
2647
  files: readWorldFiles(dir),
2648
2648
  rows,
2649
2649
  mode: opts.mode ?? "append",
2650
+ ...opts.merge && opts.merge !== "upsert" ? { merge: opts.merge } : {},
2650
2651
  ...opts.redact && opts.redact !== "off" ? { redact: opts.redact } : {}
2651
2652
  });
2652
2653
  if (res.files?.length) writeWorldFiles(dir, res.files);
2653
- if (res.changed) dropBuildOutputs(dir);
2654
+ const dropped = res.changed ? dropBuildOutputs(dir) : [];
2654
2655
  return {
2655
2656
  kind: res.kind ?? "unknown",
2656
2657
  entity_counts: res.entity_counts ?? {},
2657
- changed: Boolean(res.changed)
2658
+ changed: Boolean(res.changed),
2659
+ ...dropped.length ? {
2660
+ dropped_build_outputs: dropped,
2661
+ next: `gateway worlds schema compile ${dir} # rebuilds the snapshots from the imported data`
2662
+ } : {}
2658
2663
  };
2659
2664
  }
2660
2665
  function dropBuildOutputs(dir) {