@fnlb-project/database 1.0.48 → 1.0.50
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/dist/index.d.ts +3 -4
- package/dist/index.js +344 -344
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import { GenericErrorSender } from '@fnlb-project/shared/errors';
|
|
4
4
|
import { CategoryConfigSupportedPlatforms, Locales } from '@fnlb-project/shared/types';
|
|
5
|
-
import { Schema } from 'mongoose';
|
|
5
|
+
import { ConnectOptions, Schema, connection } from 'mongoose';
|
|
6
6
|
|
|
7
7
|
export declare class DatabaseClient {
|
|
8
8
|
private dbURI;
|
|
9
9
|
constructor(dbURI: string);
|
|
10
|
-
connect(options?:
|
|
10
|
+
connect(options?: ConnectOptions): Promise<void>;
|
|
11
11
|
private connectWithRetry;
|
|
12
12
|
}
|
|
13
13
|
export declare class DatabaseErrorHandler {
|
|
@@ -4202,10 +4202,9 @@ export declare enum DatabaseErrors {
|
|
|
4202
4202
|
KeyNotFound = 211,
|
|
4203
4203
|
DuplicateKey = 11000
|
|
4204
4204
|
}
|
|
4205
|
-
declare const exportedMongoose: typeof mongoose;
|
|
4206
4205
|
|
|
4207
4206
|
export {
|
|
4208
|
-
|
|
4207
|
+
connection,
|
|
4209
4208
|
};
|
|
4210
4209
|
|
|
4211
4210
|
export {};
|