Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ember-bootstrap-cp-validations
Advanced tools
This Ember addon adds support for validations based on Ember CP Validations to ember-bootstrap forms. This way your forms are only submitted when the underlying data is valid, otherwise the appropriate bootstrap error markup will be applied. See the FormElement documentation for further details.
ember install ember-bootstrap-cp-validations
You should have installed the ember-bootstrap and ember-cp-validations addons already. If not install them:
ember install ember-bootstrap
ember install ember-cp-validations
Define your model and its validations as described in Ember CP Validations:
import Ember from 'ember';
import { validator, buildValidations } from 'ember-cp-validations';
const Validations = buildValidations({
username: validator('presence', true),
email: validator('format', { type: 'email' }),
password: validator('length', { min: 10 }),
});
export default Ember.Component.extend(Validations, {
username: null,
email: null,
password: null,
});
Then assign the model to your form:
<BsForm @model={{this}} as |form|>
<form.element @label="Username" @controlType="text" @property="username" />
<form.element @label="Email" @controlType="email" @property="email" />
<form.element @label="Password" @controlType="password" @property="password" />
<form.submitButton>Submit</form.submitButton>
</BsForm>
See the Contributing guide for details.
This project is licensed under the MIT License.
v2.1.0 (2020-12-09)
FAQs
ember-cp-validations support for ember-bootstrap
The npm package ember-bootstrap-cp-validations receives a total of 353 weekly downloads. As such, ember-bootstrap-cp-validations popularity was classified as not popular.
We found that ember-bootstrap-cp-validations demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.