Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aofl/form-validate

Package Overview
Dependencies
Maintainers
3
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aofl/form-validate - npm Package Compare versions

Comparing version 1.1.0 to 1.1.2

2

package.json
{
"name": "@aofl/form-validate",
"version": "1.1.0",
"version": "1.1.2",
"description": "Form validation mixin for AoflElement",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,2 +0,2 @@

/* eslint no-invalid-this: "off" */
/* eslint no-invalid-this: "off" */

@@ -15,3 +15,3 @@ /**

*/
let isEqual = (propName) => {
const isEqual = (propName) => {
return function isEqualValidator(value) {

@@ -18,0 +18,0 @@ if (typeof this.target[propName] === 'undefined') return false;

@@ -69,3 +69,3 @@ /**

let target = this.target; // @todo: move to object utils
let propChain = this.propName.split('.');
const propChain = this.propName.split('.');

@@ -112,4 +112,4 @@ for (let i = 0; i < propChain.length - 1; i++) {

getKeys() {
let keys = ['valid', 'pending', 'observed'];
for (let key in this) {
const keys = ['valid', 'pending', 'observed'];
for (const key in this) {
if (!this.hasOwnProperty(key)) continue;

@@ -116,0 +116,0 @@ keys.push(key);

@@ -34,3 +34,3 @@ /**

for (let key in validators) {
for (const key in validators) {
/* istanbul ignore next */

@@ -69,3 +69,3 @@ if (!validators.hasOwnProperty(key)) continue;

for (let key in this) {
for (const key in this) {
/* istanbul ignore next */

@@ -84,3 +84,3 @@ if (!this.hasOwnProperty(key) ||

get valid() {
for (let key in this) {
for (const key in this) {
/* istanbul ignore next */

@@ -102,3 +102,3 @@ if (!this.hasOwnProperty(key) ||

get pending() {
for (let key in this) {
for (const key in this) {
/* istanbul ignore next */

@@ -120,3 +120,3 @@ if (!this.hasOwnProperty(key) ||

get observed() {
for (let key in this) {
for (const key in this) {
/* istanbul ignore next */

@@ -138,3 +138,3 @@ if (!this.hasOwnProperty(key) ||

validate() {
for (let key in this) {
for (const key in this) {
/* istanbul ignore next */

@@ -184,3 +184,3 @@ if (!this.hasOwnProperty(key) ||

const keys = ['valid', 'pending', 'observed'];
for (let key in this) {
for (const key in this) {
/* istanbul ignore next */

@@ -187,0 +187,0 @@ if (!this.hasOwnProperty(key)) continue;

@@ -64,3 +64,3 @@ /* eslint no-invalid-this: "off", require-jsdoc: "off" */

this.testForm.form.validate();
let validateCompleteCached = this.testForm.form.validateComplete;
const validateCompleteCached = this.testForm.form.validateComplete;
this.testForm.form.validate();

@@ -67,0 +67,0 @@ expect(this.testForm.form.validateComplete).to.equal(validateCompleteCached);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc