@gitbook/api 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2109,6 +2109,7 @@ var GitBookAPI = class extends Api {
2109
2109
  }
2110
2110
  });
2111
2111
  this.endpoint = endpoint;
2112
+ this.authToken = authToken;
2112
2113
  this.setSecurityData({ authToken });
2113
2114
  }
2114
2115
  async createInstallationClient(integrationName, installationId) {
package/dist/index.d.ts CHANGED
@@ -6,7 +6,14 @@ export declare const GITBOOK_DEFAULT_ENDPOINT = "https://api.gitbook.com";
6
6
  export declare class GitBookAPI extends Api<{
7
7
  authToken?: string;
8
8
  }> {
9
- private endpoint;
9
+ /**
10
+ * Endpoint used by the API client.
11
+ */
12
+ readonly endpoint: string;
13
+ /**
14
+ * Authentication token used by the API client.
15
+ */
16
+ readonly authToken: string | undefined;
10
17
  constructor(options?: {
11
18
  /**
12
19
  * API endpoint to use.
package/dist/index.js CHANGED
@@ -2040,6 +2040,7 @@ var GitBookAPI = class extends Api {
2040
2040
  }
2041
2041
  });
2042
2042
  this.endpoint = endpoint;
2043
+ this.authToken = authToken;
2043
2044
  this.setSecurityData({ authToken });
2044
2045
  }
2045
2046
  async createInstallationClient(integrationName, installationId) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.23.0",
7
+ "version": "0.24.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",