@middy/appconfig 4.3.0 → 4.4.0

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.
Files changed (2) hide show
  1. package/index.cjs +6 -4
  2. package/package.json +4 -4
package/index.cjs CHANGED
@@ -4,12 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(module, "exports", {
6
6
  enumerable: true,
7
- get: ()=>_default
7
+ get: function() {
8
+ return _default;
9
+ }
8
10
  });
9
11
  const _util = require("@middy/util");
10
- const _clientAppconfig = require("@aws-sdk/client-appconfig");
12
+ const _clientappconfig = require("@aws-sdk/client-appconfig");
11
13
  const defaults = {
12
- AwsClient: _clientAppconfig.AppConfigClient,
14
+ AwsClient: _clientappconfig.AppConfigClient,
13
15
  awsClientOptions: {},
14
16
  awsClientAssumeRole: undefined,
15
17
  awsClientCapture: undefined,
@@ -29,7 +31,7 @@ const appConfigMiddleware = (opts = {})=>{
29
31
  const values = {};
30
32
  for (const internalKey of Object.keys(options.fetchData)){
31
33
  if (cachedValues[internalKey]) continue;
32
- values[internalKey] = client.send(new _clientAppconfig.GetConfigurationCommand(options.fetchData[internalKey])).then((resp)=>{
34
+ values[internalKey] = client.send(new _clientappconfig.GetConfigurationCommand(options.fetchData[internalKey])).then((resp)=>{
33
35
  let value = String.fromCharCode.apply(null, resp.Content);
34
36
  if (contentTypePattern.test(resp.ContentType)) {
35
37
  value = (0, _util.jsonSafeParse)(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/appconfig",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "AppConfig middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -64,13 +64,13 @@
64
64
  "url": "https://github.com/sponsors/willfarrell"
65
65
  },
66
66
  "dependencies": {
67
- "@middy/util": "4.3.0"
67
+ "@middy/util": "4.4.0"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@aws-sdk/client-appconfig": "^3.0.0",
71
- "@middy/core": "4.3.0",
71
+ "@middy/core": "4.4.0",
72
72
  "@types/aws-lambda": "^8.10.101",
73
73
  "aws-xray-sdk": "^3.3.3"
74
74
  },
75
- "gitHead": "6ed88ad93746e077e8870d34d970414537abbef7"
75
+ "gitHead": "5b574488798c48bc74269af7deb3ff95139bcdcc"
76
76
  }