Skip to content

Commit a68b96b

Browse files
committed
Update from shallot > @shallot/aws
1 parent d69b817 commit a68b96b

File tree

2 files changed

+6
-21
lines changed

2 files changed

+6
-21
lines changed

README.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Inspired by [Express.js](http://expressjs.com/) and [Middy.js](https://middy.js.
2929
Add shallot to your project
3030

3131
```
32-
npm install --save shallot
32+
npm install --save @shallot/aws
3333
```
3434

3535
TypeScript support is out of the box so you do not need an additional types module.
@@ -39,7 +39,7 @@ TypeScript support is out of the box so you do not need an additional types modu
3939
REST API Wrapper Example:
4040

4141
```javascript
42-
import { ShallotAWS } from 'shallot';
42+
import ShallotAWS from '@shallot/aws';
4343

4444
import { HTTPJSONBodyParser } from '@shallot/http-json-body-parser';
4545
import { HTTPCors } from '@shallot/http-cors';
@@ -49,7 +49,7 @@ const _handler = async (event, context) => {
4949
// Your handler code here
5050
};
5151

52-
export const handler = ShallotAWS.ShallotAWS(handler)
52+
export const handler = ShallotAWS(handler)
5353
.use(HTTPJSONBodyParser())
5454
.use(HTTPCors())
5555
.use(HTTPErrorHandler());
@@ -152,18 +152,3 @@ The request object passed to each middleware at runtime has the following proper
152152
__handledError, // If true, allows skipping of remaining onError middlewares
153153
}
154154
```
155-
156-
## Experimental Azure Functions Support
157-
158-
Accepting PR's from people more experienced with Azure if the current implementation
159-
does not cover all Azure Functions use cases.
160-
161-
```javascript
162-
import { ShallotAzure } from 'shallot';
163-
164-
const _handler = async (context, ...args) => {
165-
// Your handler code here
166-
};
167-
168-
export const handler = ShallotAzure(handler).use(MyAzureFunctionMiddleware());
169-
```

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "shallot",
3-
"version": "1.2.3",
4-
"description": "A robust middleware framework for Serverless REST APIs",
2+
"name": "@shallot/aws",
3+
"version": "1.0.0",
4+
"description": "A robust middleware framework for AWS Lambda",
55
"keywords": [
66
"middleware",
77
"aws",

0 commit comments

Comments
 (0)