
Research
/Security News
Two Joyfill npm Beta Releases Compromised to Deliver DEV#POPPER Remote Access Trojan
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.
@seges/angular-validators
Advanced tools
#Validators for angular directives
##Prerequisites TypeScript 1.8.10
##How to use
Import the module.
Add the module as a dependency to your angular project.
There are five custom validators:
###Maximum and minimum value Validates the given value against a set max/min value. The set max/min value can be dynamic e.g. set through variable reference:
Example with ngMessages:
<form name="myForm">
<input name="maxval" ng-model="ctrl.value" max-value="{{ctrl.myMaxValue}}"/>
<div class="validation-messages" ng-messages="myForm.maxval.$error" ng-if="myForm.maxval.$invalid">
<span ng-message="maxValue">Number is too big</span>
</div>
</form>
###Integer Validates that the given value is an integer.
Example with ngMessages:
<form name="myForm">
<input name="int" ng-model="ctrl.value" integer/>
<div class="validation-messages" ng-messages="myForm.int.$error" ng-if="myForm.int.$invalid">
<span ng-message="integer">Number is too big</span>
</div>
</form>
###Minute format Validates that the input is in the format 00:00.
Example with ngMessages:
<form name="myForm">
<input name="minute" ng-model="ctrl.value" minute-format/>
<div class="validation-messages" ng-messages="myForm.minute.$error" ng-if="myForm.minute.$invalid">
<span ng-message="minuteFormat">Number is too big</span>
</div>
</form>
###24 hour format Validates that the input is in the format 00:00.
Example with ngMessages:
<form name="myForm">
<input name="hour" ng-model="ctrl.value" 24-hour-format/>
<div class="validation-messages" ng-messages="myForm.hour.$error" ng-if="myForm.hour.$invalid">
<span ng-message="24HourFormat">Number is too big</span>
</div>
</form>
FAQs
TypeScript 1.8.10
The npm package @seges/angular-validators receives a total of 17 weekly downloads. As such, @seges/angular-validators popularity was classified as not popular.
We found that @seges/angular-validators demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.

Security News
Socket releases free Certified Patches for high-severity Nuxt vulnerabilities, including server-side remote code execution through server island props.

Security News
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.