@sqb/migrator 4.5.6 → 4.6.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.
@@ -191,11 +191,10 @@ insert into ${schema}.${infTable} (status) values ('init');
191
191
  }
192
192
  exports.DbMigrator = DbMigrator;
193
193
  async function locateMigrations(trg, dir) {
194
- var _a;
195
194
  for (const f of ['migration.ts', 'migration.js', 'migration.json']) {
196
195
  const filename = node_path_1.default.join(dir, f);
197
196
  if (node_fs_1.default.existsSync(filename)) {
198
- const x = await (_a = filename, Promise.resolve().then(() => tslib_1.__importStar(require(_a))));
197
+ const x = await Promise.resolve(`${filename}`).then(s => tslib_1.__importStar(require(s)));
199
198
  const fileDir = node_path_1.default.dirname(filename);
200
199
  const obj = x.default || x;
201
200
  if (obj.version && obj.tasks) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sqb/migrator",
3
3
  "description": "Database migrator for SQB",
4
- "version": "4.5.6",
4
+ "version": "4.6.0",
5
5
  "author": "Panates",
6
6
  "contributors": [
7
7
  "Eray Hanoglu <e.hanoglu@panates.com>",
@@ -29,8 +29,8 @@
29
29
  "clean:cover": "rimraf ../../coverage/migrator"
30
30
  },
31
31
  "peerDependencies": {
32
- "@sqb/builder": "^4.5.6",
33
- "@sqb/connect": "^4.5.6"
32
+ "@sqb/builder": "^4.6.0",
33
+ "@sqb/connect": "^4.6.0"
34
34
  },
35
35
  "type": "module",
36
36
  "types": "esm/index.d.ts",