@biorate/mongodb 1.156.2 → 1.158.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.
Files changed (73) hide show
  1. package/.nyc_output/4e61a02e-085b-4805-a8e2-69fd24acf832.json +1 -0
  2. package/.nyc_output/5a67e2b3-eb09-47ac-bcc1-cd3fa879a007.json +1 -0
  3. package/.nyc_output/processinfo/4e61a02e-085b-4805-a8e2-69fd24acf832.json +1 -0
  4. package/.nyc_output/processinfo/5a67e2b3-eb09-47ac-bcc1-cd3fa879a007.json +1 -0
  5. package/.nyc_output/processinfo/8bca6934-d704-4826-8603-82fd73862fde.json +1 -0
  6. package/.nyc_output/processinfo/index.json +1 -1
  7. package/.reporters.json +6 -0
  8. package/CHANGELOG.md +233 -0
  9. package/allure-results/01a3ab57-c79f-4025-833d-37d511984ec4-container.json +1 -0
  10. package/allure-results/0dd60806-6686-46a5-b395-7eb0e9aa5354-result.json +1 -0
  11. package/allure-results/10e3a19c-e3b3-4fe4-b47e-5b764956d58e-container.json +1 -0
  12. package/allure-results/1821dabb-60df-499d-9916-d67a768b2438-container.json +1 -0
  13. package/allure-results/2bc7cec0-0ffb-416e-8c92-9820d1764eef-result.json +1 -0
  14. package/allure-results/374b3143-e511-4e7e-b1f0-781fb3c6f2be-container.json +1 -0
  15. package/allure-results/3bc994f7-1572-4dd4-873e-1e1835fbc32b-result.json +1 -0
  16. package/allure-results/3cffa3bd-5c30-4eaa-8808-2a0202690f34-container.json +1 -0
  17. package/allure-results/3d5e5f29-4713-4f00-af2f-75cb8deffd02-result.json +1 -0
  18. package/allure-results/3d675fc0-2793-4b84-9905-4b0e41266ea6-result.json +1 -0
  19. package/allure-results/421c844b-0d71-4bc1-9f8b-fddca629a88e-result.json +1 -0
  20. package/allure-results/450614df-1d91-4bbf-89db-c6cbb422bca5-result.json +1 -0
  21. package/allure-results/52631bb7-0833-4b38-80d0-d683480b9083-result.json +1 -0
  22. package/allure-results/571bc5d6-c02e-4a0f-b0a5-9005fcb1c77c-result.json +1 -0
  23. package/allure-results/59331700-dbd1-4447-9576-9875c6eebcc1-result.json +1 -0
  24. package/allure-results/5d9d8ce5-eabe-4502-b8e7-32ead2b0dd2a-container.json +1 -0
  25. package/allure-results/5fa0f5d8-3e93-448d-a5f1-97b94c136bd8-container.json +1 -0
  26. package/allure-results/67051568-1f3a-4a79-accc-dda77ba33358-result.json +1 -0
  27. package/allure-results/670ab5f7-bbbf-43c4-ab96-12d581b3e320-container.json +1 -0
  28. package/allure-results/6b8a31eb-d971-4f76-9c1f-781e382094a3-result.json +1 -0
  29. package/allure-results/6c189c0f-8991-4def-9de3-a65e87756d92-result.json +1 -0
  30. package/allure-results/6e4154e5-1681-4e81-bb56-6e12a45e87d9-container.json +1 -0
  31. package/allure-results/79c5a002-b574-483e-8a13-f5353888595f-container.json +1 -0
  32. package/allure-results/79fb526a-c15d-4782-b3e3-a5a835010b18-container.json +1 -0
  33. package/allure-results/7bb2f4a2-2848-4d87-a734-fe5f3f8e298c-container.json +1 -0
  34. package/allure-results/7bd05250-09c0-4e1e-9e73-ea3af6cc31ef-result.json +1 -0
  35. package/allure-results/86ea9710-d102-4c09-8bc8-2f5c8b6b52e3-result.json +1 -0
  36. package/allure-results/8e578e1c-2ce0-4518-bc32-083511a3cd15-result.json +1 -0
  37. package/allure-results/a884bb67-d640-4626-91b8-40e7f3bbedaf-result.json +1 -0
  38. package/allure-results/aea7af1b-854f-4ef3-b753-cfdec592cb03-result.json +1 -0
  39. package/allure-results/b1439215-d7d1-4e9c-9ad6-38668f8c68e9-container.json +1 -0
  40. package/allure-results/b3a351ba-ab21-4fc0-904e-e3df5f6ae134-result.json +1 -0
  41. package/allure-results/b3b04a01-ee23-4dbc-a3ca-ce26fac25683-result.json +1 -0
  42. package/allure-results/cb9b209f-6b97-43a2-bf90-afdec7d6413c-container.json +1 -0
  43. package/allure-results/cccf401c-fc3b-4cba-b18c-246bc5942986-result.json +1 -0
  44. package/allure-results/cdfb28b3-c83b-422c-8355-1a811c96294a-container.json +1 -0
  45. package/allure-results/d1e1ab56-f048-4c10-99bf-db99e43fae26-container.json +1 -0
  46. package/allure-results/d2e87439-b2b6-479e-8ab2-26b7114ed5fa-result.json +1 -0
  47. package/allure-results/d3e3ed25-d8ee-4312-bc45-2acf7011359b-container.json +1 -0
  48. package/allure-results/d648bd5f-c5d6-4400-a961-a95de68bc7ed-result.json +1 -0
  49. package/allure-results/d7ad35fb-7972-4f52-85fc-34fd4b47285d-result.json +1 -0
  50. package/allure-results/da1b8c44-be1e-41a8-a0df-90ee61b13b85-result.json +1 -0
  51. package/allure-results/e2c5fd51-d8f3-4803-a094-d2178a826e46-container.json +1 -0
  52. package/allure-results/e5c474d3-41da-4b53-b829-0b3f08bad1b2-result.json +1 -0
  53. package/allure-results/f32e4f01-1358-4800-86f6-e719bc256ab4-result.json +1 -0
  54. package/coverage/lcov-report/index.html +25 -40
  55. package/coverage/lcov-report/mongodb/index.html +116 -0
  56. package/coverage/lcov-report/mongodb/index.ts.html +88 -0
  57. package/coverage/lcov-report/mongodb/src/errors.ts.html +124 -0
  58. package/coverage/lcov-report/mongodb/src/index.html +146 -0
  59. package/coverage/lcov-report/mongodb/src/index.ts.html +574 -0
  60. package/coverage/lcov-report/mongodb/src/interfaces.ts.html +124 -0
  61. package/coverage/lcov.info +17 -13
  62. package/dist/src/index.js +3 -3
  63. package/dist/src/index.js.map +1 -1
  64. package/dist/tsconfig.build.tsbuildinfo +1 -1
  65. package/package.json +9 -9
  66. package/tsconfig.json +8 -2
  67. package/.nyc_output/da72818e-205b-4400-a006-e786f0d903dd.json +0 -1
  68. package/.nyc_output/processinfo/4f493c82-786a-4933-9b34-d6173e0d5543.json +0 -1
  69. package/.nyc_output/processinfo/da72818e-205b-4400-a006-e786f0d903dd.json +0 -1
  70. package/coverage/lcov-report/errors.ts.html +0 -118
  71. package/coverage/lcov-report/index.ts.html +0 -118
  72. package/coverage/lcov-report/interfaces.ts.html +0 -118
  73. /package/.nyc_output/{4f493c82-786a-4933-9b34-d6173e0d5543.json → 8bca6934-d704-4826-8603-82fd73862fde.json} +0 -0
@@ -0,0 +1,124 @@
1
+
2
+ <!doctype html>
3
+ <html lang="en">
4
+
5
+ <head>
6
+ <title>Code coverage report for mongodb/src/interfaces.ts</title>
7
+ <meta charset="utf-8" />
8
+ <link rel="stylesheet" href="../../prettify.css" />
9
+ <link rel="stylesheet" href="../../base.css" />
10
+ <link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <style type='text/css'>
13
+ .coverage-summary .sorter {
14
+ background-image: url(../../sort-arrow-sprite.png);
15
+ }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <div class='wrapper'>
21
+ <div class='pad1'>
22
+ <h1><a href="../../index.html">All files</a> / <a href="index.html">mongodb/src</a> interfaces.ts</h1>
23
+ <div class='clearfix'>
24
+
25
+ <div class='fl pad1y space-right2'>
26
+ <span class="strong">100% </span>
27
+ <span class="quiet">Statements</span>
28
+ <span class='fraction'>1/1</span>
29
+ </div>
30
+
31
+
32
+ <div class='fl pad1y space-right2'>
33
+ <span class="strong">100% </span>
34
+ <span class="quiet">Branches</span>
35
+ <span class='fraction'>0/0</span>
36
+ </div>
37
+
38
+
39
+ <div class='fl pad1y space-right2'>
40
+ <span class="strong">100% </span>
41
+ <span class="quiet">Functions</span>
42
+ <span class='fraction'>0/0</span>
43
+ </div>
44
+
45
+
46
+ <div class='fl pad1y space-right2'>
47
+ <span class="strong">100% </span>
48
+ <span class="quiet">Lines</span>
49
+ <span class='fraction'>1/1</span>
50
+ </div>
51
+
52
+
53
+ </div>
54
+ <p class="quiet">
55
+ Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
+ </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input type="search" id="fileSearch">
61
+ </div>
62
+ </template>
63
+ </div>
64
+ <div class='status-line high'></div>
65
+ <pre><table class="coverage">
66
+ <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
+ <a name='L2'></a><a href='#L2'>2</a>
68
+ <a name='L3'></a><a href='#L3'>3</a>
69
+ <a name='L4'></a><a href='#L4'>4</a>
70
+ <a name='L5'></a><a href='#L5'>5</a>
71
+ <a name='L6'></a><a href='#L6'>6</a>
72
+ <a name='L7'></a><a href='#L7'>7</a>
73
+ <a name='L8'></a><a href='#L8'>8</a>
74
+ <a name='L9'></a><a href='#L9'>9</a>
75
+ <a name='L10'></a><a href='#L10'>10</a>
76
+ <a name='L11'></a><a href='#L11'>11</a>
77
+ <a name='L12'></a><a href='#L12'>12</a>
78
+ <a name='L13'></a><a href='#L13'>13</a>
79
+ <a name='L14'></a><a href='#L14'>14</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
80
+ <span class="cline-any cline-neutral">&nbsp;</span>
81
+ <span class="cline-any cline-neutral">&nbsp;</span>
82
+ <span class="cline-any cline-yes">1x</span>
83
+ <span class="cline-any cline-neutral">&nbsp;</span>
84
+ <span class="cline-any cline-neutral">&nbsp;</span>
85
+ <span class="cline-any cline-neutral">&nbsp;</span>
86
+ <span class="cline-any cline-neutral">&nbsp;</span>
87
+ <span class="cline-any cline-neutral">&nbsp;</span>
88
+ <span class="cline-any cline-neutral">&nbsp;</span>
89
+ <span class="cline-any cline-neutral">&nbsp;</span>
90
+ <span class="cline-any cline-neutral">&nbsp;</span>
91
+ <span class="cline-any cline-neutral">&nbsp;</span>
92
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import { IConnectorConfig, IConnector } from '@biorate/connector';
93
+ import { ConnectOptions, Connection } from 'mongoose';
94
+ &nbsp;
95
+ export * from '@typegoose/typegoose/lib/types';
96
+ &nbsp;
97
+ export type IMongoDBConnection = Connection;
98
+ &nbsp;
99
+ export interface IMongoDBConfig extends IConnectorConfig {
100
+ host: string;
101
+ options: ConnectOptions;
102
+ }
103
+ &nbsp;
104
+ export type IMongoDBConnector = IConnector&lt;IMongoDBConfig, IMongoDBConnection&gt;;
105
+ &nbsp;</pre></td></tr></table></pre>
106
+
107
+ <div class='push'></div><!-- for sticky footer -->
108
+ </div><!-- /wrapper -->
109
+ <div class='footer quiet pad2 space-top1 center small'>
110
+ Code coverage generated by
111
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
112
+ at 2026-02-13T06:51:39.293Z
113
+ </div>
114
+ <script src="../../prettify.js"></script>
115
+ <script>
116
+ window.onload = function () {
117
+ prettyPrint();
118
+ };
119
+ </script>
120
+ <script src="../../sorter.js"></script>
121
+ <script src="../../block-navigation.js"></script>
122
+ </body>
123
+ </html>
124
+
@@ -1,5 +1,14 @@
1
1
  TN:
2
- SF:src/file:/www/biorate/core/packages/@biorate/mongodb/src/errors.ts
2
+ SF:index.ts
3
+ FNF:0
4
+ FNH:0
5
+ LF:0
6
+ LH:0
7
+ BRF:0
8
+ BRH:0
9
+ end_of_record
10
+ TN:
11
+ SF:src/errors.ts
3
12
  FN:4,(anonymous_0)
4
13
  FN:10,(anonymous_1)
5
14
  FNF:2
@@ -17,7 +26,7 @@ BRF:0
17
26
  BRH:0
18
27
  end_of_record
19
28
  TN:
20
- SF:src/file:/www/biorate/core/packages/@biorate/mongodb/src/index.ts
29
+ SF:src/index.ts
21
30
  FN:103,(anonymous_6)
22
31
  FN:119,(anonymous_7)
23
32
  FN:132,(anonymous_8)
@@ -64,19 +73,14 @@ LH:26
64
73
  BRDA:147,0,0,1
65
74
  BRDA:152,1,0,0
66
75
  BRDA:152,1,1,2
67
- BRDA:153,2,0,0
68
- BRDA:153,2,1,0
69
- BRDA:153,3,0,0
70
- BRDA:153,3,1,0
71
- BRDA:154,4,0,2
72
- BRDA:154,4,1,0
73
- BRDA:157,5,0,0
74
- BRDA:157,5,1,2
75
- BRF:11
76
- BRH:4
76
+ BRDA:154,2,0,2
77
+ BRDA:154,2,1,0
78
+ BRDA:157,3,0,0
79
+ BRF:6
80
+ BRH:3
77
81
  end_of_record
78
82
  TN:
79
- SF:src/file:/www/biorate/core/packages/@biorate/mongodb/src/interfaces.ts
83
+ SF:src/interfaces.ts
80
84
  FNF:0
81
85
  FNH:0
82
86
  DA:4,1
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;AACrC,0CAAwB;AA2FxB,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,qBAA6C;IAAnF;;QAYqB,cAAS,GAAG,SAAS,CAAC;IAqB3C,CAAC;IAjBW,KAAK,CAAC,OAAO,CAA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