Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
@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 9 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
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.