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.
@travetto/schema
Advanced tools
This module provide validation for data schemas. The module uses AST transformations to
modify class
es at runtime, to annotate with types, and whether or not fields are
required/optional. Additionally, for constraints that are not immediately discernable,
the following are available:
Class level
@Schema
defines a class to be a validated, will auto detect schema from typescript annotationsDecorator based definition of Mongoose validators as well as general metadata
@Field
defines a field that will be serialized (if not using auto @Schema()
)@Require
defines a required field@Enum
defines a field with only enumerated values@Trimmed
whitespace trims the field@Match
allows for regex validation on a field@MinLength
enforces min length of a string@MaxLength
enforces max length of a string@Min
enforces min value for a date or a number@Max
enforces max value for a date or a number@Email
ensures string field matches basic email regex@Telephone
ensures string field matches basic telephone regex@Url
ensures string field matches basic url regex@Ignore
exclude from auto schema registrationFAQs
Data type registry for runtime validation, reflection and binding.
The npm package @travetto/schema receives a total of 67 weekly downloads. As such, @travetto/schema popularity was classified as not popular.
We found that @travetto/schema demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.