Huge News!Announcing our $40M Series B led by Abstract Ventures.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.1 to 0.6.2

tests/sdb-us-east-1.js

4

CHANGELOG.md

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

## v0.6.2
* Added Amazon SimpleDB support.
* Added sa-east-1 region (Brazil, Sao Paulo) support.
## v0.6.1

@@ -2,0 +6,0 @@ * 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).

14

lib/aws.js

@@ -59,6 +59,12 @@ /* core modules */

config.setRegion = function (region) {
if ( region in cfg.regions) {
config = tools.merge(config, {
host: config.prefix + '.' + region + cfg.suffix
});
if (region in cfg.regions) {
if (config.prefix === 'sdb' && region === 'us-east-1') {
config = tools.merge(config, {
host: config.prefix + cfg.suffix
});
} else {
config = tools.merge(config, {
host: config.prefix + '.' + region + cfg.suffix
});
}
} else {

@@ -65,0 +71,0 @@ throw new Error('Invalid region: ' + region);

@@ -14,3 +14,4 @@ /**

'ap-southeast-1': 'ap-southeast-1', // Singapore
'ap-northeast-1': 'ap-northeast-1' // Tokyo
'ap-northeast-1': 'ap-northeast-1', // Tokyo,
'sa-east-1': 'sa-east-1' // Sao Paulo
};

@@ -135,3 +136,12 @@ /**

}
},
sdb: {
prefix: 'sdb',
path: '/',
query: {
Version: '2009-04-15',
SignatureMethod: 'HmacSHA256',
SignatureVersion: '2'
}
}
};
{
"name": "aws2js",
"main": "./lib/aws.js",
"version": "0.6.1",
"version": "0.6.2",
"description": "AWS (Amazon Web Services) APIs client implementation for node.js",

@@ -39,3 +39,3 @@ "dependencies": {

"rds", "ses", "elb", "s3", "iam", "auto scaling", "cloudwatch",
"elasticache", "sqs"]
"elasticache", "sqs", "simpledb", "sdb"]
}

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

* [Amazon CloudFormation](https://github.com/SaltwaterC/aws2js/wiki/CloudFormation-Client)
* [Amazon SDB](https://github.com/SaltwaterC/aws2js/wiki/SDB-Client) (SimpleDB)
* [Amazon S3](https://github.com/SaltwaterC/aws2js/wiki/S3-Client) (Simple Storage Service)

@@ -34,0 +35,0 @@

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