@webiny/handler-db 5.21.0 → 5.22.0-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 CHANGED
@@ -1,4 +1,4 @@
1
- import { ContextPlugin } from "@webiny/handler/plugins/ContextPlugin";
1
+ import { ContextPlugin } from "@webiny/handler";
2
2
  import { DbContext } from "./types";
3
3
  declare const _default: (args: any) => ContextPlugin<DbContext>[];
4
4
  export default _default;
package/index.js CHANGED
@@ -7,10 +7,10 @@ exports.default = void 0;
7
7
 
8
8
  var _db = require("@webiny/db");
9
9
 
10
- var _ContextPlugin = require("@webiny/handler/plugins/ContextPlugin");
10
+ var _handler = require("@webiny/handler");
11
11
 
12
12
  var _default = args => {
13
- return [new _ContextPlugin.ContextPlugin(context => {
13
+ return [new _handler.ContextPlugin(context => {
14
14
  if (context.db) {
15
15
  return;
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/handler-db",
3
- "version": "5.21.0",
3
+ "version": "5.22.0-beta.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -10,16 +10,16 @@
10
10
  "description": "Webiny API plugin that provides a db driver for DynamoDB.",
11
11
  "author": "Webiny Ltd.",
12
12
  "dependencies": {
13
- "@babel/runtime": "7.16.3",
14
- "@webiny/db": "5.21.0",
15
- "@webiny/handler": "5.21.0"
13
+ "@babel/runtime": "7.16.7",
14
+ "@webiny/db": "5.22.0-beta.0",
15
+ "@webiny/handler": "5.22.0-beta.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@babel/cli": "^7.5.5",
19
- "@babel/core": "^7.5.5",
20
- "@babel/preset-env": "^7.5.5",
21
- "@webiny/cli": "^5.21.0",
22
- "@webiny/project-utils": "^5.21.0",
18
+ "@babel/cli": "^7.16.0",
19
+ "@babel/core": "^7.16.0",
20
+ "@babel/preset-env": "^7.16.4",
21
+ "@webiny/cli": "^5.22.0-beta.0",
22
+ "@webiny/project-utils": "^5.22.0-beta.0",
23
23
  "rimraf": "^3.0.2",
24
24
  "typescript": "^4.1.3"
25
25
  },
@@ -31,5 +31,5 @@
31
31
  "build": "yarn webiny run build",
32
32
  "watch": "yarn webiny run watch"
33
33
  },
34
- "gitHead": "c3d4955bf74e7ffdb9628867e3b23cdfe64ea8dc"
34
+ "gitHead": "487330472a07000c4845340f3b3dfa6b3ae98944"
35
35
  }
package/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Db } from "@webiny/db";
2
- export declare type DbContext = {
2
+ import { Context } from "@webiny/handler/types";
3
+ export interface DbContext extends Context {
3
4
  db: Db;
4
- };
5
+ }