@nsshunt/stsutils 1.5.5 → 1.5.9

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.
@@ -38,14 +38,14 @@ class AuthUtilsBrowser
38
38
  ,timeout: defaultTimeout
39
39
  });
40
40
  duration = (performance.now() - processStart).toFixed(4);
41
- if (publishDebug) debug(this.#GetDurationColour(duration)(`AuthUtils.LoginBrowser request duration: [${duration}]`));
41
+ if (publishDebug) debug(this.#GetDurationColour(duration)(`AuthUtilsBrowser.LoginBrowser request duration: [${duration}]`));
42
42
  accessToken = retVal.data.detail.token;
43
43
  return {
44
44
  accessToken: accessToken,
45
45
  duration: duration
46
46
  }
47
47
  } catch (error) {
48
- if (publishDebug) debug(`Error (AuthUtils:LoginBrowser): ${error}`.red);
48
+ if (publishDebug) debug(`Error (AuthUtilsBrowser:LoginBrowser): ${error}`.red);
49
49
  throw error;
50
50
  }
51
51
  };
@@ -71,14 +71,14 @@ class AuthUtilsBrowser
71
71
  ,withCredentials: true
72
72
  });
73
73
  duration = (performance.now() - processStart).toFixed(4);
74
- if (publishDebug) debug(this.#GetDurationColour(duration)(`AuthUtils.RefreshAuthTokenBrowser request duration: [${duration}]`));
74
+ if (publishDebug) debug(this.#GetDurationColour(duration)(`AuthUtilsBrowser.RefreshAuthTokenBrowser request duration: [${duration}]`));
75
75
  accessToken = retVal.data.detail.token;
76
76
  return {
77
77
  accessToken: accessToken,
78
78
  duration: duration
79
79
  }
80
80
  } catch (error) {
81
- if (publishDebug) debug(`Error (AuthUtils:RefreshAuthTokenBrowser): ${error}`.red);
81
+ if (publishDebug) debug(`Error (AuthUtilsBrowser:RefreshAuthTokenBrowser): ${error}`.red);
82
82
  throw error;
83
83
  }
84
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsshunt/stsutils",
3
- "version": "1.5.5",
3
+ "version": "1.5.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,14 +26,14 @@
26
26
  "@babel/eslint-parser": "^7.16.5",
27
27
  "@babel/plugin-proposal-class-properties": "^7.16.5",
28
28
  "@babel/plugin-proposal-private-methods": "^7.16.5",
29
- "eslint": "^8.4.1",
29
+ "eslint": "^8.5.0",
30
30
  "jest": "^27.4.5"
31
31
  },
32
32
  "dependencies": {
33
- "@nsshunt/stsconfig": "^1.4.0",
33
+ "@nsshunt/stsconfig": "^1.6.1",
34
34
  "colors": "^1.4.0",
35
35
  "debug": "^4.3.3",
36
- "express": "^4.17.1",
36
+ "express": "^4.17.2",
37
37
  "jsonwebtoken": "^8.5.1",
38
38
  "tough-cookie": "^4.0.0"
39
39
  }
package/stsoptionsbase.js CHANGED
@@ -2,7 +2,7 @@ class STSOptionsBase
2
2
  {
3
3
  #options = null;
4
4
 
5
- constructor(options)
5
+ constructor(options = null)
6
6
  {
7
7
  this.#options = options;
8
8
  }