Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
fjl-input-filter
Advanced tools
[![Build Status](https://travis-ci.org/functional-jslib/fjl-input-filter.png)](https://travis-ci.org/functional-jslib/fjl-input-filter) [![GitHub version](https://badge.fury.io/gh/functional-jslib%2Ffjl-input-filter.svg)](http://badge.fury.io/gh/function
Input filter validation functions - These allows you to create input and input-filter objects that can be used (by included utility functions) to easily validate a body of input fields quickly and easily (see usage examples further below).
import {...} from 'fjl-input-filter';
const {...} = require('fjl-input-filter');
See desired export type below:
fjlInputFilter
as a global).JSDocs are here (https://functional-jslib.github.io/fjl-input-filter/) [https://functional-jslib.github.io/fjl-input-filter/].
Docs in readme aren't fully fleshed out yet (see jsdocs, usage examples, and/or tests instead).
Input
methodsnoValidationRequired, validateInput, validateIOInput, runValidators,
runIOValidators, runFilters, runIOFilters, toInput,
toInputValidationResult, Input
InputFilter
methodsvalidateInputFilter, validateIOInputFilter, validateIOInputWithName,
toInputFilter, toInputFilterResult, InputFilter
In-line summary docs follow:
validateInputFilter(inputFilter, incomingData)
validateIOInputFilter(inputFilter, incomingData, ioErrorHandler)
validateInput(inputObj, value)
validateIOInput(inputObj, value, ioErrorHandler)
toInputFilter(inputsObj, breakOnFailure {Boolean}, out = {})
toInputFilterResult(resultObj, out = {})
toInputValidationResult(resultObj)
toInput(inputOptions, out = {})
Input(options)
validate(data) : InputValidationResult
validateIO(data) : Promise.<InputValidationResult>
InputFilter(inputsObj, breakOnFailure {Boolean})
validate(data) : InputFilterResult
validateIO(data) : Promise.<InputFilterResult>
See: fjl-validator repo/module
Using jest
(see './package.json' scripts).
BSD 3 Clause - Included in sources.
Removed uncurried methods (methods ending with $
) (use curried methods instead).
Removed:
errorIfNotTypeOnTarget$
- ('fjl' provides this now)
errorIfNotTypeOnTarget
- ("")
defineEnumProps$
defineProps$
Renamed auxillary methods:
_descriptorForSettable
becomes createTypedDescriptor
._makeDescriptorEnumerable
becomes toEnumerableDescriptor
._targetDescriptorTuple
becomes toTargetDescriptorTuple
.mocha
and chai
with jest
.FAQs
[![Build Status](https://travis-ci.org/functional-jslib/fjl-input-filter.png)](https://travis-ci.org/functional-jslib/fjl-input-filter) [![GitHub version](https://badge.fury.io/gh/functional-jslib%2Ffjl-input-filter.svg)](http://badge.fury.io/gh/function
We found that fjl-input-filter 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.