Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

@aws/lambda-invoke-store

Package Overview
Dependencies
Maintainers
19
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws/lambda-invoke-store - npm Package Compare versions

Comparing version
0.0.2
to
0.1.0
+5
-0
dist/invoke-store.d.ts

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

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