@aptly-as/types 2.8.1 → 2.8.3

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/core/signage.d.ts CHANGED
@@ -14,6 +14,7 @@ export type AptlySignageSigner = AptlySignageSignerSchema<string, string>;
14
14
  export interface AptlySignageSignerSchema<ID, DATE> {
15
15
  _id: ID;
16
16
  ref: AptlySignageSignerRef;
17
+ user?: ID;
17
18
  signerId: string;
18
19
  signedAt?: DATE;
19
20
  }
package/error/error.js CHANGED
@@ -9,7 +9,7 @@ export class AptlyError extends Error {
9
9
  if (!body.link) {
10
10
  body.link = response.url;
11
11
  }
12
- if (body.name === AptlyError.name) {
12
+ if (body.name === 'AptlyResponseError') {
13
13
  return new AptlyError(body);
14
14
  }
15
15
  }
@@ -17,7 +17,8 @@ export class AptlyError extends Error {
17
17
  id: 'unknown',
18
18
  status: response.status,
19
19
  message: response.statusText,
20
- detail: `Failed to fetch from url: ${response.url}`,
20
+ detail: await response.text(),
21
+ link: response.url,
21
22
  });
22
23
  }
23
24
  constructor(data, error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "2.8.1",
3
+ "version": "2.8.3",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",