@beforeyoubid/alpha
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -23,2 +23,15 @@ "use strict"; | ||
if (config.addRequestContext) { | ||
event.requestContext = { | ||
stage: process.env.STAGE, | ||
identity: { | ||
sourceIp: '' | ||
}, | ||
authorizer: { | ||
principalId: '' | ||
}, | ||
elb: false | ||
}; | ||
} | ||
return event; | ||
@@ -25,0 +38,0 @@ }; |
@@ -18,13 +18,3 @@ "use strict"; | ||
context: {}, | ||
event: lambdaEvent(config), | ||
requestContext: { | ||
stage: process.env.STAGE, | ||
identity: { | ||
sourceIp: '' | ||
}, | ||
authorizer: { | ||
principalId: '' | ||
}, | ||
elb: false | ||
} | ||
event: lambdaEvent(config) | ||
}; | ||
@@ -31,0 +21,0 @@ const handler = promisify(config.lambda); |
@@ -13,2 +13,3 @@ declare module '@lifeomic/alpha' { | ||
retry?: RetryOptions, | ||
addRequestContext?: Boolean, | ||
lambda?: Function | ||
@@ -15,0 +16,0 @@ } |
@@ -33,3 +33,3 @@ "use strict"; | ||
const ALPHA_CONFIG = ['adapter', 'lambda', 'Lambda', 'retry', '__retryCount']; | ||
const ALPHA_CONFIG = ['adapter', 'lambda', 'Lambda', 'retry', 'addRequestContext', '__retryCount']; | ||
const Axios = axios.Axios; | ||
@@ -36,0 +36,0 @@ |
{ | ||
"name": "@beforeyoubid/alpha", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Unified client for HTTP services.", | ||
@@ -5,0 +5,0 @@ "main": "lib/Alpha", |
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
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
30435
641