From 70426c5365bebe521a5b284b1bfcd1ad376f5bf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Rodrigues?= Date: Thu, 14 Apr 2022 18:25:40 -0300 Subject: [PATCH] Export Plaid CDN to make it possible to load on App level --- src/index.ts | 2 +- src/usePlaidLink.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 4472c236..e2818c22 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,3 @@ -export { usePlaidLink } from './usePlaidLink'; +export { usePlaidLink, PLAID_LINK_STABLE_URL } from './usePlaidLink'; export { PlaidLink } from './PlaidLink'; export * from './types' diff --git a/src/usePlaidLink.ts b/src/usePlaidLink.ts index 7aa176e4..46575852 100644 --- a/src/usePlaidLink.ts +++ b/src/usePlaidLink.ts @@ -4,7 +4,7 @@ import useScript from 'react-script-hook'; import { createPlaid, PlaidFactory } from './factory'; import { PlaidLinkOptions, PlaidLinkOptionsWithPublicKey } from './types'; -const PLAID_LINK_STABLE_URL = +export const PLAID_LINK_STABLE_URL = 'https://cdn.plaid.com/link/v2/stable/link-initialize.js'; const noop = () => {};