@rsdk/db.typeorm 5.4.0-next.4 → 5.4.0-next.6
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/CHANGELOG.md +8 -0
- package/dist/typeorm.plugin.js +5 -2
- package/dist/typeorm.plugin.js.map +1 -1
- package/package.json +2 -2
- package/src/typeorm.plugin.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.4.0-next.6](https://github.com/R-Vision/rsdk/compare/v5.4.0-next.5...v5.4.0-next.6) (2024-11-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rsdk/db.typeorm
|
|
9
|
+
|
|
10
|
+
## [5.4.0-next.5](https://github.com/R-Vision/rsdk/compare/v5.4.0-next.4...v5.4.0-next.5) (2024-11-28)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @rsdk/db.typeorm
|
|
13
|
+
|
|
6
14
|
## [5.4.0-next.4](https://github.com/R-Vision/rsdk/compare/v5.4.0-next.3...v5.4.0-next.4) (2024-11-27)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @rsdk/db.typeorm
|
package/dist/typeorm.plugin.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
3
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
7
|
exports.TypeOrmPlugin = void 0;
|
|
5
8
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
6
9
|
const core_1 = require("@rsdk/core");
|
|
7
10
|
const logging_1 = require("@rsdk/logging");
|
|
8
|
-
const node_path_1 = require("node:path");
|
|
11
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
9
12
|
const exceptions_1 = require("./internal/exceptions");
|
|
10
13
|
const initializer_1 = require("./internal/initializer");
|
|
11
14
|
const migration_checker_module_1 = require("./modules/migration-checker.module");
|
|
@@ -82,7 +85,7 @@ class TypeOrmPlugin {
|
|
|
82
85
|
return [new typeorm_errors_transformer_1.TypeOrmErrorTransformer()];
|
|
83
86
|
}
|
|
84
87
|
getMigrationsOption() {
|
|
85
|
-
return [
|
|
88
|
+
return [node_path_1.default.resolve(process.cwd(), 'dist/typeorm/migrations/**.js')];
|
|
86
89
|
}
|
|
87
90
|
}
|
|
88
91
|
exports.TypeOrmPlugin = TypeOrmPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeorm.plugin.js","sourceRoot":"","sources":["../src/typeorm.plugin.ts"],"names":[],"mappings":";AAAA,iDAAiD
|
|
1
|
+
{"version":3,"file":"typeorm.plugin.js","sourceRoot":"","sources":["../src/typeorm.plugin.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;;;;AAIjD,6CAAgD;AAOhD,qCAAsC;AACtC,2CAA8C;AAC9C,0DAA6B;AAG7B,sDAAgE;AAChE,wDAAqD;AACrD,iFAA4E;AAC5E,6HAAqH;AACrH,2CAIqB;AACrB,6EAAuE;AAGvE,MAAa,aAAa;IAMK;IALrB,MAAM,CAAU,MAAM,GAAG,uBAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAErE;;OAEG;IACH,YAA6B,OAA6B;QAA7B,YAAO,GAAP,OAAO,CAAsB;QACxD,yBAAW,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC;IACjC,CAAC;IAED,aAAa;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO;QACL,MAAM,UAAU,GAAG,IAAI,CAAC,mBAAmB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EAAE,EAAE;oBACjD,IAAI,CAAC,OAAO,EAAE,CAAC;wBACb,MAAM,IAAI,oCAAuB,EAAE,CAAC;oBACtC,CAAC;oBACD,OAAO,wFAAwC,CAAC,MAAM,CACpD,OAAO,CACR,CAAC,UAAU,EAAE,CAAC;gBACjB,CAAC;aACF,CAAC;YACF,iDAAsB;SACvB,CAAC;IACJ,CAAC;IAED,iBAAiB;QACf,OAAO,CAAC,IAAI,oDAAuB,EAAE,CAAC,CAAC;IACzC,CAAC;IAEO,mBAAmB;QACzB,OAAO,CAAC,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,+BAA+B,CAAC,CAAC,CAAC;IACxE,CAAC;;AAlFH,sCAmFC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdk/db.typeorm",
|
|
3
|
-
"version": "5.4.0-next.
|
|
3
|
+
"version": "5.4.0-next.6",
|
|
4
4
|
"description": "TypeOrm module for platform",
|
|
5
5
|
"license": "Apache License 2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"rxjs": "^7.8.1",
|
|
29
29
|
"typeorm": "^0.3.12"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "acc1405be758b5ba4d2e8eda8d34b3c4f60a813f"
|
|
32
32
|
}
|
package/src/typeorm.plugin.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type {
|
|
|
11
11
|
} from '@rsdk/core';
|
|
12
12
|
import { APP_NAME } from '@rsdk/core';
|
|
13
13
|
import { LoggerFactory } from '@rsdk/logging';
|
|
14
|
-
import
|
|
14
|
+
import path from 'node:path';
|
|
15
15
|
import type { DataSourceOptions } from 'typeorm';
|
|
16
16
|
|
|
17
17
|
import { DatasourceOptionsNotSet } from './internal/exceptions';
|
|
@@ -107,6 +107,6 @@ export class TypeOrmPlugin implements PlatformAppPlugin {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
private getMigrationsOption(): string[] {
|
|
110
|
-
return [resolve(process.cwd(), 'dist/typeorm/migrations/**.js')];
|
|
110
|
+
return [path.resolve(process.cwd(), 'dist/typeorm/migrations/**.js')];
|
|
111
111
|
}
|
|
112
112
|
}
|