@@ -29,7 +29,7 @@ Inspired by [Express.js](http://expressjs.com/) and [Middy.js](https://middy.js.
2929Add shallot to your project
3030
3131```
32- npm install --save shallot
32+ npm install --save @ shallot/aws
3333```
3434
3535TypeScript 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
3939REST API Wrapper Example:
4040
4141``` javascript
42- import { ShallotAWS } from ' shallot' ;
42+ import ShallotAWS from ' @ shallot/aws ' ;
4343
4444import { HTTPJSONBodyParser } from ' @shallot/http-json-body-parser' ;
4545import { 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- ```
0 commit comments