@alexbainter/s3-sync
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -14,2 +14,3 @@ 'use strict'; | ||
aliasHtmlPages = true, | ||
mutableHtml = true, | ||
} = {}) => | ||
@@ -23,2 +24,3 @@ push({ | ||
aliasHtmlPages, | ||
mutableHtml, | ||
}).then((uploadedFiles) => { | ||
@@ -29,4 +31,9 @@ if (!cloudFront) { | ||
const mutableFilenameSet = new Set(mutableFilenames); | ||
const invalidationPaths = uploadedFiles.filter((filename) => | ||
mutableFilenameSet.has(filename) | ||
const uploadedFileSet = new Set(uploadedFiles); | ||
const invalidationPaths = uploadedFiles.filter( | ||
(filename) => | ||
mutableFilenameSet.has(filename) || | ||
(mutableHtml && | ||
(filename.endsWith('.html') || | ||
(aliasHtmlPages && uploadedFileSet.has(`${filename}.html`)))) | ||
); | ||
@@ -33,0 +40,0 @@ return invalidateCache({ cloudFront, dryRun, paths: invalidationPaths }); |
{ | ||
"name": "@alexbainter/s3-sync", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Transfer files to and from S3", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27044
718