@skypath-io/web-sdk 0.5.16 → 0.5.18

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.
@@ -6,11 +6,21 @@ export namespace ERROR_MESSAGES {
6
6
  let FAILED_TO_GET_AUTH_TOKEN: string;
7
7
  }
8
8
  export class SkyPathError extends Error {
9
+ /**
10
+ * @param {Object} options
11
+ * @param {Error} [options.error]
12
+ * @param {Object} [options.context]
13
+ * @param {Error} [options.context.error]
14
+ */
9
15
  constructor({ error, context }: {
10
- error: any;
11
- context?: {};
16
+ error?: Error;
17
+ context?: {
18
+ error?: Error;
19
+ };
12
20
  });
13
- context: {};
21
+ context: {
22
+ error?: Error;
23
+ };
14
24
  }
15
25
  export class ValidationError extends SkyPathError {
16
26
  constructor(message: any, context?: {});
@@ -0,0 +1,2 @@
1
+ export function serializeContext(context: any): any;
2
+ export function extractResponseDetails(response: Response): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skypath-io/web-sdk",
3
- "version": "0.5.16",
3
+ "version": "0.5.18",
4
4
  "type": "module",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.es.js",