@middy/dynamodb
Advanced tools
Comparing version 4.4.0 to 4.4.1
@@ -37,6 +37,6 @@ import { canPrefetch, createPrefetchClient, createClient, getCache, getInternal, processCache, modifyCache } from '@middy/util'; | ||
}; | ||
let prefetch, client; | ||
let client; | ||
if (canPrefetch(options)) { | ||
client = createPrefetchClient(options); | ||
prefetch = processCache(options, fetch); | ||
processCache(options, fetch); | ||
} | ||
@@ -47,3 +47,3 @@ const dynamodbMiddlewareBefore = async (request)=>{ | ||
} | ||
const { value } = prefetch ?? processCache(options, fetch, request); | ||
const { value } = processCache(options, fetch, request); | ||
Object.assign(request.internal, value); | ||
@@ -54,3 +54,2 @@ if (options.setToContext) { | ||
} | ||
prefetch = null; | ||
}; | ||
@@ -57,0 +56,0 @@ return { |
{ | ||
"name": "@middy/dynamodb", | ||
"version": "4.4.0", | ||
"version": "4.4.1", | ||
"description": "DynamoDB middleware for the middy framework", | ||
@@ -67,3 +67,3 @@ "type": "module", | ||
"dependencies": { | ||
"@middy/util": "4.4.0" | ||
"@middy/util": "4.4.1" | ||
}, | ||
@@ -73,7 +73,7 @@ "devDependencies": { | ||
"@aws-sdk/util-dynamodb": "^3.245.0", | ||
"@middy/core": "4.4.0", | ||
"@middy/core": "4.4.1", | ||
"@types/aws-lambda": "^8.10.101", | ||
"aws-xray-sdk": "^3.3.3" | ||
}, | ||
"gitHead": "5b574488798c48bc74269af7deb3ff95139bcdcc" | ||
"gitHead": "51e5c1f83483a60d9e40f5db59b03af56d2ee710" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
13474
213
+ Added@middy/util@4.4.1(transitive)
- Removed@middy/util@4.4.0(transitive)
Updated@middy/util@4.4.1