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.0 to 0.6.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## v0.6.1
* The client loader creates a new object on every invocation. This makes possible working with multiple clients having different internal states (such as: API endpoints, SQS queue paths, etc).
* Forces dependencies that include bugfixes which affect aws2js.
## v0.6.0

@@ -2,0 +6,0 @@ * [BREAKS COMPAT] The automatic S3 path escaping implemented in v0.5.0 won't escape anymore the ? char. There's no proper technical solution for solving the ambiguities regarding this char, therefore, if it's part of the S3 file name / S3 file path, it has to be manually escaped. This situations happens due to the fact that this char is used for seding query params as well. This version enables the query params for all resources.

18

lib/aws.js

@@ -479,16 +479,20 @@ /* core modules */

* The AWS API client loader
* @param cl
* @param service
* @param accessKeyId
* @param secretAccessKey
*/
exports.load = function (cl, accessKeyId, secretAccessKey) {
var clients = cfg.clients;
if ( ! clients[cl]) {
exports.load = function (service, accessKeyId, secretAccessKey) {
var clientTemplate = cfg.clients[service];
if ( ! clientTemplate) {
throw new Error('Invalid AWS client');
}
cl = client(clients[cl]);
var clientConfig = {};
for (var key in clientTemplate) {
clientConfig[key] = clientTemplate[key];
}
var result = client(clientConfig);
if (accessKeyId && secretAccessKey) {
cl.setCredentials(accessKeyId, secretAccessKey);
result.setCredentials(accessKeyId, secretAccessKey);
}
return cl;
return result;
};
{
"name": "aws2js",
"main": "./lib/aws.js",
"version": "0.6.0",
"version": "0.6.1",
"description": "AWS (Amazon Web Services) APIs client implementation for node.js",
"dependencies": {
"libxmljs": ">=0.x",
"libxmljs": ">=0.5.0",
"libxml-to-js": ">=0.3.9",
"mime-magic": ">=0.2.2"
"mime-magic": ">=0.2.3"
},

@@ -23,2 +23,10 @@ "engines": {

"url": "http://tillberg.us/"
},
{
"name": "Andrew Paulin",
"url": "https://github.com/ConstantineXVI"
},
{
"name": "Dave Cleal",
"url": "https://github.com/dcleal"
}

@@ -25,0 +33,0 @@ ],

@@ -38,1 +38,2 @@ ## About ![still maintained](http://stillmaintained.com/SaltwaterC/aws2js.png)

* [Andrew Paulin](https://github.com/ConstantineXVI) - [sqs.setQueue()](https://github.com/SaltwaterC/aws2js/wiki/sqs.setQueue%28%29) helper
* [Dave Cleal](https://github.com/dcleal) - client loader creates a new object on invocation

@@ -1,2 +0,2 @@

## Requrements
## Requirements

@@ -3,0 +3,0 @@ * $AWS_ACCEESS_KEY_ID and $AWS_SECRET_ACCESS_KEY environment variables which target to proper accessKeyId and secretAccessKey credentials. These are used for all the tests, therefore if the credentials are from a IAM user, they must be permissive enough in order to succesfully run all the tests.

Sorry, the diff of this file is not supported yet

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