You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/kindle.ts
+39-9Lines changed: 39 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -38,11 +38,21 @@ export type KindleConfiguration = {
38
38
cookies: KindleRequiredCookies,
39
39
clientOptions: TlsClientConfig
40
40
)=>HttpClient;
41
+
42
+
/**
43
+
* Base url of the kindle service.
44
+
* Amazon has different regional service endpoints, for example https://lesen.amazon.de/kindle-library (DACH region) or https://read.amazon.com/kindle-library (worldwide).
45
+
* Path and query parameters will be ignored.
46
+
*
47
+
* @default "https://read.amazon.com"
48
+
*/
49
+
baseUrl?: string;
41
50
};
42
51
43
52
exporttypeKindleOptions={
44
53
config: KindleConfiguration;
45
54
sessionId: string;
55
+
baseUrl: string;
46
56
};
47
57
48
58
exporttypeKindleFromCookieOptions={
@@ -51,13 +61,18 @@ export type KindleFromCookieOptions = {
0 commit comments