Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blackbaud/auth-client

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blackbaud/auth-client - npm Package Compare versions

Comparing version 1.8.2 to 1.9.0

1

bundles/auth-client.umd.js

@@ -443,2 +443,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

localNavItems: nav && nav.localNavItems,
localSearch: !!omnibarConfig.onSearch,
messageType: 'nav-ready',

@@ -445,0 +446,0 @@ services: nav && nav.services,

2

bundles/auth-client.umd.min.js

@@ -1,1 +0,1 @@

(function e(n,t){if(typeof exports==="object"&&typeof module==="object")module.exports=t();else if(typeof define==="function"&&define.amd)define([],t);else if(typeof exports==="object")exports["BBAuthClient"]=t();else n["BBAuthClient"]=t()})(this,function(){return function(e){var n={};function t(r){if(n[r]){return n[r].exports}var i=n[r]={i:r,l:false,exports:{}};e[r].call(i.exports,i,i.exports,t);i.l=true;return i.exports}t.m=e;t.c=n;t.i=function(e){return e};t.d=function(e,n,r){if(!t.o(e,n)){Object.defineProperty(e,n,{configurable:false,enumerable:true,get:r})}};t.n=function(e){var n=e&&e.__esModule?function n(){return e["default"]}:function n(){return e};t.d(n,"a",n);return n};t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)};t.p="";return t(t.s=4)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r="https://signin.blackbaud.com/signin/";function i(e){var n=[];for(var t in e){if(e.hasOwnProperty(t)){n.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]))}}return n.join("&")}var o=function(){function e(){}e.navigate=function(e){location.href=e};e.redirectToSignin=function(e){var n=r+"?redirectUrl="+encodeURIComponent(location.href);if(e){n+="&"+i(e)}this.navigate(n)};return e}();n.BBAuthNavigator=o},function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(6))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r="https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/csrf";var i=t(0);function o(e,n,t,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(i.readyState===4&&i.status===401){r({message:"The user is not logged in."})}else if(i.readyState===4&&i.status===200){t(i.responseText)}};i.open("POST",e,true);i.setRequestHeader(n.name,n.value);i.setRequestHeader("Accept","application/json");i.withCredentials=true;i.send()}function a(e,n){return new Promise(function(t,r){o(e,{name:"X-CSRF",value:n},function(e){var n=e?JSON.parse(e):undefined;t(n)},r)})}var u=function(){function e(){}e.request=function(e,n,t){return new Promise(function(o,u){a(r,"token_needed").then(function(n){return a(e,n["csrf_token"])}).then(o).catch(function(e){if(t){u(e)}else{i.BBAuthNavigator.redirectToSignin(n)}})})};return e}();n.BBCsrfXhr=u},function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(16));r(t(7));r(t(10));r(t(9));r(t(12));r(t(13));r(t(14))},function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(1));r(t(3))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(2);var i=function(){function e(){}e.getToken=function(e){return r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/oauth2/token",undefined,e)};return e}();n.BBAuthTokenIntegration=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(5);var i=function(){function e(){}e.getToken=function(n,t){if(e.mock){return Promise.resolve("mock_access_token_auth-client@blackbaud.com")}var i=(new Date).valueOf();if(!n&&e.lastToken&&e.expirationTime&&e.expirationTime-i>60*1e3){return Promise.resolve(e.lastToken)}if(!e.pendingLookupPromise){e.pendingLookupPromise=r.BBAuthTokenIntegration.getToken(t).then(function(n){e.expirationTime=(new Date).valueOf()+n["expires_in"]*1e3;e.lastToken=n["access_token"];e.pendingLookupPromise=null;return e.lastToken}).catch(function(n){e.pendingLookupPromise=null;throw n})}return e.pendingLookupPromise};return e}();i.mock=false;n.BBAuth=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}return e}();n.BBOmnibarConfig=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(1);var i=t(17);var o=t(15);var a=t(0);var u="sky-omnibar-iframe-expanded";var s="sky-omnibar-loading";var c;var f;var d;var l;var p;function m(){d=document.createElement("iframe");d.className="sky-omnibar-iframe "+s;d.src=E();var e=document.body;if(e.firstChild){e.insertBefore(d,e.firstChild)}else{e.appendChild(d)}}function v(){d.classList.remove(u)}function b(){f=document.createElement("style");f.innerText="\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: #4d5259;\n border-top: 5px solid #00b4f1;\n display: none;\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n ";document.head.appendChild(f)}function h(){c=document.createElement("div");c.className="sky-omnibar-placeholder "+s;document.body.appendChild(c)}function g(){d.classList.add(u)}function y(){i.BBAuthInterop.postOmnibarMessage(d,{href:document.location.href,messageType:"location-change"})}function B(e){if(l.onSearch){l.onSearch(e).then(function(e){i.BBAuthInterop.postOmnibarMessage(d,{messageType:"search-results",results:e})})}}function k(){r.BBAuth.getToken(true).then(function(e){i.BBAuthInterop.postOmnibarMessage(d,{messageType:"refresh-user",token:e})})}function _(e,n){r.BBAuth.getToken(false,n).then(function(n){o.BBOmnibarUserActivity.startTracking(k);i.BBAuthInterop.postOmnibarMessage(d,{messageType:"token",token:n,tokenRequestId:e})}).catch(function(n){i.BBAuthInterop.postOmnibarMessage(d,{messageType:"token-fail",reason:n,tokenRequestId:e})})}function O(){var e=window.BBHELP;if(e){e.HelpWidget.open()}}function I(){var e=history.pushState;var n=history.replaceState;function t(){var n=e.apply(history,arguments);y();return n}function r(){var e=n.apply(history,arguments);y();return e}history.pushState=t;history.replaceState=r}function T(e){if(!i.BBAuthInterop.messageIsFromOmnibar(e)){return}var n=e.data;var t=l.nav;switch(n.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(d,{messageType:"host-ready"});I();c.classList.remove(s);d.classList.remove(s);i.BBAuthInterop.postOmnibarMessage(d,{enableHelp:l.enableHelp,envId:l.envId,localNavItems:t&&t.localNavItems,messageType:"nav-ready",services:t&&t.services,svcId:l.svcId});y();p();break;case"expand":g();break;case"collapse":v();break;case"navigate-url":a.BBAuthNavigator.navigate(n.url);break;case"navigate":var r=n.navItem;if(!t||!t.beforeNavCallback||t.beforeNavCallback(r)!==false){a.BBAuthNavigator.navigate(r.url)}break;case"search":B(n.searchArgs);break;case"get-token":_(n.tokenRequestId,n.disableRedirect);break;case"help-open":O();break}}function E(){var e=l.url||"https://host.nxt.blackbaud.com/omnibar/";return e}var P=function(){function e(){}e.load=function(e){l=l=e;return new Promise(function(e){p=e;b();h();m();window.addEventListener("message",T)})};e.destroy=function(){document.head.removeChild(f);document.body.removeChild(c);document.body.removeChild(d);window.removeEventListener("message",T);l=undefined;f=undefined;c=undefined;d=undefined;p=undefined};return e}();n.BBOmnibarExperimental=P},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}return e}();n.BBOmnibarNavigationItem=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}return e}();n.BBOmnibarNavigation=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});function r(e){var n=e.split(".");var t=[];for(var r=0,i=n;r<i.length;r++){var o=i[r];var a=parseInt(o,10)||0;t.push(a)}return t}function i(e,n){var t=r(e);var i=r(n);for(var o=0;o<t.length;o++){if(o<i.length){if(i[o]>t[o]){return true}else if(i[o]<t[o]){return false}}}return true}var o=function(){function e(){}e.registerScript=function(e){return new Promise(function(n,t){var r=document.createElement("script");r.onload=n;r.onerror=t;r.src=e;document.body.appendChild(r)})};e.smartRegisterScript=function(n,t,r){if(r&&i(t,r)){return Promise.resolve()}return e.registerScript(n)};return e}();n.BBOmnibarScriptLoader=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}return e}();n.BBOmnibarSearchArgs=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}return e}();n.BBOmnibarSearchResultItem=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}return e}();n.BBOmnibarSearchResults=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(2);var i=t(0);var o;var a;var u;var s;var c;var f;var d;var l;var p;var m;function v(){return(new Date).getTime()}function b(e){if(e.clientX!==a||e.clientY!==u){a=e.clientX;u=e.clientY;g()}}function h(){r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/renew",{inactivity:1});c=v();f=false}function g(){s=v();if(f){h()}}function y(){document.addEventListener("keypress",g);document.addEventListener("mousemove",b)}function B(){h();d=setInterval(function(){if(v()-c>I.MIN_RENEWAL_AGE){f=true}},I.ACTIVITY_TIMER_INTERVAL)}function k(e){p=document.createElement("iframe");p.className="sky-omnibar-iframe-session-watcher";p.width="0";p.height="0";p.frameBorder="0";p.src=e;p.tabIndex=-1;document.body.appendChild(p)}function _(e){if(e.origin===I.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN&&typeof e.data==="string"){var n=void 0;try{n=JSON.parse(e.data)}catch(e){return}if(n.messageType==="session_change"){var t=n.message;var r=t&&t.sessionId;if(r){if(l&&r!==l){m()}l=r}else{i.BBAuthNavigator.redirectToSignin()}}}}function O(){window.addEventListener("message",_,false);k(I.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin))}var I=function(){function e(){}e.startTracking=function(e){if(!o){y();B();O();m=e;o=true}};e.stopTracking=function(){if(p){document.body.removeChild(p);p=undefined}window.removeEventListener("message",_,false);document.removeEventListener("keypress",g);document.removeEventListener("mousemove",b);if(d){clearInterval(d);d=undefined}o=undefined;a=undefined;u=undefined;s=undefined;c=undefined;f=undefined;l=undefined;m=undefined};return e}();I.ACTIVITY_TIMER_INTERVAL=1e3;I.ABOUT_TO_EXPIRE_PROMPT_TIMEFRAME=2*60*1e3;I.MAX_SESSION_AGE=30*60*1e3;I.MIN_RENEWAL_AGE=5*60*1e3;I.MIN_RENEWAL_RETRY=60*1e3;I.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com";n.BBOmnibarUserActivity=I},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(8);var i=t(11);var o=function(){function e(){}e.load=function(e){if(e&&e.experimental){return r.BBOmnibarExperimental.load(e)}return new Promise(function(n){var t=window.jQuery;var r=t&&t.fn&&t.fn.jquery;i.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",r).then(function(){return i.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")}).then(function(){return i.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")}).then(function(){document.body.classList.add("bb-omnibar-height-padding");var t=document.createElement("div");t.setAttribute("data-omnibar-el","");document.body.appendChild(t);e=e||{};e["z-index"]=1e3;e.afterLoad=n;BBAUTH.Omnibar.load(t,e)})})};return e}();n.BBOmnibar=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r="https://host.nxt.blackbaud.com";var i=function(){function e(){}e.postOmnibarMessage=function(e,n){n.source="auth-client";e.contentWindow.postMessage(n,r)};e.messageIsFromOmnibar=function(e){if(e.origin===r){var n=e.data;return!!n&&n.source==="skyux-spa-omnibar"}return false};return e}();n.BBAuthInterop=i}])});
(function e(n,t){if(typeof exports==="object"&&typeof module==="object")module.exports=t();else if(typeof define==="function"&&define.amd)define([],t);else if(typeof exports==="object")exports["BBAuthClient"]=t();else n["BBAuthClient"]=t()})(this,function(){return function(e){var n={};function t(r){if(n[r]){return n[r].exports}var i=n[r]={i:r,l:false,exports:{}};e[r].call(i.exports,i,i.exports,t);i.l=true;return i.exports}t.m=e;t.c=n;t.i=function(e){return e};t.d=function(e,n,r){if(!t.o(e,n)){Object.defineProperty(e,n,{configurable:false,enumerable:true,get:r})}};t.n=function(e){var n=e&&e.__esModule?function n(){return e["default"]}:function n(){return e};t.d(n,"a",n);return n};t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)};t.p="";return t(t.s=4)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r="https://signin.blackbaud.com/signin/";function i(e){var n=[];for(var t in e){if(e.hasOwnProperty(t)){n.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]))}}return n.join("&")}var o=function(){function e(){}e.navigate=function(e){location.href=e};e.redirectToSignin=function(e){var n=r+"?redirectUrl="+encodeURIComponent(location.href);if(e){n+="&"+i(e)}this.navigate(n)};return e}();n.BBAuthNavigator=o},function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(6))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r="https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/csrf";var i=t(0);function o(e,n,t,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(i.readyState===4&&i.status===401){r({message:"The user is not logged in."})}else if(i.readyState===4&&i.status===200){t(i.responseText)}};i.open("POST",e,true);i.setRequestHeader(n.name,n.value);i.setRequestHeader("Accept","application/json");i.withCredentials=true;i.send()}function a(e,n){return new Promise(function(t,r){o(e,{name:"X-CSRF",value:n},function(e){var n=e?JSON.parse(e):undefined;t(n)},r)})}var u=function(){function e(){}e.request=function(e,n,t){return new Promise(function(o,u){a(r,"token_needed").then(function(n){return a(e,n["csrf_token"])}).then(o).catch(function(e){if(t){u(e)}else{i.BBAuthNavigator.redirectToSignin(n)}})})};return e}();n.BBCsrfXhr=u},function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(16));r(t(7));r(t(10));r(t(9));r(t(12));r(t(13));r(t(14))},function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(1));r(t(3))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(2);var i=function(){function e(){}e.getToken=function(e){return r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/oauth2/token",undefined,e)};return e}();n.BBAuthTokenIntegration=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(5);var i=function(){function e(){}e.getToken=function(n,t){if(e.mock){return Promise.resolve("mock_access_token_auth-client@blackbaud.com")}var i=(new Date).valueOf();if(!n&&e.lastToken&&e.expirationTime&&e.expirationTime-i>60*1e3){return Promise.resolve(e.lastToken)}if(!e.pendingLookupPromise){e.pendingLookupPromise=r.BBAuthTokenIntegration.getToken(t).then(function(n){e.expirationTime=(new Date).valueOf()+n["expires_in"]*1e3;e.lastToken=n["access_token"];e.pendingLookupPromise=null;return e.lastToken}).catch(function(n){e.pendingLookupPromise=null;throw n})}return e.pendingLookupPromise};return e}();i.mock=false;n.BBAuth=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}return e}();n.BBOmnibarConfig=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(1);var i=t(17);var o=t(15);var a=t(0);var u="sky-omnibar-iframe-expanded";var s="sky-omnibar-loading";var c;var f;var d;var l;var p;function m(){d=document.createElement("iframe");d.className="sky-omnibar-iframe "+s;d.src=E();var e=document.body;if(e.firstChild){e.insertBefore(d,e.firstChild)}else{e.appendChild(d)}}function v(){d.classList.remove(u)}function b(){f=document.createElement("style");f.innerText="\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: #4d5259;\n border-top: 5px solid #00b4f1;\n display: none;\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n ";document.head.appendChild(f)}function h(){c=document.createElement("div");c.className="sky-omnibar-placeholder "+s;document.body.appendChild(c)}function g(){d.classList.add(u)}function y(){i.BBAuthInterop.postOmnibarMessage(d,{href:document.location.href,messageType:"location-change"})}function B(e){if(l.onSearch){l.onSearch(e).then(function(e){i.BBAuthInterop.postOmnibarMessage(d,{messageType:"search-results",results:e})})}}function k(){r.BBAuth.getToken(true).then(function(e){i.BBAuthInterop.postOmnibarMessage(d,{messageType:"refresh-user",token:e})})}function _(e,n){r.BBAuth.getToken(false,n).then(function(n){o.BBOmnibarUserActivity.startTracking(k);i.BBAuthInterop.postOmnibarMessage(d,{messageType:"token",token:n,tokenRequestId:e})}).catch(function(n){i.BBAuthInterop.postOmnibarMessage(d,{messageType:"token-fail",reason:n,tokenRequestId:e})})}function O(){var e=window.BBHELP;if(e){e.HelpWidget.open()}}function I(){var e=history.pushState;var n=history.replaceState;function t(){var n=e.apply(history,arguments);y();return n}function r(){var e=n.apply(history,arguments);y();return e}history.pushState=t;history.replaceState=r}function T(e){if(!i.BBAuthInterop.messageIsFromOmnibar(e)){return}var n=e.data;var t=l.nav;switch(n.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(d,{messageType:"host-ready"});I();c.classList.remove(s);d.classList.remove(s);i.BBAuthInterop.postOmnibarMessage(d,{enableHelp:l.enableHelp,envId:l.envId,localNavItems:t&&t.localNavItems,localSearch:!!l.onSearch,messageType:"nav-ready",services:t&&t.services,svcId:l.svcId});y();p();break;case"expand":g();break;case"collapse":v();break;case"navigate-url":a.BBAuthNavigator.navigate(n.url);break;case"navigate":var r=n.navItem;if(!t||!t.beforeNavCallback||t.beforeNavCallback(r)!==false){a.BBAuthNavigator.navigate(r.url)}break;case"search":B(n.searchArgs);break;case"get-token":_(n.tokenRequestId,n.disableRedirect);break;case"help-open":O();break}}function E(){var e=l.url||"https://host.nxt.blackbaud.com/omnibar/";return e}var P=function(){function e(){}e.load=function(e){l=l=e;return new Promise(function(e){p=e;b();h();m();window.addEventListener("message",T)})};e.destroy=function(){document.head.removeChild(f);document.body.removeChild(c);document.body.removeChild(d);window.removeEventListener("message",T);l=undefined;f=undefined;c=undefined;d=undefined;p=undefined};return e}();n.BBOmnibarExperimental=P},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}return e}();n.BBOmnibarNavigationItem=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}return e}();n.BBOmnibarNavigation=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});function r(e){var n=e.split(".");var t=[];for(var r=0,i=n;r<i.length;r++){var o=i[r];var a=parseInt(o,10)||0;t.push(a)}return t}function i(e,n){var t=r(e);var i=r(n);for(var o=0;o<t.length;o++){if(o<i.length){if(i[o]>t[o]){return true}else if(i[o]<t[o]){return false}}}return true}var o=function(){function e(){}e.registerScript=function(e){return new Promise(function(n,t){var r=document.createElement("script");r.onload=n;r.onerror=t;r.src=e;document.body.appendChild(r)})};e.smartRegisterScript=function(n,t,r){if(r&&i(t,r)){return Promise.resolve()}return e.registerScript(n)};return e}();n.BBOmnibarScriptLoader=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}return e}();n.BBOmnibarSearchArgs=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}return e}();n.BBOmnibarSearchResultItem=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}return e}();n.BBOmnibarSearchResults=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(2);var i=t(0);var o;var a;var u;var s;var c;var f;var d;var l;var p;var m;function v(){return(new Date).getTime()}function b(e){if(e.clientX!==a||e.clientY!==u){a=e.clientX;u=e.clientY;g()}}function h(){r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/renew",{inactivity:1});c=v();f=false}function g(){s=v();if(f){h()}}function y(){document.addEventListener("keypress",g);document.addEventListener("mousemove",b)}function B(){h();d=setInterval(function(){if(v()-c>I.MIN_RENEWAL_AGE){f=true}},I.ACTIVITY_TIMER_INTERVAL)}function k(e){p=document.createElement("iframe");p.className="sky-omnibar-iframe-session-watcher";p.width="0";p.height="0";p.frameBorder="0";p.src=e;p.tabIndex=-1;document.body.appendChild(p)}function _(e){if(e.origin===I.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN&&typeof e.data==="string"){var n=void 0;try{n=JSON.parse(e.data)}catch(e){return}if(n.messageType==="session_change"){var t=n.message;var r=t&&t.sessionId;if(r){if(l&&r!==l){m()}l=r}else{i.BBAuthNavigator.redirectToSignin()}}}}function O(){window.addEventListener("message",_,false);k(I.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin))}var I=function(){function e(){}e.startTracking=function(e){if(!o){y();B();O();m=e;o=true}};e.stopTracking=function(){if(p){document.body.removeChild(p);p=undefined}window.removeEventListener("message",_,false);document.removeEventListener("keypress",g);document.removeEventListener("mousemove",b);if(d){clearInterval(d);d=undefined}o=undefined;a=undefined;u=undefined;s=undefined;c=undefined;f=undefined;l=undefined;m=undefined};return e}();I.ACTIVITY_TIMER_INTERVAL=1e3;I.ABOUT_TO_EXPIRE_PROMPT_TIMEFRAME=2*60*1e3;I.MAX_SESSION_AGE=30*60*1e3;I.MIN_RENEWAL_AGE=5*60*1e3;I.MIN_RENEWAL_RETRY=60*1e3;I.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com";n.BBOmnibarUserActivity=I},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(8);var i=t(11);var o=function(){function e(){}e.load=function(e){if(e&&e.experimental){return r.BBOmnibarExperimental.load(e)}return new Promise(function(n){var t=window.jQuery;var r=t&&t.fn&&t.fn.jquery;i.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",r).then(function(){return i.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")}).then(function(){return i.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")}).then(function(){document.body.classList.add("bb-omnibar-height-padding");var t=document.createElement("div");t.setAttribute("data-omnibar-el","");document.body.appendChild(t);e=e||{};e["z-index"]=1e3;e.afterLoad=n;BBAUTH.Omnibar.load(t,e)})})};return e}();n.BBOmnibar=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r="https://host.nxt.blackbaud.com";var i=function(){function e(){}e.postOmnibarMessage=function(e,n){n.source="auth-client";e.contentWindow.postMessage(n,r)};e.messageIsFromOmnibar=function(e){if(e.origin===r){var n=e.data;return!!n&&n.source==="skyux-spa-omnibar"}return false};return e}();n.BBAuthInterop=i}])});

@@ -0,1 +1,5 @@

# 1.9.0 (2017-06-30)
- Added `localSearch` property to the `nav-ready` event when the consumer has defined a local search callback. (#35)
# 1.8.2 (2017-06-16)

@@ -2,0 +6,0 @@

@@ -1,1 +0,1 @@

{"name":"@blackbaud/auth-client","version":"1.8.2","description":"Provides methods for obtaining an authentication token from the Blackbaud authentication service.","main":"dist/bundles/auth-client.umd.js","module":"index.js","scripts":{"ci":"npm run test:ci && npm run build","test":"npm run lint && npm run test:unit","test:ci":"npm run test:unit:ci","test:unit":"npm run test:unit:base -- config/karma/local.karma.conf.js","test:unit:ci":"npm run test:unit:base -- config/karma/ci.karma.conf.js","test:unit:base":"node --max-old-space-size=4096 node_modules/karma/bin/karma start","pretest":"npm run lint","compress":"uglifyjs dist/bundles/auth-client.umd.js -m -o dist/bundles/auth-client.umd.min.js","build":"rimraf dist && tsc && webpack --config config/webpack/webpack.prod.config.js && npm run compress","watch":"npm run test:unit -- --auto-watch --no-single-run","lint":"tslint 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/blackbaud/auth-client.git"},"author":"Blackbaud, Inc.","license":"MIT","bugs":{"url":"https://github.com/blackbaud/auth-client/issues"},"homepage":"https://github.com/blackbaud/auth-client#readme","devDependencies":{"@types/core-js":"0.9.41","@types/jasmine":"2.5.47","@types/jasmine-ajax":"3.1.36","@types/webpack":"2.2.15","core-js":"2.4.1","fs-extra":"3.0.1","istanbul":"0.4.5","istanbul-instrumenter-loader":"0.1.0","jasmine":"2.6.0","jasmine-ajax":"3.3.1","karma":"1.7.0","karma-browserstack-launcher":"1.2.0","karma-chrome-launcher":"2.1.1","karma-coverage":"1.1.1","karma-firefox-launcher":"1.0.1","karma-jasmine":"1.1.0","karma-mocha-reporter":"2.2.3","karma-sourcemap-loader":"0.3.7","karma-webpack":"2.0.3","raw-loader":"0.5.1","remap-istanbul":"0.9.5","rimraf":"2.6.1","source-map-inline-loader":"github:blackbaud-bobbyearl/source-map-inline-loader","ts-loader":"2.0.3","tslint":"5.2.0","tslint-loader":"3.5.3","typescript":"2.3.2","uglify-js":"3.0.15","webpack":"2.5.1"}}
{"name":"@blackbaud/auth-client","version":"1.9.0","description":"Provides methods for obtaining an authentication token from the Blackbaud authentication service.","main":"dist/bundles/auth-client.umd.js","module":"index.js","scripts":{"ci":"npm run test:ci && npm run build","test":"npm run lint && npm run test:unit","test:ci":"npm run test:unit:ci","test:unit":"npm run test:unit:base -- config/karma/local.karma.conf.js","test:unit:ci":"npm run test:unit:base -- config/karma/ci.karma.conf.js","test:unit:base":"node --max-old-space-size=4096 node_modules/karma/bin/karma start","pretest":"npm run lint","compress":"uglifyjs dist/bundles/auth-client.umd.js -m -o dist/bundles/auth-client.umd.min.js","build":"rimraf dist && tsc && webpack --config config/webpack/webpack.prod.config.js && npm run compress","watch":"npm run test:unit -- --auto-watch --no-single-run","lint":"tslint 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/blackbaud/auth-client.git"},"author":"Blackbaud, Inc.","license":"MIT","bugs":{"url":"https://github.com/blackbaud/auth-client/issues"},"homepage":"https://github.com/blackbaud/auth-client#readme","devDependencies":{"@types/core-js":"0.9.41","@types/jasmine":"2.5.47","@types/jasmine-ajax":"3.1.36","@types/webpack":"2.2.15","core-js":"2.4.1","fs-extra":"3.0.1","istanbul":"0.4.5","istanbul-instrumenter-loader":"0.1.0","jasmine":"2.6.0","jasmine-ajax":"3.3.1","karma":"1.7.0","karma-browserstack-launcher":"1.2.0","karma-chrome-launcher":"2.1.1","karma-coverage":"1.1.1","karma-firefox-launcher":"1.0.1","karma-jasmine":"1.1.0","karma-mocha-reporter":"2.2.3","karma-sourcemap-loader":"0.3.7","karma-webpack":"2.0.3","raw-loader":"0.5.1","remap-istanbul":"0.9.5","rimraf":"2.6.1","source-map-inline-loader":"github:blackbaud-bobbyearl/source-map-inline-loader","ts-loader":"2.0.3","tslint":"5.2.0","tslint-loader":"3.5.3","typescript":"2.3.2","uglify-js":"3.0.15","webpack":"2.5.1"}}

@@ -133,2 +133,3 @@ "use strict";

localNavItems: nav && nav.localNavItems,
localSearch: !!omnibarConfig.onSearch,
messageType: 'nav-ready',

@@ -135,0 +136,0 @@ services: nav && nav.services,

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc