Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@webiny/handler-db

Package Overview
Dependencies
Maintainers
1
Versions
455
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webiny/handler-db - npm Package Compare versions

Comparing version 5.15.0 to 5.17.0-beta.0

4

index.d.ts

@@ -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;

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc