@paypal/checkout-components
Advanced tools
Comparing version 5.0.0 to 5.0.1
{ | ||
"name": "@paypal/checkout-components", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "PayPal Checkout components, for integrating checkout products.", | ||
@@ -15,10 +15,13 @@ "main": "index.js", | ||
"build": "npm run test && npm run webpack", | ||
"release": "./publish.sh", | ||
"release:patch": "./publish.sh patch", | ||
"release:minor": "./publish.sh minor", | ||
"release:major": "./publish.sh major", | ||
"clean": "rimraf coverage", | ||
"release": "./scripts/publish.sh", | ||
"release:patch": "./scripts/publish.sh patch", | ||
"release:minor": "./scripts/publish.sh minor", | ||
"release:major": "./scripts/publish.sh major", | ||
"preversion": "./scripts/preversion.sh", | ||
"version": "./scripts/version.sh", | ||
"postversion": "./scripts/postversion.sh", | ||
"clean": "rimraf dist coverage", | ||
"reinstall": "rimraf flow-typed && rimraf node_modules && npm install && flow-typed install", | ||
"debug": "cross-env NODE_ENV=debug", | ||
"demo": "serve ./demo --port 1337", | ||
"demo": "serve ./demo -l 1337", | ||
"eslint-find-rules": "eslint-find-rules --current .eslintrc.js --unused --plugin", | ||
@@ -59,2 +62,3 @@ "jest-screenshot": "jest test/screenshot/screenshot.test.js --env=node --no-cache", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"conventional-changelog-cli": "^2.0.11", | ||
"flow-bin": "^0.81.0", | ||
@@ -70,2 +74,3 @@ "fs-extra": "^4.0.2", | ||
"puppeteer": "^0.11.0", | ||
"serve": "^10.1.2", | ||
"sync-browser-mocks": "^2.0.0" | ||
@@ -72,0 +77,0 @@ }, |
@@ -64,1 +64,5 @@ PayPal Checkout | ||
* <a href="docs/http.md">Http (AJAX) Helper functions</a> | ||
## Releasing | ||
This package is published weekly, **Every Wednesday**. Please [view our Changelog](CHANGELOG.md) to stay updated with bug fixes and new features. |
@@ -386,3 +386,3 @@ /* @flow */ | ||
logger.track({ | ||
[ FPTI_KEY.STATE ]: FPTI_STATE.LOAD, | ||
[ FPTI_KEY.STATE ]: FPTI_STATE.BUTTON, | ||
[ FPTI_KEY.TRANSITION ]: FPTI_TRANSITION.BUTTON_RENDER, | ||
@@ -497,2 +497,7 @@ [ FPTI_KEY.BUTTON_TYPE ]: FPTI_BUTTON_TYPE.IFRAME, | ||
csp: { | ||
type: 'object', | ||
required: false | ||
}, | ||
test: { | ||
@@ -499,0 +504,0 @@ type: 'object', |
@@ -184,3 +184,6 @@ /* @flow */ | ||
buttonSessionID? : $PropertyType<ButtonProps, 'buttonSessionID'> | void, | ||
nonce? : string | ||
nonce? : string, | ||
csp? : { | ||
nonce? : string | ||
} | ||
|}; | ||
@@ -305,2 +308,3 @@ | ||
buttonSessionID = uniqueID(), | ||
csp = {}, | ||
nonce = '' | ||
@@ -335,2 +339,6 @@ } = props; | ||
if (csp && csp.nonce) { | ||
nonce = csp.nonce; | ||
} | ||
style = normalizeButtonStyle(style); | ||
@@ -337,0 +345,0 @@ |
@@ -28,3 +28,3 @@ /* @flow */ | ||
GUEST: `/webapps/xoonboarding`, | ||
BUTTON: `/sdk/js/smart-buttons`, | ||
BUTTON: `/smart/buttons`, | ||
CARD: `/webapps/hermes/card-fields` | ||
@@ -31,0 +31,0 @@ }; |
@@ -10,9 +10,8 @@ /* @flow */ | ||
BUTTON_SESSION_ID: ('button_session_id' : 'button_session_id'), | ||
ORDER_ID: 'EC-Token' | ||
ORDER_ID: ('EC-Token' : 'EC-Token') | ||
}; | ||
export const FPTI_STATE = { | ||
LOAD: ('checkoutjs_load' : 'checkoutjs_load'), | ||
BUTTON: ('checkoutjs_button' : 'checkoutjs_button'), | ||
CHECKOUT: ('checkoutjs_checkout' : 'checkoutjs_checkout') | ||
BUTTON: ('smart_button' : 'smart_button'), | ||
CHECKOUT: ('smart_checkout' : 'smart_checkout') | ||
}; | ||
@@ -19,0 +18,0 @@ |
@@ -43,5 +43,3 @@ /* @flow */ | ||
[ BUTTON_COLOR.DARKBLUE ]: BUTTON_COLOR.SILVER | ||
}, | ||
allowPrimary: false | ||
} | ||
} | ||
@@ -48,0 +46,0 @@ } |
@@ -122,5 +122,3 @@ /* @flow */ | ||
[ BUTTON_COLOR.DARKBLUE ]: BUTTON_COLOR.TRANSPARENT | ||
}, | ||
allowPrimary: false | ||
} | ||
} | ||
@@ -127,0 +125,0 @@ } |
@@ -78,3 +78,3 @@ /* @flow */ | ||
tagLineColors : { [$Values<typeof BUTTON_COLOR>] : $Values<typeof BUTTON_TAGLINE_COLOR> }, | ||
allowPrimary : boolean, | ||
allowPrimary? : boolean, | ||
defaultColor : $Values<typeof BUTTON_COLOR> | ||
@@ -81,0 +81,0 @@ |}; |
@@ -50,5 +50,3 @@ /* @flow */ | ||
defaultColor: BUTTON_COLOR.DARKBLUE, | ||
allowPrimary: false | ||
defaultColor: BUTTON_COLOR.DARKBLUE | ||
} | ||
@@ -55,0 +53,0 @@ } |
@@ -43,5 +43,3 @@ /* @flow */ | ||
[ BUTTON_COLOR.DARKBLUE ]: BUTTON_COLOR.SILVER | ||
}, | ||
allowPrimary: false | ||
} | ||
} | ||
@@ -48,0 +46,0 @@ } |
@@ -43,5 +43,3 @@ /* @flow */ | ||
[ BUTTON_COLOR.DARKBLUE ]: BUTTON_COLOR.SILVER | ||
}, | ||
allowPrimary: false | ||
} | ||
} | ||
@@ -48,0 +46,0 @@ } |
@@ -43,5 +43,3 @@ /* @flow */ | ||
[ BUTTON_COLOR.DARKBLUE ]: BUTTON_COLOR.SILVER | ||
}, | ||
allowPrimary: false | ||
} | ||
} | ||
@@ -48,0 +46,0 @@ } |
@@ -43,5 +43,3 @@ /* @flow */ | ||
[ BUTTON_COLOR.DARKBLUE ]: BUTTON_COLOR.SILVER | ||
}, | ||
allowPrimary: false | ||
} | ||
} | ||
@@ -48,0 +46,0 @@ } |
@@ -43,5 +43,3 @@ /* @flow */ | ||
[ BUTTON_COLOR.DARKBLUE ]: BUTTON_COLOR.SILVER | ||
}, | ||
allowPrimary: false | ||
} | ||
} | ||
@@ -48,0 +46,0 @@ } |
@@ -43,5 +43,3 @@ /* @flow */ | ||
[ BUTTON_COLOR.DARKBLUE ]: BUTTON_COLOR.SILVER | ||
}, | ||
allowPrimary: false | ||
} | ||
} | ||
@@ -48,0 +46,0 @@ } |
@@ -43,5 +43,3 @@ /* @flow */ | ||
[ BUTTON_COLOR.DARKBLUE ]: BUTTON_COLOR.SILVER | ||
}, | ||
allowPrimary: false | ||
} | ||
} | ||
@@ -48,0 +46,0 @@ } |
@@ -48,5 +48,3 @@ /* @flow */ | ||
[ BUTTON_COLOR.DARKBLUE ]: BUTTON_COLOR.SILVER | ||
}, | ||
allowPrimary: false | ||
} | ||
} | ||
@@ -53,0 +51,0 @@ } |
@@ -43,5 +43,3 @@ /* @flow */ | ||
[ BUTTON_COLOR.DARKBLUE ]: BUTTON_COLOR.SILVER | ||
}, | ||
allowPrimary: false | ||
} | ||
} | ||
@@ -48,0 +46,0 @@ } |
@@ -43,5 +43,3 @@ /* @flow */ | ||
[ BUTTON_COLOR.DARKBLUE ]: BUTTON_COLOR.SILVER | ||
}, | ||
allowPrimary: false | ||
} | ||
} | ||
@@ -48,0 +46,0 @@ } |
@@ -17,2 +17,8 @@ /* @flow */ | ||
export const request = { | ||
addHeaderBuilder: () => { | ||
// pass | ||
} | ||
}; | ||
if (isPayPalDomain()) { | ||
@@ -19,0 +25,0 @@ Checkout = CheckoutComponent; |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
588910
3876
68
0
14