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" }, 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, };