@webiny/handler-db
Advanced tools
Comparing version 5.15.0 to 5.17.0-beta.0
@@ -1,4 +0,4 @@ | ||
import { ContextPlugin } from "@webiny/handler/types"; | ||
import { ContextPlugin } from "@webiny/handler/plugins/ContextPlugin"; | ||
import { DbContext } from "./types"; | ||
declare const _default: (args: any) => ContextPlugin<DbContext, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>[]; | ||
declare const _default: (args: any) => ContextPlugin<DbContext>[]; | ||
export default _default; |
17
index.js
@@ -10,15 +10,12 @@ "use strict"; | ||
var _ContextPlugin = require("@webiny/handler/plugins/ContextPlugin"); | ||
var _default = args => { | ||
return [{ | ||
type: "context", | ||
apply(context) { | ||
if (context.db) { | ||
return; | ||
} | ||
context.db = new _db.Db(args); | ||
return [new _ContextPlugin.ContextPlugin(context => { | ||
if (context.db) { | ||
return; | ||
} | ||
}]; | ||
context.db = new _db.Db(args); | ||
})]; | ||
}; | ||
@@ -25,0 +22,0 @@ |
{ | ||
"name": "@webiny/handler-db", | ||
"version": "5.15.0", | ||
"version": "5.17.0-beta.0", | ||
"main": "index.js", | ||
@@ -14,4 +14,4 @@ "license": "MIT", | ||
"@babel/runtime": "7.15.3", | ||
"@webiny/db": "5.15.0", | ||
"@webiny/handler": "5.15.0" | ||
"@webiny/db": "5.17.0-beta.0", | ||
"@webiny/handler": "5.17.0-beta.0" | ||
}, | ||
@@ -22,4 +22,4 @@ "devDependencies": { | ||
"@babel/preset-env": "^7.5.5", | ||
"@webiny/cli": "^5.15.0", | ||
"@webiny/project-utils": "^5.15.0", | ||
"@webiny/cli": "^5.17.0-beta.0", | ||
"@webiny/project-utils": "^5.17.0-beta.0", | ||
"rimraf": "^3.0.2", | ||
@@ -36,3 +36,3 @@ "typescript": "^4.1.3" | ||
}, | ||
"gitHead": "fd0ba247e5e0e2f5df66c8179f09af5ad6e9a0f2" | ||
"gitHead": "4b43404bf5ed84250bc9e3e5a64cc80501ae7e34" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4135
28
2
+ Added@webiny/db@5.17.0-beta.0(transitive)
+ Added@webiny/handler@5.17.0-beta.0(transitive)
+ Added@webiny/plugins@5.17.0-beta.0(transitive)
- Removed@webiny/db@5.15.0(transitive)
- Removed@webiny/handler@5.15.0(transitive)
- Removed@webiny/plugins@5.15.0(transitive)
Updated@webiny/db@5.17.0-beta.0