Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
gatsby-plugin-schema-snapshot
Advanced tools
Create a snapshot of the GraphQL schema.
Saves a minimal schema to file, adds the @dontInfer
directive to all top-level types, and re-creates the schema from the saved type definitions during bootstrap. Use this plugin if you intend to lock-down a project's GraphQL schema.
All configuration options are optional.
{
// Path where the type definitions will be saved to
path: `schema.gql`,
// include types by name, or all types owned by a plugin
include: {
types: [],
plugins: [],
},
// exclude types by name, or all types owned by a plugin
// by default, internal and built-in types are excluded
exclude: {
types: [],
plugins: [],
},
// ensure all field types are included
// don't turn this off unless you have a very good reason to
withFieldTypes: true,
// manually control if a saved schema snapshot should be replaced with an
// updated version
update: false,
}
// gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-schema-snapshot`,
options: {
path: `schema.gql`,
exclude: {
plugins: [`gatsby-source-npm-package-search`],
},
update: process.env.GATSBY_UPDATE_SCHEMA_SNAPSHOT,
},
},
],
}
FAQs
Create a snapshot of the GraphQL schema.
The npm package gatsby-plugin-schema-snapshot receives a total of 11,793 weekly downloads. As such, gatsby-plugin-schema-snapshot popularity was classified as popular.
We found that gatsby-plugin-schema-snapshot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.