Skip to content

Commit

Permalink
Task: Prepare for v5(alpha) release
Browse files Browse the repository at this point in the history
  • Loading branch information
nspragg committed Feb 13, 2019
1 parent eb83f83 commit 1bc8cba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ npm install sqs-consumer --save
## Usage

```js
const Consumer = require('sqs-consumer');
const { Consumer } = require('sqs-consumer');

const app = Consumer.create({
queueUrl: 'https://sqs.eu-west-1.amazonaws.com/account-id/queue-name',
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sqs-consumer",
"version": "4.2.0",
"version": "5.0.0",
"description": "Build SQS-based Node applications without the boilerplate",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion test/consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('Consumer', () => {

it('requires a queueUrl to be set', () => {
assert.throws(() => {
new Consumer({
Consumer.create({
region: 'some-region',
handleMessage
});
Expand Down

0 comments on commit 1bc8cba

Please sign in to comment.