@aofl/form-validate
Advanced tools
Comparing version 3.0.0-beta.5 to 3.0.0-beta.6
@@ -119,3 +119,3 @@ /** | ||
for (const key in this) { | ||
if (!this.hasOwnProperty(key)) continue; | ||
if (!Object.prototype.hasOwnProperty.call(this, key)) continue; | ||
keys.push(key); | ||
@@ -122,0 +122,0 @@ } |
@@ -35,5 +35,5 @@ /** | ||
/* istanbul ignore next */ | ||
if (!validators.hasOwnProperty(key)) continue; | ||
if (!Object.prototype.hasOwnProperty.call(validators, key)) continue; | ||
/* istanbul ignore next */ | ||
if (this.hasOwnProperty(key)) { | ||
if (Object.prototype.hasOwnProperty.call(this, key)) { | ||
throw new Error(`${key} is a reserved keyword and cannot be used as a validator name.`); | ||
@@ -70,3 +70,3 @@ } | ||
/* istanbul ignore next */ | ||
if (!this.hasOwnProperty(key) || | ||
if (!Object.prototype.hasOwnProperty.call(this, key) || | ||
!(this[key] instanceof ValidationProperty || this[key] instanceof ValidationFunction)) continue; | ||
@@ -85,3 +85,3 @@ | ||
/* istanbul ignore next */ | ||
if (!this.hasOwnProperty(key) || | ||
if (!Object.prototype.hasOwnProperty.call(this, key) || | ||
!(this[key] instanceof ValidationProperty || this[key] instanceof ValidationFunction)) continue; | ||
@@ -103,3 +103,3 @@ | ||
/* istanbul ignore next */ | ||
if (!this.hasOwnProperty(key) || | ||
if (!Object.prototype.hasOwnProperty.call(this, key) || | ||
!(this[key] instanceof ValidationProperty || this[key] instanceof ValidationFunction)) continue; | ||
@@ -121,3 +121,3 @@ | ||
/* istanbul ignore next */ | ||
if (!this.hasOwnProperty(key) || | ||
if (!Object.prototype.hasOwnProperty.call(this, key) || | ||
!(this[key] instanceof ValidationProperty || this[key] instanceof ValidationFunction)) continue; | ||
@@ -139,3 +139,3 @@ | ||
/* istanbul ignore next */ | ||
if (!this.hasOwnProperty(key) || | ||
if (!Object.prototype.hasOwnProperty.call(this, key) || | ||
!(this[key] instanceof ValidationProperty || this[key] instanceof ValidationFunction)) continue; | ||
@@ -185,3 +185,3 @@ | ||
/* istanbul ignore next */ | ||
if (!this.hasOwnProperty(key)) continue; | ||
if (!Object.prototype.hasOwnProperty.call(this, key)) continue; | ||
keys.push(key); | ||
@@ -188,0 +188,0 @@ keys.push(...this[key].getKeys()); |
{ | ||
"name": "@aofl/form-validate", | ||
"version": "3.0.0-beta.5", | ||
"version": "3.0.0-beta.6", | ||
"description": "Form validation mixin for AoflElement", | ||
"main": "index.js", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "cross-env NODE_ENV=production npx aofl build", | ||
"build:dev": "cross-env NODE_ENV=development npx aofl build", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
@@ -32,3 +35,7 @@ "repository": { | ||
"license": "MIT", | ||
"gitHead": "6eab96d111f1ebe9e5c5cff00cf108d46ac4ee19" | ||
"devDependencies": { | ||
"@aofl/cli": "^3.0.0-beta.6", | ||
"cross-env": "^6.0.3" | ||
}, | ||
"gitHead": "23e8e9dd00e515c9305baf320436e43f51d7edd3" | ||
} |
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
58635
20
1147
2