From 7f3d5d8218331547c37f0c7f3f3a74c58552322b Mon Sep 17 00:00:00 2001 From: mamedul <64060121+mamedul@users.noreply.github.com> Date: Sun, 23 Jan 2022 02:20:42 +0600 Subject: [PATCH] v1.0.0 Version 1.0.0 (January 23, 2022)-Initial Release * Upload and public release the initial version. --- README.md | 2 +- package.json | 2 +- src/objectpropvalidator-v1.0.0.js | 2 +- src/objectpropvalidator-v1.0.0.min.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 802a413..9d284bf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # objectpropvalidator --Simple and smallest fine object properties validation checker with suggestions using console +-Simple and small fine object properties validation checker with suggestions using console ## Features diff --git a/package.json b/package.json index 427d73b..3d98eb4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "objectpropvalidator", "version": "1.0.0", - "description": "Simple and smallest fine object properties validation checker with suggestions using console.", + "description": "Simple and small fine object properties validation checker with suggestions using console.", "main": "./src/objectpropvalidator-v1.1.0.min.js", "directories": { "doc": "docs", diff --git a/src/objectpropvalidator-v1.0.0.js b/src/objectpropvalidator-v1.0.0.js index d2a069d..0c0cd86 100644 --- a/src/objectpropvalidator-v1.0.0.js +++ b/src/objectpropvalidator-v1.0.0.js @@ -1,5 +1,5 @@ /** - * objectPropValidator- Simple and fine object properties validation checker + * objectPropValidator- Simple and small fine object properties validation checker with suggestions * * Copyright (c) 2022 by MAMEDUL ISLAM (https://mamedul.github.io/) * diff --git a/src/objectpropvalidator-v1.0.0.min.js b/src/objectpropvalidator-v1.0.0.min.js index b62d04f..40eebd6 100644 --- a/src/objectpropvalidator-v1.0.0.min.js +++ b/src/objectpropvalidator-v1.0.0.min.js @@ -1,2 +1,2 @@ -/*! objectPropValidator- simple object properties validation checker, v1.0.0; (https://mamedul.gitlab.io/dev-projects/objectpropvalidator)- Copyright (c) 2022 by MAMEDUL ISLAM and Licensed under the MIT license */ +/*! objectPropValidator- simple and small fine object properties validation checker with suggestions, v1.0.0; (https://mamedul.gitlab.io/dev-projects/objectpropvalidator)- Copyright (c) 2022 by MAMEDUL ISLAM and Licensed under the MIT license */ !function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.objectPropValidator=t()}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";var t=function(e){var t=!1,r="";try{t=e&&e.toString().match(/^\s*function (\w+)/)}catch(e){}try{r=Object.prototype.toString.call(e).slice(8,-1)}catch(e){}return t?t[1]:r.length>0?r:"function"==typeof e||void 0!==e.name?e.name:""},r=function(e){return void 0===e},o=function(e){return void 0!==e},n=function(e){return"undefined"!=typeof Array&&void 0!==Array.isArray?Array.isArray(e):!(!e.constructor||!e.constructor.name||"Array"!=e.constructor.name)||("undefined"!=typeof Object&&Object.prototype&&Object.prototype.toString&&Object.prototype.toString.call&&Object.prototype.toString.call(e),!0)},i=function(e){return"object"==typeof e},a=function(e,i,a,l,c){var u="CURRENT DATA TYPE: "+i,f="NEED DATA TYPE";switch(!0){case r(a.type):f+=": Undefined";break;case n(a.type):if(a.type.length<=1)f+=": "+(o(a.type[0])?t(a.type[0]):"Undefined");else{f+="(in): [";for(var d=0;d-1))return a("Required type mismatch",y,i,l,c),!1}return r(i.required)||o(i.required)&&i.required,!0},c=function(e){var t=arguments||[],r=o(t[1])&&i(t[1])?t[1]:{enabled:!0,logLevel:"error"};return function(t){if(!r.enabled)return!0;for(var o in e){var n=t[o],a=e[o];null!=a&&(i(a)&&(c(a,r)(n),l(n,a,r,o)))}return!0}};return c}); \ No newline at end of file