New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aws-core-utils

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-core-utils - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

12

dynamodb-doc-client-cache.js

@@ -57,3 +57,3 @@ 'use strict';

// If no options were specified, then use an empty object
const options = dynamoDBDocClientOptions ? copy(dynamoDBDocClientOptions, {deep: true}) : {};
const options = dynamoDBDocClientOptions ? copy(dynamoDBDocClientOptions) : {};

@@ -95,6 +95,10 @@ // If no region was specified in the given dynamoDBDocClient options, then set it to the current region

}
// Create a new DynamoDB.DocumentClient instance with the modified options
dynamoDBDocClient = new AWS.DynamoDB.DocumentClient(options);
// Cache the new instance and the options used to create it
// Create a new DynamoDB.DocumentClient instance with a COPY of the resolved options (COPY avoids subsequent cache
// comparison failures failures due to later versions of AWS SDK (e.g. 2.45.0) mutating the options passed to the
// constructor, e.g. by adding "attrValue" with value "S8"
dynamoDBDocClient = new AWS.DynamoDB.DocumentClient(options ? copy(options) : options);
// Cache the new instance ...
dynamoDBDocClientByRegionKey.set(regionKey, dynamoDBDocClient);
// ... and cache the ORIGINAL (pre-COPY) options "used" to create it
dynamoDBDocClientOptionsByRegionKey.set(regionKey, options);

@@ -101,0 +105,0 @@

{
"name": "aws-core-utils",
"version": "6.0.1",
"version": "6.0.2",
"description": "Core utilities for working with Amazon Web Services (AWS), including ARNs, regions, stages, Lambdas, AWS errors, stream events, Kinesis, DynamoDB.DocumentClients, etc.",

@@ -8,3 +8,3 @@ "author": "Byron du Preez",

"engines": {
"node": ">=4.3.2"
"node": ">=6.10"
},

@@ -15,10 +15,10 @@ "scripts": {

"dependencies": {
"core-functions": "^3.0.2",
"logging-utils": "^4.0.1",
"deep-equal": "^1.0.1"
"core-functions": "3.0.4",
"logging-utils": "4.0.3",
"deep-equal": "1.0.1"
},
"devDependencies": {
"aws-sdk": "2.4.9"
"aws-sdk": "2.45.0"
},
"repository": "https://github.com/byron-dupreez/aws-core-utils"
}

@@ -1,2 +0,2 @@

# aws-core-utils v6.0.1
# aws-core-utils v6.0.2

@@ -391,2 +391,12 @@ Core utilities for working with Amazon Web Services (AWS), including ARNs, regions, stages, Lambdas, AWS errors, stream events, Kinesis, DynamoDB.DocumentClients, etc.

### 6.0.2
- Upgraded to Node 6.10.3
- Updated `core-functions` dependency to version 3.0.4
- Updated `logging-utils` dependency to version 4.0.3
- Upgraded `aws-sdk` dev dependency to version 2.45.0
- Changes to `dynamodb-doc-client-cache` module:
- Changed `setDynamoDBDocClient` to create & cache each new DynamoDB.DocumentClient instance with a COPY of the options
while still caching the ORIGINAL options to avoid subsequent cache comparison failures related to AWS SDK 2.45.0
mutating the options passed to the constructor, e.g. by adding "attrValue" with value "S8"
### 6.0.1

@@ -393,0 +403,0 @@ - Updated `core-functions` dependency to version 3.0.2

{
"name": "aws-core-utils-tests",
"description": "Unit tests for aws-core-utils modules",
"version": "6.0.1",
"version": "6.0.2",
"author": "Byron du Preez",

@@ -9,3 +9,3 @@ "license": "Apache-2.0",

"engines": {
"node": ">=4.3.2"
"node": ">=6.10"
},

@@ -12,0 +12,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc