From 1671fc6c4189476e883bc4a9ab7639238236aecc Mon Sep 17 00:00:00 2001 From: Braintree Date: Wed, 20 Sep 2023 20:47:15 +0000 Subject: [PATCH] Release braintree-web 3.97.2 source Co-authored-by: Joe Plukarski --- CHANGELOG.md | 7 ++ package-lock.json | 76 +++++++++---------- package.json | 2 +- src/apple-pay/apple-pay.js | 2 +- src/paypal-checkout/paypal-checkout.js | 2 +- src/three-d-secure/external/three-d-secure.js | 1 + 6 files changed, 46 insertions(+), 44 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56d27937..6ef177a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +# 3.97.2 +- JS Docs + - PayPal + - Add clarification to `updatePayment` options + - Apple Pay + - Updated `displayName` docs for `performValidation` to indicate that maximium length is 64 characters + # 3.97.1 - JS docs diff --git a/package-lock.json b/package-lock.json index 8305e788..b916141f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "braintree-web", - "version": "3.97.1", + "version": "3.97.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1107,6 +1107,16 @@ "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", "dev": true }, + "JSONStream": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "dev": true, + "requires": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + } + }, "abab": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", @@ -1147,8 +1157,7 @@ "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} + "dev": true }, "acorn-node": { "version": "1.8.2", @@ -1881,9 +1890,9 @@ "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", "dev": true, "requires": { + "JSONStream": "^1.0.3", "combine-source-map": "~0.8.0", "defined": "^1.0.0", - "JSONStream": "^1.0.3", "safe-buffer": "^5.1.1", "through2": "^2.0.0", "umd": "^3.0.0" @@ -1904,6 +1913,7 @@ "integrity": "sha512-SaHqzhku9v/j6XsQMRxPyBrSP3gnwmE27gLJYZgMT2GeK3J0+0toN+MnuNYDfHwVGQfLiMZ7KSNSIXHemy905w==", "dev": true, "requires": { + "JSONStream": "^1.0.3", "assert": "^1.4.0", "browser-pack": "^6.0.1", "browser-resolve": "^2.0.0", @@ -1925,7 +1935,6 @@ "https-browserify": "^1.0.0", "inherits": "~2.0.1", "insert-module-globals": "^7.2.1", - "JSONStream": "^1.0.3", "labeled-stream-splicer": "^2.0.0", "mkdirp-classic": "^0.5.2", "module-deps": "^6.2.3", @@ -3470,15 +3479,13 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/eslint-config-braintree/-/eslint-config-braintree-5.0.1.tgz", "integrity": "sha512-Ru0pJTZ5FmdqQ/Ne+NPGzLkP9cDrswh5TMbQk5evRJ8iqRKsX4cZT4DA9SQvoIXL0nCUPUchztJnTjG5TqP+Gg==", - "dev": true, - "requires": {} + "dev": true }, "eslint-config-prettier": { "version": "8.5.0", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", - "dev": true, - "requires": {} + "dev": true }, "eslint-scope": { "version": "7.1.1", @@ -4579,18 +4586,18 @@ }, "gulp-envify": { "version": "git+ssh://git@github.com/tomashanacek/gulp-envify.git#37d97bca9073ec4161957c69d774f1870fdb6e57", - "dev": true, "from": "gulp-envify@tomashanacek/gulp-envify#37d97bca9073ec4161957c69d774f1870fdb6e57", + "dev": true, "requires": { - "loose-envify": "tomashanacek/loose-envify", + "loose-envify": "loose-envify@tomashanacek/loose-envify", "plugin-error": "^1.0.1", "through2": "^2.0.0" }, "dependencies": { "loose-envify": { "version": "git+ssh://git@github.com/tomashanacek/loose-envify.git#274d08b592bab76b3a7ab099a669ccd1b4a7a34f", - "dev": true, "from": "loose-envify@tomashanacek/loose-envify", + "dev": true, "requires": { "js-tokens": "^1.0.1" } @@ -5009,11 +5016,11 @@ "integrity": "sha512-ufS5Qq9RZN+Bu899eA9QCAYThY+gGW7oRkmb0vC93Vlyu/CFGcH0OYPEjVkDXA5FEbTt1+VWzdoOD3Ny9N+8tg==", "dev": true, "requires": { + "JSONStream": "^1.0.3", "acorn-node": "^1.5.2", "combine-source-map": "^0.8.0", "concat-stream": "^1.6.1", "is-buffer": "^1.1.0", - "JSONStream": "^1.0.3", "path-is-absolute": "^1.0.1", "process": "~0.11.0", "through2": "^2.0.0", @@ -5828,8 +5835,7 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", - "dev": true, - "requires": {} + "dev": true }, "jest-regex-util": { "version": "29.2.0", @@ -6139,8 +6145,8 @@ }, "jsdoc-template": { "version": "git+ssh://git@github.com/braintree/jsdoc-template.git#04ccbb46addd8beabcbe1815fc81eb9d33e4c124", - "dev": true, - "from": "jsdoc-template@braintree/jsdoc-template#3.2.0" + "from": "jsdoc-template@braintree/jsdoc-template#3.2.0", + "dev": true }, "jsdom": { "version": "20.0.1", @@ -6246,16 +6252,6 @@ "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", "dev": true }, - "JSONStream": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", - "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", - "dev": true, - "requires": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - } - }, "just-debounce": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.1.0.tgz", @@ -6534,8 +6530,7 @@ "version": "8.6.4", "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.4.tgz", "integrity": "sha512-Ul4YVYZNxMJYALpKtu+ZRdrryYt/GlQ5CK+4l1bp/gWXOG2QWElt6AqF3Mih/wfUKdZbNAZVXGR73/n6U/8img==", - "dev": true, - "requires": {} + "dev": true }, "marked": { "version": "4.0.18", @@ -6840,6 +6835,7 @@ "integrity": "sha512-fg7OZaQBcL4/L+AK5f4iVqf9OMbCclXfy/znXRxTVhJSeW5AIlS9AwheYwDaXM3lVW7OBeaeUEY3gbaC6cLlSA==", "dev": true, "requires": { + "JSONStream": "^1.0.3", "browser-resolve": "^2.0.0", "cached-path-relative": "^1.0.2", "concat-stream": "~1.6.0", @@ -6847,7 +6843,6 @@ "detective": "^5.2.0", "duplexer2": "^0.1.2", "inherits": "^2.0.1", - "JSONStream": "^1.0.3", "parents": "^1.0.0", "readable-stream": "^2.0.2", "resolve": "^1.4.0", @@ -8750,15 +8745,6 @@ "readable-stream": "^2.0.2" } }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "requires": { - "safe-buffer": "~5.2.0" - } - }, "string-length": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", @@ -8802,6 +8788,15 @@ "es-abstract": "^1.19.5" } }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "requires": { + "safe-buffer": "~5.2.0" + } + }, "strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -9782,8 +9777,7 @@ "version": "8.9.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz", "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==", - "dev": true, - "requires": {} + "dev": true }, "xml-name-validator": { "version": "4.0.0", diff --git a/package.json b/package.json index 0f5d8d67..ffc8e779 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "braintree-web", - "version": "3.97.1", + "version": "3.97.2", "license": "MIT", "main": "src/index.js", "private": true, diff --git a/src/apple-pay/apple-pay.js b/src/apple-pay/apple-pay.js index 8d31193e..09ca61dd 100644 --- a/src/apple-pay/apple-pay.js +++ b/src/apple-pay/apple-pay.js @@ -184,7 +184,7 @@ ApplePay.prototype._createPaymentRequestSynchronously = function ( * @public * @param {object} options Options * @param {string} options.validationURL The validationURL from an `ApplePayValidateMerchantEvent`. - * @param {string} options.displayName The canonical name for your store. Use a non-localized name. This parameter should be a UTF-8 string that is a maximum of 128 characters. The system may display this name to the user. + * @param {string} options.displayName The canonical name for your store. Use a non-localized name. This parameter should be a UTF-8 string that is a maximum of 64 characters. The system may display this name to the user. * @param {callback} [callback] The second argument, data, is the Apple Pay merchant session object. If no callback is provided, `performValidation` returns a promise. * Pass the merchant session to your Apple Pay session's `completeMerchantValidation` method. * @returns {(Promise|void)} Returns a promise if no callback is provided. diff --git a/src/paypal-checkout/paypal-checkout.js b/src/paypal-checkout/paypal-checkout.js index d3579e99..acce5797 100644 --- a/src/paypal-checkout/paypal-checkout.js +++ b/src/paypal-checkout/paypal-checkout.js @@ -570,7 +570,7 @@ PayPalCheckout.prototype._createPaymentResource = function (options, config) { * @public * @param {object} options All options for the PayPalCheckout component. * @param {string} options.paymentId This should be PayPal `paymentId`. - * @param {(string|number)} [options.amount] The amount of the transaction, including the amount of the selected shipping option. + * @param {(string|number)} options.amount The amount of the transaction, including the amount of the selected shipping option, and all `line_items`. * * Supports up to 2 decimal digits. * @param {string} options.currency The currency code of the amount, such as 'USD'. Required when using the Checkout flow. * @param {shippingOption[]} [options.shippingOptions] List of {@link PayPalCheckout~shippingOption|shipping options} offered by the payee or merchant to the payer to ship or pick up their items. diff --git a/src/three-d-secure/external/three-d-secure.js b/src/three-d-secure/external/three-d-secure.js index 112eef0b..2843458c 100644 --- a/src/three-d-secure/external/three-d-secure.js +++ b/src/three-d-secure/external/three-d-secure.js @@ -479,6 +479,7 @@ EventEmitter.createChild(ThreeDSecure); * // Decide if you want to submit the nonce * } * }); + * @example * Verifying a payment method nonce with 3DS 2.0 with onLookupComplete callback * var my3DSContainer; *