@aofl/form-validate
Advanced tools
Comparing version 1.1.0 to 1.1.2
{ | ||
"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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
37979
0