@rljson/db 0.0.19 → 0.0.21

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/db.d.ts CHANGED
@@ -112,6 +112,7 @@ export declare class Db {
112
112
  insertTrees(treeKey: string, trees: Tree[], options?: {
113
113
  skipNotification?: boolean;
114
114
  skipHistory?: boolean;
115
+ previous?: InsertHistoryTimeId[];
115
116
  }): Promise<InsertHistoryRow<any>[]>;
116
117
  /**
117
118
  * Recursively runs controllers based on the route of the Insert
package/dist/db.js CHANGED
@@ -3843,6 +3843,9 @@ class Db {
3843
3843
  ...rootResult,
3844
3844
  route: route.flat
3845
3845
  };
3846
+ if (options?.previous) {
3847
+ result.previous = options.previous;
3848
+ }
3846
3849
  if (!options?.skipHistory) {
3847
3850
  await this._writeInsertHistory(treeKey, result);
3848
3851
  }