velocious 1.0.86 → 1.0.87
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
package/src/database/migrator.js
CHANGED
|
@@ -301,7 +301,7 @@ export default class VelociousDatabaseMigrator {
|
|
|
301
301
|
const migrationClass = await requireMigration()
|
|
302
302
|
|
|
303
303
|
if (!migrationClass || typeof migrationClass !== "function") {
|
|
304
|
-
throw new Error(`Migration ${migration.file} must export a default migration class`)
|
|
304
|
+
throw new Error(`Migration ${migration.file} must export a default migration class. Type: ${typeof migrationClass}`)
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
const migrationDatabaseIdentifiers = migrationClass.getDatabaseIdentifiers() || ["default"]
|
|
@@ -900,10 +900,10 @@ class VelociousDatabaseRecord {
|
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
/**
|
|
903
|
-
* @returns {
|
|
903
|
+
* @returns {Query}
|
|
904
904
|
*/
|
|
905
|
-
static
|
|
906
|
-
return
|
|
905
|
+
static all() {
|
|
906
|
+
return this._newQuery()
|
|
907
907
|
}
|
|
908
908
|
|
|
909
909
|
/**
|
|
@@ -150,7 +150,7 @@ export default class VelociousEnvironmentsHandlerBrowser extends Base {
|
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* @param {string} filePath
|
|
153
|
-
* @template T extends import
|
|
153
|
+
* @template T extends import("../migration/index.js").default
|
|
154
154
|
* @returns {Promise<T>}
|
|
155
155
|
*/
|
|
156
156
|
requireMigration = async (filePath) => {
|