Skip to content

Commit 9086623

Browse files
author
Emily C. McAfee
authored
Merge pull request #4 from mapbox/node6
upgrade to node6
2 parents 1d2cd74 + 1ef4238 commit 9086623

5 files changed

Lines changed: 2115 additions & 6 deletions

File tree

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 2.0.0
2+
3+
- Node 6 upgrade
4+
15
### 1.0.0
26

37
- Initial release of `get`, `post`, `put`, and `delete` methods

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
machine:
22
node:
3-
version: 4.4.3
3+
version: 6.11.1

lib/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ function updateUrl(address, offset) {
1818
const query = parsed.query;
1919
const qs = querystring.parse(query);
2020

21-
if (!qs.hasOwnProperty('offset')) qs.offset = offset;
22-
if (!qs.hasOwnProperty('total')) qs.total = true;
23-
if (!qs.hasOwnProperty('limit')) qs.limit = 100;
21+
if (!Object.hasOwnProperty.call(qs, 'offset')) qs.offset = offset;
22+
if (!Object.hasOwnProperty.call(qs, 'total')) qs.total = true;
23+
if (!Object.hasOwnProperty.call(qs, 'limit')) qs.limit = 100;
2424

2525
parsed.search = `?${querystring.stringify(qs)}`;
2626
const formatted = url.format(parsed);

0 commit comments

Comments
 (0)