@biorate/mongodb 2.0.2 → 2.1.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/dist/types/src/index.d.ts +1 -1
- package/package.json +23 -24
|
@@ -7,7 +7,7 @@ export * from 'mongodb';
|
|
|
7
7
|
export declare class MongoDBConnector extends Connector<IMongoDBConfig, IMongoDBConnection> {
|
|
8
8
|
private '#connections';
|
|
9
9
|
private '#current';
|
|
10
|
-
protected readonly namespace
|
|
10
|
+
protected readonly namespace: string;
|
|
11
11
|
protected connect(config: IMongoDBConfig): Promise<import("mongoose").Connection>;
|
|
12
12
|
protected initialize(): Promise<void>;
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biorate/mongodb",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Mongodb ORM connector based on mongoose and typegoose",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -18,21 +18,6 @@
|
|
|
18
18
|
"README.md",
|
|
19
19
|
"LICENSE"
|
|
20
20
|
],
|
|
21
|
-
"scripts": {
|
|
22
|
-
"clean": "cleanup dist",
|
|
23
|
-
"build:cjs": "npx tsc -p ./tsconfig.build.cjs.json",
|
|
24
|
-
"build:esm": "npx tsc -p ./tsconfig.build.esm.json",
|
|
25
|
-
"build:types": "npx tsc -p ./tsconfig.build.types.json",
|
|
26
|
-
"build": "pnpm run clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:types",
|
|
27
|
-
"postbuild:cjs": "node ../../../.scripts/write-package-type.js dist/cjs commonjs",
|
|
28
|
-
"postbuild:esm": "tsc-esm-fix --tsconfig=./tsconfig.build.esm.json --target=./dist/esm && node ../../../.scripts/write-package-type.js dist/esm module",
|
|
29
|
-
"format": "prettier --check src",
|
|
30
|
-
"lint": "eslint src --ext .ts",
|
|
31
|
-
"format:fix": "prettier --write src",
|
|
32
|
-
"lint:fix": "eslint src --ext .ts --fix",
|
|
33
|
-
"test": "npx nyc --nycrc-path ../../../.nycrc.json -- npx mocha tests/**/*.spec.ts",
|
|
34
|
-
"prepublishOnly": "pnpm run build"
|
|
35
|
-
},
|
|
36
21
|
"repository": {
|
|
37
22
|
"type": "git",
|
|
38
23
|
"url": "git+https://github.com/biorate/core.git",
|
|
@@ -48,15 +33,29 @@
|
|
|
48
33
|
],
|
|
49
34
|
"author": "llevkin",
|
|
50
35
|
"license": "MIT",
|
|
51
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "fdd6dbd61368f7a9f9deb3b72243b19ecb3767a6",
|
|
52
37
|
"dependencies": {
|
|
53
|
-
"@biorate/config": "3.1.0",
|
|
54
|
-
"@biorate/connector": "3.0.2",
|
|
55
|
-
"@biorate/errors": "3.0.0",
|
|
56
|
-
"@biorate/inversion": "3.0.2",
|
|
57
|
-
"@biorate/tools": "3.0.1",
|
|
58
38
|
"@typegoose/typegoose": "^11.0.2",
|
|
59
39
|
"mongodb": "^5.9.1",
|
|
60
|
-
"mongoose": "^7.0.4"
|
|
40
|
+
"mongoose": "^7.0.4",
|
|
41
|
+
"@biorate/config": "3.2.0",
|
|
42
|
+
"@biorate/inversion": "3.1.0",
|
|
43
|
+
"@biorate/errors": "3.1.0",
|
|
44
|
+
"@biorate/connector": "3.1.0",
|
|
45
|
+
"@biorate/tools": "3.1.0"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"clean": "cleanup dist",
|
|
49
|
+
"build:cjs": "npx tsc -p ./tsconfig.build.cjs.json",
|
|
50
|
+
"build:esm": "npx tsc -p ./tsconfig.build.esm.json",
|
|
51
|
+
"build:types": "npx tsc -p ./tsconfig.build.types.json",
|
|
52
|
+
"build": "pnpm run clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:types",
|
|
53
|
+
"postbuild:cjs": "node ../../../.scripts/write-package-type.js dist/cjs commonjs",
|
|
54
|
+
"postbuild:esm": "tsc-esm-fix --tsconfig=./tsconfig.build.esm.json --target=./dist/esm && node ../../../.scripts/write-package-type.js dist/esm module",
|
|
55
|
+
"format": "prettier --check src",
|
|
56
|
+
"lint": "eslint src --ext .ts",
|
|
57
|
+
"format:fix": "prettier --write src",
|
|
58
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
59
|
+
"test": "npx nyc --nycrc-path ../../../.nycrc.json -- npx mocha tests/**/*.spec.ts"
|
|
61
60
|
}
|
|
62
|
-
}
|
|
61
|
+
}
|