Comparing version 0.5.2 to 0.5.3
@@ -0,1 +1,4 @@ | ||
## v0.5.3 | ||
* sqs.queue() helper for calling a specific SQS queue. | ||
## v0.5.2 | ||
@@ -2,0 +5,0 @@ * s3.del() allows calling it without calling s3.setBucket(). If you really want to use that pesky path style addressing. |
@@ -69,2 +69,18 @@ /* core modules */ | ||
/* in use by the query APIs */ | ||
if (config.prefix === 'sqs') { | ||
/** Sets the path to hit a SQS queue | ||
* Must be formatted as the full path | ||
* @param queue | ||
* @return config | ||
*/ | ||
config.queue = function (queue) { | ||
queue = String(queue); | ||
if( queue.match("\/[0-9]{12}\/.*\/") ){ | ||
config.path = queue; | ||
return config; | ||
} else { | ||
throw new Error('Invalid queue path: ' + queue); | ||
} | ||
}; | ||
} | ||
if (config.prefix != 's3') { | ||
@@ -71,0 +87,0 @@ /** |
{ | ||
"name": "aws2js", | ||
"main": "./lib/aws.js", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "AWS (Amazon Web Services) APIs client implementation for node.js", | ||
@@ -19,2 +19,8 @@ "dependencies": { | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Dan Tillberg", | ||
"url": "http://tillberg.us/" | ||
} | ||
], | ||
"repository": { | ||
@@ -21,0 +27,0 @@ "type": "git", |
@@ -32,1 +32,6 @@ ## About ![still maintained](http://stillmaintained.com/SaltwaterC/aws2js.png) | ||
* [Amazon S3](https://github.com/SaltwaterC/aws2js/wiki/S3-Client) (Simple Storage Service) | ||
## Contributors | ||
* [Dan Tillberg](https://github.com/tillberg) - deprecation of [query.call()](https://github.com/SaltwaterC/aws2js/wiki/query.call%28%29) in favor of [query.request()](https://github.com/SaltwaterC/aws2js/wiki/query.request%28%29) | ||
* [Andrew Paulin](https://github.com/ConstantineXVI) - [sqs.queue()](https://github.com/SaltwaterC/aws2js/wiki/sqs.queue%28%29) helper |
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
65672
1666
37