form-schema
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -1,1 +0,1 @@ | ||
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):"object"==typeof exports?exports.Foo=r():t.Foo=r()}(this,function(){return function(t){function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var e={};return r.m=t,r.c=e,r.p="",r(0)}([function(t,r,e){"use strict";function n(){for(var t=arguments.length,r=Array(t),e=0;t>e;e++)r[e]=arguments[e];return new(a.apply(p.default,[null].concat(r)))}function o(t,r){var e=arguments.length<=2||void 0===arguments[2]?[]:arguments[2],n=arguments.length<=3||void 0===arguments[3]?[]:arguments[3],u=typeof t;if(u="object"===u&&Array.isArray(t)?"array":u,r instanceof p.default){var i=r.validate(t,e,n);return i}if(Array.isArray(r)){if(Array.isArray(t)){var a=t.map(function(u,i){return o(u,r[0],[t].concat(c(e)),[i].concat(c(n)))}),s=a.every(function(t){return t.isValid});return{isValid:s,result:a}}return{isValid:!1,errors:["Expected an array but got a "+u+"."]}}if("object"==typeof r){if("object"===u){var l=function(){var u=f(r).reduce(function(u,i){return u[i]=o(t[i],r[i],[t].concat(c(e)),[i].concat(c(n))),u},{}),i=f(u).every(function(t){return u[t].isValid});return{v:{isValid:i,result:u}}}();if("object"==typeof l)return l.v}return{isValid:!1,errors:["Expected an object but got a "+u+"."]}}throw new Error("_validateHelper(): Not supposed to reach here.")}function u(t){if(t.isValid)return null;if(t.result){var r=function(){var r=t.result;if(Array.isArray(r))return{v:r.map(u)};if("object"==typeof r)return{v:f(r).reduce(function(t,e){return t[e]=u(r[e]),t},{})};throw new Error("_compactResult(): Not supposed to reach here.")}();if("object"==typeof r)return r.v}return new v.default(t.errors,t.data)}function i(t,r){var e=o(t,r),n=u(e);return{isValid:e.isValid,errors:n}}var a=e(30).default,c=e(36).default,f=e(28).default,s=e(35).default;Object.defineProperty(r,"__esModule",{value:!0}),r.field=n,r.default=i;var l=e(21),p=s(l),d=e(22),v=s(d);r.FormFieldError=v.default},function(t,r){var e=Object;t.exports={create:e.create,getProto:e.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:e.getOwnPropertyDescriptor,setDesc:e.defineProperty,setDescs:e.defineProperties,getKeys:e.keys,getNames:e.getOwnPropertyNames,getSymbols:e.getOwnPropertySymbols,each:[].forEach}},function(t,r){var e=t.exports={};"number"==typeof __e&&(__e=e)},function(t,r,e){var n=e(58)("wks"),o=e(5).Symbol;t.exports=function(t){return n[t]||(n[t]=o&&o[t]||(o||e(62))("Symbol."+t))}},function(t,r,e){function n(t,r){return function(){return t.apply(r,arguments)}}function o(t,r,e){var c,f,s,l,p=t&o.G,d=t&o.P,v=p?u:t&o.S?u[r]:(u[r]||{})[a],y=p?i:i[r]||(i[r]={});p&&(e=r);for(c in e)f=!(t&o.F)&&v&&c in v,f&&c in y||(s=f?v[c]:e[c],p&&"function"!=typeof v[c]?l=e[c]:t&o.B&&f?l=n(s,u):t&o.W&&v[c]==s?!function(t){l=function(r){return this instanceof t?new t(r):t(r)},l[a]=t[a]}(s):l=d&&"function"==typeof s?n(Function.call,s):s,y[c]=l,d&&((y[a]||(y[a]={}))[c]=s))}var u=e(5),i=e(2),a="prototype";o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,t.exports=o},function(t,r){var e="undefined"!=typeof self&&self.Math==Math?self:Function("return this")();t.exports=e,"number"==typeof __g&&(__g=e)},function(t,r,e){var n=e(1),o=e(17);t.exports=e(60)?function(t,r,e){return n.setDesc(t,r,o(1,e))}:function(t,r,e){return t[r]=e,t}},function(t,r,e){var n=e(15),o=e(14);t.exports=function(t,r){return(r?Object:n)(o(t))}},function(t,r){t.exports=function(t){return null!==t&&("object"==typeof t||"function"==typeof t)}},function(t,r){t.exports={}},function(t,r){"use strict";r.default=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},r.__esModule=!0},function(t,r,e){var n=e(8);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,r){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,r,e){var n=e(44);t.exports=function(t,r,e){if(n(t),~e&&void 0===r)return t;switch(e){case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,o){return t.call(r,e,n,o)}}return function(){return t.apply(r,arguments)}}},function(t,r){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,r,e){var n=e(12),o=Object;t.exports=0 in o("z")?o:function(t){return"String"==n(t)?t.split(""):o(t)}},function(t,r){var e={}.hasOwnProperty;t.exports=function(t,r){return e.call(t,r)}},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,e){var n=e(16),o=e(6),u=e(3)("toStringTag");t.exports=function(t,r,e){t&&!n(t=e?t:t.prototype,u)&&o(t,u,r)}},function(t,r){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},function(t,r,e){var n=e(1),o=e(2),u=e(4),i=e(7),a=e(8);n.each.call("freeze,seal,preventExtensions,isFrozen,isSealed,isExtensible,getOwnPropertyDescriptor,getPrototypeOf,keys,getOwnPropertyNames".split(","),function(t,r){var n=(o.Object||{})[t]||Object[t],c=0,f={};f[t]=0==r?function(t){return a(t)?n(t):t}:1==r?function(t){return a(t)?n(t):t}:2==r?function(t){return a(t)?n(t):t}:3==r?function(t){return a(t)?n(t):!0}:4==r?function(t){return a(t)?n(t):!0}:5==r?function(t){return a(t)?n(t):!1}:6==r?function(t,r){return n(i(t),r)}:7==r?function(t){return n(i(t,!0))}:8==r?function(t){return n(i(t))}:e(48).get;try{n("z")}catch(s){c=1}u(u.S+u.F*c,"Object",f)})},function(t,r,e){"use strict";var n=e(31).default,o=e(10).default,u=e(32).default;Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function t(){o(this,t);for(var r=arguments.length,e=Array(r),n=0;r>n;n++)e[n]=arguments[n];this._validators=e}return n(t,[{key:"isRequired",value:function(){return this._isRequired=!0,this}},{key:"validate",value:function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),n=1;r>n;n++)e[n-1]=arguments[n];if("undefined"==typeof t||null===t&&"object"==typeof t)return this._isRequired?{isValid:!1,errors:["The field is required."]}:{isValid:!0,errors:[]};var o=this._validators.reduce(function(r,n){var o=r.isValid,u=r.errors,i=n.apply(void 0,[t].concat(e)),a=i.isValid,c=i.error;return a||u.push(c),{isValid:o&&a,errors:u}},{isValid:!0,errors:[]});return u({},o,{data:t})}}]),t}();r.default=i,t.exports=r.default},function(t,r,e){"use strict";var n=e(33).default,o=e(34).default,u=e(10).default;Object.defineProperty(r,"__esModule",{value:!0});var i=function(t){function r(t,e){u(this,r),n(Object.getPrototypeOf(r.prototype),"constructor",this).call(this),this.name="FormFieldError",this.reasons=t,this.data=e,Error.captureStackTrace(this,r)}return o(r,t),r}(Error);r.default=i,t.exports=r.default},function(t,r,e){t.exports={"default":e(37),__esModule:!0}},function(t,r,e){t.exports={"default":e(38),__esModule:!0}},function(t,r,e){t.exports={"default":e(39),__esModule:!0}},function(t,r,e){t.exports={"default":e(40),__esModule:!0}},function(t,r,e){t.exports={"default":e(41),__esModule:!0}},function(t,r,e){t.exports={"default":e(42),__esModule:!0}},function(t,r,e){t.exports={"default":e(43),__esModule:!0}},function(t,r){"use strict";r.default=Function.prototype.bind,r.__esModule=!0},function(t,r,e){"use strict";var n=e(26).default;r.default=function(){function t(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),n(t,o.key,o)}}return function(r,e,n){return e&&t(r.prototype,e),n&&t(r,n),r}}(),r.__esModule=!0},function(t,r,e){"use strict";var n=e(24).default;r.default=n||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},r.__esModule=!0},function(t,r,e){"use strict";var n=e(27).default;r.default=function(t,r,e){for(var o=!0;o;){var u=t,i=r,a=e;c=s=f=void 0,o=!1,null===u&&(u=Function.prototype);var c=n(u,i);if(void 0!==c){if("value"in c)return c.value;var f=c.get;return void 0===f?void 0:f.call(a)}var s=Object.getPrototypeOf(u);if(null===s)return void 0;t=s,r=i,e=a,o=!0}},r.__esModule=!0},function(t,r,e){"use strict";var n=e(25).default,o=e(29).default;r.default=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=n(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(o?o(t,r):t.__proto__=r)},r.__esModule=!0},function(t,r){"use strict";r.default=function(t){return t&&t.__esModule?t:{"default":t}},r.__esModule=!0},function(t,r,e){"use strict";var n=e(23).default;r.default=function(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return n(t)},r.__esModule=!0},function(t,r,e){e(67),e(64),t.exports=e(2).Array.from},function(t,r,e){e(65),t.exports=e(2).Object.assign},function(t,r,e){var n=e(1);t.exports=function(t,r){return n.create(t,r)}},function(t,r,e){var n=e(1);t.exports=function(t,r,e){return n.setDesc(t,r,e)}},function(t,r,e){var n=e(1);e(20),t.exports=function(t,r){return n.getDesc(t,r)}},function(t,r,e){e(20),t.exports=e(2).Object.keys},function(t,r,e){e(66),t.exports=e(2).Object.setPrototypeOf},function(t,r){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,r,e){var n=e(7),o=e(15),u=e(47);t.exports=Object.assign||function(t,r){for(var e=n(t,!0),i=arguments.length,a=1;i>a;)for(var c,f=o(arguments[a++]),s=u(f),l=s.length,p=0;l>p;)e[c=s[p++]]=f[c];return e}},function(t,r,e){var n=e(12),o=e(3)("toStringTag"),u="Arguments"==n(function(){return arguments}());t.exports=function(t){var r,e,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=(r=Object(t))[o])?e:u?n(r):"Object"==(i=n(r))&&"function"==typeof r.callee?"Arguments":i}},function(t,r,e){var n=e(1);t.exports=function(t){var r=n.getKeys(t),e=n.isEnum,o=n.getSymbols;if(o)for(var u,i=o(t),a=0;i.length>a;)e.call(t,u=i[a++])&&r.push(u);return r}},function(t,r,e){function n(t){try{return i(t)}catch(r){return a.slice()}}var o={}.toString,u=e(7),i=e(1).getNames,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.get=function(t){return a&&"[object Window]"==o.call(t)?n(t):i(u(t))}},function(t,r,e){var n=e(9),o=e(3)("iterator");t.exports=function(t){return("Array"in n?n.Array:Array.prototype[o])===t}},function(t,r){t.exports="keys"in[]&&!("next"in[].keys())},function(t,r,e){function n(t){var r=t.return;void 0!==r&&o(r.call(t))}var o=e(11);t.exports=function(t,r,e,u){try{return u?r(o(e)[0],e[1]):r(e)}catch(i){throw n(t),i}}},function(t,r,e){"use strict";var n=e(1),o={};e(6)(o,e(3)("iterator"),function(){return this}),t.exports=function(t,r,u){t.prototype=n.create(o,{next:e(17)(1,u)}),e(18)(t,r+" Iterator")}},function(t,r,e){"use strict";function n(){return this}var o=e(55),u=e(4),i=e(56),a=e(6),c=e(16),f=e(3)("iterator"),s=e(9),l="@@iterator",p="keys",d="values";t.exports=function(t,r,v,y,g,h,_){function x(t){switch(t){case p:return function(){return new v(this,t)};case d:return function(){return new v(this,t)}}return function(){return new v(this,t)}}e(52)(v,r,y);var b,m,w=r+" Iterator",j=t.prototype,O=j[f]||j[l]||g&&j[g],A=O||x(g);if(O){var P=e(1).getProto(A.call(new t));e(18)(P,w,!0),!o&&c(j,l)&&a(P,f,n)}if((!o||_)&&a(j,f,A),s[r]=A,s[w]=n,g)if(b={keys:h?A:x(p),values:g==d?A:x(d),entries:g!=d?A:x("entries")},_)for(m in b)m in j||i(j,m,b[m]);else u(u.P+u.F*e(50),r,b)}},function(t,r,e){var n=e(3)("iterator"),o=!1;try{var u=[7][n]();u.return=function(){o=!0},Array.from(u,function(){throw 2})}catch(i){}t.exports=function(t){if(!o)return!1;var r=!1;try{var e=[7],u=e[n]();u.next=function(){r=!0},e[n]=function(){return u},t(e)}catch(i){}return r}},function(t,r){t.exports=!0},function(t,r,e){t.exports=e(6)},function(t,r,e){function n(t,r){if(i(t),!u(r)&&null!==r)throw TypeError(r+": can't set as prototype!")}var o=e(1).getDesc,u=e(8),i=e(11);t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r){try{r=e(13)(Function.call,o(Object.prototype,"__proto__").set,2),r({},[])}catch(u){t=!0}return function(e,o){return n(e,o),t?e.__proto__=o:r(e,o),e}}():void 0),check:n}},function(t,r,e){var n=e(5),o="__core-js_shared__",u=n[o]||(n[o]={});t.exports=function(t){return u[t]||(u[t]={})}},function(t,r,e){var n=e(19),o=e(14);t.exports=function(t){return function(r,e){var u,i,a=String(o(r)),c=n(e),f=a.length;return 0>c||c>=f?t?"":void 0:(u=a.charCodeAt(c),55296>u||u>56319||c+1===f||(i=a.charCodeAt(c+1))<56320||i>57343?t?a.charAt(c):u:t?a.slice(c,c+2):(u-55296<<10)+(i-56320)+65536)}}},function(t,r){t.exports=!!function(){try{return 2==Object.defineProperty({},"a",{get:function(){return 2}}).a}catch(t){}}()},function(t,r,e){var n=e(19),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,r){var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},function(t,r,e){var n=e(5),o=e(46),u=e(3)("iterator"),i=e(9);t.exports=e(2).getIteratorMethod=function(t){var r=n.Symbol;return void 0!=t?t[r&&r.iterator||"@@iterator"]||t[u]||i[o(t)]:void 0}},function(t,r,e){var n=e(13),o=e(4),u=e(7),i=e(51),a=e(49),c=e(61),f=e(63);o(o.S+o.F*!e(54)(function(t){Array.from(t)}),"Array",{from:function(t){var r,e,o,s,l=u(t,!0),p="function"==typeof this?this:Array,d=arguments[1],v=void 0!==d,y=0,g=f(l);if(v&&(d=n(d,arguments[2],2)),void 0==g||p==Array&&a(g))for(e=new p(r=c(l.length));r>y;y++)e[y]=v?d(l[y],y):l[y];else for(s=g.call(l),e=new p;!(o=s.next()).done;y++)e[y]=v?i(s,d,[o.value,y],!0):o.value;return e.length=y,e}})},function(t,r,e){var n=e(4);n(n.S,"Object",{assign:e(45)})},function(t,r,e){var n=e(4);n(n.S,"Object",{setPrototypeOf:e(57).set})},function(t,r,e){var n=e(59)(!0);e(53)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,r=this._t,e=this._i;return e>=r.length?{value:void 0,done:!0}:(t=n(r,e),this._i+=t.length,{value:t,done:!1})})}])}); | ||
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):"object"==typeof exports?exports["form-schema"]=r():t["form-schema"]=r()}(this,function(){return function(t){function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var e={};return r.m=t,r.c=e,r.p="",r(0)}([function(t,r,e){"use strict";function n(){for(var t=arguments.length,r=Array(t),e=0;t>e;e++)r[e]=arguments[e];return new(a.apply(p.default,[null].concat(r)))}function o(t,r){var e=arguments.length<=2||void 0===arguments[2]?[]:arguments[2],n=arguments.length<=3||void 0===arguments[3]?[]:arguments[3],u=typeof t;if(u="object"===u&&Array.isArray(t)?"array":u,r instanceof p.default){var i=r.validate(t,e,n);return i}if(Array.isArray(r)){if(Array.isArray(t)){var a=t.map(function(u,i){return o(u,r[0],[t].concat(c(e)),[i].concat(c(n)))}),s=a.every(function(t){return t.isValid});return{isValid:s,result:a}}return{isValid:!1,errors:["Expected an array but got a "+u+"."]}}if("object"==typeof r){if("object"===u){var l=function(){var u=f(r).reduce(function(u,i){return u[i]=o(t[i],r[i],[t].concat(c(e)),[i].concat(c(n))),u},{}),i=f(u).every(function(t){return u[t].isValid});return{v:{isValid:i,result:u}}}();if("object"==typeof l)return l.v}return{isValid:!1,errors:["Expected an object but got a "+u+"."]}}throw new Error("_validateHelper(): Not supposed to reach here.")}function u(t){if(t.isValid)return null;if(t.result){var r=function(){var r=t.result;if(Array.isArray(r))return{v:r.map(u)};if("object"==typeof r)return{v:f(r).reduce(function(t,e){return t[e]=u(r[e]),t},{})};throw new Error("_compactResult(): Not supposed to reach here.")}();if("object"==typeof r)return r.v}return new v.default(t.errors,t.data)}function i(t,r){var e=o(t,r),n=u(e);return{isValid:e.isValid,errors:n}}var a=e(30).default,c=e(36).default,f=e(28).default,s=e(35).default;Object.defineProperty(r,"__esModule",{value:!0}),r.field=n,r.default=i;var l=e(21),p=s(l),d=e(22),v=s(d);r.FormFieldError=v.default},function(t,r){var e=Object;t.exports={create:e.create,getProto:e.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:e.getOwnPropertyDescriptor,setDesc:e.defineProperty,setDescs:e.defineProperties,getKeys:e.keys,getNames:e.getOwnPropertyNames,getSymbols:e.getOwnPropertySymbols,each:[].forEach}},function(t,r){var e=t.exports={};"number"==typeof __e&&(__e=e)},function(t,r,e){var n=e(58)("wks"),o=e(5).Symbol;t.exports=function(t){return n[t]||(n[t]=o&&o[t]||(o||e(62))("Symbol."+t))}},function(t,r,e){function n(t,r){return function(){return t.apply(r,arguments)}}function o(t,r,e){var c,f,s,l,p=t&o.G,d=t&o.P,v=p?u:t&o.S?u[r]:(u[r]||{})[a],y=p?i:i[r]||(i[r]={});p&&(e=r);for(c in e)f=!(t&o.F)&&v&&c in v,f&&c in y||(s=f?v[c]:e[c],p&&"function"!=typeof v[c]?l=e[c]:t&o.B&&f?l=n(s,u):t&o.W&&v[c]==s?!function(t){l=function(r){return this instanceof t?new t(r):t(r)},l[a]=t[a]}(s):l=d&&"function"==typeof s?n(Function.call,s):s,y[c]=l,d&&((y[a]||(y[a]={}))[c]=s))}var u=e(5),i=e(2),a="prototype";o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,t.exports=o},function(t,r){var e="undefined"!=typeof self&&self.Math==Math?self:Function("return this")();t.exports=e,"number"==typeof __g&&(__g=e)},function(t,r,e){var n=e(1),o=e(17);t.exports=e(60)?function(t,r,e){return n.setDesc(t,r,o(1,e))}:function(t,r,e){return t[r]=e,t}},function(t,r,e){var n=e(15),o=e(14);t.exports=function(t,r){return(r?Object:n)(o(t))}},function(t,r){t.exports=function(t){return null!==t&&("object"==typeof t||"function"==typeof t)}},function(t,r){t.exports={}},function(t,r){"use strict";r.default=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},r.__esModule=!0},function(t,r,e){var n=e(8);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,r){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,r,e){var n=e(44);t.exports=function(t,r,e){if(n(t),~e&&void 0===r)return t;switch(e){case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,o){return t.call(r,e,n,o)}}return function(){return t.apply(r,arguments)}}},function(t,r){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,r,e){var n=e(12),o=Object;t.exports=0 in o("z")?o:function(t){return"String"==n(t)?t.split(""):o(t)}},function(t,r){var e={}.hasOwnProperty;t.exports=function(t,r){return e.call(t,r)}},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,e){var n=e(16),o=e(6),u=e(3)("toStringTag");t.exports=function(t,r,e){t&&!n(t=e?t:t.prototype,u)&&o(t,u,r)}},function(t,r){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},function(t,r,e){var n=e(1),o=e(2),u=e(4),i=e(7),a=e(8);n.each.call("freeze,seal,preventExtensions,isFrozen,isSealed,isExtensible,getOwnPropertyDescriptor,getPrototypeOf,keys,getOwnPropertyNames".split(","),function(t,r){var n=(o.Object||{})[t]||Object[t],c=0,f={};f[t]=0==r?function(t){return a(t)?n(t):t}:1==r?function(t){return a(t)?n(t):t}:2==r?function(t){return a(t)?n(t):t}:3==r?function(t){return a(t)?n(t):!0}:4==r?function(t){return a(t)?n(t):!0}:5==r?function(t){return a(t)?n(t):!1}:6==r?function(t,r){return n(i(t),r)}:7==r?function(t){return n(i(t,!0))}:8==r?function(t){return n(i(t))}:e(48).get;try{n("z")}catch(s){c=1}u(u.S+u.F*c,"Object",f)})},function(t,r,e){"use strict";var n=e(31).default,o=e(10).default,u=e(32).default;Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function t(){o(this,t);for(var r=arguments.length,e=Array(r),n=0;r>n;n++)e[n]=arguments[n];this._validators=e}return n(t,[{key:"isRequired",value:function(){return this._isRequired=!0,this}},{key:"validate",value:function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),n=1;r>n;n++)e[n-1]=arguments[n];if("undefined"==typeof t||null===t&&"object"==typeof t)return this._isRequired?{isValid:!1,errors:["The field is required."]}:{isValid:!0,errors:[]};var o=this._validators.reduce(function(r,n){var o=r.isValid,u=r.errors,i=n.apply(void 0,[t].concat(e)),a=i.isValid,c=i.error;return a||u.push(c),{isValid:o&&a,errors:u}},{isValid:!0,errors:[]});return u({},o,{data:t})}}]),t}();r.default=i,t.exports=r.default},function(t,r,e){"use strict";var n=e(33).default,o=e(34).default,u=e(10).default;Object.defineProperty(r,"__esModule",{value:!0});var i=function(t){function r(t,e){u(this,r),n(Object.getPrototypeOf(r.prototype),"constructor",this).call(this),this.name="FormFieldError",this.reasons=t,this.data=e,Error.captureStackTrace(this,r)}return o(r,t),r}(Error);r.default=i,t.exports=r.default},function(t,r,e){t.exports={"default":e(37),__esModule:!0}},function(t,r,e){t.exports={"default":e(38),__esModule:!0}},function(t,r,e){t.exports={"default":e(39),__esModule:!0}},function(t,r,e){t.exports={"default":e(40),__esModule:!0}},function(t,r,e){t.exports={"default":e(41),__esModule:!0}},function(t,r,e){t.exports={"default":e(42),__esModule:!0}},function(t,r,e){t.exports={"default":e(43),__esModule:!0}},function(t,r){"use strict";r.default=Function.prototype.bind,r.__esModule=!0},function(t,r,e){"use strict";var n=e(26).default;r.default=function(){function t(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),n(t,o.key,o)}}return function(r,e,n){return e&&t(r.prototype,e),n&&t(r,n),r}}(),r.__esModule=!0},function(t,r,e){"use strict";var n=e(24).default;r.default=n||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},r.__esModule=!0},function(t,r,e){"use strict";var n=e(27).default;r.default=function(t,r,e){for(var o=!0;o;){var u=t,i=r,a=e;c=s=f=void 0,o=!1,null===u&&(u=Function.prototype);var c=n(u,i);if(void 0!==c){if("value"in c)return c.value;var f=c.get;return void 0===f?void 0:f.call(a)}var s=Object.getPrototypeOf(u);if(null===s)return void 0;t=s,r=i,e=a,o=!0}},r.__esModule=!0},function(t,r,e){"use strict";var n=e(25).default,o=e(29).default;r.default=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=n(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(o?o(t,r):t.__proto__=r)},r.__esModule=!0},function(t,r){"use strict";r.default=function(t){return t&&t.__esModule?t:{"default":t}},r.__esModule=!0},function(t,r,e){"use strict";var n=e(23).default;r.default=function(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return n(t)},r.__esModule=!0},function(t,r,e){e(67),e(64),t.exports=e(2).Array.from},function(t,r,e){e(65),t.exports=e(2).Object.assign},function(t,r,e){var n=e(1);t.exports=function(t,r){return n.create(t,r)}},function(t,r,e){var n=e(1);t.exports=function(t,r,e){return n.setDesc(t,r,e)}},function(t,r,e){var n=e(1);e(20),t.exports=function(t,r){return n.getDesc(t,r)}},function(t,r,e){e(20),t.exports=e(2).Object.keys},function(t,r,e){e(66),t.exports=e(2).Object.setPrototypeOf},function(t,r){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,r,e){var n=e(7),o=e(15),u=e(47);t.exports=Object.assign||function(t,r){for(var e=n(t,!0),i=arguments.length,a=1;i>a;)for(var c,f=o(arguments[a++]),s=u(f),l=s.length,p=0;l>p;)e[c=s[p++]]=f[c];return e}},function(t,r,e){var n=e(12),o=e(3)("toStringTag"),u="Arguments"==n(function(){return arguments}());t.exports=function(t){var r,e,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=(r=Object(t))[o])?e:u?n(r):"Object"==(i=n(r))&&"function"==typeof r.callee?"Arguments":i}},function(t,r,e){var n=e(1);t.exports=function(t){var r=n.getKeys(t),e=n.isEnum,o=n.getSymbols;if(o)for(var u,i=o(t),a=0;i.length>a;)e.call(t,u=i[a++])&&r.push(u);return r}},function(t,r,e){function n(t){try{return i(t)}catch(r){return a.slice()}}var o={}.toString,u=e(7),i=e(1).getNames,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.get=function(t){return a&&"[object Window]"==o.call(t)?n(t):i(u(t))}},function(t,r,e){var n=e(9),o=e(3)("iterator");t.exports=function(t){return("Array"in n?n.Array:Array.prototype[o])===t}},function(t,r){t.exports="keys"in[]&&!("next"in[].keys())},function(t,r,e){function n(t){var r=t.return;void 0!==r&&o(r.call(t))}var o=e(11);t.exports=function(t,r,e,u){try{return u?r(o(e)[0],e[1]):r(e)}catch(i){throw n(t),i}}},function(t,r,e){"use strict";var n=e(1),o={};e(6)(o,e(3)("iterator"),function(){return this}),t.exports=function(t,r,u){t.prototype=n.create(o,{next:e(17)(1,u)}),e(18)(t,r+" Iterator")}},function(t,r,e){"use strict";function n(){return this}var o=e(55),u=e(4),i=e(56),a=e(6),c=e(16),f=e(3)("iterator"),s=e(9),l="@@iterator",p="keys",d="values";t.exports=function(t,r,v,y,h,g,_){function x(t){switch(t){case p:return function(){return new v(this,t)};case d:return function(){return new v(this,t)}}return function(){return new v(this,t)}}e(52)(v,r,y);var m,b,w=r+" Iterator",j=t.prototype,O=j[f]||j[l]||h&&j[h],A=O||x(h);if(O){var P=e(1).getProto(A.call(new t));e(18)(P,w,!0),!o&&c(j,l)&&a(P,f,n)}if((!o||_)&&a(j,f,A),s[r]=A,s[w]=n,h)if(m={keys:g?A:x(p),values:h==d?A:x(d),entries:h!=d?A:x("entries")},_)for(b in m)b in j||i(j,b,m[b]);else u(u.P+u.F*e(50),r,m)}},function(t,r,e){var n=e(3)("iterator"),o=!1;try{var u=[7][n]();u.return=function(){o=!0},Array.from(u,function(){throw 2})}catch(i){}t.exports=function(t){if(!o)return!1;var r=!1;try{var e=[7],u=e[n]();u.next=function(){r=!0},e[n]=function(){return u},t(e)}catch(i){}return r}},function(t,r){t.exports=!0},function(t,r,e){t.exports=e(6)},function(t,r,e){function n(t,r){if(i(t),!u(r)&&null!==r)throw TypeError(r+": can't set as prototype!")}var o=e(1).getDesc,u=e(8),i=e(11);t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r){try{r=e(13)(Function.call,o(Object.prototype,"__proto__").set,2),r({},[])}catch(u){t=!0}return function(e,o){return n(e,o),t?e.__proto__=o:r(e,o),e}}():void 0),check:n}},function(t,r,e){var n=e(5),o="__core-js_shared__",u=n[o]||(n[o]={});t.exports=function(t){return u[t]||(u[t]={})}},function(t,r,e){var n=e(19),o=e(14);t.exports=function(t){return function(r,e){var u,i,a=String(o(r)),c=n(e),f=a.length;return 0>c||c>=f?t?"":void 0:(u=a.charCodeAt(c),55296>u||u>56319||c+1===f||(i=a.charCodeAt(c+1))<56320||i>57343?t?a.charAt(c):u:t?a.slice(c,c+2):(u-55296<<10)+(i-56320)+65536)}}},function(t,r){t.exports=!!function(){try{return 2==Object.defineProperty({},"a",{get:function(){return 2}}).a}catch(t){}}()},function(t,r,e){var n=e(19),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,r){var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},function(t,r,e){var n=e(5),o=e(46),u=e(3)("iterator"),i=e(9);t.exports=e(2).getIteratorMethod=function(t){var r=n.Symbol;return void 0!=t?t[r&&r.iterator||"@@iterator"]||t[u]||i[o(t)]:void 0}},function(t,r,e){var n=e(13),o=e(4),u=e(7),i=e(51),a=e(49),c=e(61),f=e(63);o(o.S+o.F*!e(54)(function(t){Array.from(t)}),"Array",{from:function(t){var r,e,o,s,l=u(t,!0),p="function"==typeof this?this:Array,d=arguments[1],v=void 0!==d,y=0,h=f(l);if(v&&(d=n(d,arguments[2],2)),void 0==h||p==Array&&a(h))for(e=new p(r=c(l.length));r>y;y++)e[y]=v?d(l[y],y):l[y];else for(s=h.call(l),e=new p;!(o=s.next()).done;y++)e[y]=v?i(s,d,[o.value,y],!0):o.value;return e.length=y,e}})},function(t,r,e){var n=e(4);n(n.S,"Object",{assign:e(45)})},function(t,r,e){var n=e(4);n(n.S,"Object",{setPrototypeOf:e(57).set})},function(t,r,e){var n=e(59)(!0);e(53)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,r=this._t,e=this._i;return e>=r.length?{value:void 0,done:!0}:(t=n(r,e),this._i+=t.length,{value:t,done:!1})})}])}); |
{ | ||
"name": "form-schema", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A form validation tool that traverses the data according to the schema and calls the validators.", | ||
"main": "lib/index.js", | ||
"webpack": "src/index.js", | ||
"scripts": { | ||
"browser": "scripts/browser", | ||
"build": "scripts/build", | ||
"clean": "scripts/clean", | ||
"lint": "scripts/lint", | ||
"prepublish": "scripts/prepublish", | ||
"build": "npm run build:lib && npm run build:umd && npm run build:umd:min", | ||
"build:lib": "`npm bin`/babel src --out-dir lib", | ||
"build:umd": "NODE_ENV=development `npm bin`/webpack src/index.js dist/form-schema.js", | ||
"build:umd:min": "NODE_ENV=production `npm bin`/webpack src/index.js dist/form-schema.min.js", | ||
"clean": "rm -rf ./dist ./lib", | ||
"lint": "`npm bin`/eslint --ext .js,.jsx .", | ||
"prepublish": "npm run lint && npm run test && npm run clean && npm run build", | ||
"test": "scripts/test", | ||
@@ -14,0 +15,0 @@ "test:watch": "scripts/test-watch" |
@@ -32,3 +32,3 @@ /* eslint-disable strict, no-var */ | ||
output: { | ||
library: 'Foo', | ||
library: 'form-schema', | ||
libraryTarget: 'umd', | ||
@@ -35,0 +35,0 @@ }, |
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
90563
1729
19