New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More β†’
Socket
Sign inDemoInstall
Socket

@alloyidentity/web-sdk

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alloyidentity/web-sdk - npm Package Compare versions

Comparing version 0.1.5 to 0.1.7

10

dist/index.es.js

@@ -484,3 +484,3 @@ function createCommonjsModule(fn, module) {

var init = function (_a) {
var key = _a.key, entityToken = _a.entityToken, externalEntityId = _a.externalEntityId, evaluationData = _a.evaluationData, production = _a.production, maxEvaluationAttempts = _a.maxEvaluationAttempts;
var key = _a.key, entityToken = _a.entityToken, externalEntityId = _a.externalEntityId, evaluationData = _a.evaluationData, production = _a.production, maxEvaluationAttempts = _a.maxEvaluationAttempts, documents = _a.documents, selfie = _a.selfie;
alloyInitParams.key = key;

@@ -499,2 +499,8 @@ if (entityToken) {

}
if (documents) {
alloyInitParams.documents = documents;
}
if (selfie) {
alloyInitParams.selfie = selfie;
}
iframeSrc = queryString.stringify(alloyInitParams) + "&" + (evaluationData && queryString.stringify(evaluationData));

@@ -520,3 +526,3 @@ window.addEventListener('message', function (event) {

if (!alloyHeadStyles) {
document.head.insertAdjacentHTML('beforeend', "<style id=\"alloy-iframe-style\">\n @keyframes fade {\n 0%, 40% { opacity: 0 }\n 80% { opacity: 1 }\n }\n @media (max-width: 767px) {\n .alloy-container {\n height: 100vh;\n width: 100vw;\n }\n }\n .alloy-iframe {\n animation: fade 1.5s linear;\n border: 0;\n opacity: 1;\n height: 100%;\n max-height: 100%;\n width: 100%;\n }\n @media (min-width: 768px) {\n .alloy-iframe {\n border-radius: 1rem;\n box-shadow: 0 10px 20px 0 rgba(63,83,92,0.3);\n left: 50%;\n max-height: 37.5rem;\n overflow: scroll;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 48rem;\n }\n }</style>");
document.head.insertAdjacentHTML('beforeend', "<style id=\"alloy-iframe-style\">\n @keyframes fade {\n 0%, 40% { opacity: 0 }\n 80% { opacity: 1 }\n }\n @media (max-width: 767px) {\n .alloy-container {\n height: 100vh;\n width: 100vw;\n }\n }\n .alloy-iframe {\n animation: fade 1.5s linear;\n border: 0;\n opacity: 1;\n height: 100%;\n max-height: 100%;\n width: 100%;\n }\n @media (min-width: 768px) {\n .alloy-iframe {\n border-radius: 1rem;\n box-shadow: 0 10px 20px 0 rgba(63,83,92,0.3);\n left: 50%;\n max-height: 37.5rem;\n overflow: scroll;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 50rem;\n }\n }</style>");
}

@@ -523,0 +529,0 @@ var container = document.getElementById(alloyId);

@@ -488,3 +488,3 @@ 'use strict';

var init = function (_a) {
var key = _a.key, entityToken = _a.entityToken, externalEntityId = _a.externalEntityId, evaluationData = _a.evaluationData, production = _a.production, maxEvaluationAttempts = _a.maxEvaluationAttempts;
var key = _a.key, entityToken = _a.entityToken, externalEntityId = _a.externalEntityId, evaluationData = _a.evaluationData, production = _a.production, maxEvaluationAttempts = _a.maxEvaluationAttempts, documents = _a.documents, selfie = _a.selfie;
alloyInitParams.key = key;

@@ -503,2 +503,8 @@ if (entityToken) {

}
if (documents) {
alloyInitParams.documents = documents;
}
if (selfie) {
alloyInitParams.selfie = selfie;
}
iframeSrc = queryString.stringify(alloyInitParams) + "&" + (evaluationData && queryString.stringify(evaluationData));

@@ -524,3 +530,3 @@ window.addEventListener('message', function (event) {

if (!alloyHeadStyles) {
document.head.insertAdjacentHTML('beforeend', "<style id=\"alloy-iframe-style\">\n @keyframes fade {\n 0%, 40% { opacity: 0 }\n 80% { opacity: 1 }\n }\n @media (max-width: 767px) {\n .alloy-container {\n height: 100vh;\n width: 100vw;\n }\n }\n .alloy-iframe {\n animation: fade 1.5s linear;\n border: 0;\n opacity: 1;\n height: 100%;\n max-height: 100%;\n width: 100%;\n }\n @media (min-width: 768px) {\n .alloy-iframe {\n border-radius: 1rem;\n box-shadow: 0 10px 20px 0 rgba(63,83,92,0.3);\n left: 50%;\n max-height: 37.5rem;\n overflow: scroll;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 48rem;\n }\n }</style>");
document.head.insertAdjacentHTML('beforeend', "<style id=\"alloy-iframe-style\">\n @keyframes fade {\n 0%, 40% { opacity: 0 }\n 80% { opacity: 1 }\n }\n @media (max-width: 767px) {\n .alloy-container {\n height: 100vh;\n width: 100vw;\n }\n }\n .alloy-iframe {\n animation: fade 1.5s linear;\n border: 0;\n opacity: 1;\n height: 100%;\n max-height: 100%;\n width: 100%;\n }\n @media (min-width: 768px) {\n .alloy-iframe {\n border-radius: 1rem;\n box-shadow: 0 10px 20px 0 rgba(63,83,92,0.3);\n left: 50%;\n max-height: 37.5rem;\n overflow: scroll;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 50rem;\n }\n }</style>");
}

@@ -527,0 +533,0 @@ var container = document.getElementById(alloyId);

12

package.json
{
"name": "@alloyidentity/web-sdk",
"version": "0.1.5",
"description": "Alloy Web SDK for Document Verification",
"version": "0.1.7",
"description": "Alloy Web Document SDK",
"license": "MIT",

@@ -22,2 +22,4 @@ "main": "dist/index.js",

"dotenv": "^8.2.0",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.4",
"query-string": "^6.11.1"

@@ -43,2 +45,3 @@ },

"devDependencies": {
"@babel/core": "^7.10.2",
"@commitlint/cli": "^8.3.5",

@@ -70,3 +73,3 @@ "@commitlint/config-conventional": "^8.3.4",

"release-it": "^13.3.0",
"rollup": "1.20.1",
"rollup": "^2.13.1",
"rollup-plugin-babel": "4.3.3",

@@ -98,3 +101,4 @@ "rollup-plugin-commonjs": "10.0.2",

},
"author": "Alloy",
"repository": "git@github.com:z1digitalstudio/alloy.git",
"author": "Z1 Digital Studio",
"keywords": [

@@ -101,0 +105,0 @@ "alloy"

@@ -16,2 +16,4 @@ # πŸ” Alloy SDK [![NPM](https://img.shields.io/npm/v/alloy.svg)](https://www.npmjs.com/package/alloy) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

maxEvaluationAttempts?: number // maximum attempts number for the final verification; set to 2 by default
documents?: DocumentType // Array of values. Can be 'license' or ['license'], 'passport' or ['passport'] or ['license', 'passport']. This last one will prompt the user to select between those two options. If not specified will default to 'license'.
selfie?: boolean // If set to `true`, it'll add a final step to the document process whereby the user is prompted to take a picture of themselves
evaluationData?: { // pass all the applicant data you have collected Alloy can compare it to the data on the document

@@ -26,3 +28,3 @@ nameFirst?: string;

addressCountryCode?: string;
birthDate?: string;
birthState?: string;
}

@@ -57,6 +59,6 @@

addressCity: 'Brooklyn',
addressDate: 'NY',
addressState: 'NY',
addressPostalCode: '+11221',
addressCountryCode: 'US',
birthDate: '1990-03-03',
birthState: '1990-03-03',
},

@@ -63,0 +65,0 @@ };

Sorry, the diff of this file is not supported yet

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