@aws/lambda-invoke-store
Advanced tools
@@ -16,2 +16,3 @@ /** | ||
| readonly X_RAY_TRACE_ID: symbol; | ||
| readonly TENANT_ID: symbol; | ||
| }; | ||
@@ -44,2 +45,6 @@ /** | ||
| /** | ||
| * Get the current tenant ID | ||
| */ | ||
| static getTenantId(): string | undefined; | ||
| /** | ||
| * Check if we're currently within an invoke context | ||
@@ -46,0 +51,0 @@ */ |
@@ -14,2 +14,3 @@ "use strict"; | ||
| X_RAY_TRACE_ID: Symbol("_AWS_LAMBDA_X_RAY_TRACE_ID"), | ||
| TENANT_ID: Symbol("_AWS_LAMBDA_TENANT_ID"), | ||
| }; | ||
@@ -68,2 +69,8 @@ /** | ||
| /** | ||
| * Get the current tenant ID | ||
| */ | ||
| static getTenantId() { | ||
| return this.get(this.PROTECTED_KEYS.TENANT_ID); | ||
| } | ||
| /** | ||
| * Check if we're currently within an invoke context | ||
@@ -70,0 +77,0 @@ */ |
+1
-1
| { | ||
| "name": "@aws/lambda-invoke-store", | ||
| "version": "0.0.2", | ||
| "version": "0.1.0", | ||
| "description": "Invoke scoped data storage for AWS Lambda Node.js Runtime Environment", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/awslabs/aws-lambda-invoke-store", |
+8
-0
@@ -102,2 +102,10 @@ # Node.js Invoke Store for AWS Lambda | ||
| ### InvokeStore.getTenantId() | ||
| Convenience method to get the tenant ID. | ||
| ```typescript | ||
| const requestId = InvokeStore.getTenantId(); | ||
| ``` | ||
| ### InvokeStore.getXRayTraceId() | ||
@@ -104,0 +112,0 @@ |
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
21993
2.11%154
8.45%191
4.37%