Skip to content

Commit

Permalink
Upgrade to 1.8.14 - fix issue #226
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Murin committed Nov 21, 2024
1 parent 42b9f6d commit 3775233
Show file tree
Hide file tree
Showing 25 changed files with 33 additions and 34 deletions.
2 changes: 1 addition & 1 deletion docs/Auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ <h5>Returns:</h5>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/AzureAuth.html
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ <h5>Parameters:</h5>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/BaseError.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ <h5>Parameters:</h5>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/Client.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ <h4 class="name" id="Client"><span class="type-signature"></span>new Client<span
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/TokenCache.AccessTokenItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ <h3 class="subsection-title">Extends</h3>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/TokenCache.BaseTokenItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ <h5>Parameters:</h5>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/TokenCache.RefreshTokenItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ <h3 class="subsection-title">Extends</h3>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/TokenCache.Scope.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ <h5>Parameters:</h5>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
4 changes: 2 additions & 2 deletions docs/TokenCache.TokenCache.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h4 class="name" id="TokenCache"><span class="type-signature"></span>new TokenCa

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="token_cache.js.html">token/cache.js</a>, <a href="token_cache.js.html#line9">line 9</a>
<a href="token_cache.js.html">token/cache.js</a>, <a href="token_cache.js.html#line7">line 7</a>
</li></ul></dd>


Expand Down Expand Up @@ -295,7 +295,7 @@ <h5>Parameters:</h5>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/WebAuth.html
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ <h5>Returns:</h5>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/auth_index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ <h1 class="page-title">auth/index.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
4 changes: 2 additions & 2 deletions docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h4 class="name" id="getAllUserTokenKeys"><span class="type-signature">(async) <

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="token_cache.js.html">token/cache.js</a>, <a href="token_cache.js.html#line132">line 132</a>
<a href="token_cache.js.html">token/cache.js</a>, <a href="token_cache.js.html#line131">line 131</a>
</li></ul></dd>


Expand Down Expand Up @@ -1090,7 +1090,7 @@ <h5>Parameters:</h5>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ <h2>License</h2>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h1 class="page-title">index.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/networking_index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ <h1 class="page-title">networking/index.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/token_accessTokenItem.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1 class="page-title">token/accessTokenItem.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/token_baseTokenItem.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h1 class="page-title">token/baseTokenItem.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
15 changes: 7 additions & 8 deletions docs/token_cache.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ <h1 class="page-title">token/cache.js</h1>
import RefreshTokenItem from './refreshTokenItem'
import BaseTokenItem from './baseTokenItem'

let _instance = null

/**
* Token persistent cache
*
Expand All @@ -61,24 +59,25 @@ <h1 class="page-title">token/cache.js</h1>
* @memberof TokenCache
*/
export default class TokenCache {
static _instance
constructor(input = {}) {
// for better testability check params first
const params = validate({
parameters: {
clientId: { required: true },
persistent: { required: false },
persistent: { required: false, type: 'boolean' },
}
}, input)

if (_instance) {
return _instance
if (TokenCache._instance) {
return TokenCache._instance
}

this.cache = {}
this.clientId = params.clientId
this.persistent = params.persistent || true // by default enabled
this.persistent = params.persistent != null ? params.persistent : true // by default enabled

_instance = this
TokenCache._instance = this
}

async saveAccessToken(tokenResponse) {
Expand Down Expand Up @@ -200,7 +199,7 @@ <h1 class="page-title">token/cache.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/token_refreshTokenItem.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h1 class="page-title">token/refreshTokenItem.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/token_scope.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ <h1 class="page-title">token/scope.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/utils_baseError.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h1 class="page-title">utils/baseError.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/utils_logger.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1 class="page-title">utils/logger.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/utils_validate.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h1 class="page-title">utils/validate.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/webauth_index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ <h1 class="page-title">webauth/index.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Tue Oct 15 2024 12:20:05 GMT+0200 (Central European Summer Time) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 21 2024 15:50:06 GMT+0100 (Central European Standard Time) using the Minami theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-azure-auth",
"version": "1.8.13",
"version": "1.8.14",
"description": "An React Native module implements Azure AD V2.0 authentication flow",
"main": "src/index.js",
"types": "types/index.d.ts",
Expand Down

0 comments on commit 3775233

Please sign in to comment.