
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
@jfrolich/gatsby-plugin-extract-schema
Advanced tools
Extract Gatsby's generated graphql schema to a JSON file
A Gatsby plugin that extracts your graphql schema to a .json
file.
You can use this file to check your queries against your schema, by using eslint-plugin-graphql.
Extract schema:
npm install --save gatsby-plugin-extract-schema
Use extracted schema:
npm install --save-dev eslint babel-eslint eslint-plugin-graphql
gatsby-config.js
module.exports = {
plugins: ["gatsby-plugin-extract-schema"]
};
or
{
resolve: "gatsby-plugin-extract-schema",
options: {
dest: `${__dirname}/path/to/schema.json`,
},
},
}
.eslintrc.js
to the project rootconst path = require("path");
module.exports = {
parser: "babel-eslint",
rules: {
"graphql/template-strings": [
"error",
{
env: "relay",
schemaJsonFilepath: path.resolve(__dirname, "./schema.json"),
tagName: "graphql"
}
]
},
plugins: ["graphql"]
};
Big thanks to Kurtis Kemple for all his help!
FAQs
Extract Gatsby's generated graphql schema to a JSON file
We found that @jfrolich/gatsby-plugin-extract-schema 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.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.