@webiny/handler-db 5.41.1 → 5.41.2-beta.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/index.d.ts +2 -4
- package/index.js +0 -3
- package/index.js.map +1 -1
- package/package.json +6 -6
- package/types.d.ts +1 -1
- package/types.js.map +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
+
import { ConstructorArgs } from "@webiny/db";
|
|
1
2
|
import { ContextPlugin } from "@webiny/api";
|
|
2
3
|
import { DbContext } from "./types";
|
|
3
|
-
|
|
4
|
-
* TODO: remove this package.
|
|
5
|
-
*/
|
|
6
|
-
declare const _default: (args: any) => ContextPlugin<DbContext>[];
|
|
4
|
+
declare const _default: <T = unknown>(args: ConstructorArgs<T>) => ContextPlugin<DbContext>[];
|
|
7
5
|
export default _default;
|
package/index.js
CHANGED
|
@@ -6,9 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _db = require("@webiny/db");
|
|
8
8
|
var _api = require("@webiny/api");
|
|
9
|
-
/**
|
|
10
|
-
* TODO: remove this package.
|
|
11
|
-
*/
|
|
12
9
|
var _default = args => {
|
|
13
10
|
return [new _api.ContextPlugin(context => {
|
|
14
11
|
if (context.db) {
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_db","require","_api","_default","args","ContextPlugin","context","db","Db","exports","default"],"sources":["index.ts"],"sourcesContent":["import { Db } from \"@webiny/db\";\nimport { ContextPlugin } from \"@webiny/api\";\nimport { DbContext } from \"./types\";\n\
|
|
1
|
+
{"version":3,"names":["_db","require","_api","_default","args","ContextPlugin","context","db","Db","exports","default"],"sources":["index.ts"],"sourcesContent":["import { ConstructorArgs, Db } from \"@webiny/db\";\nimport { ContextPlugin } from \"@webiny/api\";\nimport { DbContext } from \"./types\";\n\nexport default <T = unknown>(args: ConstructorArgs<T>) => {\n return [\n new ContextPlugin<DbContext>(context => {\n if (context.db) {\n return;\n }\n context.db = new Db<T>(args);\n })\n ];\n};\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AAA4C,IAAAE,QAAA,GAGfC,IAAwB,IAAK;EACtD,OAAO,CACH,IAAIC,kBAAa,CAAYC,OAAO,IAAI;IACpC,IAAIA,OAAO,CAACC,EAAE,EAAE;MACZ;IACJ;IACAD,OAAO,CAACC,EAAE,GAAG,IAAIC,MAAE,CAAIJ,IAAI,CAAC;EAChC,CAAC,CAAC,CACL;AACL,CAAC;AAAAK,OAAA,CAAAC,OAAA,GAAAP,QAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/handler-db",
|
|
3
|
-
"version": "5.41.
|
|
3
|
+
"version": "5.41.2-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
"author": "Webiny Ltd.",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@babel/runtime": "7.24.1",
|
|
14
|
-
"@webiny/api": "5.41.
|
|
15
|
-
"@webiny/db": "5.41.
|
|
14
|
+
"@webiny/api": "5.41.2-beta.0",
|
|
15
|
+
"@webiny/db": "5.41.2-beta.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@babel/cli": "7.24.1",
|
|
19
19
|
"@babel/core": "7.24.3",
|
|
20
20
|
"@babel/preset-env": "7.24.3",
|
|
21
|
-
"@webiny/cli": "5.41.
|
|
22
|
-
"@webiny/project-utils": "5.41.
|
|
21
|
+
"@webiny/cli": "5.41.2-beta.0",
|
|
22
|
+
"@webiny/project-utils": "5.41.2-beta.0",
|
|
23
23
|
"rimraf": "5.0.5",
|
|
24
24
|
"typescript": "4.9.5"
|
|
25
25
|
},
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"build": "yarn webiny run build",
|
|
32
32
|
"watch": "yarn webiny run watch"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "a259e2af938ceb1e2d35b2bef9edcee4459352de"
|
|
35
35
|
}
|
package/types.d.ts
CHANGED
package/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import { Db } from \"@webiny/db\";\nimport { Context } from \"@webiny/api/types\";\n\nexport interface DbContext extends Context {\n db: Db
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import { Db } from \"@webiny/db\";\nimport { Context } from \"@webiny/api/types\";\n\nexport interface DbContext extends Context {\n db: Db<unknown>;\n}\n"],"mappings":"","ignoreList":[]}
|