@gitbook/api 0.33.0 → 0.34.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.
@@ -14,5 +14,9 @@ export declare class GitBookAPIError extends Error {
14
14
  * The HTTP status code of the response.
15
15
  */
16
16
  readonly code: number;
17
+ /**
18
+ * Original error message from the API.
19
+ */
20
+ readonly errorMessage: string;
17
21
  constructor(errorMessage: string, response: Response);
18
22
  }
package/dist/index.cjs CHANGED
@@ -231,7 +231,7 @@ module.exports = __toCommonJS(src_exports);
231
231
 
232
232
  // package.json
233
233
  var name = "@gitbook/api";
234
- var version = "0.33.0";
234
+ var version = "0.34.0";
235
235
 
236
236
  // src/client.ts
237
237
  var import_event_iterator = __toESM(require_node(), 1);
@@ -2557,6 +2557,7 @@ var GitBookAPIError = class extends Error {
2557
2557
  this.name = "GitBookAPIError";
2558
2558
  this.response = response;
2559
2559
  this.code = response.status;
2560
+ this.errorMessage = errorMessage;
2560
2561
  }
2561
2562
  };
2562
2563
 
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.33.0";
175
+ var version = "0.34.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -2498,6 +2498,7 @@ var GitBookAPIError = class extends Error {
2498
2498
  this.name = "GitBookAPIError";
2499
2499
  this.response = response;
2500
2500
  this.code = response.status;
2501
+ this.errorMessage = errorMessage;
2501
2502
  }
2502
2503
  };
2503
2504
 
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.33.0",
7
+ "version": "0.34.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",