@loomcore/api 0.2.52 → 0.2.54
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.
|
@@ -150,11 +150,11 @@ export class MigrationRunner {
|
|
|
150
150
|
name: f,
|
|
151
151
|
up: async () => {
|
|
152
152
|
const mod = await import(importUrl);
|
|
153
|
-
await mod.up({ context });
|
|
153
|
+
await mod.up({ context, env: this.dbMigrationConfig.env });
|
|
154
154
|
},
|
|
155
155
|
down: async () => {
|
|
156
156
|
const mod = await import(importUrl);
|
|
157
|
-
await mod.down({ context });
|
|
157
|
+
await mod.down({ context, env: this.dbMigrationConfig.env });
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
}
|
|
@@ -280,11 +280,11 @@ export class MigrationRunner {
|
|
|
280
280
|
// Migration: ${safeName}
|
|
281
281
|
// Created: ${new Date().toISOString()}
|
|
282
282
|
|
|
283
|
-
export const up = async ({ context: db }: { context: Db }) => {
|
|
283
|
+
export const up = async ({ context: db, env }: { context: Db; env: string }) => {
|
|
284
284
|
// await db.collection('...')....
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
-
export const down = async ({ context: db }: { context: Db }) => {
|
|
287
|
+
export const down = async ({ context: db, env }: { context: Db; env: string }) => {
|
|
288
288
|
// await db.collection('...')....
|
|
289
289
|
};
|
|
290
290
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loomcore/api",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.54",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Loom Core Api - An opinionated Node.js api using Typescript, Express, and MongoDb or PostgreSQL",
|
|
6
6
|
"scripts": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"reflect-metadata": "^0.2.2"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@loomcore/common": "^0.0.
|
|
63
|
+
"@loomcore/common": "^0.0.89",
|
|
64
64
|
"@sinclair/typebox": "0.34.33",
|
|
65
65
|
"cookie-parser": "^1.4.6",
|
|
66
66
|
"cors": "^2.8.5",
|