@oliasoft-open-source/node-json-migrator 3.1.0-beta-3 → 3.1.0-beta-4

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.cjs CHANGED
@@ -9679,6 +9679,7 @@ const migrateRecord = async ({
9679
9679
  const { data, etag, version: currentVersion } = currentRecord;
9680
9680
  await beforeMigrateRecord({
9681
9681
  currentRecord,
9682
+ transaction,
9682
9683
  dry
9683
9684
  });
9684
9685
  const { nextPayload: nextData, nextVersion } = await migrate({
package/dist/index.d.cts CHANGED
@@ -45,6 +45,7 @@ type TConfig = {
45
45
  };
46
46
  type TBeforeMigrateRecordPayload = {
47
47
  currentRecord: TRecord;
48
+ transaction?: ITask<unknown>;
48
49
  dry: boolean;
49
50
  };
50
51
  type TBeforeMigrateRecord = (params: TBeforeMigrateRecordPayload) => Promise<void>;
package/dist/index.d.mts CHANGED
@@ -45,6 +45,7 @@ type TConfig = {
45
45
  };
46
46
  type TBeforeMigrateRecordPayload = {
47
47
  currentRecord: TRecord;
48
+ transaction?: ITask<unknown>;
48
49
  dry: boolean;
49
50
  };
50
51
  type TBeforeMigrateRecord = (params: TBeforeMigrateRecordPayload) => Promise<void>;
package/dist/index.mjs CHANGED
@@ -9658,6 +9658,7 @@ const migrateRecord = async ({
9658
9658
  const { data, etag, version: currentVersion } = currentRecord;
9659
9659
  await beforeMigrateRecord({
9660
9660
  currentRecord,
9661
+ transaction,
9661
9662
  dry
9662
9663
  });
9663
9664
  const { nextPayload: nextData, nextVersion } = await migrate({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/node-json-migrator",
3
- "version": "3.1.0-beta-3",
3
+ "version": "3.1.0-beta-4",
4
4
  "description": "A library for JSON migrations",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/node-postgresql-migrator",
6
6
  "bugs": {