Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

Commit

Permalink
fix: allow gramps() calls with no options
Browse files Browse the repository at this point in the history
- Remove rest/spread for `gramps()` args
- Add single options object with a default

close #81, close #84
  • Loading branch information
jlengstorf committed Mar 6, 2018
1 parent 24caea7 commit e01fc59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gramps.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ export function prepare({
};
}

export default function gramps(...args) {
const options = prepare(...args);
export default function gramps(config = {}) {
const options = prepare(config);

return req => ({
...options,
context: options.context(req),
Expand Down

0 comments on commit e01fc59

Please sign in to comment.