Skip to content

Commit

Permalink
node6
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymcafee committed Apr 8, 2018
1 parent 1d2cd74 commit 1ef4238
Show file tree
Hide file tree
Showing 5 changed files with 2,115 additions and 6 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 2.0.0

- Node 6 upgrade

### 1.0.0

- Initial release of `get`, `post`, `put`, and `delete` methods
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
machine:
node:
version: 4.4.3
version: 6.11.1
6 changes: 3 additions & 3 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ function updateUrl(address, offset) {
const query = parsed.query;
const qs = querystring.parse(query);

if (!qs.hasOwnProperty('offset')) qs.offset = offset;
if (!qs.hasOwnProperty('total')) qs.total = true;
if (!qs.hasOwnProperty('limit')) qs.limit = 100;
if (!Object.hasOwnProperty.call(qs, 'offset')) qs.offset = offset;
if (!Object.hasOwnProperty.call(qs, 'total')) qs.total = true;
if (!Object.hasOwnProperty.call(qs, 'limit')) qs.limit = 100;

parsed.search = `?${querystring.stringify(qs)}`;
const formatted = url.format(parsed);
Expand Down
Loading

0 comments on commit 1ef4238

Please sign in to comment.