qpp-style 9.45.7 → 9.45.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qpp-style",
3
- "version": "9.45.7",
3
+ "version": "9.45.8",
4
4
  "description": "Shared style guide across the QPP program.",
5
5
  "main": "dist/index.js",
6
6
  "homepage": "https://cmsgov.github.io/qpp-style",
package/session/logout.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { parse } from "cookie";
2
2
 
3
3
  export const deleteImpersonatedUser = (cookies) => {
4
- if (cookies.hasOwnProperty("qpp_impersonated_user")) {
4
+ if ("qpp_impersonated_user" in cookies) {
5
5
  document.cookie =
6
6
  "qpp_impersonated_user=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";
7
7
  }
8
8
 
9
- if (cookies.hasOwnProperty("qpp_impersonated_type")) {
9
+ if ("qpp_impersonated_type" in cookies) {
10
10
  document.cookie =
11
11
  "qpp_impersonated_type=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";
12
12
  }
@@ -43,7 +43,7 @@ const LogoutSession = async (_window) => {
43
43
  let cookies = parse(_window.document.cookie);
44
44
  let logoutDestination = "/logout-confirmation";
45
45
 
46
- if (cookies.hasOwnProperty("qpp_auth_token")) {
46
+ if ("qpp_auth_token" in cookies) {
47
47
  let onSuccess = () => {
48
48
  // redirect to login/logged out screen
49
49
  deleteImpersonatedUser(cookies);