Skip to content

Commit e4288d3

Browse files
jpreynatSamyPesse
authored andcommitted
Fix passing options to request on client methods (#15)
1 parent 88a71bf commit e4288d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/client.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,16 @@ class APIClient {
166166
* HTTP methods
167167
*/
168168
get(uri, params, opts) {
169-
return this.request('GET', uri, params);
169+
return this.request('GET', uri, params, opts);
170170
}
171171
post(uri, params, opts) {
172-
return this.request('POST', uri, params);
172+
return this.request('POST', uri, params, opts);
173173
}
174174
patch(uri, params, opts) {
175-
return this.request('PATCH', uri, params);
175+
return this.request('PATCH', uri, params, opts);
176176
}
177177
del(uri, params, opts) {
178-
return this.request('DELETE', uri, params);
178+
return this.request('DELETE', uri, params, opts);
179179
}
180180
}
181181

0 commit comments

Comments
 (0)