@sisense/sdk-rest-client 1.17.0 → 1.17.1

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.
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  import { BaseAuthenticator } from './base-authenticator.js';
12
12
  import { appendHeaders } from './helpers.js';
13
+ import { TranslatableError } from './translation/translatable-error.js';
13
14
  export class WatAuthenticator extends BaseAuthenticator {
14
15
  constructor(url, wat) {
15
16
  super('wat');
@@ -40,7 +41,9 @@ export class WatAuthenticator extends BaseAuthenticator {
40
41
  }
41
42
  }
42
43
  catch (e) {
43
- // empty catch block
44
+ // rather than returning empty catch block
45
+ // throw an error to be caught by Sisense context provider
46
+ throw new TranslatableError('errors.tokenAuthFailed');
44
47
  }
45
48
  finally {
46
49
  this._resolve(false);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.17.0",
14
+ "version": "1.17.1",
15
15
  "type": "module",
16
16
  "exports": "./dist/index.js",
17
17
  "main": "./dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "author": "Sisense",
21
21
  "license": "SEE LICENSE IN LICENSE.md",
22
22
  "dependencies": {
23
- "@sisense/sdk-common": "^1.17.0",
23
+ "@sisense/sdk-common": "^1.17.1",
24
24
  "fetch-intercept": "^2.4.0"
25
25
  },
26
26
  "scripts": {