braintree-web-drop-in
Advanced tools
Comparing version 1.42.0 to 1.43.0
# CHANGELOG | ||
## UNRELEASED | ||
- Update Braintree web dependancies | ||
- asset-loader to 2.0.1 | ||
- browser-detection to 2.0.1 | ||
- uuid to 1.0.0 | ||
- braintree-web to 3.103.0 | ||
## 1.42.0 | ||
@@ -4,0 +11,0 @@ - Apple Pay |
34
index.js
@@ -40,3 +40,3 @@ 'use strict'; | ||
* <form id="payment-form" action="/" method="post"> | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.42.0/js/dropin.min.js" | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.43.0/js/dropin.min.js" | ||
* data-braintree-dropin-authorization="CLIENT_AUTHORIZATION" | ||
@@ -59,3 +59,3 @@ * ></script> | ||
* <form id="payment-form" action="/" method="post"> | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.42.0/js/dropin.min.js" | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.43.0/js/dropin.min.js" | ||
* data-braintree-dropin-authorization="CLIENT_AUTHORIZATION" | ||
@@ -75,3 +75,3 @@ * data-paypal.flow="checkout" | ||
* <form id="payment-form" action="/" method="post"> | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.42.0/js/dropin.min.js" | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.43.0/js/dropin.min.js" | ||
* data-braintree-dropin-authorization="CLIENT_AUTHORIZATION" | ||
@@ -91,3 +91,3 @@ * data-locale="de_DE" | ||
* <form id="payment-form" action="/" method="post"> | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.42.0/js/dropin.min.js" | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.43.0/js/dropin.min.js" | ||
* data-braintree-dropin-authorization="CLIENT_AUTHORIZATION" | ||
@@ -102,3 +102,3 @@ * data-card.cardholder-name.required="false" | ||
* <form id="payment-form" action="/" method="post"> | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.42.0/js/dropin.min.js" | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.43.0/js/dropin.min.js" | ||
* data-braintree-dropin-authorization="CLIENT_AUTHORIZATION" | ||
@@ -119,11 +119,11 @@ * data-card.cardholder-name.required="true" | ||
var VERSION = '1.42.0'; | ||
var VERSION = '1.43.0'; | ||
/** | ||
* @typedef {object} cardCreateOptions The configuration options for cards. Internally, Drop-in uses [Hosted Fields](http://braintree.github.io/braintree-web/3.99.0/module-braintree-web_hosted-fields.html) to render the card form. The `overrides.fields` and `overrides.styles` allow the Hosted Fields to be customized. | ||
* @typedef {object} cardCreateOptions The configuration options for cards. Internally, Drop-in uses [Hosted Fields](http://braintree.github.io/braintree-web/3.103.0/module-braintree-web_hosted-fields.html) to render the card form. The `overrides.fields` and `overrides.styles` allow the Hosted Fields to be customized. | ||
* | ||
* @param {(boolean|object)} [cardholderName] Will enable a cardholder name field above the card number field. If set to an object, you can specify whether or not the field is required. If set to a `true`, it will default the field to being present, but not required. | ||
* @param {boolean} [cardholderName.required=false] When true, the cardholder name field will be required to request the payment method nonce. | ||
* @param {object} [overrides.fields] The Hosted Fields [`fields` options](http://braintree.github.io/braintree-web/3.99.0/module-braintree-web_hosted-fields.html#~fieldOptions). Only `number`, `cvv`, `expirationDate` and `postalCode` can be configured. Each is a [Hosted Fields `field` object](http://braintree.github.io/braintree-web/3.99.0/module-braintree-web_hosted-fields.html#~field). `selector` cannot be modified. | ||
* @param {object} [overrides.styles] The Hosted Fields [`styles` options](http://braintree.github.io/braintree-web/3.99.0/module-braintree-web_hosted-fields.html#~styleOptions). These can be used to add custom styles to the Hosted Fields iframes. To style the rest of Drop-in, [review the documentation for customizing Drop-in](https://developer.paypal.com/braintree/docs/guides/drop-in/customization/javascript/v3#customize-your-ui). | ||
* @param {object} [overrides.fields] The Hosted Fields [`fields` options](http://braintree.github.io/braintree-web/3.103.0/module-braintree-web_hosted-fields.html#~fieldOptions). Only `number`, `cvv`, `expirationDate` and `postalCode` can be configured. Each is a [Hosted Fields `field` object](http://braintree.github.io/braintree-web/3.103.0/module-braintree-web_hosted-fields.html#~field). `selector` cannot be modified. | ||
* @param {object} [overrides.styles] The Hosted Fields [`styles` options](http://braintree.github.io/braintree-web/3.103.0/module-braintree-web_hosted-fields.html#~styleOptions). These can be used to add custom styles to the Hosted Fields iframes. To style the rest of Drop-in, [review the documentation for customizing Drop-in](https://developer.paypal.com/braintree/docs/guides/drop-in/customization/javascript/v3#customize-your-ui). | ||
* @param {boolean} [clearFieldsAfterTokenization=true] When false, the card form will not clear the card data when the customer returns to the card view after a successful tokenization. | ||
@@ -144,7 +144,7 @@ * @param {object} [vault] Configuration for vaulting credit cards. Only applies when using a [client token with a customer id](https://developer.paypal.com/braintree/docs/reference/request/client-token/generate#customer_id). | ||
* | ||
* @param {options} cardinalSDKConfig A configuration object to adjust the configuration for the underlying Cardinal SDK (Braintree's 3D Secure provider). See [`cardinalSDKConfig` options](http://braintree.github.io/braintree-web/3.99.0/module-braintree-web_three-d-secure.html#.create) for all options. | ||
* @param {options} cardinalSDKConfig A configuration object to adjust the configuration for the underlying Cardinal SDK (Braintree's 3D Secure provider). See [`cardinalSDKConfig` options](http://braintree.github.io/braintree-web/3.103.0/module-braintree-web_three-d-secure.html#.create) for all options. | ||
* @param {string} amount __Deprecated__ The amount to verify with 3D Secure. Set amount in the {@link Dropin#requestPaymentMethod|requestPaymentMethod options} instead. | ||
*/ | ||
/** @typedef {object} paypalCreateOptions The configuration options for PayPal and PayPalCredit. For a full list of options see the [PayPal Checkout client reference options](http://braintree.github.io/braintree-web/3.99.0/PayPalCheckout.html#createPayment). | ||
/** @typedef {object} paypalCreateOptions The configuration options for PayPal and PayPalCredit. For a full list of options see the [PayPal Checkout client reference options](http://braintree.github.io/braintree-web/3.103.0/PayPalCheckout.html#createPayment). | ||
* | ||
@@ -253,7 +253,7 @@ * @param {string} flow Either `checkout` for a one-time [Checkout with PayPal](https://developer.paypal.com/braintree/docs/guides/paypal/checkout-with-paypal/javascript/v3) flow or `vault` for a [Vault flow](https://developer.paypal.com/braintree/docs/guides/paypal/vault/javascript/v3). Required when using PayPal or PayPal Credit. | ||
* | ||
* Some of the PayPal configuration options are listed [here](#~paypalCreateOptions), but for a full list see the [PayPal Checkout client reference options](http://braintree.github.io/braintree-web/3.99.0/PayPalCheckout.html#createPayment). | ||
* Some of the PayPal configuration options are listed [here](#~paypalCreateOptions), but for a full list see the [PayPal Checkout client reference options](http://braintree.github.io/braintree-web/3.103.0/PayPalCheckout.html#createPayment). | ||
* | ||
* @param {object} [options.paypalCredit] The configuration options for PayPal Credit. To include a PayPal Credit option in your Drop-in integration, include the `paypalCredit` parameter and [enable PayPal in the Braintree Control Panel](https://developer.paypal.com/braintree/docs/guides/paypal/testing-go-live#go-live). | ||
* | ||
* Some of the PayPal Credit configuration options are listed [here](#~paypalCreateOptions), but for a full list see the [PayPal Checkout client reference options](http://braintree.github.io/braintree-web/3.99.0/PayPalCheckout.html#createPayment). For more information on PayPal Credit, see the [Braintree Developer Docs](https://developer.paypal.com/braintree/docs/guides/paypal/paypal-credit/javascript/v3). | ||
* Some of the PayPal Credit configuration options are listed [here](#~paypalCreateOptions), but for a full list see the [PayPal Checkout client reference options](http://braintree.github.io/braintree-web/3.103.0/PayPalCheckout.html#createPayment). For more information on PayPal Credit, see the [Braintree Developer Docs](https://developer.paypal.com/braintree/docs/guides/paypal/paypal-credit/javascript/v3). | ||
* | ||
@@ -296,3 +296,3 @@ * @param {(object|boolean)} [options.venmo] The configuration options for Pay with Venmo. To include a Venmo option in your Drop-in integration, include the `venmo` parameter and [follow the documentation for setting up Venmo in the Braintree control panel](https://articles.braintreepayments.com/guides/payment-methods/venmo#setup). If a user's browser does not support Venmo, the Venmo option will not be rendered. | ||
* | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.42.0/js/dropin.min.js"></script> | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.43.0/js/dropin.min.js"></script> | ||
* | ||
@@ -336,3 +336,3 @@ * <script> | ||
* | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.42.0/js/dropin.min.js"></script> | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.43.0/js/dropin.min.js"></script> | ||
* | ||
@@ -417,3 +417,3 @@ * <script> | ||
* | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.42.0/js/dropin.min.js"></script> | ||
* <script src="https://js.braintreegateway.com/web/dropin/1.43.0/js/dropin.min.js"></script> | ||
* | ||
@@ -636,3 +636,3 @@ * <script> | ||
/** | ||
* @description The current version of Drop-in, i.e. `1.42.0`. | ||
* @description The current version of Drop-in, i.e. `1.43.0`. | ||
* @type {string} | ||
@@ -639,0 +639,0 @@ */ |
{ | ||
"name": "braintree-web-drop-in", | ||
"version": "1.42.0", | ||
"version": "1.43.0", | ||
"main": "index.js", | ||
@@ -66,8 +66,8 @@ "scripts": { | ||
"dependencies": { | ||
"@braintree/asset-loader": "0.4.4", | ||
"@braintree/browser-detection": "1.17.1", | ||
"@braintree/asset-loader": "2.0.1", | ||
"@braintree/browser-detection": "2.0.1", | ||
"@braintree/event-emitter": "0.4.1", | ||
"@braintree/uuid": "0.1.0", | ||
"@braintree/uuid": "1.0.0", | ||
"@braintree/wrap-promise": "2.1.0", | ||
"braintree-web": "3.99.0" | ||
"braintree-web": "3.103.0" | ||
}, | ||
@@ -74,0 +74,0 @@ "browserslist": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
9
1494766
30650
+ Added@braintree/asset-loader@2.0.1(transitive)
+ Added@braintree/browser-detection@1.17.22.0.1(transitive)
+ Added@braintree/extended-promise@1.0.0(transitive)
+ Added@braintree/iframer@2.0.0(transitive)
+ Added@braintree/sanitize-url@7.0.4(transitive)
+ Added@braintree/uuid@1.0.0(transitive)
+ Addedbraintree-web@3.103.0(transitive)
+ Addedcard-validator@10.0.0(transitive)
+ Addedcredit-card-type@10.0.1(transitive)
+ Addedframebus@6.0.0(transitive)
+ Addedinject-stylesheet@6.0.1(transitive)
- Removed@braintree/asset-loader@0.4.4(transitive)
- Removed@braintree/browser-detection@1.17.1(transitive)
- Removed@braintree/extended-promise@0.4.1(transitive)
- Removed@braintree/iframer@1.1.0(transitive)
- Removed@braintree/sanitize-url@6.0.4(transitive)
- Removedbraintree-web@3.99.0(transitive)
- Removedcard-validator@8.1.1(transitive)
- Removedframebus@5.2.1(transitive)
- Removedinject-stylesheet@5.0.0(transitive)
- Removedpromise-polyfill@8.3.0(transitive)
Updated@braintree/uuid@1.0.0
Updatedbraintree-web@3.103.0