New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

punch-aws

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

punch-aws - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

package.json
{
"name": "punch-aws",
"version": "0.0.6",
"version": "0.0.7",
"description": "Amazon AWS tools.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -40,3 +40,4 @@ var Promise = require('bluebird');

return new Promise((resolve, reject) => {
this.S3.upload(params).on('httpUploadProgress', () => {
this.S3.upload(params)
.on('httpUploadProgress', () => {
// Should call promise notify.

@@ -46,3 +47,3 @@ })

if (err) reject(err);
else resolve(data);
else resolve({location: data.Location, eTag: data.ETag});
});

@@ -57,2 +58,24 @@ })

/**
* Delete a file from S3 bucket.
* http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#deleteObject-property
* @param {{
* key: string,
* bucket: string
* }} config Config object
*/
delete(config) {
let params = {
Bucket: config.bucket,
Key: config.key
};
return new Promise((resolve, reject) => {
deleteObject(params, function(err, data) {
if (err) reject(err);
else resolve({message: 'Successfully deleted ' + config.key});
});
});
}
/**
* Download a file from S3 bucket as stream.

@@ -69,12 +92,5 @@ */

if (opt_pipeTarget) fileStream.pipe(opt_pipeTarget);
return fileStream;
resolve(fileStream);
});
}
/**
*
*/
uploadAsStream() {
// Go for it, Mark.
}
}

@@ -81,0 +97,0 @@

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