
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
graphql-scribble
Advanced tools
Extract and validate annotation data (aka directives) from your GraphQL schemas in an easy and declarative way.
import { createSchemaAnnotationExtractor } from 'graphql-scribble';
it(`should extract all annotation data when the schema is annotated`, () => {
const schemaAnnotationExtractor = createSchemaAnnotationExtractor({
foo: {
schema: {
bar: {
type: 'string',
required: true
},
baz: {
type: 'boolean'
}
}
},
bar: {
schema: {
value: {
type: 'number',
required: true
}
}
}
});
const schema = `
type User @foo(bar: "barValue", baz: false) {
chirps: [Chirp] @bar(value: 42)
}
`;
const annotationData = schemaAnnotationExtractor.extract(schema);
expect(annotationData).toEqual({
foo: [
{
node: jasmine.any(Object),
arguments: {bar: "barValue", baz: false}
}
],
bar: [
{
node: jasmine.any(Object),
arguments: {value: 42}
}
]
}
);
});
FAQs
Extract and validate your GraphQL Schema annotations
The npm package graphql-scribble receives a total of 1 weekly downloads. As such, graphql-scribble popularity was classified as not popular.
We found that graphql-scribble 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.