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

aws2js

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

aws2js - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## v0.6.5
* Enables node.js v0.6.10+ support since [#2636](https://github.com/joyent/node/issues/2636) is closed.
* Forces mime-magic v0.2.5 as dependency due to build issues of v0.2.4 with some npm versions.
* Makes the s3.putFileMultipart() to handle the partSize more elegant: optional parameter, defaults to 5242880 bytes, if invalid, it is forced as 5242880 bytes.
## v0.6.4

@@ -2,0 +7,0 @@ * s3.post() low level method for initiating / completing a multipart upload.

16

lib/aws.js

@@ -696,4 +696,10 @@ /* core modules */

config.putFileMultipart = function (path, file, acl, headers, partSize, callback) {
if (partSize < 5242880) {
throw new Error('The part size must be at least 5242880 bytes.');
if ( ! callback) {
callback = partSize;
partSize = 5242880;
} else {
partSize = Number(partSize);
if (partSize < 5242880 || isNaN(partSize)) {
partSize = 5242880;
}
}

@@ -784,2 +790,8 @@ file = p.resolve(file);

exports.load = function (service, accessKeyId, secretAccessKey, sessionToken) {
if (service == 's3') {
if (process.version == 'v0.6.9') { // npm doesn't like version ranges, the parser is FUBAR
throw new Error('FATAL: The S3 client is NOT supported under node.js v0.6.9.');
process.exit(1);
}
}
var clientTemplate = cfg.clients[service];

@@ -786,0 +798,0 @@ if ( ! clientTemplate) {

2

lib/internals.js

@@ -285,3 +285,3 @@ /* 3rd party module */

}
})
});
return;

@@ -288,0 +288,0 @@ }

{
"name": "aws2js",
"main": "./lib/aws.js",
"version": "0.6.4",
"version": "0.6.5",
"description": "AWS (Amazon Web Services) APIs client implementation for node.js",

@@ -9,6 +9,6 @@ "dependencies": {

"libxml-to-js": ">=0.3.9",
"mime-magic": ">=0.2.4"
"mime-magic": ">=0.2.5"
},
"engines": {
"node": ">=0.4.10 <=0.6.8"
"node": ">=0.4.10"
},

@@ -15,0 +15,0 @@ "homepage": "https://github.com/SaltwaterC/aws2js",

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