
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
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 484 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.