Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alexbainter/s3-sync

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alexbainter/s3-sync - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

11

lib/deploy/deploy.js

@@ -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 });

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc