New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →

react-plaid-link

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-plaid-link - npm Package Compare versions

Comparing version

to
0.1.4

'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var React = require('react');

@@ -18,3 +16,3 @@ var ReactScriptLoaderMixin = require('react-script-loader').ReactScriptLoaderMixin;

buttonText: 'Open Link',
buttonStyles: {
style: {
padding: '6px 4px',

@@ -79,3 +77,3 @@ outline: 'none',

// Button Styles as an Object
styles: React.PropTypes.object,
style: React.PropTypes.object,

@@ -92,3 +90,3 @@ // Button Class names as a String

getScriptURL: function getScriptURL() {
return 'https://cdn.plaid.com/link/stable/link-initialize.js';
return 'https://cdn.plaid.com/link/v2/stable/link-initialize.js';
},

@@ -99,3 +97,3 @@ onScriptError: function onScriptError() {

onScriptLoaded: function onScriptLoaded() {
this.linkHandler = Plaid.create({
window.linkHandler = Plaid.create({
clientName: this.props.clientName,

@@ -122,6 +120,4 @@ env: this.props.env,

var institution = this.props.institution || null;
if (this.state.linkLoaded) {
if (window.linkHandler) {
this.linkHandler.open(institution);
} else {
// consider a better way to wait for link to load...
}

@@ -132,5 +128,8 @@ },

'button',
_extends({ onClick: this.handleOnClick,
disabled: this.state.disabledButton
}, this.props),
{
onClick: this.handleOnClick,
disabled: this.state.disabledButton,
style: this.props.style,
className: this.props.className
},
React.createElement(

@@ -137,0 +136,0 @@ 'span',

{
"name": "react-plaid-link",
"version": "0.1.3",
"version": "0.1.4",
"description": "A React component for Plaid Link",

@@ -32,4 +32,4 @@ "files": [

"devDependencies": {
"babel-cli": "6.5.x",
"babel-core": "6.5.x",
"babel-cli": "6.10.x",
"babel-core": "6.11.x",
"babel-eslint": "4.1.x",

@@ -36,0 +36,0 @@ "babel-loader": "6.2.x",