@paypal/sdk-client
Advanced tools
Comparing version 4.0.49 to 4.0.50
{ | ||
"name": "@paypal/sdk-client", | ||
"version": "4.0.49", | ||
"version": "4.0.50", | ||
"description": "Shared config between PayPal/Braintree.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ /* @flow */ | ||
import { COUNTRY, SDK_SETTINGS, SDK_QUERY_KEYS, INTENT, COMMIT, VAULT, CURRENCY, COUNTRY_LANGS, | ||
DEFAULT_INTENT, DEFAULT_COMMIT, DEFAULT_CURRENCY, DEFAULT_VAULT, QUERY_BOOL, LANG, type LocaleType } from '@paypal/sdk-constants/src'; | ||
DEFAULT_INTENT, DEFAULT_CURRENCY, DEFAULT_VAULT, QUERY_BOOL, LANG, type LocaleType, DEFAULT_SALE_COMMIT, DEFAULT_NONSALE_COMMIT } from '@paypal/sdk-constants/src'; | ||
@@ -91,3 +91,3 @@ import { getHost, getPath, getDefaultStageHost, getDefaultAPIStageHost } from './globals'; | ||
export function getCommit() : $Values<typeof COMMIT> { | ||
return getSDKQueryParamBool(SDK_QUERY_KEYS.COMMIT, DEFAULT_COMMIT); | ||
return getSDKQueryParamBool(SDK_QUERY_KEYS.COMMIT, getIntent() === INTENT.CAPTURE ? DEFAULT_SALE_COMMIT : DEFAULT_NONSALE_COMMIT); | ||
} | ||
@@ -94,0 +94,0 @@ |
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
55787