paypal-isomorphic-functions
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -6,3 +6,3 @@ "use strict"; | ||
async function createBillingAgreementToken(token, data = {}) { | ||
const payload = data || constants_1.DEFAULT_CREATE_BILLING_AGREEMENT_TOKEN_PAYLOAD; | ||
const payload = Object.keys(data).length > 0 ? data : constants_1.DEFAULT_CREATE_BILLING_AGREEMENT_TOKEN_PAYLOAD; | ||
const options = { | ||
@@ -9,0 +9,0 @@ method: "POST", |
{ | ||
"name": "paypal-isomorphic-functions", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Library of helpful paypal functions that can be run in a browser or server", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -9,3 +9,3 @@ import { DEFAULT_CREATE_BILLING_AGREEMENT_TOKEN_PAYLOAD } from "./constants"; | ||
) { | ||
const payload = data || DEFAULT_CREATE_BILLING_AGREEMENT_TOKEN_PAYLOAD; | ||
const payload = Object.keys(data).length > 0 ? data : DEFAULT_CREATE_BILLING_AGREEMENT_TOKEN_PAYLOAD; | ||
@@ -20,2 +20,3 @@ const options = { | ||
}; | ||
return await fetch( | ||
@@ -22,0 +23,0 @@ `${CONFIG.get( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
334180