Skip to content

Commit d2d4536

Browse files
authored
Merge pull request dherault#249 from LoganArnett/docs/typo
fix typos
2 parents cdc2061 + 9e9104f commit d2d4536

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ All CLI options are optional:
7171
--stage -s The stage used to populate your templates. Default: the first stage found in your project.
7272
--region -r The region used to populate your templates. Default: the first region for the first stage found.
7373
--noTimeout -t Disables the timeout feature.
74-
--noEnvironment Turns of loading of your environment variables from serverless.yml. Allows the usage of tools such as PM2 or docker-compose.
75-
--dontPrintOutput Turns of logging of your lambda outputs in the terminal.
74+
--noEnvironment Turns off loading of your environment variables from serverless.yml. Allows the usage of tools such as PM2 or docker-compose.
75+
--dontPrintOutput Turns off logging of your lambda outputs in the terminal.
7676
--httpsProtocol -H To enable HTTPS, specify directory (relative to your cwd, typically your project dir) for both cert.pem and key.pem files.
7777
--skipCacheInvalidation -c Tells the plugin to skip require cache invalidation. A script reloading tool like Nodemon might then be needed.
7878
--corsAllowOrigin Used as default Access-Control-Allow-Origin header value for responses. Delimit multiple values with commas. Default: '*'
@@ -97,8 +97,8 @@ By default you can send your requests to `http://localhost:3000/`. Please note t
9797
- You'll need to restart the plugin if you modify your `serverless.yml` or any of the default velocity template files.
9898
- The event object passed to your λs has one extra key: `{ isOffline: true }`. Also, `process.env.IS_OFFLINE` is `true`.
9999
- When no Content-Type header is set on a request, API Gateway defaults to `application/json`, and so does the plugin.
100-
But if you send a `application/x-www-form-urlencoded` or a `multipart/form-data` body with a `application/json` (or no) Content-Type, API Gateway won't parse your data (you'll get the ugly raw as input) whereas the plugin will answer 400 (malformed JSON).
101-
Please consider explicitly setting your requests' Content-Type and using separates templates.
100+
But if you send an `application/x-www-form-urlencoded` or a `multipart/form-data` body with an `application/json` (or no) Content-Type, API Gateway won't parse your data (you'll get the ugly raw as input), whereas the plugin will answer 400 (malformed JSON).
101+
Please consider explicitly setting your requests' Content-Type and using separate templates.
102102

103103
## Usage with Babel
104104

@@ -252,7 +252,7 @@ Serverless offline plugin will respond to the overall framework settings and out
252252

253253
Interactive debugging is also possible for your project if you have installed the node-inspector module and chrome browser. You can then run the following command line inside your project's root.
254254

255-
Initial intallation:
255+
Initial installation:
256256
`npm install -g node-inspector`
257257

258258
For each debug run:

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ class Offline {
8989
shortcut: 't',
9090
},
9191
noEnvironment: {
92-
usage: 'Turns of loading of your environment variables from serverless.yml. Allows the usage of tools such as PM2 or docker-compose.',
92+
usage: 'Turns off loading of your environment variables from serverless.yml. Allows the usage of tools such as PM2 or docker-compose.',
9393
},
9494
dontPrintOutput: {
95-
usage: 'Turns of logging of your lambda outputs in the terminal.',
95+
usage: 'Turns off logging of your lambda outputs in the terminal.',
9696
},
9797
corsAllowOrigin: {
9898
usage: 'Used to build the Access-Control-Allow-Origin header for CORS support.',

0 commit comments

Comments
 (0)