Comparing version 0.2.0 to 0.3.0
@@ -49,7 +49,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ if(!__webpack_require__.o(exports, name)) { | ||
/******/ Object.defineProperty(exports, name, { | ||
/******/ configurable: false, | ||
/******/ enumerable: true, | ||
/******/ get: getter | ||
/******/ }); | ||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); | ||
/******/ } | ||
@@ -60,5 +56,24 @@ /******/ }; | ||
/******/ __webpack_require__.r = function(exports) { | ||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | ||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
/******/ } | ||
/******/ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/******/ }; | ||
/******/ | ||
/******/ // create a fake namespace object | ||
/******/ // mode & 1: value is a module id, require it | ||
/******/ // mode & 2: merge all properties of value into the ns | ||
/******/ // mode & 4: return value when already ns object | ||
/******/ // mode & 8|1: behave like require | ||
/******/ __webpack_require__.t = function(value, mode) { | ||
/******/ if(mode & 1) value = __webpack_require__(value); | ||
/******/ if(mode & 8) return value; | ||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; | ||
/******/ var ns = Object.create(null); | ||
/******/ __webpack_require__.r(ns); | ||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); | ||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); | ||
/******/ return ns; | ||
/******/ }; | ||
/******/ | ||
/******/ // getDefaultExport function for compatibility with non-harmony modules | ||
@@ -65,0 +80,0 @@ /******/ __webpack_require__.n = function(module) { |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Validator=t():e.Validator=t()}(window,function(){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={name:/^[a-zA-Z \-']{3,}$/,zip:/^\d{5}$/,presence:/.+/,email:/^[0-9a-zA-Z]+([0-9a-zA-Z]*[-._+])*[0-9a-zA-Z]+@[0-9a-zA-Z]+([-.][0-9a-zA-Z]+)*([0-9a-zA-Z]*[.])[a-zA-Z]{2,6}$/,phone:/^\d{3}[- .]?\d{3}[- .]?\d{4}$/,address:/[a-zA-Z0-9 \-]{5,}/,integer:/^[+-]?\d+$/,float:/^[+-]?(\d+(.\d+)?)/,"credit-card":/^\d{4} \d{4} \d{4} \d{4}$/,cvc:/^\d{3,5}$/}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeClass=t.addClass=t.hasClass=t.findParentBySelector=t.isInArray=void 0;var a=function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n]==t)return!0;return!1};t.isInArray=a;t.findParentBySelector=function(e,t){for(var n=document.querySelectorAll(t),r=e;r&&!a(n,r);)r=r.parentNode;return r};var r=function(e,t){return e.classList.contains(t)};t.hasClass=r;t.addClass=function(e,t){r(e,t)||e.classList.add(t)};t.removeClass=function(e,t){r(e,t)&&e.classList.remove(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}(n(1)),i=(a=n(0))&&a.__esModule?a:{default:a};function s(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelector("form"),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.form=t,this.settings=l({validClass:"is--valid",errorClass:"is--invalid",validatedClass:"is--validated",watch:!0,classHolder:null,beforeValidate:null,onSubmit:null,afterValidate:null,validationTypes:l({},i.default,a)},n),this.formElements=s(this.form.elements),this.hasJQuery="jQuery"in window,this.submitHandler=this.submit.bind(this),this.elementChangeHandler=this.elementChange.bind(this),this.init(),this}var t,n,a;return t=e,(n=[{key:"init",value:function(){return this.form.setAttribute("novalidate",!0),this.bind(),this}},{key:"getEventName",value:function(e){switch(e){case"color":case"date":case"datetime-local":case"email":case"month":case"number":case"password":case"search":case"tel":case"text":case"textarea":case"time":case"url":case"week":return"input";default:return"change"}}},{key:"bind",value:function(){var e=this;return this.form.addEventListener("submit",this.submitHandler,!1),this.settings.watch?(this.formElements.forEach(function(t){var n=t.type,a=e.getEventName(n);e.hasJQuery?jQuery(t).on(a,e.elementChangeHandler).on("validate",e.elementChangeHandler):t.addEventListener(a,e.elementChangeHandler,!1)}),this):this}},{key:"unbind",value:function(){var e=this;return this.form.removeEventListener("submit",this.submitHandler,!1),this.formElements.forEach(function(t){var n=t.type,a=e.getEventName(n);e.hasJQuery?jQuery(t).off(a,e.elementChangeHandler).off("validate",e.elementChangeHandler):t.removeEventListener(a,e.elementChangeHandler,!1)}),this}},{key:"submit",value:function(e){var t=this.formElements,n=t.length,a=!0;"beforeValidate"in this.settings&&"function"==typeof this.settings.beforeValidate&&this.settings.beforeValidate();for(var i=0;i<n;i++)null!==t[i].getAttribute("required")&&(this.validateElement(t[i])||(a=!1));return r.addClass(this.form,this.settings.validatedClass),a?(r.addClass(this.form,this.settings.validClass),"onSubmit"in this.settings&&"function"==typeof this.settings.onSubmit&&this.settings.onSubmit(e)):(e.preventDefault(),r.removeClass(this.form,this.settings.validClass)),"afterValidate"in this.settings&&"function"==typeof this.settings.afterValidate&&this.settings.afterValidate(),this}},{key:"elementChange",value:function(e){return this.validateElement(e.target),this}},{key:"getElementValidity",value:function(e){var t=e.nodeName.toUpperCase(),n=e.type.toUpperCase(),a=!0;switch(!0){case"TEXTAREA"===t||"INPUT"===t&&("TEXT"===n||"EMAIL"===n||"PASSWORD"===n||"TEL"===n||"NUMBER"===n||"SEARCH"===n):a=this.fieldValidation(e);break;case"INPUT"===t&&"CHECKBOX"===n:a=this.checkboxValidation(e);break;case"INPUT"===t&&"RADIO"===n:a=this.radioValidation(e);break;case"SELECT"===t:a=this.selectValidation(e);break;default:console.error("Can't validate this element!",e)}return a}},{key:"validateElement",value:function(e){var t=this.getElementValidity(e);return t?this.setElementValidClass(e):this.setElementErrorClass(e),this.hasJQuery?(jQuery(e).data("validator",{valid:t}),jQuery(e).trigger("validate:change",t)):e.validator={valid:t},t}},{key:"selectValidation",value:function(e){return!!e.value}},{key:"radioValidation",value:function(e){for(var t=e.name,n=(this.form||document).querySelectorAll('[name="'+t+'"]'),a=!1,r=0;r<n.length;r++)null!==n[r].getAttribute("required")&&n[r].checked&&(a=!0);return a}},{key:"checkboxValidation",value:function(e){return e.checked}},{key:"fieldValidation",value:function(e){var t=!0,n=e.getAttribute("data-validate");if(!n)return t;n=n.replace(/^\['|'\]$/g,"").split(/',\s?'/);for(var a=0;a<n.length;a++){var r=n[a];r.match(/\(([^)]+)\)/)&&(r=r.replace(r.match(/\(([^)]+)\)/)[0],"")),this.validate(e.value,r)||(t=!1),e.value===e.getAttribute("placeholder")&&(t=!1)}return t}},{key:"setElementValidClass",value:function(e){var t=this.getClassHolder(e);return r.addClass(t,this.settings.validClass),r.removeClass(t,this.settings.errorClass),this}},{key:"setElementErrorClass",value:function(e){var t=this.getClassHolder(e);return r.addClass(t,this.settings.errorClass),r.removeClass(t,this.settings.validClass),this}},{key:"getClassHolder",value:function(e){var t=this.settings.classHolder;return t?r.findParentBySelector(e,t):e}},{key:"validate",value:function(e,t){return e.match(this.settings.validationTypes[t])}}])&&u(t.prototype,n),a&&u(t,a),e}();t.default=d},function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=((a=n(2))&&a.__esModule?a:{default:a}).default;t.default=r}]).default}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Validator=t():e.Validator=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={name:/^[a-zA-Z \-']{3,}$/,zip:/^\d{5}$/,presence:/.+/,email:/^[0-9a-zA-Z]+([0-9a-zA-Z]*[-._+])*[0-9a-zA-Z]+@[0-9a-zA-Z]+([-.][0-9a-zA-Z]+)*([0-9a-zA-Z]*[.])[a-zA-Z]{2,6}$/,phone:/^\d{3}[- .]?\d{3}[- .]?\d{4}$/,address:/[a-zA-Z0-9 \-]{5,}/,integer:/^[+-]?\d+$/,float:/^[+-]?(\d+(.\d+)?)/,"credit-card":/^\d{4} \d{4} \d{4} \d{4}$/,cvc:/^\d{3,5}$/}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeClass=t.addClass=t.hasClass=t.findParentBySelector=t.isInArray=void 0;var r=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]==t)return!0;return!1};t.isInArray=r;t.findParentBySelector=function(e,t){for(var n=document.querySelectorAll(t),a=e;a&&!r(n,a);)a=a.parentNode;return a};var a=function(e,t){return e.classList.contains(t)};t.hasClass=a;t.addClass=function(e,t){a(e,t)||e.classList.add(t)};t.removeClass=function(e,t){a(e,t)&&e.classList.remove(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1)),i=(r=n(0))&&r.__esModule?r:{default:r};function s(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelector("form"),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.form=t,this.settings=l({validClass:"is--valid",errorClass:"is--invalid",validatedClass:"is--validated",watch:!0,classHolder:null,beforeValidate:null,onSubmit:null,afterValidate:null,validationTypes:l({},i.default,r)},n),this.formElements=s(this.form.elements),this.hasJQuery="jQuery"in window,this.submitHandler=this.submit.bind(this),this.elementChangeHandler=this.elementChange.bind(this),this.init(),this}var t,n,r;return t=e,(n=[{key:"init",value:function(){return this.form.setAttribute("novalidate",!0),this.bind(),this}},{key:"getEventName",value:function(e){switch(e){case"color":case"date":case"datetime-local":case"email":case"month":case"number":case"password":case"search":case"tel":case"text":case"textarea":case"time":case"url":case"week":return"input";default:return"change"}}},{key:"bind",value:function(){var e=this;return this.form.addEventListener("submit",this.submitHandler,!1),this.settings.watch?(this.formElements.forEach(function(t){var n=t.type,r=e.getEventName(n);e.hasJQuery?jQuery(t).on(r,e.elementChangeHandler).on("validate",e.elementChangeHandler):t.addEventListener(r,e.elementChangeHandler,!1)}),this):this}},{key:"unbind",value:function(){var e=this;return this.form.removeEventListener("submit",this.submitHandler,!1),this.formElements.forEach(function(t){var n=t.type,r=e.getEventName(n);e.hasJQuery?jQuery(t).off(r,e.elementChangeHandler).off("validate",e.elementChangeHandler):t.removeEventListener(r,e.elementChangeHandler,!1)}),this}},{key:"submit",value:function(e){var t=this.formElements,n=t.length,r=!0;"beforeValidate"in this.settings&&"function"==typeof this.settings.beforeValidate&&this.settings.beforeValidate();for(var i=0;i<n;i++)null!==t[i].getAttribute("required")&&(this.validateElement(t[i])||(r=!1));return a.addClass(this.form,this.settings.validatedClass),r?(a.addClass(this.form,this.settings.validClass),"onSubmit"in this.settings&&"function"==typeof this.settings.onSubmit&&this.settings.onSubmit(e)):(e.preventDefault(),a.removeClass(this.form,this.settings.validClass)),"afterValidate"in this.settings&&"function"==typeof this.settings.afterValidate&&this.settings.afterValidate(),this}},{key:"elementChange",value:function(e){return this.validateElement(e.target),this}},{key:"getElementValidity",value:function(e){var t=e.nodeName.toUpperCase(),n=e.type.toUpperCase(),r=!0;switch(!0){case"TEXTAREA"===t||"INPUT"===t&&("TEXT"===n||"EMAIL"===n||"PASSWORD"===n||"TEL"===n||"NUMBER"===n||"SEARCH"===n):r=this.fieldValidation(e);break;case"INPUT"===t&&"CHECKBOX"===n:r=this.checkboxValidation(e);break;case"INPUT"===t&&"RADIO"===n:r=this.radioValidation(e);break;case"SELECT"===t:r=this.selectValidation(e);break;default:console.error("Can't validate this element!",e)}return r}},{key:"validateElement",value:function(e){var t=this.getElementValidity(e);return t?this.setElementValidClass(e):this.setElementErrorClass(e),this.hasJQuery?(jQuery(e).data("validator",{valid:t}),jQuery(e).trigger("validate:change",t)):e.validator={valid:t},t}},{key:"selectValidation",value:function(e){return!!e.value}},{key:"radioValidation",value:function(e){for(var t=e.name,n=(this.form||document).querySelectorAll('[name="'+t+'"]'),r=!1,a=0;a<n.length;a++)null!==n[a].getAttribute("required")&&n[a].checked&&(r=!0);return r}},{key:"checkboxValidation",value:function(e){return e.checked}},{key:"fieldValidation",value:function(e){var t=!0,n=e.getAttribute("data-validate");if(!n)return t;n=n.replace(/^\['|'\]$/g,"").split(/',\s?'/);for(var r=0;r<n.length;r++){var a=n[r];a.match(/\(([^)]+)\)/)&&(a=a.replace(a.match(/\(([^)]+)\)/)[0],"")),this.validate(e.value,a)||(t=!1),e.value===e.getAttribute("placeholder")&&(t=!1)}return t}},{key:"setElementValidClass",value:function(e){var t=this.getClassHolder(e);return a.addClass(t,this.settings.validClass),a.removeClass(t,this.settings.errorClass),this}},{key:"setElementErrorClass",value:function(e){var t=this.getClassHolder(e);return a.addClass(t,this.settings.errorClass),a.removeClass(t,this.settings.validClass),this}},{key:"getClassHolder",value:function(e){var t=this.settings.classHolder;return t?a.findParentBySelector(e,t):e}},{key:"validate",value:function(e,t){return e.match(this.settings.validationTypes[t])}}])&&u(t.prototype,n),r&&u(t,r),e}();t.default=d},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=((r=n(2))&&r.__esModule?r:{default:r}).default;t.default=a}]).default}); |
{ | ||
"name": "dator", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Front-end forms validator", | ||
"main": "dist/bundle.js", | ||
"main": "dist/dator.js", | ||
"scripts": { | ||
@@ -22,3 +22,3 @@ "build": "webpack", | ||
], | ||
"author": "Atanas Atanasov <scriptex.bg@gmail.com> (http://atanas.info)", | ||
"author": "Atanas Atanasov <scriptex.bg@gmail.com> (https://atanas.info)", | ||
"license": "MIT", | ||
@@ -30,11 +30,11 @@ "bugs": { | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0-beta.44", | ||
"@babel/core": "^7.0.0-beta.44", | ||
"@babel/preset-env": "^7.0.0-beta.44", | ||
"@babel/preset-stage-2": "^7.0.0-beta.44", | ||
"@babel/cli": "^7.0.0-beta.52", | ||
"@babel/core": "^7.0.0-beta.52", | ||
"@babel/preset-env": "^7.0.0-beta.52", | ||
"@babel/preset-stage-2": "^7.0.0-beta.52", | ||
"babel-loader": "^8.0.0-beta", | ||
"unminified-webpack-plugin": "^2.0.0", | ||
"webpack": "^4.5.0", | ||
"webpack-cli": "^2.0.14" | ||
"webpack": "^4.15.1", | ||
"webpack-cli": "^3.0.8" | ||
} | ||
} |
@@ -1,5 +0,30 @@ | ||
# vali - Dator | ||
[![GitHub stars](https://img.shields.io/github/stars/scriptex/dator.svg?style=social&label=Stars)](https://github.com/scriptex/dator) | ||
[![GitHub forks](https://img.shields.io/github/forks/scriptex/dator.svg?style=social&label=Fork)](https://github.com/scriptex/dator/network#fork-destination-box) | ||
[![GitHub release](https://img.shields.io/github/release/scriptex/dator.svg)](https://github.com/scriptex/dator/releases/latest) | ||
[![GitHub issues](https://img.shields.io/github/issues/scriptex/dator.svg)](https://github.com/scriptex/dator/issues) | ||
[![GitHub last commit](https://img.shields.io/github/last-commit/scriptex/dator.svg)](https://github.com/scriptex/dator/commits/master) | ||
[![Github file size](https://img.shields.io/github/size/scriptex/dator/dist/bundle.min.js.svg)](https://github.com/scriptex/dator) | ||
[![Build Status](https://travis-ci.org/scriptex/dator.svg?branch=master)](https://travis-ci.org/scriptex/dator) | ||
[![npm](https://img.shields.io/npm/dt/dator.svg)](https://www.npmjs.com/package/dator) | ||
[![npm](https://img.shields.io/npm/v/dator.svg)](https://www.npmjs.com/package/dator) | ||
[![license](https://img.shields.io/github/license/scriptex/dator.svg)](https://github.com/scriptex/dator) | ||
[![Analytics](https://ga-beacon.appspot.com/UA-83446952-1/github.com/scriptex/dator/README.md)](https://github.com/scriptex/dator/) | ||
[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/scriptex/dator/) | ||
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/scriptex/dator/graphs/commit-activity) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/scriptex/dator.svg)](https://greenkeeper.io/) | ||
[![dependencies Status](https://david-dm.org/scriptex/dator/status.svg)](https://david-dm.org/scriptex/dator) | ||
[![devDependencies Status](https://david-dm.org/scriptex/dator/dev-status.svg)](https://david-dm.org/scriptex/dator?type=dev) | ||
Front End Forms Validator | ||
[![ForTheBadge built-with-love](http://ForTheBadge.com/images/badges/built-with-love.svg)](https://github.com/scriptex/) | ||
# Dator. Vali-Dator | ||
Intuitive front-end forms validator based on HTML5 attributes and a tiny bit of JavaScript. | ||
--- | ||
🛠 Status: In Development | ||
--- | ||
## About | ||
@@ -20,1 +45,5 @@ | ||
// Todo | ||
## LICENSE | ||
MIT |
@@ -7,3 +7,3 @@ const UnminifiedWebpackPlugin = require('unminified-webpack-plugin'); | ||
output: { | ||
filename: 'bundle.min.js', | ||
filename: 'dator.min.js', | ||
library: 'Validator', | ||
@@ -10,0 +10,0 @@ libraryTarget: 'umd', |
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
1108
49
46244
11