@madgex/fert 2.2.1 → 2.2.2

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.
@@ -4,7 +4,7 @@ const {
4
4
  } = require('@aws-sdk/client-cloudfront');
5
5
  const { persistentCacheWithTtl } = require('./persistent-cache-with-ttl');
6
6
  const assert = require('node:assert');
7
- const { ONE_WEEK } = require('../../constants');
7
+ const { ONE_WEEK, AWS_REGION } = require('../../constants');
8
8
  const { log } = require('../utils/logging');
9
9
 
10
10
  const cache = new persistentCacheWithTtl('cf-distribution-cache', {
@@ -12,7 +12,7 @@ const cache = new persistentCacheWithTtl('cf-distribution-cache', {
12
12
  });
13
13
 
14
14
  exports.doGetAllCloudFrontDistributions = async () => {
15
- const cloudfront = new CloudFrontClient();
15
+ const cloudfront = new CloudFrontClient({ region: AWS_REGION });
16
16
  const distributions = [];
17
17
 
18
18
  let Marker = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madgex/fert",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Tool to help build the V6 branding",
5
5
  "bin": {
6
6
  "fert": "./bin/cli.js"