
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
@farfetch/blackout-react-native-riskified-integration
Advanced tools
Riskified integration for @farfetch/blackout-react-native-analytics
Riskified integration for @farfetch/blackout-react-native-analytics.
yarn
yarn add @farfetch/blackout-react-native-riskified-integration
npm
npm i @farfetch/blackout-react-native-riskified-integration
Make sure that you have installed the correct Farfetch's peer dependencies:
Due to a bug on the @react-native-community/cli package, you will need to add a react-native.config.js file to the root of your react native project and declare the packageName for android project there, so that the cli can detect the correct package name for compilation:
// react-native.config.js
module.exports = {
project: {
android: {
packageName: 'package name of your android app',
},
},
};
You will need to add the Omnitracking integration from @farfetch/blackout-react-native-analytics to your analytics instance.
import analytics, {
} from '@farfetch/blackout-react-native-analytics';
import Riskified from '@farfetch/blackout-react-native-riskified-integration';
import Omnitracking from '@farfetch/blackout-react-native-analytics/integrations/omnitracking';
// Add the integration to analytics instance
analytics.addIntegration('riskified', Riskified, {
shopName: 'my shop name', // Required: The name of your Riskified account.
token: '00000000-aaaa-0000-aaaa-000000000000', // Optional: The associated session token
// A valid entry must exist in either `eventsToLog` or `screensToLog` options in order to the integration be correctly configured
eventsToLog: {
[eventTypes.PRODUCT_VIEWED]:
'URL that will be logged when a PRODUCT_VIEWED event is tracked in analytics',
},
screensToLog: {
[screenTypes.HOMEPAGE]:
'URL that will be logged when the HOMEPAGE screen is tracked in analytics',
},
});
// Add `Omnitracking` integration is required for this integration to work correctly
analytics.addIntegration('omnitracking', Omnitracking);
| Option name | Type | Required | Description |
|---|---|---|---|
shopName | string | yes | The name of your Riskified account. |
token | string | no | A unique identifier that is generated for the user’s current browsing session. If not provided, then user.localId will be used instead. |
eventsToLog | object | yesÂą | An object that contains a map of an event type to a URL string |
screensToLog | object | yesÂą | An object that contains a map of a screen type to a URL string |
Âą - Either eventsToLog or screensToLog must be passed with an object containing at least one entry.
If you provide a session token through the token option, make sure you are using the same token in Omnitracking integration through the correlationId context value so that order data that is sent to Riskified service contain the same session identifier in its cart_token property.
If no session token is provided, user.localId is used instead and this value will be the same value that will be used in Omnitracking integration's correlationId field.
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
Please read the CONTRIBUTING file to know what we expect from your contribution and the guidelines you should follow.
MIT @ Farfetch
FAQs
Riskified integration for @farfetch/blackout-react-native-analytics
The npm package @farfetch/blackout-react-native-riskified-integration receives a total of 1 weekly downloads. As such, @farfetch/blackout-react-native-riskified-integration popularity was classified as not popular.
We found that @farfetch/blackout-react-native-riskified-integration demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.