Risk Data Collector for PayPal
import { collectRiskData } from '@paypal/risk-data-collector';
const riskData = collectRiskData();
// Send `riskData` to server attached to http request
- Fork the module
- Run setup:
npm run setup
- Start editing code in
./src
and writing tests in./tests
npm run build
npm run build
-
Edit tests in
./test/tests
-
Run the tests:
npm run test
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,Firefox
npm run karma -- --browser=Chrome --keep-open
- Delete the example code in
./src
,./test/tests
and./demo
- Edit the module name in
package.json
- Edit
README.md
andCONTRIBUTING.md
- Publish your code:
npm run release
to add a patch- Or
npm run release:path
,npm run release:minor
,npm run release:major
- Or