![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@winninjs/graphql-io-utils
Advanced tools
Utilities directives and scalar types to help on graphql input/output validation and sanitization.
Utilities directives and scalar types to help on graphql input/output validation and sanitization.
npm i @winninjs/graphql-io-utils
Represents a valid email
type Query{
email:Email! # Returns a non-null valid Email
sendEmail(email:Email):Email # Send and returns a valid Email
}
Represents a valid URL
type Query{
url:URL! # Returns a non-null valid URL
sendURL(url:URL):URL # Send and returns a valid URL
}
Redacts PII info on string
type Query{
piiData:PII! # Returns a redacted PII string
}
It includes two directives:
Lets you run a method over a string input or output
type Query{
returnTrimmedAndUpper:String! @stringUtils(stringMethods:["trim","toUpperCase"]) # runs trim and toUpperCase on returned String
sendTrimmedAndLower(trimmedAndLower:String!@stringUtils(stringMethods:["trim","toLowerCase"])):String! # runs trim and toLowerCase on query argument
}
Runs common validations over input
type Query{
email(value:String! @validate(email:true)):String! #validates if the value is an valid email
}
Currently supports the following validations:
FAQs
Utilities directives and scalar types to help on graphql input/output validation and sanitization.
The npm package @winninjs/graphql-io-utils receives a total of 6 weekly downloads. As such, @winninjs/graphql-io-utils popularity was classified as not popular.
We found that @winninjs/graphql-io-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.