@digigov/auth
Advanced tools
Comparing version 0.0.1-dilosi-enhance.4 to 0.0.1-dilosi-enhance.8
@@ -5,3 +5,2 @@ import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
import { AuthContext } from './AuthProvider'; | ||
var isBrowser = typeof window !== 'undefined'; | ||
export function useAuth() { | ||
@@ -14,5 +13,3 @@ var _useContext = useContext(AuthContext), | ||
var loginPath = state.config && state.config.loginURL || '/login'; | ||
var location = isBrowser ? window.location : { | ||
pathname: '/' | ||
}; | ||
var location = window.location; | ||
@@ -19,0 +16,0 @@ function login(id, data) { |
@@ -1,2 +0,2 @@ | ||
/** @license Digigov v0.0.1-dilosi-enhance.4+a13220b | ||
/** @license Digigov v0.0.1-dilosi-enhance.8+0383b23 | ||
* | ||
@@ -10,3 +10,2 @@ * This source code is licensed under the MIT license found in the | ||
import { AuthContext } from './AuthProvider'; | ||
var isBrowser = typeof window !== 'undefined'; | ||
export function useAuth() { | ||
@@ -19,5 +18,3 @@ var _useContext = useContext(AuthContext), | ||
var loginPath = state.config && state.config.loginURL || '/login'; | ||
var location = isBrowser ? window.location : { | ||
pathname: '/' | ||
}; | ||
var location = window.location; | ||
@@ -24,0 +21,0 @@ function login(id, data) { |
@@ -1,2 +0,2 @@ | ||
/** @license Digigov v0.0.1-dilosi-enhance.4+a13220b | ||
/** @license Digigov v0.0.1-dilosi-enhance.8+0383b23 | ||
* | ||
@@ -63,3 +63,2 @@ * This source code is licensed under the MIT license found in the | ||
}); | ||
var isBrowser = typeof window !== 'undefined'; | ||
@@ -73,5 +72,3 @@ function useAuth() { | ||
var loginPath = state.config && state.config.loginURL || '/login'; | ||
var location = isBrowser ? window.location : { | ||
pathname: '/' | ||
}; | ||
var location = window.location; | ||
@@ -78,0 +75,0 @@ function login(id, data) { |
{ | ||
"name": "@digigov/auth", | ||
"version": "0.0.1-dilosi-enhance.4+a13220b", | ||
"version": "0.0.1-dilosi-enhance.8+0383b23", | ||
"description": "@digigov authentication client", | ||
@@ -20,5 +20,5 @@ "author": "GRNET Developers <devs@lists.grnet.gr>", | ||
}, | ||
"gitHead": "a13220b7d236ad3f0d8a5357ba949f5d03d9b805", | ||
"gitHead": "0383b23e59446fbf5a10521e3390c7080fd39538", | ||
"private": false, | ||
"typings": "./index.d.ts" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
85937
2546