rake-db 2.3.18 → 2.3.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rake-db",
3
- "version": "2.3.18",
3
+ "version": "2.3.19",
4
4
  "description": "Migrations tool for Postgresql DB",
5
5
  "homepage": "https://orchid-orm.netlify.app/guide/migration-setup-and-overview.html",
6
6
  "repository": {
@@ -87,8 +87,8 @@ describe('migrateOrRollback', () => {
87
87
  expect(conf.beforeMigrate).toBeCalled();
88
88
  expect(conf.afterMigrate).toBeCalled();
89
89
 
90
- expect(importMock).toBeCalledWith(url.pathToFileURL('file2').toString());
91
- expect(importMock).toBeCalledWith(url.pathToFileURL('file3').toString());
90
+ expect(importMock).toBeCalledWith(url.pathToFileURL('file2').pathname);
91
+ expect(importMock).toBeCalledWith(url.pathToFileURL('file3').pathname);
92
92
 
93
93
  expect(transactionQueryMock).toBeCalledWith(
94
94
  `INSERT INTO "schemaMigrations" VALUES ('2')`,
@@ -196,7 +196,7 @@ describe('migrateOrRollback', () => {
196
196
  expect(getMigrationFiles).toBeCalledWith(conf, false);
197
197
 
198
198
  expect(importMock).toBeCalledTimes(1);
199
- expect(importMock).toBeCalledWith(url.pathToFileURL('file2').toString());
199
+ expect(importMock).toBeCalledWith(url.pathToFileURL('file2').pathname);
200
200
 
201
201
  expect(transactionQueryMock).toBeCalledTimes(1);
202
202
  expect(transactionQueryMock).toBeCalledWith(
@@ -124,7 +124,7 @@ const processMigration = async (
124
124
  if (callback) {
125
125
  change(callback);
126
126
  } else {
127
- await config.import(pathToFileURL(file.path).toString());
127
+ await config.import(pathToFileURL(file.path).pathname);
128
128
  changeCache[file.path] = getCurrentChangeCallback();
129
129
  }
130
130