@opra/mongodb 1.27.4 → 1.28.1

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/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opra/mongodb",
3
- "version": "1.27.4",
3
+ "version": "1.28.1",
4
4
  "description": "Opra MongoDB adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
8
  "@jsopen/objects": "^2.2.1",
9
9
  "tslib": "^2.8.1",
10
- "valgen": "^6.0.3"
10
+ "valgen": "^6.1.0"
11
11
  },
12
12
  "peerDependencies": {
13
- "@opra/common": "^1.27.4",
14
- "@opra/core": "^1.27.4",
15
- "@opra/http": "^1.27.4",
13
+ "@opra/common": "^1.28.1",
14
+ "@opra/core": "^1.28.1",
15
+ "@opra/http": "^1.28.1",
16
16
  "mongodb": "^7.0.0"
17
17
  },
18
18
  "exports": {
@@ -262,7 +262,7 @@ export declare class MongoService<T extends mongodb.Document = mongodb.Document>
262
262
  * @param callback - The function to be executed within the transaction.
263
263
  * @param [options] - Optional options for the transaction.
264
264
  */
265
- withTransaction(callback: (session: ClientSession, _this: this) => any, options?: TransactionOptions): Promise<any>;
265
+ withTransaction<U = any>(callback: (session: ClientSession, _this: this) => U, options?: TransactionOptions): Promise<U>;
266
266
  /**
267
267
  * Retrieves the database connection.
268
268
  *