Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
babel-plugin-react-relay
Advanced tools
Babel plugin for Relay (react-relay) with easy schema configuration in .babelrc
Babel plugin for Relay with support for multiple source types
This package uses babel-relay-plugin
internaly but makes usage more convenient and extends its functionality. For example you no longer need to have a build/babelRelayPlugin.js
script.
$ npm install -D babel-plugin-react-relay
Add the following to your .babelrc
file or the corresponding babel configuration.
{
"plugins": ["react-relay"]
}
Add one the following source options to your package.json
file.
Imports a static GraphQL schema exported as a JSON file
{
"react-relay-schema": "./exported-schema.json"
}
You can also provide an URL to a schema endpoint. Use this method if you're using graph.cool.
{
"react-relay-schema": "http://localhost:3000/schema.json"
}
graphql-js schema definition are also supported.
{
"react-relay-schema": "./schema-definition.js"
}
Sometimes you need the flexibility to dynamically configure your GraphQL schema source via environment variables. You can easily to that using the following syntax (works for all source types):
{
"react-relay-schema": {
"env": "SCHEMA_ENDPOINT"
}
}
This example uses the $SCHEMA_ENDPOINT
environment variable.
FAQs
Babel plugin for Relay (react-relay) with easy schema configuration in .babelrc
The npm package babel-plugin-react-relay receives a total of 30 weekly downloads. As such, babel-plugin-react-relay popularity was classified as not popular.
We found that babel-plugin-react-relay 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.