@63klabs/cache-data 1.2.6 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -8,7 +8,7 @@ Report all vulnerabilities under the [Security menu](https://github.com/63Klabs/
8
8
 
9
9
  > Note: This project is still in beta. Even though changes are tested and breaking changes are avoided, things may break.
10
10
 
11
- ## 1.2.6 (2025-07-15)
11
+ ## 1.2.8 (2025-07-15)
12
12
 
13
13
  ### Enhancements
14
14
 
@@ -24,6 +24,8 @@ Report all vulnerabilities under the [Security menu](https://github.com/63Klabs/
24
24
  - Remaining Warnings (unavoidable):
25
25
  - lodash.get@4.4.2 - From sinon dependency (external package)
26
26
  - querystring@0.2.0 - From aws-sdk v2 (required for compatibility)
27
+ - Fixed variable misname in cache S3 init from v1.2.6
28
+ - Fixed to check for environment variable CACHE_DATA_AWS_X_RAY_ON from v1.2.6
27
29
 
28
30
  The `querystring` warning will be addressed when aws-sdk v2 compatibility is removed from cache-data. (Required for Node <18 which is no longer available as a Lambda runtime.) Opened [issue-213](https://github.com/63Klabs/cache-data/issues/213)
29
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@63klabs/cache-data",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "Cache data from an API endpoint or application process using AWS S3 and DynamoDb",
5
5
  "author": "Chad Leigh Kluck (https://chadkluck.me)",
6
6
  "license": "MIT",
@@ -68,7 +68,7 @@ class S3Cache {
68
68
 
69
69
  static init(bucket = null) {
70
70
  if ( S3Cache.getBucket() === null ) {
71
- bucket = (bucket === null) ? process.env?.CACHE_DATA_DYNAMO_DB_TABLE || null : bucket;
71
+ bucket = (bucket === null) ? process.env?.CACHE_DATA_S3_BUCKET || null : bucket;
72
72
  if (bucket === null || bucket === "") {
73
73
  tools.DebugAndLog.error("Unable to initialize S3 Bucket for Cache. No bucket name provided.");
74
74
  throw new Error("Unable to initialize S3 Cache. No bucket name provided. Please set the CACHE_DATA_S3_BUCKET environment variable or pass a bucket name to S3Cache.init().");
@@ -1,4 +1,4 @@
1
- const AWSXRay = (process.env?.CacheData_AWSXRayOn === "true") ? require("aws-xray-sdk-core") : null;
1
+ const AWSXRay = (process.env?.CacheData_AWSXRayOn === "true" || process.env?.CACHE_DATA_AWS_X_RAY_ON === "true") ? require("aws-xray-sdk-core") : null;
2
2
 
3
3
  if (AWSXRay !== null) {
4
4
  // Configure capture options