@equinor/fusion-framework-module-msal
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -6,2 +6,13 @@ # Change Log | ||
## 0.1.8 (2022-03-25) | ||
### Bug Fixes | ||
* **modules-msal:** change regex group selector ([ebaa118](https://github.com/equinor/fusion-framework/commit/ebaa11849303e68f67544f8db57727673f821744)) | ||
## [0.1.7](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-msal@0.1.6...@equinor/fusion-framework-module-msal@0.1.7) (2022-02-23) | ||
@@ -8,0 +19,0 @@ |
export const normalizeUri = (uri, home = window.location.origin) => { | ||
uri = uri.match(/^http[s]?/) ? uri : home + uri; | ||
const { origin, pathname } = new URL(uri); | ||
return origin + pathname.replace(/((?<=[/])[/]+)|\/$/, ''); | ||
return origin + pathname.replace(/([^:]\/)\/+/g, '$1'); | ||
}; | ||
@@ -6,0 +6,0 @@ export const compareOrigin = (a, b) => { |
{ | ||
"name": "@equinor/fusion-framework-module-msal", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "", | ||
@@ -36,3 +36,3 @@ "main": "./dist/esm/index.js", | ||
}, | ||
"gitHead": "cbb102f5162153624948cce8c45a5e608ce2feba" | ||
"gitHead": "02dea3f67a55fb9536ecb2d5826c51edfee231a9" | ||
} |
@@ -13,3 +13,3 @@ /** | ||
const { origin, pathname } = new URL(uri); | ||
return origin + pathname.replace(/((?<=[/])[/]+)|\/$/, ''); | ||
return origin + pathname.replace(/([^:]\/)\/+/g, '$1'); | ||
}; | ||
@@ -16,0 +16,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
136058