Skip to content

Commit 5fe3602

Browse files
committed
Export logIt as a courtesy ;)
1 parent 73ddb87 commit 5fe3602

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Set global options and start API server
9393
- instance() - returns new instance of module [useful for multiple backends or different global options]
9494
- sendData(res, data) - send response data to client
9595
- sendErr(res, error, code) - send error to client
96+
- logIt(error, logLevel) - invoke logger with error and logLevel
9697
- fourOhOne(res, err) - send 401 (unauthorized) error to client
9798
- fourOhFour(res, err) - send 404 (not found) error to client
9899
- genToken(payload) - generate JWT token

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scrud",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Super opinionated, minimalistic, PG centric API fabric",
55
"engines": {
66
"node": ">=6.0.0"

scrud.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ module.exports = {
102102
start,
103103
sendData,
104104
sendErr,
105+
logIt,
105106
fourOhOne,
106107
fourOhFour,
107108
genToken,

0 commit comments

Comments
 (0)