Skip to content

Commit

Permalink
docs(readme): some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
MathRobin committed Oct 6, 2023
1 parent d299c81 commit ae94e9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@ You don't have to remember status code values. Just the name which is more "mena
- insufficientStorage
- partialContent
- imATeapot
. You ? Me no. And don't want/need to.

You ? Me no. And don't want/need to.

### Stop polluting your business logic

Moreover, into vanilla AWS lambda way, you need to return a string as body. But just stringify your result is dangerous,
if you have a dynamic result, maybe is null, maybe is undefined, maybe you already have a string.


F*ck! I don't want to care of it in my business logic! `lambda-returns` manages it for you.

## Cons
Expand All @@ -97,8 +99,7 @@ There is only one known pitfall. We can't technically export "continue" status d
JavaScript.

```javascript
export const continue
= {}; // or whatever;
export const continue = {}; // or whatever;
```

This is just forbidden. If you knwon any way to go over this problem, tell me.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lambda-returns",
"version": "3.0.1",
"version": "3.0.2",
"main": "index.cjs",
"module": "index.js",
"types": "./index.d.ts",
Expand Down

0 comments on commit ae94e9b

Please sign in to comment.