@obelisk/client
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -87,3 +87,3 @@ "use strict"; | ||
if (queryString !== null) { | ||
params += '&state=' + encodeURIComponent(btoa(queryString)); | ||
params += '&state=' + btoa(unescape(encodeURIComponent(queryString))); | ||
} | ||
@@ -111,3 +111,3 @@ params += '&nonce=' + encodeURIComponent(this.generateNonce()); | ||
const cred = { clientId, clientSecret }; | ||
sessionStorage.setItem(this.CRED_KEY, btoa(JSON.stringify(cred))); | ||
sessionStorage.setItem(this.CRED_KEY, btoa(unescape(encodeURIComponent(JSON.stringify(cred))))); | ||
} | ||
@@ -119,3 +119,3 @@ loadClientCredentials() { | ||
} | ||
return JSON.parse(atob(cred)); | ||
return JSON.parse(decodeURIComponent(escape(atob(cred)))); | ||
} | ||
@@ -401,3 +401,3 @@ /** | ||
if (history.pushState) { | ||
const newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + atob(hasState); | ||
const newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + decodeURIComponent(escape(atob(decodeURIComponent(hasState)))); | ||
window.history.pushState({ path: newurl }, '', newurl); | ||
@@ -404,0 +404,0 @@ } |
{ | ||
"name": "@obelisk/client", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "Typescript client to interact with Obelisk on a higher level than the regular ReST API calls.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108279