From 2fa4b67f08ad7bcf7b4853160ae9c41905ed8ddb Mon Sep 17 00:00:00 2001 From: ajaz Date: Thu, 4 Jul 2024 15:15:28 +0530 Subject: [PATCH 1/2] feat: update context --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 87ebe2a..1cd8d1f 100644 --- a/src/index.js +++ b/src/index.js @@ -40,7 +40,7 @@ async function hooksPlugin(config) { const query = args.contextValue.params.query; const { document, contextValue: context } = args; - const { headers, params, request, req } = context; + const { headers, params, request, req, secrets } = context; let body = {}; @@ -49,7 +49,7 @@ async function hooksPlugin(config) { } const payload = { - context: { headers, params, request, body }, + context: { headers, params, request, body, secrets }, document, }; From 5f0bb77c1d15384c164c42e81d624026ee743f30 Mon Sep 17 00:00:00 2001 From: ajaz Date: Thu, 4 Jul 2024 15:33:53 +0530 Subject: [PATCH 2/2] chore: updated package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ffc38f1..f43a9f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/plugin-hooks", - "version": "0.2.1", + "version": "0.3.0", "publishConfig": { "access": "public" },