sqlmorpheus 0.1.6 → 0.1.7
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -1
- package/dist/index.mjs +0 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -124,4 +124,4 @@ declare function prepareAndRunMigration(db: DatabaseAccess, instructions: Databa
|
|
|
124
124
|
declare function runMigrationWithoutHistory(db: DatabaseAccess, instructions: DatabaseInstructions): Promise<void>;
|
|
125
125
|
declare function rollback(db: DatabaseAccess, instructions: DatabaseInstructions, toVersion: number): Promise<void>;
|
|
126
126
|
|
|
127
|
-
export { type DatabaseInstructions, DbTable, ForeignKey, prepareAndRunMigration, prepareMigration, rollback, runMigrationWithoutHistory, runPreparedMigrations };
|
|
127
|
+
export { type DatabaseAccess, type DatabaseInstructions, DbTable, ForeignKey, prepareAndRunMigration, prepareMigration, rollback, runMigrationWithoutHistory, runPreparedMigrations };
|
package/dist/index.d.ts
CHANGED
|
@@ -124,4 +124,4 @@ declare function prepareAndRunMigration(db: DatabaseAccess, instructions: Databa
|
|
|
124
124
|
declare function runMigrationWithoutHistory(db: DatabaseAccess, instructions: DatabaseInstructions): Promise<void>;
|
|
125
125
|
declare function rollback(db: DatabaseAccess, instructions: DatabaseInstructions, toVersion: number): Promise<void>;
|
|
126
126
|
|
|
127
|
-
export { type DatabaseInstructions, DbTable, ForeignKey, prepareAndRunMigration, prepareMigration, rollback, runMigrationWithoutHistory, runPreparedMigrations };
|
|
127
|
+
export { type DatabaseAccess, type DatabaseInstructions, DbTable, ForeignKey, prepareAndRunMigration, prepareMigration, rollback, runMigrationWithoutHistory, runPreparedMigrations };
|
package/dist/index.js
CHANGED
|
@@ -247,7 +247,6 @@ var FILENAME_DOWN_PREFIX = "down_to_";
|
|
|
247
247
|
var MigrationHistoryManager = class {
|
|
248
248
|
configPath;
|
|
249
249
|
migrationsPath;
|
|
250
|
-
lastVersion = 0;
|
|
251
250
|
constructor(configPath) {
|
|
252
251
|
this.configPath = configPath;
|
|
253
252
|
this.migrationsPath = `${configPath}/migrations`;
|
package/dist/index.mjs
CHANGED
|
@@ -215,7 +215,6 @@ var FILENAME_DOWN_PREFIX = "down_to_";
|
|
|
215
215
|
var MigrationHistoryManager = class {
|
|
216
216
|
configPath;
|
|
217
217
|
migrationsPath;
|
|
218
|
-
lastVersion = 0;
|
|
219
218
|
constructor(configPath) {
|
|
220
219
|
this.configPath = configPath;
|
|
221
220
|
this.migrationsPath = `${configPath}/migrations`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sqlmorpheus",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"author": "JodliDev",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dev": "tsup --watch",
|
|
24
24
|
"test": "vitest run",
|
|
25
25
|
"test:watch": "vitest",
|
|
26
|
-
"run_publish": "npm publish"
|
|
26
|
+
"run_publish": "npm run build && npm publish"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/better-sqlite3": "^7.6.13",
|