@onivoro/onix 20.5.27 → 20.5.28
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.
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.invalidateCloudFront = invalidateCloudFront;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const client_cloudfront_1 = require("@aws-sdk/client-cloudfront");
|
|
6
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
7
|
function invalidateCloudFront(cloudfront_1, distributionId_1) {
|
|
7
8
|
return tslib_1.__awaiter(this, arguments, void 0, function* (cloudfront, distributionId, paths = ['*']) {
|
|
8
9
|
const command = new client_cloudfront_1.CreateInvalidationCommand({
|
|
@@ -15,6 +16,7 @@ function invalidateCloudFront(cloudfront_1, distributionId_1) {
|
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
});
|
|
19
|
+
devkit_1.logger.info(`Invalidating CloudFront distribution ${distributionId} for paths: ${paths.join(', ')}`);
|
|
18
20
|
return yield cloudfront.send(command);
|
|
19
21
|
});
|
|
20
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invalidate-cloud-front.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/invalidate-cloud-front.function.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"invalidate-cloud-front.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/invalidate-cloud-front.function.ts"],"names":[],"mappings":";;AAGA,oDAeC;;AAlBD,kEAAyF;AACzF,uCAAoC;AAEpC,SAAsB,oBAAoB;iEAAC,UAA4B,EAAE,cAAsB,EAAE,QAAkB,CAAC,GAAG,CAAC;QACpH,MAAM,OAAO,GAAG,IAAI,6CAAyB,CAAC;YAC1C,cAAc,EAAE,cAAc;YAC9B,iBAAiB,EAAE;gBACf,eAAe,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE;gBAChC,KAAK,EAAE;oBACH,QAAQ,EAAE,KAAK,CAAC,MAAM;oBACtB,KAAK,EAAE,KAAK;iBACf;aACJ;SACJ,CAAC,CAAC;QAEH,eAAM,CAAC,IAAI,CAAC,wCAAwC,cAAc,eAAe,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAErG,OAAO,MAAM,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;CAAA"}
|