dochub-sdk 0.1.270 → 0.1.271

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.
@@ -106,6 +106,20 @@ export interface IDocHubCommitBatch extends IDocHubProtocolRequestConfig {
106
106
  data: IDocHubCommitFile[];
107
107
  }
108
108
 
109
+ /**
110
+ * Ошибки порождаемые методом COMMIT
111
+ */
112
+ export class DocHubCommitError extends Error {
113
+ private errors_: Error[] = [];
114
+ constructor(description: string, errors: Error[]) {
115
+ super(description, { cause: errors });
116
+ this.errors_ = errors;
117
+ }
118
+ get errors(): Error[] {
119
+ return this.errors;
120
+ }
121
+ }
122
+
109
123
  /**
110
124
  * Структура коммита
111
125
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.270",
3
+ "version": "0.1.271",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",