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

@checkr/web-sdk

Package Overview
Dependencies
Maintainers
8
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@checkr/web-sdk - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

8

dist/web-sdk.es.js

@@ -291,3 +291,3 @@ var __defProp = Object.defineProperty;

loadEmbedDefinitions().then((embedDefinitions) => {
const embedName = this.constructor.name;
const embedName = this.embedName();
const component = embedDefinitions[embedName](this.props);

@@ -326,2 +326,5 @@ component.render(containerSelector);

}
embedName() {
return "NewInvitation";
}
}

@@ -332,2 +335,5 @@ class ReportsOverview extends Embed {

}
embedName() {
return "ReportsOverview";
}
}

@@ -334,0 +340,0 @@ var index = {

4

dist/web-sdk.umd.js

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

var O=Object.defineProperty,N=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var E=(o,i,r)=>i in o?O(o,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[i]=r,x=(o,i)=>{for(var r in i||(i={}))I.call(i,r)&&E(o,r,i[r]);if(k)for(var r of k(i))U.call(i,r)&&E(o,r,i[r]);return o},$=(o,i)=>N(o,B(i));(function(o,i){typeof exports=="object"&&typeof module!="undefined"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(o=typeof globalThis!="undefined"?globalThis:o||self,i(o.Checkr={}))})(this,function(o){"use strict";var i=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'],r=9,S=27;function a(e){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=e,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}a.prototype.create=function(){return this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=u('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEach(function(e){e.addEventListener("click",this._show)}.bind(this)),this._closers=u("[data-a11y-dialog-hide]",this.$el).concat(u('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach(function(e){e.addEventListener("click",this._hide)}.bind(this)),this._fire("create"),this},a.prototype.show=function(e){return this.shown?this:(this._previouslyFocused=document.activeElement,this.$el.removeAttribute("aria-hidden"),this.shown=!0,y(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",e),this)},a.prototype.hide=function(e){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",e),this):this},a.prototype.destroy=function(){return this.hide(),this._openers.forEach(function(e){e.removeEventListener("click",this._show)}.bind(this)),this._closers.forEach(function(e){e.removeEventListener("click",this._hide)}.bind(this)),this._fire("destroy"),this._listeners={},this},a.prototype.on=function(e,t){return typeof this._listeners[e]=="undefined"&&(this._listeners[e]=[]),this._listeners[e].push(t),this},a.prototype.off=function(e,t){var n=(this._listeners[e]||[]).indexOf(t);return n>-1&&this._listeners[e].splice(n,1),this},a.prototype._fire=function(e,t){var n=this._listeners[e]||[],s=new CustomEvent(e,{detail:t});this.$el.dispatchEvent(s),n.forEach(function(c){c(this.$el,t)}.bind(this))},a.prototype._bindKeypress=function(e){!this.$el.contains(document.activeElement)||(this.shown&&e.which===S&&this.$el.getAttribute("role")!=="alertdialog"&&(e.preventDefault(),this.hide(e)),this.shown&&e.which===r&&T(this.$el,e))},a.prototype._maintainFocus=function(e){this.shown&&!e.target.closest('[aria-modal="true"]')&&!e.target.closest("[data-a11y-dialog-ignore-focus-trap]")&&y(this.$el)};function A(e){return Array.prototype.slice.call(e)}function u(e,t){return A((t||document).querySelectorAll(e))}function y(e){var t=e.querySelector("[autofocus]")||e;t.focus()}function D(e){return u(i.join(","),e).filter(function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)})}function T(e,t){var n=D(e),s=n.indexOf(document.activeElement);t.shiftKey&&s===0?(n[n.length-1].focus(),t.preventDefault()):!t.shiftKey&&s===n.length-1&&(n[0].focus(),t.preventDefault())}function p(){u("[data-a11y-dialog]").forEach(function(e){new a(e)})}typeof document!="undefined"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16));var C=`.checkr-dialog-container {
var q=Object.defineProperty,M=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var E=(o,i,r)=>i in o?q(o,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[i]=r,x=(o,i)=>{for(var r in i||(i={}))B.call(i,r)&&E(o,r,i[r]);if(k)for(var r of k(i))U.call(i,r)&&E(o,r,i[r]);return o},$=(o,i)=>M(o,I(i));(function(o,i){typeof exports=="object"&&typeof module!="undefined"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(o=typeof globalThis!="undefined"?globalThis:o||self,i(o.Checkr={}))})(this,function(o){"use strict";var i=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'],r=9,S=27;function a(e){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=e,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}a.prototype.create=function(){return this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=u('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEach(function(e){e.addEventListener("click",this._show)}.bind(this)),this._closers=u("[data-a11y-dialog-hide]",this.$el).concat(u('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach(function(e){e.addEventListener("click",this._hide)}.bind(this)),this._fire("create"),this},a.prototype.show=function(e){return this.shown?this:(this._previouslyFocused=document.activeElement,this.$el.removeAttribute("aria-hidden"),this.shown=!0,y(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",e),this)},a.prototype.hide=function(e){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",e),this):this},a.prototype.destroy=function(){return this.hide(),this._openers.forEach(function(e){e.removeEventListener("click",this._show)}.bind(this)),this._closers.forEach(function(e){e.removeEventListener("click",this._hide)}.bind(this)),this._fire("destroy"),this._listeners={},this},a.prototype.on=function(e,t){return typeof this._listeners[e]=="undefined"&&(this._listeners[e]=[]),this._listeners[e].push(t),this},a.prototype.off=function(e,t){var n=(this._listeners[e]||[]).indexOf(t);return n>-1&&this._listeners[e].splice(n,1),this},a.prototype._fire=function(e,t){var n=this._listeners[e]||[],s=new CustomEvent(e,{detail:t});this.$el.dispatchEvent(s),n.forEach(function(c){c(this.$el,t)}.bind(this))},a.prototype._bindKeypress=function(e){!this.$el.contains(document.activeElement)||(this.shown&&e.which===S&&this.$el.getAttribute("role")!=="alertdialog"&&(e.preventDefault(),this.hide(e)),this.shown&&e.which===r&&T(this.$el,e))},a.prototype._maintainFocus=function(e){this.shown&&!e.target.closest('[aria-modal="true"]')&&!e.target.closest("[data-a11y-dialog-ignore-focus-trap]")&&y(this.$el)};function A(e){return Array.prototype.slice.call(e)}function u(e,t){return A((t||document).querySelectorAll(e))}function y(e){var t=e.querySelector("[autofocus]")||e;t.focus()}function D(e){return u(i.join(","),e).filter(function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)})}function T(e,t){var n=D(e),s=n.indexOf(document.activeElement);t.shiftKey&&s===0?(n[n.length-1].focus(),t.preventDefault()):!t.shiftKey&&s===n.length-1&&(n[0].focus(),t.preventDefault())}function b(){u("[data-a11y-dialog]").forEach(function(e){new a(e)})}typeof document!="undefined"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",b):window.requestAnimationFrame?window.requestAnimationFrame(b):window.setTimeout(b,16));var C=`.checkr-dialog-container {
position: fixed;

@@ -86,2 +86,2 @@ top: 0;

</div>
`;async function K(e){const t=await fetch(e,{method:"POST"});try{return(await t.json()).token}catch{return null}}let j="https://web-sdk-services.checkr.com";function g(){const e=window.devWebSDKServicesURL?window.devWebSDKServicesURL:j,t=20,n=300,s=(c,d,h=0)=>{window.CheckrEmbedDefinitions&&c(),h>=t?d():setTimeout(()=>{s(c,d,h+1)},n)};return new Promise((c,d)=>{const h=document.head||document.body||document.documentElement,b=h.querySelector(`script[src*="${e}"]`),f=()=>{c(window.CheckrEmbedDefinitions)},m=()=>{d(new Error(`Failed to load script: ${e}`))};if(b){s(f,m);return}const l=document.createElement("script"),_=()=>{l.onerror=null,l.onload=null};l.onerror=()=>{_(),m()},l.onload=()=>{_(),f()},l.async=!0,l.src=`${e}/lib/checkr-embed-definitions.js`,h.appendChild(l)})}function v(e){const t=()=>K(e.sessionTokenPath);return $(x({},e),{onSessionTokenNeed:t})}class w{constructor(t){this.props=v(t)}render(t){g().then(n=>{const s=this.constructor.name;n[s](this.props).render(t)})}modal(t={width:"600px"}){F(n=>{this.render(n)},t)}static useReact(t,n){return s=>{const c=this.name,[d,h]=t.useState(null),b=v(s);if(t.useEffect(()=>{g().then(f=>{h(f)})},[]),d){const m=d[c].driver("react",{React:t,ReactDOM:n});return t.createElement(m,b,null)}else return t.createElement("div",null)}}}class P extends w{constructor(t={}){super(t)}}class q extends w{constructor(t={}){super(t)}}var M={NewInvitation:P,ReportsOverview:q};o.Embeds=M,Object.defineProperty(o,"__esModule",{value:!0}),o[Symbol.toStringTag]="Module"});
`;async function K(e){const t=await fetch(e,{method:"POST"});try{return(await t.json()).token}catch{return null}}let N="https://web-sdk-services.checkr.com";function g(){const e=window.devWebSDKServicesURL?window.devWebSDKServicesURL:N,t=20,n=300,s=(c,d,h=0)=>{window.CheckrEmbedDefinitions&&c(),h>=t?d():setTimeout(()=>{s(c,d,h+1)},n)};return new Promise((c,d)=>{const h=document.head||document.body||document.documentElement,p=h.querySelector(`script[src*="${e}"]`),f=()=>{c(window.CheckrEmbedDefinitions)},m=()=>{d(new Error(`Failed to load script: ${e}`))};if(p){s(f,m);return}const l=document.createElement("script"),_=()=>{l.onerror=null,l.onload=null};l.onerror=()=>{_(),m()},l.onload=()=>{_(),f()},l.async=!0,l.src=`${e}/lib/checkr-embed-definitions.js`,h.appendChild(l)})}function v(e){const t=()=>K(e.sessionTokenPath);return $(x({},e),{onSessionTokenNeed:t})}class w{constructor(t){this.props=v(t)}render(t){g().then(n=>{const s=this.embedName();n[s](this.props).render(t)})}modal(t={width:"600px"}){F(n=>{this.render(n)},t)}static useReact(t,n){return s=>{const c=this.name,[d,h]=t.useState(null),p=v(s);if(t.useEffect(()=>{g().then(f=>{h(f)})},[]),d){const m=d[c].driver("react",{React:t,ReactDOM:n});return t.createElement(m,p,null)}else return t.createElement("div",null)}}}class j extends w{constructor(t={}){super(t)}embedName(){return"NewInvitation"}}class O extends w{constructor(t={}){super(t)}embedName(){return"ReportsOverview"}}var P={NewInvitation:j,ReportsOverview:O};o.Embeds=P,Object.defineProperty(o,"__esModule",{value:!0}),o[Symbol.toStringTag]="Module"});
{
"name": "@checkr/web-sdk",
"version": "0.0.20",
"version": "0.0.21",
"files": [

@@ -5,0 +5,0 @@ "dist"

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