
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
waterline-custom-validations
Advanced tools
Library to help build validation messages that mimic the structure of waterline validation messages
Library to help build validation messages that mimic the structure of waterline 0.10 validation messages.
This can be useful if you are already using waterline, and don't want to have to translate their structure into some other arbitrary structure.
The waterline validation error format is:
{
invalidAttributes: {
fieldName1: [
{ rule: 'someRuleName', message: 'some friendly rule message' },
{ rule: 'anotherRuleName', message: 'another friendly rule message' }
],
fieldName2: [
{ rule: 'someRuleName', message: 'some friendly rule message' }
]
}
}
actual waterline objects have a lot more properties/fields than this, as well as backwards compatibility for Sails 0.9x validation messages that use the ValidationError
property to hold the validation errors. To see a full implementation of the waterline validation errors, see the WLValidationError source in Waterline
To run the tests, clone the repo, then
npm install
npm test
You can also get code coverage on the tests by running
npm run cover
To contribute, see CONTRIBUTING.md
MIT
1.0.1 - 2014-10-24
FAQs
Library to help build validation messages that mimic the structure of waterline validation messages
The npm package waterline-custom-validations receives a total of 2 weekly downloads. As such, waterline-custom-validations popularity was classified as not popular.
We found that waterline-custom-validations 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.