strava-v3
Advanced tools
Comparing version 2.0.9 to 2.0.10
@@ -129,3 +129,3 @@ | ||
exceeded(): boolean; | ||
fractionReached(): boolean; | ||
fractionReached(): number; | ||
} | ||
@@ -132,0 +132,0 @@ |
{ | ||
"name": "strava-v3", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"description": "Simple wrapper for strava v3 API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -323,3 +323,3 @@ | ||
* `strava.segments.listLeaderboard(args,done)` | ||
* `strava.segments.explore(args,done)` | ||
* `strava.segments.explore(args,done)` *Expects arg `bounds` as a comma separated string, for two points describing a rectangular boundary for the search: `"southwest corner latitutde, southwest corner longitude, northeast corner latitude, northeast corner longitude"`*. | ||
@@ -342,3 +342,3 @@ #### Segment Efforts | ||
With the exception of the OAuth calls, errors will returned that are | ||
Except for the OAuth calls, errors will returned that are | ||
`instanceof` `StatusCodeError` when the HTTP status code is not 2xx. In the | ||
@@ -362,2 +362,10 @@ Promise-based API, the promise will be rejected. An error of type | ||
The `StatusCodeError` object includes extra properties to help with debugging: | ||
- `name` is always `StatusCodeError` | ||
- `statusCode` contains the HTTP status code | ||
- `message` Contains the body of the response. | ||
- `options` Contains the `option` used in the request | ||
- `response` Contains the response object | ||
## Development | ||
@@ -364,0 +372,0 @@ |
139255
437