
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
graphdoc-plugin-erase
Advanced tools
GraphQL schema HTML documentation generation, erasing unwanted types using graphdoc
1 . Add dependencies:
package.json
:
"devDependencies": {
"@2fd/graphdoc": "2.4.0",
"graphdoc-plugin-erase": "1.1.0",
2 . If default options are not suitable, then Configure graphdoc-plugin-erase
:
package.json
:
{
"graphdoc-plugin-erase": {
"eraseByNameRegex": "\\w*No",
"eraseByDescriptionRegex": "@RemoveFromDocumentation",
"eraseByKindRegex": "(?:UNION|SCALAR)"
}
}
3 Use graphdoc-plugin-erase
:
package.json
:
"scripts": {
"doc": "graphdoc -p graphdoc/../../graphdoc-plugin-erase -p graphdoc/plugins/default -s ./schema.graphql -o ./build/documentation"
}
or if using graphdoc-plugin-flexible
instead of graphdoc default plugins
"scripts": {
"doc": "graphdoc -p graphdoc/../../graphdoc-plugin-erase -p graphdoc/../../graphdoc-plugin-flexible -s ./schema.graphql -o ./build/documentation"
}
graphdoc/../../
this is required to get external plugins working ingraphdoc
.
graphdoc-plugin-erase
provides a way to use graphdoc
and remove some types that are not required in the documentation, e.g. __Directive
, __EnumValue
, __DirectiveLocation
, etc.
package.json
:
(default values)
{
"graphdoc-plugin-erase": {
"eraseByNameRegex": "^__",
"eraseByDescriptionRegex": "^$",
"eraseByKindRegex": "^$"
}
}
eraseByNameRegex
: Regular Expression to be used to remove types, based on name
.eraseByDescriptionRegex
: Regular Expression to be used to remove types, based on description
.eraseByKindRegex
: Regular Expression to be used to remove types, based on kind
.
graphdoc-plugin-erase
plugin should be add before the plugins we want to have filtered types.
graphdoc can work with older versions of GraphQL (description syntax: #), and new versions (description syntax: """), How to configure graphdoc.
CHANGELOG
: contains the information about changes in each version, chronologically ordered (Keep a Changelog).
Don't forget:
At life:
At work:
1.1.0 - June 2021
eraseByDescriptionRegex
to allow removing specific types from documentation, based on description
.FAQs
GraphQL schema HTML documentation generation, erasing unwanted types using graphdoc
The npm package graphdoc-plugin-erase receives a total of 111 weekly downloads. As such, graphdoc-plugin-erase popularity was classified as not popular.
We found that graphdoc-plugin-erase 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.