@middy/appconfig
Advanced tools
Comparing version 5.2.0 to 5.2.1
21
index.js
@@ -9,3 +9,4 @@ import { | ||
modifyCache, | ||
jsonSafeParse | ||
jsonSafeParse, | ||
catchInvalidSignatureException | ||
} from '@middy/util' | ||
@@ -40,8 +41,8 @@ import { | ||
function fetchLatestConfiguration (configToken, internalKey) { | ||
const command = new GetLatestConfigurationCommand({ | ||
ConfigurationToken: configToken | ||
}) | ||
return client | ||
.send( | ||
new GetLatestConfigurationCommand({ | ||
ConfigurationToken: configToken | ||
}) | ||
) | ||
.send(command) | ||
.catch((e) => catchInvalidSignatureException(e, client, command)) | ||
.then((configResp) => { | ||
@@ -75,6 +76,8 @@ configurationTokenCache[internalKey] = | ||
if (configurationTokenCache[internalKey] == null) { | ||
const command = new StartConfigurationSessionCommand( | ||
options.fetchData[internalKey] | ||
) | ||
values[internalKey] = client | ||
.send( | ||
new StartConfigurationSessionCommand(options.fetchData[internalKey]) | ||
) | ||
.send(command) | ||
.catch((e) => catchInvalidSignatureException(e, client, command)) | ||
.then((configSessionResp) => | ||
@@ -81,0 +84,0 @@ fetchLatestConfiguration( |
{ | ||
"name": "@middy/appconfig", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "AppConfig middleware for the middy framework", | ||
@@ -61,11 +61,11 @@ "type": "module", | ||
"dependencies": { | ||
"@middy/util": "5.2.0" | ||
"@middy/util": "5.2.1" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/client-appconfigdata": "^3.0.0", | ||
"@middy/core": "5.2.0", | ||
"@middy/core": "5.2.1", | ||
"@types/aws-lambda": "^8.10.101", | ||
"aws-xray-sdk": "^3.3.3" | ||
}, | ||
"gitHead": "2d9096a49cd8fb62359517be96d6c93609df41f0" | ||
"gitHead": "4d55da221b9165b4b3e59a12632fd40a149a1e92" | ||
} |
10807
159
+ Added@middy/util@5.2.1(transitive)
- Removed@middy/util@5.2.0(transitive)
Updated@middy/util@5.2.1