Comparing version 0.6.1 to 0.6.2
@@ -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). |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72099
46
1836
40
55