Skip to content

Commit 1b905bd

Browse files
committed
Update readme, default turbo to false
1 parent f916e6f commit 1b905bd

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,12 @@ Set global options and start API server
148148
- **getIp** - *optional* - should client IP be added to request object
149149
- type: `Boolean`
150150
- default: `false`
151+
- **turbo** - *optional* - if turbo is installed as peer-dependency use it
152+
- type: `Boolean`
153+
- default: `false`
151154
- **authTrans** - *optional* - Synchronous function that transforms the passed in auth object before proceeding with processing
152155
- type: `Function` - receives (Object[auth / JWT payload)])
153-
- default: `1e6`
156+
- default: `null`
154157
- returns: `Object` - updated auth object
155158

156159
# helper functions (used internally but exported as a courtesy)

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ let allowOrigins = {}
6464
let gzipThreshold = 1000
6565
let getIp
6666
let setScrudHeader
67-
let turbo
67+
let turbo = false
6868

6969
// local helpers
7070
const logIt = (e, level = 'fatal') => {

0 commit comments

Comments
 (0)