@biorate/sequelize 1.156.0 → 1.157.0
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/.reporters.json +6 -0
- package/CHANGELOG.md +256 -0
- package/dist/src/index.js +4 -5
- package/dist/src/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/.nyc_output/24b1c4a3-68fd-48b8-8ff5-a706dce37592.json +0 -1
- package/.nyc_output/688daa0f-174c-4b29-99ef-27574ade9546.json +0 -1
- package/.nyc_output/processinfo/24b1c4a3-68fd-48b8-8ff5-a706dce37592.json +0 -1
- package/.nyc_output/processinfo/688daa0f-174c-4b29-99ef-27574ade9546.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/errors.ts.html +0 -118
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -131
- package/coverage/lcov-report/index.ts.html +0 -118
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov.info +0 -77
package/.reporters.json
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,262 @@
|
|
|
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
|
+
# 1.157.0 (2026-02-10)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- .npmrc ([51785c1](https://github.com/biorate/core/commit/51785c175101225ae3cef838967b401417e68126))
|
|
11
|
+
- root .mocharc .nycrc.json ([236c00d](https://github.com/biorate/core/commit/236c00d3b1db3c4417ab3c07206b812cbcb10000))
|
|
12
|
+
- root .mocharc .nycrc.json ([6e906e9](https://github.com/biorate/core/commit/6e906e962d10360051c97a11df8516784895c3d8))
|
|
13
|
+
- tests ([51a593f](https://github.com/biorate/core/commit/51a593f301b185e24a39513d503fcb0608e477f8))
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
- **config:** @{} = ${} template added ([744286f](https://github.com/biorate/core/commit/744286f5728828eb4b230d07c7c9872f442da6be))
|
|
18
|
+
- **config:** @{} = ${} template added ([904fe69](https://github.com/biorate/core/commit/904fe698a4e605e9bf381abcbbab5e4d189c5c8b))
|
|
19
|
+
- update "main" value in package.json ([89de1e3](https://github.com/biorate/core/commit/89de1e3203bcd5123587d046c9277a304bbe4008))
|
|
20
|
+
|
|
21
|
+
## 1.156.2 (2025-09-18)
|
|
22
|
+
|
|
23
|
+
# 1.156.0 (2025-09-18)
|
|
24
|
+
|
|
25
|
+
# 1.120.0 (2025-04-29)
|
|
26
|
+
|
|
27
|
+
## 1.105.2 (2025-03-05)
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
- **sequelize:** peerDependencies ([c179505](https://github.com/biorate/core/commit/c179505a80e3f5891143c5e9b8dfd0a6efa612e6))
|
|
32
|
+
|
|
33
|
+
# 1.104.0 (2025-02-28)
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
|
|
37
|
+
- migration to pnpm ([18c83a3](https://github.com/biorate/core/commit/18c83a30319fdfe0d9d2c5ebd94f5fba499e06cd))
|
|
38
|
+
|
|
39
|
+
## 1.102.1 (2025-02-28)
|
|
40
|
+
|
|
41
|
+
# 1.102.0 (2025-02-28)
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
- migration to pnpm ([462d120](https://github.com/biorate/core/commit/462d12068108fc6977906f4e379da6917aca42c3))
|
|
46
|
+
|
|
47
|
+
# 1.100.0 (2025-02-26)
|
|
48
|
+
|
|
49
|
+
# 1.96.0 (2024-12-26)
|
|
50
|
+
|
|
51
|
+
## 1.95.1 (2024-12-26)
|
|
52
|
+
|
|
53
|
+
# 1.95.0 (2024-12-26)
|
|
54
|
+
|
|
55
|
+
## 1.93.1 (2024-12-19)
|
|
56
|
+
|
|
57
|
+
# 1.93.0 (2024-12-19)
|
|
58
|
+
|
|
59
|
+
## 1.91.5 (2024-12-06)
|
|
60
|
+
|
|
61
|
+
## 1.91.4 (2024-12-06)
|
|
62
|
+
|
|
63
|
+
## 1.91.3 (2024-12-06)
|
|
64
|
+
|
|
65
|
+
## 1.91.2 (2024-12-06)
|
|
66
|
+
|
|
67
|
+
## 1.91.1 (2024-12-06)
|
|
68
|
+
|
|
69
|
+
# 1.91.0 (2024-12-05)
|
|
70
|
+
|
|
71
|
+
# 1.90.0 (2024-12-05)
|
|
72
|
+
|
|
73
|
+
## 1.87.4 (2024-09-30)
|
|
74
|
+
|
|
75
|
+
### Bug Fixes
|
|
76
|
+
|
|
77
|
+
- **sequelize:** deps ([f741a7d](https://github.com/biorate/core/commit/f741a7dc0f573aeed8b306d5420bb67d41c38e83))
|
|
78
|
+
|
|
79
|
+
# 1.79.0 (2024-07-12)
|
|
80
|
+
|
|
81
|
+
### Features
|
|
82
|
+
|
|
83
|
+
- **sequelize:** dependency up ([4407c19](https://github.com/biorate/core/commit/4407c19d13789d8fb79592f48b65080489841acd))
|
|
84
|
+
|
|
85
|
+
## 1.76.3 (2024-07-11)
|
|
86
|
+
|
|
87
|
+
## 1.74.1 (2024-05-31)
|
|
88
|
+
|
|
89
|
+
### Bug Fixes
|
|
90
|
+
|
|
91
|
+
- **sequelize:** Op exports ([2766e70](https://github.com/biorate/core/commit/2766e70203e43b59235b9e424f5cc143e5293615))
|
|
92
|
+
|
|
93
|
+
## 1.65.7 (2024-03-27)
|
|
94
|
+
|
|
95
|
+
### Bug Fixes
|
|
96
|
+
|
|
97
|
+
- **sequelize:** export sequalize ([cb6210c](https://github.com/biorate/core/commit/cb6210cdc1cb753d40e354ec7328a3656666d81a))
|
|
98
|
+
|
|
99
|
+
## 1.65.6 (2024-03-27)
|
|
100
|
+
|
|
101
|
+
### Bug Fixes
|
|
102
|
+
|
|
103
|
+
- **sequelize:** export \* as sequelize ([cdb715d](https://github.com/biorate/core/commit/cdb715d2c6dd23902a909c6baf3f6c9ac996f9f1))
|
|
104
|
+
|
|
105
|
+
## 1.65.5 (2024-03-27)
|
|
106
|
+
|
|
107
|
+
### Bug Fixes
|
|
108
|
+
|
|
109
|
+
- **sequelize:** export Transaction ([2eda168](https://github.com/biorate/core/commit/2eda1682bc8d03457ffdca0d1499e1c223c4c854))
|
|
110
|
+
|
|
111
|
+
## 1.65.4 (2024-03-26)
|
|
112
|
+
|
|
113
|
+
# 1.64.0 (2024-03-20)
|
|
114
|
+
|
|
115
|
+
### Features
|
|
116
|
+
|
|
117
|
+
- **proxy:** module added ([cdbc025](https://github.com/biorate/core/commit/cdbc02526ce6a0f982d2bd49d435d59189c3a60b))
|
|
118
|
+
|
|
119
|
+
# 1.54.0 (2024-01-11)
|
|
120
|
+
|
|
121
|
+
## 1.42.2 (2023-09-07)
|
|
122
|
+
|
|
123
|
+
## 1.42.1 (2023-09-04)
|
|
124
|
+
|
|
125
|
+
## 1.38.4 (2023-08-11)
|
|
126
|
+
|
|
127
|
+
## 1.38.3 (2023-08-10)
|
|
128
|
+
|
|
129
|
+
## 1.38.2 (2023-08-10)
|
|
130
|
+
|
|
131
|
+
## 1.38.1 (2023-08-10)
|
|
132
|
+
|
|
133
|
+
## 1.30.12 (2023-07-18)
|
|
134
|
+
|
|
135
|
+
# 1.29.0 (2023-05-05)
|
|
136
|
+
|
|
137
|
+
### Bug Fixes
|
|
138
|
+
|
|
139
|
+
- **shutdown-hook:** allSettled startegy ([acc63c9](https://github.com/biorate/core/commit/acc63c9758ea8af95ded947184379b741837d1de))
|
|
140
|
+
|
|
141
|
+
## 1.28.2 (2023-05-05)
|
|
142
|
+
|
|
143
|
+
## 1.28.1 (2023-05-05)
|
|
144
|
+
|
|
145
|
+
# 1.28.0 (2023-05-04)
|
|
146
|
+
|
|
147
|
+
### Features
|
|
148
|
+
|
|
149
|
+
- typescript5 migration ([3051757](https://github.com/biorate/core/commit/3051757e45d6895394b655a22066773f0cc30a9a))
|
|
150
|
+
|
|
151
|
+
## 1.27.2 (2023-04-20)
|
|
152
|
+
|
|
153
|
+
## 1.27.1 (2023-04-17)
|
|
154
|
+
|
|
155
|
+
# 1.27.0 (2023-04-17)
|
|
156
|
+
|
|
157
|
+
# 1.26.0 (2023-04-14)
|
|
158
|
+
|
|
159
|
+
# 1.24.0 (2023-02-01)
|
|
160
|
+
|
|
161
|
+
## 1.20.1 (2022-11-10)
|
|
162
|
+
|
|
163
|
+
## 1.11.2 (2022-09-21)
|
|
164
|
+
|
|
165
|
+
### Bug Fixes
|
|
166
|
+
|
|
167
|
+
- **axios, kafka:** logic fixes ([5b83869](https://github.com/biorate/core/commit/5b8386953ce1d63783f380ca8fc36fb324a963b1))
|
|
168
|
+
|
|
169
|
+
## 1.11.1 (2022-09-21)
|
|
170
|
+
|
|
171
|
+
### Bug Fixes
|
|
172
|
+
|
|
173
|
+
- **axios, kafka:** logic fixes ([d48fff0](https://github.com/biorate/core/commit/d48fff0ebc75566b59aff08e17372ac97b595b30))
|
|
174
|
+
|
|
175
|
+
# 1.11.0 (2022-09-21)
|
|
176
|
+
|
|
177
|
+
## 1.7.1 (2022-09-08)
|
|
178
|
+
|
|
179
|
+
# 1.7.0 (2022-09-08)
|
|
180
|
+
|
|
181
|
+
# 1.6.0 (2022-09-08)
|
|
182
|
+
|
|
183
|
+
# 1.4.0 (2022-08-15)
|
|
184
|
+
|
|
185
|
+
## 1.2.2 (2022-08-11)
|
|
186
|
+
|
|
187
|
+
# 1.0.0 (2022-07-10)
|
|
188
|
+
|
|
189
|
+
## 0.30.19 (2022-07-10)
|
|
190
|
+
|
|
191
|
+
## 0.30.18 (2022-06-24)
|
|
192
|
+
|
|
193
|
+
## 0.30.17 (2022-06-24)
|
|
194
|
+
|
|
195
|
+
## 0.30.14 (2022-06-24)
|
|
196
|
+
|
|
197
|
+
### Bug Fixes
|
|
198
|
+
|
|
199
|
+
- **sequalize, file-config:** strict ([e3b471c](https://github.com/biorate/core/commit/e3b471c11aebc106d9562294458044b70eadba7a))
|
|
200
|
+
|
|
201
|
+
## 0.30.11 (2022-06-24)
|
|
202
|
+
|
|
203
|
+
## 0.30.10 (2022-06-24)
|
|
204
|
+
|
|
205
|
+
## 0.30.9 (2022-06-23)
|
|
206
|
+
|
|
207
|
+
### Bug Fixes
|
|
208
|
+
|
|
209
|
+
- **config:** strict types ([d1e286e](https://github.com/biorate/core/commit/d1e286e9016938cb663ee8bcceb6c06b0dbfdb18))
|
|
210
|
+
|
|
211
|
+
## 0.30.8 (2022-06-23)
|
|
212
|
+
|
|
213
|
+
## 0.30.7 (2022-06-23)
|
|
214
|
+
|
|
215
|
+
## 0.30.6 (2022-06-23)
|
|
216
|
+
|
|
217
|
+
## 0.30.5 (2022-06-23)
|
|
218
|
+
|
|
219
|
+
## 0.30.4 (2022-06-23)
|
|
220
|
+
|
|
221
|
+
## 0.30.2 (2022-06-22)
|
|
222
|
+
|
|
223
|
+
# 0.30.0 (2022-06-20)
|
|
224
|
+
|
|
225
|
+
### Bug Fixes
|
|
226
|
+
|
|
227
|
+
- \*.ts into npmignore ([6a6be03](https://github.com/biorate/core/commit/6a6be030a1e8923df4b03d518f08618e759d06fa))
|
|
228
|
+
|
|
229
|
+
## 0.29.1 (2022-06-20)
|
|
230
|
+
|
|
231
|
+
# 0.29.0 (2022-06-20)
|
|
232
|
+
|
|
233
|
+
### Bug Fixes
|
|
234
|
+
|
|
235
|
+
- \*.ts into npmignore ([f6e68b3](https://github.com/biorate/core/commit/f6e68b3a2291e7bfa013674db857db7879a26033))
|
|
236
|
+
|
|
237
|
+
## 0.28.3 (2022-05-07)
|
|
238
|
+
|
|
239
|
+
# 0.28.0 (2022-05-06)
|
|
240
|
+
|
|
241
|
+
## 0.27.3 (2022-05-06)
|
|
242
|
+
|
|
243
|
+
### Bug Fixes
|
|
244
|
+
|
|
245
|
+
- index.d.ts file added into mongodb, sequelize, schema-registry connectors ([8f142d3](https://github.com/biorate/core/commit/8f142d36e4face9d101e76f3954d565932a4c40f))
|
|
246
|
+
|
|
247
|
+
# 0.27.0 (2022-05-06)
|
|
248
|
+
|
|
249
|
+
### Bug Fixes
|
|
250
|
+
|
|
251
|
+
- connection type fix ([6e15e44](https://github.com/biorate/core/commit/6e15e449ae330d3e7ee3c75f38bd920457abb60c))
|
|
252
|
+
- **sequelize:** tests, documentation ([3c8016d](https://github.com/biorate/core/commit/3c8016de99538081ee004c1d274b4d288fd23d02))
|
|
253
|
+
|
|
254
|
+
### Features
|
|
255
|
+
|
|
256
|
+
- **sequelize:** module added ([0248d79](https://github.com/biorate/core/commit/0248d7948f1c7fdef776b0e83ac34ff651147515))
|
|
257
|
+
|
|
258
|
+
## [1.156.2](https://github.com/biorate/core/compare/v1.156.1...v1.156.2) (2025-09-18)
|
|
259
|
+
|
|
260
|
+
**Note:** Version bump only for package @biorate/sequelize
|
|
261
|
+
|
|
6
262
|
# [1.156.0](https://github.com/biorate/core/compare/v1.155.0...v1.156.0) (2025-09-18)
|
|
7
263
|
|
|
8
264
|
**Note:** Version bump only for package @biorate/sequelize
|
package/dist/src/index.js
CHANGED
|
@@ -40,10 +40,9 @@ let SequelizeConnector = class SequelizeConnector extends connector_1.Connector
|
|
|
40
40
|
this.models = {};
|
|
41
41
|
}
|
|
42
42
|
async connect(config) {
|
|
43
|
-
var _a;
|
|
44
43
|
let connection;
|
|
45
44
|
try {
|
|
46
|
-
config.options.models =
|
|
45
|
+
config.options.models = this.models[config.name] ?? [];
|
|
47
46
|
connection = new sequelize_typescript_1.Sequelize(config.options);
|
|
48
47
|
await connection.authenticate();
|
|
49
48
|
}
|
|
@@ -53,7 +52,7 @@ let SequelizeConnector = class SequelizeConnector extends connector_1.Connector
|
|
|
53
52
|
return connection;
|
|
54
53
|
}
|
|
55
54
|
async query(sql, options = {}) {
|
|
56
|
-
const name = options
|
|
55
|
+
const name = options?.connection;
|
|
57
56
|
(0, lodash_1.omit)(options, 'connection');
|
|
58
57
|
const connection = this.connection(name);
|
|
59
58
|
if (!connection)
|
|
@@ -62,8 +61,8 @@ let SequelizeConnector = class SequelizeConnector extends connector_1.Connector
|
|
|
62
61
|
return result[0];
|
|
63
62
|
}
|
|
64
63
|
};
|
|
65
|
-
SequelizeConnector =
|
|
64
|
+
exports.SequelizeConnector = SequelizeConnector;
|
|
65
|
+
exports.SequelizeConnector = SequelizeConnector = __decorate([
|
|
66
66
|
(0, inversion_1.injectable)()
|
|
67
67
|
], SequelizeConnector);
|
|
68
|
-
exports.SequelizeConnector = SequelizeConnector;
|
|
69
68
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAgD;AAChD,kDAA+C;AAC/C,+DAAiD;AAEjD,mCAA8B;AAC9B,qCAA+E;AAG/E,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;AACrC,uCAOmB;AANjB,uGAAA,UAAU,OAAA;AAGV,wGAAA,WAAW,OAAA;AAEX,+FAAA,EAAE,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAgD;AAChD,kDAA+C;AAC/C,+DAAiD;AAEjD,mCAA8B;AAC9B,qCAA+E;AAG/E,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;AACrC,uCAOmB;AANjB,uGAAA,UAAU,OAAA;AAGV,wGAAA,WAAW,OAAA;AAEX,+FAAA,EAAE,OAAA;AA8EG,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,qBAGvC;IAHM;;QAec,cAAS,GAAG,WAAW,CAAC;QAIxB,WAAM,GAA+B,EAAE,CAAC;IA+B7D,CAAC;IA3BW,KAAK,CAAC,OAAO,CAAC,MAAwB;QAC9C,IAAI,UAAgC,CAAC;QACrC,IAAI,CAAC;YACH,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YACvD,UAAU,GAAG,IAAI,gCAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAC3C,MAAM,UAAU,CAAC,YAAY,EAAE,CAAC;QAClC,CAAC;QAAC,OAAO,CAAU,EAAE,CAAC;YACpB,MAAM,IAAI,kCAAyB,CAAQ,CAAC,CAAC,CAAC;QAChD,CAAC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;IAIM,KAAK,CAAC,KAAK,CAChB,GAAkD,EAClD,UAEI,EAAE;QAEN,MAAM,IAAI,GAAG,OAAO,EAAE,UAAU,CAAC;QACjC,IAAA,aAAI,EAAC,OAAO,EAAE,YAAY,CAAC,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,UAAU;YAAE,MAAM,IAAI,iCAAwB,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QACpD,OAAO,MAAM,CAAC,CAAC,CAAQ,CAAC;IAC1B,CAAC;CACF,CAAA;AAlDY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAkD9B"}
|