@biorate/mongodb 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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "reporterEnabled": "allure-mocha,spec",
3
+ "allureMochaReporterOptions": {
4
+ "resultsDir": "./allure-results"
5
+ }
6
+ }
package/CHANGELOG.md CHANGED
@@ -3,6 +3,237 @@
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.104.0 (2025-02-28)
28
+
29
+ ### Features
30
+
31
+ - migration to pnpm ([18c83a3](https://github.com/biorate/core/commit/18c83a30319fdfe0d9d2c5ebd94f5fba499e06cd))
32
+
33
+ ## 1.102.1 (2025-02-28)
34
+
35
+ # 1.102.0 (2025-02-28)
36
+
37
+ ### Features
38
+
39
+ - migration to pnpm ([462d120](https://github.com/biorate/core/commit/462d12068108fc6977906f4e379da6917aca42c3))
40
+
41
+ # 1.100.0 (2025-02-26)
42
+
43
+ # 1.96.0 (2024-12-26)
44
+
45
+ ## 1.95.1 (2024-12-26)
46
+
47
+ # 1.95.0 (2024-12-26)
48
+
49
+ ## 1.93.1 (2024-12-19)
50
+
51
+ # 1.93.0 (2024-12-19)
52
+
53
+ ## 1.91.5 (2024-12-06)
54
+
55
+ ## 1.91.4 (2024-12-06)
56
+
57
+ ## 1.91.3 (2024-12-06)
58
+
59
+ ## 1.91.2 (2024-12-06)
60
+
61
+ ## 1.91.1 (2024-12-06)
62
+
63
+ # 1.91.0 (2024-12-05)
64
+
65
+ # 1.90.0 (2024-12-05)
66
+
67
+ ## 1.76.3 (2024-07-11)
68
+
69
+ ## 1.65.4 (2024-03-26)
70
+
71
+ ## 1.58.1 (2024-02-16)
72
+
73
+ ### Bug Fixes
74
+
75
+ - **mongodb:** deps ([d4345fd](https://github.com/biorate/core/commit/d4345fdd96c4e4f2094f1bd6879ef8c1940f46f1))
76
+
77
+ # 1.54.0 (2024-01-11)
78
+
79
+ ## 1.42.2 (2023-09-07)
80
+
81
+ ## 1.42.1 (2023-09-04)
82
+
83
+ ## 1.38.4 (2023-08-11)
84
+
85
+ ## 1.38.3 (2023-08-10)
86
+
87
+ ## 1.38.2 (2023-08-10)
88
+
89
+ ## 1.38.1 (2023-08-10)
90
+
91
+ ## 1.30.12 (2023-07-18)
92
+
93
+ # 1.29.0 (2023-05-05)
94
+
95
+ ### Bug Fixes
96
+
97
+ - **shutdown-hook:** allSettled startegy ([acc63c9](https://github.com/biorate/core/commit/acc63c9758ea8af95ded947184379b741837d1de))
98
+
99
+ ## 1.28.2 (2023-05-05)
100
+
101
+ ## 1.28.1 (2023-05-05)
102
+
103
+ # 1.28.0 (2023-05-04)
104
+
105
+ ### Features
106
+
107
+ - typescript5 migration ([3051757](https://github.com/biorate/core/commit/3051757e45d6895394b655a22066773f0cc30a9a))
108
+
109
+ ## 1.27.2 (2023-04-20)
110
+
111
+ ### Bug Fixes
112
+
113
+ - deps, types ([fad95c1](https://github.com/biorate/core/commit/fad95c19b0b21205cf7d961b3fe01f3b919ed710))
114
+
115
+ ## 1.27.1 (2023-04-17)
116
+
117
+ # 1.27.0 (2023-04-17)
118
+
119
+ # 1.26.0 (2023-04-14)
120
+
121
+ ## 1.25.2 (2023-03-07)
122
+
123
+ ### Bug Fixes
124
+
125
+ - **mongodb:** typegoose and mongodb modules exports ([6746e5b](https://github.com/biorate/core/commit/6746e5b1ecd395ffe0ffe9f7c4ec1d354558d3ca))
126
+
127
+ # 1.24.0 (2023-02-01)
128
+
129
+ ## 1.20.1 (2022-11-10)
130
+
131
+ ## 1.11.2 (2022-09-21)
132
+
133
+ ### Bug Fixes
134
+
135
+ - **axios, kafka:** logic fixes ([5b83869](https://github.com/biorate/core/commit/5b8386953ce1d63783f380ca8fc36fb324a963b1))
136
+
137
+ ## 1.11.1 (2022-09-21)
138
+
139
+ ### Bug Fixes
140
+
141
+ - **axios, kafka:** logic fixes ([d48fff0](https://github.com/biorate/core/commit/d48fff0ebc75566b59aff08e17372ac97b595b30))
142
+
143
+ # 1.11.0 (2022-09-21)
144
+
145
+ ## 1.7.1 (2022-09-08)
146
+
147
+ # 1.7.0 (2022-09-08)
148
+
149
+ # 1.6.0 (2022-09-08)
150
+
151
+ # 1.4.0 (2022-08-15)
152
+
153
+ ## 1.2.2 (2022-08-11)
154
+
155
+ # 1.0.0 (2022-07-10)
156
+
157
+ ## 0.30.19 (2022-07-10)
158
+
159
+ ## 0.30.18 (2022-06-24)
160
+
161
+ ## 0.30.17 (2022-06-24)
162
+
163
+ ## 0.30.12 (2022-06-24)
164
+
165
+ ### Bug Fixes
166
+
167
+ - **mongodb:** strict ([21cfcf4](https://github.com/biorate/core/commit/21cfcf4d2e74f5e7f5a69d3b4144da537634bee7))
168
+ - **mongodb:** strict ([4a06dae](https://github.com/biorate/core/commit/4a06daebeb07942c611c8fa994fb56fb465da6dc))
169
+
170
+ ## 0.30.11 (2022-06-24)
171
+
172
+ ## 0.30.10 (2022-06-24)
173
+
174
+ ## 0.30.9 (2022-06-23)
175
+
176
+ ### Bug Fixes
177
+
178
+ - **config:** strict types ([d1e286e](https://github.com/biorate/core/commit/d1e286e9016938cb663ee8bcceb6c06b0dbfdb18))
179
+
180
+ ## 0.30.8 (2022-06-23)
181
+
182
+ ## 0.30.7 (2022-06-23)
183
+
184
+ ## 0.30.6 (2022-06-23)
185
+
186
+ ## 0.30.5 (2022-06-23)
187
+
188
+ ## 0.30.4 (2022-06-23)
189
+
190
+ ## 0.30.2 (2022-06-22)
191
+
192
+ # 0.30.0 (2022-06-20)
193
+
194
+ ### Bug Fixes
195
+
196
+ - \*.ts into npmignore ([6a6be03](https://github.com/biorate/core/commit/6a6be030a1e8923df4b03d518f08618e759d06fa))
197
+
198
+ ## 0.29.1 (2022-06-20)
199
+
200
+ # 0.29.0 (2022-06-20)
201
+
202
+ ### Bug Fixes
203
+
204
+ - \*.ts into npmignore ([f6e68b3](https://github.com/biorate/core/commit/f6e68b3a2291e7bfa013674db857db7879a26033))
205
+
206
+ ## 0.28.3 (2022-05-07)
207
+
208
+ # 0.28.0 (2022-05-06)
209
+
210
+ ## 0.27.3 (2022-05-06)
211
+
212
+ ### Bug Fixes
213
+
214
+ - index.d.ts file added into mongodb, sequelize, schema-registry connectors ([8f142d3](https://github.com/biorate/core/commit/8f142d36e4face9d101e76f3954d565932a4c40f))
215
+
216
+ # 0.27.0 (2022-05-06)
217
+
218
+ ### Features
219
+
220
+ - **sequelize:** module added ([0248d79](https://github.com/biorate/core/commit/0248d7948f1c7fdef776b0e83ac34ff651147515))
221
+
222
+ # 0.26.0 (2022-04-25)
223
+
224
+ ### Bug Fixes
225
+
226
+ - keyword added ([f5314a9](https://github.com/biorate/core/commit/f5314a93b30fa6f25f1e59749560c9f562d52798))
227
+ - **mongodb:** props incapsulation ([ae65939](https://github.com/biorate/core/commit/ae659399a8f0632aa1d4551615674bf9439c0ea0))
228
+
229
+ ### Features
230
+
231
+ - **mongodb:** module added ([d55b125](https://github.com/biorate/core/commit/d55b125c4f1e2f6e8804f5996a6ca4510081136e))
232
+
233
+ ## [1.156.2](https://github.com/biorate/core/compare/v1.156.1...v1.156.2) (2025-09-18)
234
+
235
+ **Note:** Version bump only for package @biorate/mongodb
236
+
6
237
  # [1.156.0](https://github.com/biorate/core/compare/v1.155.0...v1.156.0) (2025-09-18)
7
238
 
8
239
  **Note:** Version bump only for package @biorate/mongodb
package/dist/src/index.js CHANGED
@@ -55,23 +55,23 @@ let MongoDBConnector = class MongoDBConnector extends connector_1.Connector {
55
55
  await super.initialize();
56
56
  }
57
57
  };
58
+ exports.MongoDBConnector = MongoDBConnector;
58
59
  __decorate([
59
60
  (0, inversion_1.init)(),
60
61
  __metadata("design:type", Function),
61
62
  __metadata("design:paramtypes", []),
62
63
  __metadata("design:returntype", Promise)
63
64
  ], MongoDBConnector.prototype, "initialize", null);
64
- MongoDBConnector = __decorate([
65
+ exports.MongoDBConnector = MongoDBConnector = __decorate([
65
66
  (0, inversion_1.injectable)()
66
67
  ], MongoDBConnector);
67
- exports.MongoDBConnector = MongoDBConnector;
68
68
  let connections = null;
69
69
  const model = (Model, connection, options = {}) => {
70
70
  return (proto, key) => {
71
71
  Object.defineProperty(proto, key, {
72
72
  get() {
73
73
  const existingConnection = connection
74
- ? connections === null || connections === void 0 ? void 0 : connections.get(connection)
74
+ ? connections?.get(connection)
75
75
  : connections
76
76
  ? [...connections][0][1]
77
77
  : undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAsD;AACtD,0CAAwC;AACxC,kDAA+C;AAC/C,uCAA4C;AAC5C,oDAAwD;AACxD,qCAAoF;AAGpF,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;A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