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

gulp-awspublish

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-awspublish - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

6

History.md

@@ -0,1 +1,7 @@

0.0.20 / 2014-07-18
==================
* dont use file.clone when gzip file to conserve file custom ppties
0.0.19 / 2014-07-15

@@ -2,0 +8,0 @@ ==================

4

lib/index.js

@@ -92,3 +92,3 @@ var Stream = require('stream'),

file = initFile(file.clone());
initFile(file);

@@ -242,3 +242,3 @@ // add content-type header

file = initFile(file);
initFile(file);

@@ -245,0 +245,0 @@ // calculate etag

{
"name": "gulp-awspublish",
"version": "0.0.19",
"version": "0.0.20",
"description": "gulp plugin to publish files to amazon s3",

@@ -5,0 +5,0 @@ "keywords": [

@@ -15,3 +15,3 @@ /* global describe, before, it */

this.timeout(5000);
this.timeout(10000);

@@ -81,6 +81,7 @@ var credentials = JSON.parse(fs.readFileSync('aws-credentials.json', 'utf8')),

var gzip = awspublish.gzip({ ext: '.gz' });
var contents = new Buffer('hello world');
var srcFile = new gutil.File({
path: '/test/hello.txt',
base: '/',
contents: new Buffer('hello world')
contents: contents
});

@@ -93,4 +94,3 @@

expect(files).to.have.length(1);
expect(files[0]).to.not.eq(srcFile);
expect(files[0].path).to.eq(srcFile.path + '.gz');
expect(files[0].path).to.eq('/test/hello.txt.gz');
expect(files[0].s3.path).to.eq('test/hello.txt.gz');

@@ -102,3 +102,3 @@ expect(files[0].s3.headers['Content-Encoding']).to.eq('gzip');

var newFileContent = buf.toString('utf8', 0, buf.length),
srcFileContent = srcFile.contents.toString('utf8', 0, srcFile.contents.length);
srcFileContent = contents.toString('utf8', 0, contents.length);
expect(newFileContent).to.eq(srcFileContent);

@@ -105,0 +105,0 @@ done();

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