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

@algoan/connect

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@algoan/connect - npm Package Compare versions

Comparing version 5.4.0 to 6.0.0

2

dist/algoan-connect.js

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

/*! Algoan Connect v5.4.0 */
/*! Algoan Connect v6.0.0 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AlgoanConnect=t():e.AlgoanConnect=t()}(self,(function(){return(()=>{"use strict";var e={614:function(e,t,n){var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.addWidget=void 0;var r=n(593),a=n(712),s=n(416),i=function(e){var t=e.iframeUrl;return null!=t?t:"https://connect.algoan.com"},c=function(e,t){window.addEventListener("message",(function(n){if(n.origin===i(e))switch(n.data.eventName){case a.Events.WIDGET_STARTING:!function(e,t){var n=o(o({},e),{onSuccessUrl:e.onSuccessUrl||window.location.href,onCancelUrl:e.onCancelUrl||window.location.href,onErrorUrl:e.onErrorUrl||window.location.href});s.postMessage(t,{type:s.MessageTypes.CONFIG,payload:n})}(e,t);break;case a.Events.AGGREGATION_START:t.style.width="100%",t.style.height="100%";break;default:return}}))};t.addWidget=function(e){!function(e){if("object"!=typeof e)throw new Error("Invalid config provided.")}(e);var t=r.getConnectElement();if(null===t)throw new Error("No container element found. Are you sure you created a div with id `algoan-connect`?");var n=function(e){var t=document.createElement("iframe");return t.src=i(e)+"?apiKey="+e.apiKey,t.style.border="none",t.style.width="100%",t.style.height=e.quickStart?"100%":"130px",t.style.transition="all 0.2s ease-out",t}(e);c(e,n),t.appendChild(n)}},712:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Events=void 0,function(e){e.WIDGET_STARTING="widget_starting",e.AGGREGATION_START="aggregation_start",e.AGGREGATION_SUCCESS="aggregation_success",e.AGGREGATION_CANCEL="aggregation_cancel",e.AGGREGATION_ERROR="aggregation_error",e.AUTHENTICATION_ERROR="authentication_error"}(t.Events||(t.Events={}))},607:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(614),t),r(n(712),t),r(n(8),t),r(n(20),t),r(n(73),t)},8:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},416:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.postMessage=t.MessageTypes=void 0,function(e){e.CONFIG="CONFIG",e.PERSONAL_DETAILS="PERSONAL_DETAILS",e.ACCESS_TOKEN="ACCESS_TOKEN"}(t.MessageTypes||(t.MessageTypes={})),t.postMessage=function(e,t){var n,o=e.src;null===(n=e.contentWindow)||void 0===n||n.postMessage(t,o)}},73:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setAccessToken=void 0;var o=n(416),r=n(593);t.setAccessToken=function(e){var t=r.getConnectIframe();if(!t)throw new Error("Unable to find Connect iframe. Connect should be added to use this function.");o.postMessage(t,{type:o.MessageTypes.ACCESS_TOKEN,payload:e})}},20:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setCustomerPersonalDetails=void 0;var o=n(416),r=n(593);t.setCustomerPersonalDetails=function(e){var t=r.getConnectIframe();if(!t)throw new Error("Unable to find Connect iframe. Connect should be added to use this function.");o.postMessage(t,{type:o.MessageTypes.PERSONAL_DETAILS,payload:e})}},593:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getConnectIframe=t.getConnectElement=void 0,t.getConnectElement=function(){return document.getElementById("algoan-connect")},t.getConnectIframe=function(){var e=t.getConnectElement();return null==e?void 0:e.getElementsByTagName("iframe")[0]}}},t={};return function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}(607)})()}));
//# sourceMappingURL=algoan-connect.js.map

@@ -13,2 +13,6 @@ export interface ConnectCustomization {

/**
* button border radius
*/
borderRadius?: CSSStyleDeclaration['borderRadius'];
/**
* Google web font that is going to be used. "Open Sans" if invalid.

@@ -20,7 +24,15 @@ *

fontFamily?: string;
color?: CSSStyleDeclaration['color'];
button?: {
borderRadius?: CSSStyleDeclaration['borderRadius'];
backgroundColor?: CSSStyleDeclaration['backgroundColor'];
color?: CSSStyleDeclaration['color'];
colors?: {
/**
* primary color
*/
primary: CSSStyleDeclaration['color'];
/**
* it is used for the button's text. In embedded mode, it is used in contrast to the primary color
*/
secondary: CSSStyleDeclaration['color'];
/**
* in embedded mode, color of the font
*/
text: CSSStyleDeclaration['color'];
};

@@ -27,0 +39,0 @@ };

@@ -13,2 +13,6 @@ export interface ConnectCustomization {

/**
* button border radius
*/
borderRadius?: CSSStyleDeclaration['borderRadius'];
/**
* Google web font that is going to be used. "Open Sans" if invalid.

@@ -20,7 +24,15 @@ *

fontFamily?: string;
color?: CSSStyleDeclaration['color'];
button?: {
borderRadius?: CSSStyleDeclaration['borderRadius'];
backgroundColor?: CSSStyleDeclaration['backgroundColor'];
color?: CSSStyleDeclaration['color'];
colors?: {
/**
* primary color
*/
primary: CSSStyleDeclaration['color'];
/**
* it is used for the button's text. In embedded mode, it is used in contrast to the primary color
*/
secondary: CSSStyleDeclaration['color'];
/**
* in embedded mode, color of the font
*/
text: CSSStyleDeclaration['color'];
};

@@ -27,0 +39,0 @@ };

{
"name": "@algoan/connect",
"version": "5.4.0",
"version": "6.0.0",
"description": "Library for Algoan Connect",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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