Skip to content

Commit a7d7ff9

Browse files
committed
Fix module export error
1 parent 79466eb commit a7d7ff9

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

lib/api-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ApiClient {
4343
method: request.method,
4444
headers: {'Accept': 'application/json',
4545
'Content-Type': 'application/json',
46-
'User-Agent': 'recombee-node-api-client/5.0.1'},
46+
'User-Agent': 'recombee-node-api-client/5.0.2'},
4747
timeout: request.timeout,
4848
agent: this.options.agent
4949
};

lib/index.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export module "recombee-api-client" {
1+
declare module "recombee-api-client" {
22
namespace requests {
33
/**
44
* Base class for all the requests
@@ -257,8 +257,6 @@ export module "recombee-api-client" {
257257
): string
258258
}
259259

260-
type Response = Item | PropertyInfo | UpdateMoreItemsResponse | DeleteMoreItemsResponse | Series | SeriesItem | User | DetailView | Purchase | Rating | CartAddition | Bookmark | ViewPortion | RecommendationResponse | SearchResponse | SearchSynonym | ListSearchSynonymsResponse | ListSegmentationsResponse | Segmentation;
261-
262260
export type Item = {
263261
itemId: string;
264262
values?: { [key: string]: unknown };

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "recombee-api-client",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "Node.js client (SDK) for easy use of the Recombee recommendation API",
55
"main": "index.js",
66
"types": "lib/index.d.ts",

0 commit comments

Comments
 (0)