gitlab-auth
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -24,3 +24,3 @@ "use strict"; | ||
const cleanup = (uri) => { | ||
window.history.replaceState({}, window.document.title, (uri) ? uri : window.location.href.replace(/\?.*/, "")); | ||
window.history.replaceState({}, window.document.title, uri ? uri : window.location.href.replace(/\?.*/, "")); | ||
}; | ||
@@ -43,6 +43,3 @@ // Gitlab Auth context with gitlab api setup | ||
return (react_1.default.createElement(react_1.default.Fragment, null, | ||
react_1.default.createElement(GitlabAuthContext_1.GitlabAuthContext.Provider, { value: gitlabApi }, | ||
react_1.default.createElement(react_1.default.Fragment, null, | ||
react_1.default.createElement("a", { href: process.env.PUBLIC_URL + "/logout", onClick: () => auth.signOut(), title: "cancel sign-in" }, "Log Me Out!"), | ||
props.children)))); | ||
react_1.default.createElement(GitlabAuthContext_1.GitlabAuthContext.Provider, { value: gitlabApi }, props.children))); | ||
}; | ||
@@ -49,0 +46,0 @@ const GitlabAuth = (_a) => { |
export * from './GitlabAuth'; | ||
export * from './GitlabAuthContext'; | ||
export * from './useGitlab'; | ||
export { useAuth } from "oidc-react"; | ||
export { Gitlab } from "@gitbeaker/browser"; |
@@ -13,7 +13,9 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Gitlab = void 0; | ||
exports.Gitlab = exports.useAuth = void 0; | ||
__exportStar(require("./GitlabAuth"), exports); | ||
__exportStar(require("./GitlabAuthContext"), exports); | ||
__exportStar(require("./useGitlab"), exports); | ||
var oidc_react_1 = require("oidc-react"); | ||
Object.defineProperty(exports, "useAuth", { enumerable: true, get: function () { return oidc_react_1.useAuth; } }); | ||
var browser_1 = require("@gitbeaker/browser"); | ||
Object.defineProperty(exports, "Gitlab", { enumerable: true, get: function () { return browser_1.Gitlab; } }); |
{ | ||
"name": "gitlab-auth", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "GitLab authorized API application Context", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
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
21597
13
1