Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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
The npm package fjl-input-filter receives a total of 2 weekly downloads. As such, fjl-input-filter popularity was classified as not popular.
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.