1.0.6 • Published 6 years ago
@paypal/risk-data-collector v1.0.6
PayPal Risk Data Collector
Risk Data Collector for PayPal
Usage
import { collectRiskData } from '@paypal/risk-data-collector';
const riskData = collectRiskData();
// Send `riskData` to server attached to http requestQuick Start
Getting Started
- Fork the module
- Run setup:
npm run setup - Start editing code in
./srcand writing tests in./tests npm run build
Building
npm run buildTests
- Edit tests in
./test/tests Run the tests:
npm run test
Testing with different/multiple browsers
npm run karma -- --browser=PhantomJS
npm run karma -- --browser=Chrome
npm run karma -- --browser=Safari
npm run karma -- --browser=Firefox
npm run karma -- --browser=PhantomJS,Chrome,Safari,FirefoxKeeping the browser open after tests
npm run karma -- --browser=Chrome --keep-openPublishing
Before you publish for the first time:
- Delete the example code in
./src,./test/testsand./demo - Edit the module name in
package.json - Edit
README.mdandCONTRIBUTING.md
Then:
- Publish your code:
npm run releaseto add a patch- Or
npm run release:path,npm run release:minor,npm run release:major
- Or