@go-avro/avro-js 0.0.79 → 0.0.80
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/client/core/fetch.js +3 -1
- package/dist/types/api/Task.d.ts +1 -0
- package/dist/types/error.d.ts +2 -1
- package/dist/types/error.js +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -60,14 +60,16 @@ AvroQueryClient.prototype._fetch = async function (method, path, body, cancelTok
|
|
|
60
60
|
return this._fetch(method, path, body, cancelToken, headers, isIdempotent, retryCount + 1);
|
|
61
61
|
}
|
|
62
62
|
let errorMessage = response.statusText;
|
|
63
|
+
let errorBody;
|
|
63
64
|
try {
|
|
64
65
|
const parsedError = await response.json();
|
|
66
|
+
errorBody = parsedError;
|
|
65
67
|
errorMessage = parsedError.message ?? parsedError.msg ?? errorMessage;
|
|
66
68
|
}
|
|
67
69
|
catch (e) {
|
|
68
70
|
console.error('Ignoring:', e);
|
|
69
71
|
}
|
|
70
|
-
throw new StandardError(response.status, errorMessage);
|
|
72
|
+
throw new StandardError(response.status, errorMessage, errorBody);
|
|
71
73
|
}
|
|
72
74
|
catch (error) {
|
|
73
75
|
if (error instanceof StandardError) {
|
package/dist/types/api/Task.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ declare module '../../types/api/Task' {
|
|
|
40
40
|
bill_mode: 'MONTH' | 'SERVICE' | 'NONE';
|
|
41
41
|
autobill: boolean;
|
|
42
42
|
price: number;
|
|
43
|
+
last_unrouted_reason: 'NOT_DUE' | 'DEPENDENCY_UNMET' | 'MISSING_SKILLS' | 'OVER_CAPACITY' | 'TRAVEL_TIME' | 'LOW_PRIORITY' | 'DID_NOT_FIT' | null;
|
|
43
44
|
services_remaining: number;
|
|
44
45
|
activate_on: number | null;
|
|
45
46
|
expire_on: number | null;
|
package/dist/types/error.d.ts
CHANGED
package/dist/types/error.js
CHANGED
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AVRO_JS_VERSION = "0.0.
|
|
1
|
+
export declare const AVRO_JS_VERSION = "0.0.80";
|
package/dist/version.js
CHANGED