New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rebilly/risk-data-collector

Package Overview
Dependencies
Maintainers
7
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rebilly/risk-data-collector

Microlibrary that collects browser data for risk assessment

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
74
decreased by-53.46%
Maintainers
7
Weekly downloads
 
Created
Source

risk-data-collector

Collect browser data for risk assessment purposes.

Description

risk-data-collector is a client side microlibrary which collects user data required for the risk assessment component of 3DS v2. It is expected to be used:

  1. In FramePay
  2. By merchants redirecting end users to the supplied approvalUrl for the 3DS process

Data collected

colorDepth
javaEnabled
language
screenHeight
screenWidth
timeZoneOffset
deviceFingerprintHash

Usage

risk-data-collector is distributed in two ways:

  1. Via a CDN link The library becomes available under the RiskDataCollector global namespace and can be used like so:
<html>
  <head>
    <script src="https://unpkg.com/@rebilly/risk-data-collector"></script>
  </head>

  <body>
    <script type="text/javascript">
        (async () => {
          const browserData = await RiskDataCollector.collectData();
          console.log(`browserData is: ${JSON.stringify(browserData)}`)
        })()
      </script>
  </body>
<html>

  1. As an npm package
yarn add @rebilly/risk-data-collector

npm install @rebilly/risk-data-collector

Which can be imported and used like so:

import {collectData} from '@rebilly/risk-data-collector';

(async () => {
    const browserData = await collectData();
    console.log(`browserData is: ${JSON.stringify(browserData)}`)
  })()

Keywords

FAQs

Package last updated on 11 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc