Skip to content

Commit c3b2fc0

Browse files
vallpaperOndraFiedler
authored andcommitted
Add TypeScript support
Release 4.1.1
1 parent d062549 commit c3b2fc0

22 files changed

+3239
-38
lines changed

Diff for: lib/api-client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ApiClient {
4545
url: url,
4646
headers: {'Accept': 'application/json',
4747
'Content-Type': 'application/json',
48-
'User-Agent': 'recombee-node-api-client/4.1.0'},
48+
'User-Agent': 'recombee-node-api-client/4.1.1'},
4949
timeout: request.timeout,
5050
agent: this.options.agent
5151
};
@@ -122,7 +122,7 @@ class ApiClient {
122122
}
123123

124124
//https://stackoverflow.com/questions/18251399/why-doesnt-encodeuricomponent-encode-single-quotes-apostrophes
125-
_rfc3986EncodeURIComponent (str) {
125+
_rfc3986EncodeURIComponent (str) {
126126
return encodeURIComponent(str).replace(/[!'()*]/g, escape);
127127
}
128128

0 commit comments

Comments
 (0)