Skip to content

Commit

Permalink
Add TypeScript support
Browse files Browse the repository at this point in the history
Release 4.1.1
  • Loading branch information
vallpaper authored and OndraFiedler committed Jun 23, 2023
1 parent d062549 commit c3b2fc0
Show file tree
Hide file tree
Showing 22 changed files with 3,239 additions and 38 deletions.
4 changes: 2 additions & 2 deletions lib/api-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ApiClient {
url: url,
headers: {'Accept': 'application/json',
'Content-Type': 'application/json',
'User-Agent': 'recombee-node-api-client/4.1.0'},
'User-Agent': 'recombee-node-api-client/4.1.1'},
timeout: request.timeout,
agent: this.options.agent
};
Expand Down Expand Up @@ -122,7 +122,7 @@ class ApiClient {
}

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

Expand Down
Loading

0 comments on commit c3b2fc0

Please sign in to comment.