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.
babel-plugin-remove-graphql-queries
Advanced tools
The babel-plugin-remove-graphql-queries package is a Babel plugin designed to remove GraphQL queries from your JavaScript code at build time. This can be useful for optimizing your code by stripping out unnecessary GraphQL queries, which can reduce the bundle size and improve performance.
Remove GraphQL Queries
This feature allows you to remove GraphQL queries from your code during the build process. By including the plugin in your Babel configuration, any GraphQL queries in your code will be stripped out, resulting in a smaller and more efficient bundle.
module.exports = {
plugins: [
'babel-plugin-remove-graphql-queries'
]
};
Custom Query Removal
This feature provides an option to customize the removal of GraphQL queries. By setting the `removeQueries` option to true, you can ensure that all GraphQL queries are removed from your code during the build process.
module.exports = {
plugins: [
['babel-plugin-remove-graphql-queries', {
removeQueries: true
}]
]
};
The babel-plugin-transform-graphql package is another Babel plugin that transforms GraphQL queries into a format that can be used by JavaScript code. Unlike babel-plugin-remove-graphql-queries, which removes queries, this plugin focuses on transforming them for use in the application.
The babel-plugin-inline-import-graphql-ast package inlines GraphQL queries as AST (Abstract Syntax Tree) nodes. This is different from babel-plugin-remove-graphql-queries, which removes the queries entirely. This plugin is useful for optimizing GraphQL queries by inlining them directly into the code.
FAQs
Unknown package
The npm package babel-plugin-remove-graphql-queries receives a total of 179,157 weekly downloads. As such, babel-plugin-remove-graphql-queries popularity was classified as popular.
We found that babel-plugin-remove-graphql-queries demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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.