Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-types

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-types - npm Package Compare versions

Comparing version 4.1.0-rc.1 to 4.1.0

2

dist/shim.m.js

@@ -1,2 +0,2 @@

import{isPlainObject as t}from"is-plain-object";function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var i={silent:!1,logLevel:"warn"},o=Object.defineProperty,f=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function c(e,n,r){void 0===n&&(n={}),void 0===r&&(r=!1);var u={_vueTypes_name:{value:e,writable:!0},def:{value:function(e){return void 0===e?("default"in this&&delete this.default,this):(this.default=f(e)?function(){return[].concat(e)}:t(e)?function(){return Object.assign({},e)}:e,this)}},isRequired:{get:function(){return this.required=!0,this}}};return r&&(u.validate={value:function(){}}),n.validator||(n.validator=function(){return!0}),Object.defineProperties(n,u)}var a=function(){return c("any",{},!0)},s=function(){return c("func",{type:Function},!0)},l=function(){return c("bool",{type:Boolean},!0)},d=function(){return c("string",{type:String},!0)},y=function(){return c("number",{type:Number},!0)},p=function(){return c("array",{type:Array},!0)},b=function(){return c("object",{type:Object},!0)},v=function(){return c("symbol")},g=function(){return c("integer",{type:Number})},h=function(t){return c("oneOf")},O=function(t){return c("custom")},j=function(t){return c("instanceOf",{type:t})},m=function(t){return c("oneOfType")},k=function(t){return c("arrayOf",{type:Array})},_=function(t){return c("objectOf",{type:Object})},w=function(t){return o(c("shape",{type:Object}),"loose",{get:function(){return this}})};function T(t,e,n,r,u){var i;void 0===r&&(r=!1),void 0===u&&(u=!1);var f=((i={})[r?"get":"value"]=function(){return c(e,n,u).def(r?t.defaults[e]:void 0)},i);return o(t,e,f)}function A(t,e,n){void 0===n&&(n={});var r=c(t,Object.assign({},e,n),!!e.validable);return r.validator&&delete r.validator,r}var x=function(t,e){return c(t,e,!0)},N=function(t,e){return c(t,e)},P=function(){var e,r;return r=e=function(){function e(){}return e.extend=function(e){var n=this;if(f(e))return e.forEach(function(t){return n.extend(t)}),this;var r=e.validate,u=e.getter,i=void 0!==u&&u,o=e.type,c=void 0===o?null:o;return T(this,e.name,{type:t(c)&&c.type?null:c},i,!!r)},n(e,null,[{key:"any",get:function(){return a()}},{key:"func",get:function(){return s().def(this.defaults.func)}},{key:"bool",get:function(){return l().def(this.defaults.bool)}},{key:"string",get:function(){return d().def(this.defaults.string)}},{key:"number",get:function(){return y().def(this.defaults.number)}},{key:"array",get:function(){return p().def(this.defaults.array)}},{key:"object",get:function(){return b().def(this.defaults.object)}},{key:"symbol",get:function(){return v()}},{key:"integer",get:function(){return g().def(this.defaults.integer)}}]),e}(),e.defaults={},e.sensibleDefaults=void 0,e.config=i,e.oneOf=h,e.custom=O,e.instanceOf=j,e.oneOfType=m,e.arrayOf=k,e.objectOf=_,e.shape=w,e.utils={toType:c,validate:function(){return!![].slice.call(arguments)}},r}();function D(t){var e,u;return void 0===t&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),u=e=function(e){function u(){return e.apply(this,arguments)||this}return r(u,e),n(u,null,[{key:"sensibleDefaults",get:function(){return Object.assign({},this.defaults)},set:function(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}}]),u}(P),e.defaults=Object.assign({},t),u}"production"!==process.env.NODE_ENV&&!1===i.silent&&console.warn("You are using the production shimmed version of VueTypes in a development build. Refer to https://dwightjack.github.io/vue-types/guide/installation.html#production-build to learn how to configure VueTypes for usage in multiple environments.");var E=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e}(D());export default E;export{a as any,p as array,k as arrayOf,l as bool,i as config,D as createTypes,O as custom,A as fromType,s as func,j as instanceOf,g as integer,y as number,b as object,_ as objectOf,h as oneOf,m as oneOfType,w as shape,d as string,v as symbol,N as toType,x as toValidableType};
import{isPlainObject as t}from"is-plain-object";function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var i={silent:!1,logLevel:"warn"},o=Object.defineProperty,f=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function c(e,n,r){void 0===n&&(n={}),void 0===r&&(r=!1);var u={_vueTypes_name:{value:e,writable:!0},def:{value:function(e){return void 0===e?("default"in this&&delete this.default,this):(this.default=f(e)?function(){return[].concat(e)}:t(e)?function(){return Object.assign({},e)}:e,this)}},isRequired:{get:function(){return this.required=!0,this}}};return r&&(u.validate={value:function(){}}),n.validator||(n.validator=function(){return!0}),Object.defineProperties(n,u)}var a=function(){return c("any",{},!0)},s=function(){return c("func",{type:Function},!0)},l=function(){return c("bool",{type:Boolean},!0)},d=function(){return c("string",{type:String},!0)},y=function(){return c("number",{type:Number},!0)},p=function(){return c("array",{type:Array},!0)},b=function(){return c("object",{type:Object},!0)},v=function(){return c("symbol")},g=function(){return c("integer",{type:Number})},h=function(t){return c("oneOf")},O=function(t){return c("custom")},j=function(t){return c("instanceOf",{type:t})},m=function(t){return c("oneOfType")},k=function(t){return c("arrayOf",{type:Array})},_=function(t){return c("objectOf",{type:Object})},w=function(t){return o(c("shape",{type:Object}),"loose",{get:function(){return this}})};function T(t,e,n,r,u){var i;void 0===r&&(r=!1),void 0===u&&(u=!1);var f=((i={})[r?"get":"value"]=function(){return c(e,Object.assign({},n),u).def(r?t.defaults[e]:void 0)},i);return o(t,e,f)}function A(t,e,n){void 0===n&&(n={});var r=c(t,Object.assign({},e,n),!!e.validable);return r.validator&&delete r.validator,r}var x=function(t,e){return c(t,e,!0)},N=function(t,e){return c(t,e)},P=function(){var e,r;return r=e=function(){function e(){}return e.extend=function(e){var n=this;if(f(e))return e.forEach(function(t){return n.extend(t)}),this;var r=e.validate,u=e.getter,i=void 0!==u&&u,o=e.type,c=void 0===o?null:o;return T(this,e.name,{type:t(c)&&c.type?null:c},i,!!r)},n(e,null,[{key:"any",get:function(){return a()}},{key:"func",get:function(){return s().def(this.defaults.func)}},{key:"bool",get:function(){return l().def(this.defaults.bool)}},{key:"string",get:function(){return d().def(this.defaults.string)}},{key:"number",get:function(){return y().def(this.defaults.number)}},{key:"array",get:function(){return p().def(this.defaults.array)}},{key:"object",get:function(){return b().def(this.defaults.object)}},{key:"symbol",get:function(){return v()}},{key:"integer",get:function(){return g().def(this.defaults.integer)}}]),e}(),e.defaults={},e.sensibleDefaults=void 0,e.config=i,e.oneOf=h,e.custom=O,e.instanceOf=j,e.oneOfType=m,e.arrayOf=k,e.objectOf=_,e.shape=w,e.utils={toType:c,validate:function(){return!![].slice.call(arguments)}},r}();function D(t){var e,u;return void 0===t&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),u=e=function(e){function u(){return e.apply(this,arguments)||this}return r(u,e),n(u,null,[{key:"sensibleDefaults",get:function(){return Object.assign({},this.defaults)},set:function(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}}]),u}(P),e.defaults=Object.assign({},t),u}"production"!==process.env.NODE_ENV&&!1===i.silent&&console.warn("You are using the production shimmed version of VueTypes in a development build. Refer to https://dwightjack.github.io/vue-types/guide/installation.html#production-build to learn how to configure VueTypes for usage in multiple environments.");var E=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e}(D());export default E;export{a as any,p as array,k as arrayOf,l as bool,i as config,D as createTypes,O as custom,A as fromType,s as func,j as instanceOf,g as integer,y as number,b as object,_ as objectOf,h as oneOf,m as oneOfType,w as shape,d as string,v as symbol,N as toType,x as toValidableType};
//# sourceMappingURL=shim.m.js.map

@@ -1,2 +0,2 @@

import{isPlainObject as t}from"is-plain-object";const e={silent:!1,logLevel:"warn"},r=Object.defineProperty,s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function n(e,r={},n=!1){const i={_vueTypes_name:{value:e,writable:!0},def:{value(e){return void 0===e?("default"in this&&delete this.default,this):(this.default=s(e)?()=>[].concat(e):t(e)?()=>Object.assign({},e):e,this)}},isRequired:{get(){return this.required=!0,this}}};return n&&(i.validate={value(){}}),r.validator||(r.validator=()=>!0),Object.defineProperties(r,i)}const i=()=>n("any",{},!0),a=()=>n("func",{type:Function},!0),o=()=>n("bool",{type:Boolean},!0),u=()=>n("string",{type:String},!0),l=()=>n("number",{type:Number},!0),c=()=>n("array",{type:Array},!0),f=()=>n("object",{type:Object},!0),d=()=>n("symbol"),b=()=>n("integer",{type:Number}),p=t=>n("oneOf"),y=t=>n("custom"),g=t=>n("instanceOf",{type:t}),h=t=>n("oneOfType"),v=t=>n("arrayOf",{type:Array}),O=t=>n("objectOf",{type:Object}),j=t=>r(n("shape",{type:Object}),"loose",{get(){return this}});function m(t,e,s,i=!1,a=!1){return r(t,e,{[i?"get":"value"]:()=>n(e,s,a).def(i?t.defaults[e]:void 0)})}function x(t,e,r={}){const s=n(t,Object.assign({},e,r),!!e.validable);return s.validator&&delete s.validator,s}const T=(t,e)=>n(t,e,!0),w=(t,e)=>n(t,e),A=(()=>{var r,x;return x=r=class{static get any(){return i()}static get func(){return a().def(this.defaults.func)}static get bool(){return o().def(this.defaults.bool)}static get string(){return u().def(this.defaults.string)}static get number(){return l().def(this.defaults.number)}static get array(){return c().def(this.defaults.array)}static get object(){return f().def(this.defaults.object)}static get symbol(){return d()}static get integer(){return b().def(this.defaults.integer)}static extend(e){if(s(e))return e.forEach(t=>this.extend(t)),this;const{name:r,validate:n,getter:i=!1,type:a=null}=e;return m(this,r,{type:t(a)&&a.type?null:a},i,!!n)}},r.defaults={},r.sensibleDefaults=void 0,r.config=e,r.oneOf=p,r.custom=y,r.instanceOf=g,r.oneOfType=h,r.arrayOf=v,r.objectOf=O,r.shape=j,r.utils={toType:n,validate:(...t)=>!!t},x})();function D(t={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var e,r;return r=e=class extends A{static get sensibleDefaults(){return Object.assign({},this.defaults)}static set sensibleDefaults(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}},e.defaults=Object.assign({},t),r}"production"!==process.env.NODE_ENV&&!1===e.silent&&console.warn("You are using the production shimmed version of VueTypes in a development build. Refer to https://dwightjack.github.io/vue-types/guide/installation.html#production-build to learn how to configure VueTypes for usage in multiple environments.");class N extends(D()){}export default N;export{i as any,c as array,v as arrayOf,o as bool,e as config,D as createTypes,y as custom,x as fromType,a as func,g as instanceOf,b as integer,l as number,f as object,O as objectOf,p as oneOf,h as oneOfType,j as shape,u as string,d as symbol,w as toType,T as toValidableType};
import{isPlainObject as t}from"is-plain-object";const e={silent:!1,logLevel:"warn"},r=Object.defineProperty,s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function n(e,r={},n=!1){const i={_vueTypes_name:{value:e,writable:!0},def:{value(e){return void 0===e?("default"in this&&delete this.default,this):(this.default=s(e)?()=>[].concat(e):t(e)?()=>Object.assign({},e):e,this)}},isRequired:{get(){return this.required=!0,this}}};return n&&(i.validate={value(){}}),r.validator||(r.validator=()=>!0),Object.defineProperties(r,i)}const i=()=>n("any",{},!0),a=()=>n("func",{type:Function},!0),o=()=>n("bool",{type:Boolean},!0),u=()=>n("string",{type:String},!0),l=()=>n("number",{type:Number},!0),c=()=>n("array",{type:Array},!0),f=()=>n("object",{type:Object},!0),d=()=>n("symbol"),b=()=>n("integer",{type:Number}),g=t=>n("oneOf"),p=t=>n("custom"),y=t=>n("instanceOf",{type:t}),h=t=>n("oneOfType"),v=t=>n("arrayOf",{type:Array}),O=t=>n("objectOf",{type:Object}),j=t=>r(n("shape",{type:Object}),"loose",{get(){return this}});function m(t,e,s,i=!1,a=!1){return r(t,e,{[i?"get":"value"]:()=>n(e,Object.assign({},s),a).def(i?t.defaults[e]:void 0)})}function x(t,e,r={}){const s=n(t,Object.assign({},e,r),!!e.validable);return s.validator&&delete s.validator,s}const T=(t,e)=>n(t,e,!0),w=(t,e)=>n(t,e),A=(()=>{var r,x;return x=r=class{static get any(){return i()}static get func(){return a().def(this.defaults.func)}static get bool(){return o().def(this.defaults.bool)}static get string(){return u().def(this.defaults.string)}static get number(){return l().def(this.defaults.number)}static get array(){return c().def(this.defaults.array)}static get object(){return f().def(this.defaults.object)}static get symbol(){return d()}static get integer(){return b().def(this.defaults.integer)}static extend(e){if(s(e))return e.forEach(t=>this.extend(t)),this;const{name:r,validate:n,getter:i=!1,type:a=null}=e;return m(this,r,{type:t(a)&&a.type?null:a},i,!!n)}},r.defaults={},r.sensibleDefaults=void 0,r.config=e,r.oneOf=g,r.custom=p,r.instanceOf=y,r.oneOfType=h,r.arrayOf=v,r.objectOf=O,r.shape=j,r.utils={toType:n,validate:(...t)=>!!t},x})();function D(t={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var e,r;return r=e=class extends A{static get sensibleDefaults(){return Object.assign({},this.defaults)}static set sensibleDefaults(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}},e.defaults=Object.assign({},t),r}"production"!==process.env.NODE_ENV&&!1===e.silent&&console.warn("You are using the production shimmed version of VueTypes in a development build. Refer to https://dwightjack.github.io/vue-types/guide/installation.html#production-build to learn how to configure VueTypes for usage in multiple environments.");class N extends(D()){}export default N;export{i as any,c as array,v as arrayOf,o as bool,e as config,D as createTypes,p as custom,x as fromType,a as func,y as instanceOf,b as integer,l as number,f as object,O as objectOf,g as oneOf,h as oneOfType,j as shape,u as string,d as symbol,w as toType,T as toValidableType};
//# sourceMappingURL=shim.modern.js.map

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("is-plain-object")):"function"==typeof define&&define.amd?define(["exports","is-plain-object"],e):e((t||self).VueTypes={},t.isPlainObject)}(this,function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o={silent:!1,logLevel:"warn"},f=Object.defineProperty,c=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,n,r){void 0===n&&(n={}),void 0===r&&(r=!1);var u={_vueTypes_name:{value:t,writable:!0},def:{value:function(t){return void 0===t?("default"in this&&delete this.default,this):(this.default=c(t)?function(){return[].concat(t)}:e.isPlainObject(t)?function(){return Object.assign({},t)}:t,this)}},isRequired:{get:function(){return this.required=!0,this}}};return r&&(u.validate={value:function(){}}),n.validator||(n.validator=function(){return!0}),Object.defineProperties(n,u)}var s=function(){return a("any",{},!0)},l=function(){return a("func",{type:Function},!0)},y=function(){return a("bool",{type:Boolean},!0)},d=function(){return a("string",{type:String},!0)},b=function(){return a("number",{type:Number},!0)},p=function(){return a("array",{type:Array},!0)},v=function(){return a("object",{type:Object},!0)},g=function(){return a("symbol")},O=function(){return a("integer",{type:Number})},h=function(t){return a("oneOf")},j=function(t){return a("custom")},m=function(t){return a("instanceOf",{type:t})},T=function(t){return a("oneOfType")},k=function(t){return a("arrayOf",{type:Array})},P=function(t){return a("objectOf",{type:Object})},_=function(t){return f(a("shape",{type:Object}),"loose",{get:function(){return this}})};function x(t,e,n,r,u){var i;void 0===r&&(r=!1),void 0===u&&(u=!1);var o=((i={})[r?"get":"value"]=function(){return a(e,n,u).def(r?t.defaults[e]:void 0)},i);return f(t,e,o)}var A=function(){var t,n;return n=t=function(){function t(){}return t.extend=function(t){var n=this;if(c(t))return t.forEach(function(t){return n.extend(t)}),this;var r=t.validate,u=t.getter,i=void 0!==u&&u,o=t.type,f=void 0===o?null:o;return x(this,t.name,{type:e.isPlainObject(f)&&f.type?null:f},i,!!r)},r(t,null,[{key:"any",get:function(){return s()}},{key:"func",get:function(){return l().def(this.defaults.func)}},{key:"bool",get:function(){return y().def(this.defaults.bool)}},{key:"string",get:function(){return d().def(this.defaults.string)}},{key:"number",get:function(){return b().def(this.defaults.number)}},{key:"array",get:function(){return p().def(this.defaults.array)}},{key:"object",get:function(){return v().def(this.defaults.object)}},{key:"symbol",get:function(){return g()}},{key:"integer",get:function(){return O().def(this.defaults.integer)}}]),t}(),t.defaults={},t.sensibleDefaults=void 0,t.config=o,t.oneOf=h,t.custom=j,t.instanceOf=m,t.oneOfType=T,t.arrayOf=k,t.objectOf=P,t.shape=_,t.utils={toType:a,validate:function(){return!![].slice.call(arguments)}},n}();function q(t){var e,n;return void 0===t&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),n=e=function(e){function n(){return e.apply(this,arguments)||this}return u(n,e),r(n,null,[{key:"sensibleDefaults",get:function(){return Object.assign({},this.defaults)},set:function(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}}]),n}(A),e.defaults=Object.assign({},t),n}var w=function(t){function e(){return t.apply(this,arguments)||this}return u(e,t),e}(q());t.any=s,t.array=p,t.arrayOf=k,t.bool=y,t.config=o,t.createTypes=q,t.custom=j,t.default=w,t.fromType=function(t,e,n){void 0===n&&(n={});var r=a(t,Object.assign({},e,n),!!e.validable);return r.validator&&delete r.validator,r},t.func=l,t.instanceOf=m,t.integer=O,t.number=b,t.object=v,t.objectOf=P,t.oneOf=h,t.oneOfType=T,t.shape=_,t.string=d,t.symbol=g,t.toType=function(t,e){return a(t,e)},t.toValidableType=function(t,e){return a(t,e,!0)}});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("is-plain-object")):"function"==typeof define&&define.amd?define(["exports","is-plain-object"],e):e((t||self).VueTypes={},t.isPlainObject)}(this,function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o={silent:!1,logLevel:"warn"},f=Object.defineProperty,c=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,n,r){void 0===n&&(n={}),void 0===r&&(r=!1);var u={_vueTypes_name:{value:t,writable:!0},def:{value:function(t){return void 0===t?("default"in this&&delete this.default,this):(this.default=c(t)?function(){return[].concat(t)}:e.isPlainObject(t)?function(){return Object.assign({},t)}:t,this)}},isRequired:{get:function(){return this.required=!0,this}}};return r&&(u.validate={value:function(){}}),n.validator||(n.validator=function(){return!0}),Object.defineProperties(n,u)}var s=function(){return a("any",{},!0)},l=function(){return a("func",{type:Function},!0)},y=function(){return a("bool",{type:Boolean},!0)},d=function(){return a("string",{type:String},!0)},b=function(){return a("number",{type:Number},!0)},p=function(){return a("array",{type:Array},!0)},v=function(){return a("object",{type:Object},!0)},g=function(){return a("symbol")},O=function(){return a("integer",{type:Number})},h=function(t){return a("oneOf")},j=function(t){return a("custom")},m=function(t){return a("instanceOf",{type:t})},T=function(t){return a("oneOfType")},k=function(t){return a("arrayOf",{type:Array})},P=function(t){return a("objectOf",{type:Object})},_=function(t){return f(a("shape",{type:Object}),"loose",{get:function(){return this}})};function x(t,e,n,r,u){var i;void 0===r&&(r=!1),void 0===u&&(u=!1);var o=((i={})[r?"get":"value"]=function(){return a(e,Object.assign({},n),u).def(r?t.defaults[e]:void 0)},i);return f(t,e,o)}var A=function(){var t,n;return n=t=function(){function t(){}return t.extend=function(t){var n=this;if(c(t))return t.forEach(function(t){return n.extend(t)}),this;var r=t.validate,u=t.getter,i=void 0!==u&&u,o=t.type,f=void 0===o?null:o;return x(this,t.name,{type:e.isPlainObject(f)&&f.type?null:f},i,!!r)},r(t,null,[{key:"any",get:function(){return s()}},{key:"func",get:function(){return l().def(this.defaults.func)}},{key:"bool",get:function(){return y().def(this.defaults.bool)}},{key:"string",get:function(){return d().def(this.defaults.string)}},{key:"number",get:function(){return b().def(this.defaults.number)}},{key:"array",get:function(){return p().def(this.defaults.array)}},{key:"object",get:function(){return v().def(this.defaults.object)}},{key:"symbol",get:function(){return g()}},{key:"integer",get:function(){return O().def(this.defaults.integer)}}]),t}(),t.defaults={},t.sensibleDefaults=void 0,t.config=o,t.oneOf=h,t.custom=j,t.instanceOf=m,t.oneOfType=T,t.arrayOf=k,t.objectOf=P,t.shape=_,t.utils={toType:a,validate:function(){return!![].slice.call(arguments)}},n}();function q(t){var e,n;return void 0===t&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),n=e=function(e){function n(){return e.apply(this,arguments)||this}return u(n,e),r(n,null,[{key:"sensibleDefaults",get:function(){return Object.assign({},this.defaults)},set:function(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}}]),n}(A),e.defaults=Object.assign({},t),n}var w=function(t){function e(){return t.apply(this,arguments)||this}return u(e,t),e}(q());t.any=s,t.array=p,t.arrayOf=k,t.bool=y,t.config=o,t.createTypes=q,t.custom=j,t.default=w,t.fromType=function(t,e,n){void 0===n&&(n={});var r=a(t,Object.assign({},e,n),!!e.validable);return r.validator&&delete r.validator,r},t.func=l,t.instanceOf=m,t.integer=O,t.number=b,t.object=v,t.objectOf=P,t.oneOf=h,t.oneOfType=T,t.shape=_,t.string=d,t.symbol=g,t.toType=function(t,e){return a(t,e)},t.toValidableType=function(t,e){return a(t,e,!0)}});
//# sourceMappingURL=shim.umd.js.map
{
"name": "vue-types",
"version": "4.1.0-rc.1",
"version": "4.1.0",
"description": "Prop types utility for Vue",

@@ -75,7 +75,7 @@ "author": "Marco Solazzi",

"@babel/plugin-proposal-optional-chaining": "7.14.5",
"@nuxt/types": "2.15.7",
"@nuxt/types": "2.15.8",
"@types/jest": "26.0.24",
"@types/node": "14.17.9",
"@typescript-eslint/eslint-plugin": "4.29.0",
"@typescript-eslint/parser": "4.29.0",
"@typescript-eslint/eslint-plugin": "4.29.1",
"@typescript-eslint/parser": "4.29.1",
"babel-plugin-transform-node-env-inline": "0.4.3",

@@ -90,3 +90,3 @@ "cpy-cli": "3.1.1",

"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-vue": "7.15.1",
"eslint-plugin-vue": "7.16.0",
"jest": "27.0.6",

@@ -100,3 +100,3 @@ "microbundle": "0.13.3",

"vue2": "npm:vue@2.6.14",
"vue3": "npm:vue@3.1.5",
"vue3": "npm:vue@3.2.2",
"vuepress": "1.8.2"

@@ -103,0 +103,0 @@ },

@@ -1,1 +0,1 @@

var t=require("is-plain-object");function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u={silent:!1,logLevel:"warn"},i=Object.defineProperty,f=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function s(e,n,r){void 0===n&&(n={}),void 0===r&&(r=!1);var o={_vueTypes_name:{value:e,writable:!0},def:{value:function(e){return void 0===e?("default"in this&&delete this.default,this):(this.default=f(e)?function(){return[].concat(e)}:t.isPlainObject(e)?function(){return Object.assign({},e)}:e,this)}},isRequired:{get:function(){return this.required=!0,this}}};return r&&(o.validate={value:function(){}}),n.validator||(n.validator=function(){return!0}),Object.defineProperties(n,o)}var a=function(){return s("any",{},!0)},c=function(){return s("func",{type:Function},!0)},l=function(){return s("bool",{type:Boolean},!0)},p=function(){return s("string",{type:String},!0)},y=function(){return s("number",{type:Number},!0)},d=function(){return s("array",{type:Array},!0)},b=function(){return s("object",{type:Object},!0)},v=function(){return s("symbol")},g=function(){return s("integer",{type:Number})},h=function(t){return s("oneOf")},O=function(t){return s("custom")},j=function(t){return s("instanceOf",{type:t})},x=function(t){return s("oneOfType")},m=function(t){return s("arrayOf",{type:Array})},k=function(t){return s("objectOf",{type:Object})},T=function(t){return i(s("shape",{type:Object}),"loose",{get:function(){return this}})};function _(t,e,n,r,o){var u;void 0===r&&(r=!1),void 0===o&&(o=!1);var f=((u={})[r?"get":"value"]=function(){return s(e,n,o).def(r?t.defaults[e]:void 0)},u);return i(t,e,f)}var P=function(){var e,r;return r=e=function(){function e(){}return e.extend=function(e){var n=this;if(f(e))return e.forEach(function(t){return n.extend(t)}),this;var r=e.validate,o=e.getter,u=void 0!==o&&o,i=e.type,s=void 0===i?null:i;return _(this,e.name,{type:t.isPlainObject(s)&&s.type?null:s},u,!!r)},n(e,null,[{key:"any",get:function(){return a()}},{key:"func",get:function(){return c().def(this.defaults.func)}},{key:"bool",get:function(){return l().def(this.defaults.bool)}},{key:"string",get:function(){return p().def(this.defaults.string)}},{key:"number",get:function(){return y().def(this.defaults.number)}},{key:"array",get:function(){return d().def(this.defaults.array)}},{key:"object",get:function(){return b().def(this.defaults.object)}},{key:"symbol",get:function(){return v()}},{key:"integer",get:function(){return g().def(this.defaults.integer)}}]),e}(),e.defaults={},e.sensibleDefaults=void 0,e.config=u,e.oneOf=h,e.custom=O,e.instanceOf=j,e.oneOfType=x,e.arrayOf=m,e.objectOf=k,e.shape=T,e.utils={toType:s,validate:function(){return!![].slice.call(arguments)}},r}();function w(t){var e,o;return void 0===t&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),o=e=function(e){function o(){return e.apply(this,arguments)||this}return r(o,e),n(o,null,[{key:"sensibleDefaults",get:function(){return Object.assign({},this.defaults)},set:function(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}}]),o}(P),e.defaults=Object.assign({},t),o}"production"!==process.env.NODE_ENV&&!1===u.silent&&console.warn("You are using the production shimmed version of VueTypes in a development build. Refer to https://dwightjack.github.io/vue-types/guide/installation.html#production-build to learn how to configure VueTypes for usage in multiple environments.");var A=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e}(w());Object.defineProperty(exports,"__esModule",{value:!0}),exports.any=a,exports.array=d,exports.arrayOf=m,exports.bool=l,exports.config=u,exports.createTypes=w,exports.custom=O,exports.default=A,exports.fromType=function(t,e,n){void 0===n&&(n={});var r=s(t,Object.assign({},e,n),!!e.validable);return r.validator&&delete r.validator,r},exports.func=c,exports.instanceOf=j,exports.integer=g,exports.number=y,exports.object=b,exports.objectOf=k,exports.oneOf=h,exports.oneOfType=x,exports.shape=T,exports.string=p,exports.symbol=v,exports.toType=function(t,e){return s(t,e)},exports.toValidableType=function(t,e){return s(t,e,!0)};
var t=require("is-plain-object");function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u={silent:!1,logLevel:"warn"},i=Object.defineProperty,s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function f(e,n,r){void 0===n&&(n={}),void 0===r&&(r=!1);var o={_vueTypes_name:{value:e,writable:!0},def:{value:function(e){return void 0===e?("default"in this&&delete this.default,this):(this.default=s(e)?function(){return[].concat(e)}:t.isPlainObject(e)?function(){return Object.assign({},e)}:e,this)}},isRequired:{get:function(){return this.required=!0,this}}};return r&&(o.validate={value:function(){}}),n.validator||(n.validator=function(){return!0}),Object.defineProperties(n,o)}var a=function(){return f("any",{},!0)},c=function(){return f("func",{type:Function},!0)},l=function(){return f("bool",{type:Boolean},!0)},p=function(){return f("string",{type:String},!0)},y=function(){return f("number",{type:Number},!0)},d=function(){return f("array",{type:Array},!0)},b=function(){return f("object",{type:Object},!0)},v=function(){return f("symbol")},g=function(){return f("integer",{type:Number})},h=function(t){return f("oneOf")},O=function(t){return f("custom")},j=function(t){return f("instanceOf",{type:t})},x=function(t){return f("oneOfType")},m=function(t){return f("arrayOf",{type:Array})},k=function(t){return f("objectOf",{type:Object})},T=function(t){return i(f("shape",{type:Object}),"loose",{get:function(){return this}})};function _(t,e,n,r,o){var u;void 0===r&&(r=!1),void 0===o&&(o=!1);var s=((u={})[r?"get":"value"]=function(){return f(e,Object.assign({},n),o).def(r?t.defaults[e]:void 0)},u);return i(t,e,s)}var P=function(){var e,r;return r=e=function(){function e(){}return e.extend=function(e){var n=this;if(s(e))return e.forEach(function(t){return n.extend(t)}),this;var r=e.validate,o=e.getter,u=void 0!==o&&o,i=e.type,f=void 0===i?null:i;return _(this,e.name,{type:t.isPlainObject(f)&&f.type?null:f},u,!!r)},n(e,null,[{key:"any",get:function(){return a()}},{key:"func",get:function(){return c().def(this.defaults.func)}},{key:"bool",get:function(){return l().def(this.defaults.bool)}},{key:"string",get:function(){return p().def(this.defaults.string)}},{key:"number",get:function(){return y().def(this.defaults.number)}},{key:"array",get:function(){return d().def(this.defaults.array)}},{key:"object",get:function(){return b().def(this.defaults.object)}},{key:"symbol",get:function(){return v()}},{key:"integer",get:function(){return g().def(this.defaults.integer)}}]),e}(),e.defaults={},e.sensibleDefaults=void 0,e.config=u,e.oneOf=h,e.custom=O,e.instanceOf=j,e.oneOfType=x,e.arrayOf=m,e.objectOf=k,e.shape=T,e.utils={toType:f,validate:function(){return!![].slice.call(arguments)}},r}();function w(t){var e,o;return void 0===t&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),o=e=function(e){function o(){return e.apply(this,arguments)||this}return r(o,e),n(o,null,[{key:"sensibleDefaults",get:function(){return Object.assign({},this.defaults)},set:function(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}}]),o}(P),e.defaults=Object.assign({},t),o}"production"!==process.env.NODE_ENV&&!1===u.silent&&console.warn("You are using the production shimmed version of VueTypes in a development build. Refer to https://dwightjack.github.io/vue-types/guide/installation.html#production-build to learn how to configure VueTypes for usage in multiple environments.");var A=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e}(w());Object.defineProperty(exports,"__esModule",{value:!0}),exports.any=a,exports.array=d,exports.arrayOf=m,exports.bool=l,exports.config=u,exports.createTypes=w,exports.custom=O,exports.default=A,exports.fromType=function(t,e,n){void 0===n&&(n={});var r=f(t,Object.assign({},e,n),!!e.validable);return r.validator&&delete r.validator,r},exports.func=c,exports.instanceOf=j,exports.integer=g,exports.number=y,exports.object=b,exports.objectOf=k,exports.oneOf=h,exports.oneOfType=x,exports.shape=T,exports.string=p,exports.symbol=v,exports.toType=function(t,e){return f(t,e)},exports.toValidableType=function(t,e){return f(t,e,!0)};

@@ -1,1 +0,1 @@

import{isPlainObject as t}from"is-plain-object";function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var i={silent:!1,logLevel:"warn"},o=Object.defineProperty,f=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function c(e,n,r){void 0===n&&(n={}),void 0===r&&(r=!1);var u={_vueTypes_name:{value:e,writable:!0},def:{value:function(e){return void 0===e?("default"in this&&delete this.default,this):(this.default=f(e)?function(){return[].concat(e)}:t(e)?function(){return Object.assign({},e)}:e,this)}},isRequired:{get:function(){return this.required=!0,this}}};return r&&(u.validate={value:function(){}}),n.validator||(n.validator=function(){return!0}),Object.defineProperties(n,u)}var a=function(){return c("any",{},!0)},s=function(){return c("func",{type:Function},!0)},l=function(){return c("bool",{type:Boolean},!0)},d=function(){return c("string",{type:String},!0)},y=function(){return c("number",{type:Number},!0)},p=function(){return c("array",{type:Array},!0)},b=function(){return c("object",{type:Object},!0)},v=function(){return c("symbol")},g=function(){return c("integer",{type:Number})},h=function(t){return c("oneOf")},O=function(t){return c("custom")},j=function(t){return c("instanceOf",{type:t})},m=function(t){return c("oneOfType")},k=function(t){return c("arrayOf",{type:Array})},_=function(t){return c("objectOf",{type:Object})},w=function(t){return o(c("shape",{type:Object}),"loose",{get:function(){return this}})};function T(t,e,n,r,u){var i;void 0===r&&(r=!1),void 0===u&&(u=!1);var f=((i={})[r?"get":"value"]=function(){return c(e,n,u).def(r?t.defaults[e]:void 0)},i);return o(t,e,f)}function A(t,e,n){void 0===n&&(n={});var r=c(t,Object.assign({},e,n),!!e.validable);return r.validator&&delete r.validator,r}var x=function(t,e){return c(t,e,!0)},N=function(t,e){return c(t,e)},P=function(){var e,r;return r=e=function(){function e(){}return e.extend=function(e){var n=this;if(f(e))return e.forEach(function(t){return n.extend(t)}),this;var r=e.validate,u=e.getter,i=void 0!==u&&u,o=e.type,c=void 0===o?null:o;return T(this,e.name,{type:t(c)&&c.type?null:c},i,!!r)},n(e,null,[{key:"any",get:function(){return a()}},{key:"func",get:function(){return s().def(this.defaults.func)}},{key:"bool",get:function(){return l().def(this.defaults.bool)}},{key:"string",get:function(){return d().def(this.defaults.string)}},{key:"number",get:function(){return y().def(this.defaults.number)}},{key:"array",get:function(){return p().def(this.defaults.array)}},{key:"object",get:function(){return b().def(this.defaults.object)}},{key:"symbol",get:function(){return v()}},{key:"integer",get:function(){return g().def(this.defaults.integer)}}]),e}(),e.defaults={},e.sensibleDefaults=void 0,e.config=i,e.oneOf=h,e.custom=O,e.instanceOf=j,e.oneOfType=m,e.arrayOf=k,e.objectOf=_,e.shape=w,e.utils={toType:c,validate:function(){return!![].slice.call(arguments)}},r}();function D(t){var e,u;return void 0===t&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),u=e=function(e){function u(){return e.apply(this,arguments)||this}return r(u,e),n(u,null,[{key:"sensibleDefaults",get:function(){return Object.assign({},this.defaults)},set:function(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}}]),u}(P),e.defaults=Object.assign({},t),u}"production"!==process.env.NODE_ENV&&!1===i.silent&&console.warn("You are using the production shimmed version of VueTypes in a development build. Refer to https://dwightjack.github.io/vue-types/guide/installation.html#production-build to learn how to configure VueTypes for usage in multiple environments.");var E=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e}(D());export default E;export{a as any,p as array,k as arrayOf,l as bool,i as config,D as createTypes,O as custom,A as fromType,s as func,j as instanceOf,g as integer,y as number,b as object,_ as objectOf,h as oneOf,m as oneOfType,w as shape,d as string,v as symbol,N as toType,x as toValidableType};
import{isPlainObject as t}from"is-plain-object";function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var i={silent:!1,logLevel:"warn"},o=Object.defineProperty,f=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function c(e,n,r){void 0===n&&(n={}),void 0===r&&(r=!1);var u={_vueTypes_name:{value:e,writable:!0},def:{value:function(e){return void 0===e?("default"in this&&delete this.default,this):(this.default=f(e)?function(){return[].concat(e)}:t(e)?function(){return Object.assign({},e)}:e,this)}},isRequired:{get:function(){return this.required=!0,this}}};return r&&(u.validate={value:function(){}}),n.validator||(n.validator=function(){return!0}),Object.defineProperties(n,u)}var a=function(){return c("any",{},!0)},s=function(){return c("func",{type:Function},!0)},l=function(){return c("bool",{type:Boolean},!0)},d=function(){return c("string",{type:String},!0)},y=function(){return c("number",{type:Number},!0)},p=function(){return c("array",{type:Array},!0)},b=function(){return c("object",{type:Object},!0)},v=function(){return c("symbol")},g=function(){return c("integer",{type:Number})},h=function(t){return c("oneOf")},O=function(t){return c("custom")},j=function(t){return c("instanceOf",{type:t})},m=function(t){return c("oneOfType")},k=function(t){return c("arrayOf",{type:Array})},_=function(t){return c("objectOf",{type:Object})},w=function(t){return o(c("shape",{type:Object}),"loose",{get:function(){return this}})};function T(t,e,n,r,u){var i;void 0===r&&(r=!1),void 0===u&&(u=!1);var f=((i={})[r?"get":"value"]=function(){return c(e,Object.assign({},n),u).def(r?t.defaults[e]:void 0)},i);return o(t,e,f)}function A(t,e,n){void 0===n&&(n={});var r=c(t,Object.assign({},e,n),!!e.validable);return r.validator&&delete r.validator,r}var x=function(t,e){return c(t,e,!0)},N=function(t,e){return c(t,e)},P=function(){var e,r;return r=e=function(){function e(){}return e.extend=function(e){var n=this;if(f(e))return e.forEach(function(t){return n.extend(t)}),this;var r=e.validate,u=e.getter,i=void 0!==u&&u,o=e.type,c=void 0===o?null:o;return T(this,e.name,{type:t(c)&&c.type?null:c},i,!!r)},n(e,null,[{key:"any",get:function(){return a()}},{key:"func",get:function(){return s().def(this.defaults.func)}},{key:"bool",get:function(){return l().def(this.defaults.bool)}},{key:"string",get:function(){return d().def(this.defaults.string)}},{key:"number",get:function(){return y().def(this.defaults.number)}},{key:"array",get:function(){return p().def(this.defaults.array)}},{key:"object",get:function(){return b().def(this.defaults.object)}},{key:"symbol",get:function(){return v()}},{key:"integer",get:function(){return g().def(this.defaults.integer)}}]),e}(),e.defaults={},e.sensibleDefaults=void 0,e.config=i,e.oneOf=h,e.custom=O,e.instanceOf=j,e.oneOfType=m,e.arrayOf=k,e.objectOf=_,e.shape=w,e.utils={toType:c,validate:function(){return!![].slice.call(arguments)}},r}();function D(t){var e,u;return void 0===t&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),u=e=function(e){function u(){return e.apply(this,arguments)||this}return r(u,e),n(u,null,[{key:"sensibleDefaults",get:function(){return Object.assign({},this.defaults)},set:function(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}}]),u}(P),e.defaults=Object.assign({},t),u}"production"!==process.env.NODE_ENV&&!1===i.silent&&console.warn("You are using the production shimmed version of VueTypes in a development build. Refer to https://dwightjack.github.io/vue-types/guide/installation.html#production-build to learn how to configure VueTypes for usage in multiple environments.");var E=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e}(D());export default E;export{a as any,p as array,k as arrayOf,l as bool,i as config,D as createTypes,O as custom,A as fromType,s as func,j as instanceOf,g as integer,y as number,b as object,_ as objectOf,h as oneOf,m as oneOfType,w as shape,d as string,v as symbol,N as toType,x as toValidableType};

@@ -1,1 +0,1 @@

import{isPlainObject as t}from"is-plain-object";const e={silent:!1,logLevel:"warn"},r=Object.defineProperty,s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function n(e,r={},n=!1){const i={_vueTypes_name:{value:e,writable:!0},def:{value(e){return void 0===e?("default"in this&&delete this.default,this):(this.default=s(e)?()=>[].concat(e):t(e)?()=>Object.assign({},e):e,this)}},isRequired:{get(){return this.required=!0,this}}};return n&&(i.validate={value(){}}),r.validator||(r.validator=()=>!0),Object.defineProperties(r,i)}const i=()=>n("any",{},!0),a=()=>n("func",{type:Function},!0),o=()=>n("bool",{type:Boolean},!0),u=()=>n("string",{type:String},!0),l=()=>n("number",{type:Number},!0),c=()=>n("array",{type:Array},!0),f=()=>n("object",{type:Object},!0),d=()=>n("symbol"),b=()=>n("integer",{type:Number}),p=t=>n("oneOf"),y=t=>n("custom"),g=t=>n("instanceOf",{type:t}),h=t=>n("oneOfType"),v=t=>n("arrayOf",{type:Array}),O=t=>n("objectOf",{type:Object}),j=t=>r(n("shape",{type:Object}),"loose",{get(){return this}});function m(t,e,s,i=!1,a=!1){return r(t,e,{[i?"get":"value"]:()=>n(e,s,a).def(i?t.defaults[e]:void 0)})}function x(t,e,r={}){const s=n(t,Object.assign({},e,r),!!e.validable);return s.validator&&delete s.validator,s}const T=(t,e)=>n(t,e,!0),w=(t,e)=>n(t,e),A=(()=>{var r,x;return x=r=class{static get any(){return i()}static get func(){return a().def(this.defaults.func)}static get bool(){return o().def(this.defaults.bool)}static get string(){return u().def(this.defaults.string)}static get number(){return l().def(this.defaults.number)}static get array(){return c().def(this.defaults.array)}static get object(){return f().def(this.defaults.object)}static get symbol(){return d()}static get integer(){return b().def(this.defaults.integer)}static extend(e){if(s(e))return e.forEach(t=>this.extend(t)),this;const{name:r,validate:n,getter:i=!1,type:a=null}=e;return m(this,r,{type:t(a)&&a.type?null:a},i,!!n)}},r.defaults={},r.sensibleDefaults=void 0,r.config=e,r.oneOf=p,r.custom=y,r.instanceOf=g,r.oneOfType=h,r.arrayOf=v,r.objectOf=O,r.shape=j,r.utils={toType:n,validate:(...t)=>!!t},x})();function D(t={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var e,r;return r=e=class extends A{static get sensibleDefaults(){return Object.assign({},this.defaults)}static set sensibleDefaults(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}},e.defaults=Object.assign({},t),r}"production"!==process.env.NODE_ENV&&!1===e.silent&&console.warn("You are using the production shimmed version of VueTypes in a development build. Refer to https://dwightjack.github.io/vue-types/guide/installation.html#production-build to learn how to configure VueTypes for usage in multiple environments.");class N extends(D()){}export default N;export{i as any,c as array,v as arrayOf,o as bool,e as config,D as createTypes,y as custom,x as fromType,a as func,g as instanceOf,b as integer,l as number,f as object,O as objectOf,p as oneOf,h as oneOfType,j as shape,u as string,d as symbol,w as toType,T as toValidableType};
import{isPlainObject as t}from"is-plain-object";const e={silent:!1,logLevel:"warn"},r=Object.defineProperty,s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function n(e,r={},n=!1){const i={_vueTypes_name:{value:e,writable:!0},def:{value(e){return void 0===e?("default"in this&&delete this.default,this):(this.default=s(e)?()=>[].concat(e):t(e)?()=>Object.assign({},e):e,this)}},isRequired:{get(){return this.required=!0,this}}};return n&&(i.validate={value(){}}),r.validator||(r.validator=()=>!0),Object.defineProperties(r,i)}const i=()=>n("any",{},!0),a=()=>n("func",{type:Function},!0),o=()=>n("bool",{type:Boolean},!0),u=()=>n("string",{type:String},!0),l=()=>n("number",{type:Number},!0),c=()=>n("array",{type:Array},!0),f=()=>n("object",{type:Object},!0),d=()=>n("symbol"),b=()=>n("integer",{type:Number}),g=t=>n("oneOf"),p=t=>n("custom"),y=t=>n("instanceOf",{type:t}),h=t=>n("oneOfType"),v=t=>n("arrayOf",{type:Array}),O=t=>n("objectOf",{type:Object}),j=t=>r(n("shape",{type:Object}),"loose",{get(){return this}});function m(t,e,s,i=!1,a=!1){return r(t,e,{[i?"get":"value"]:()=>n(e,Object.assign({},s),a).def(i?t.defaults[e]:void 0)})}function x(t,e,r={}){const s=n(t,Object.assign({},e,r),!!e.validable);return s.validator&&delete s.validator,s}const T=(t,e)=>n(t,e,!0),w=(t,e)=>n(t,e),A=(()=>{var r,x;return x=r=class{static get any(){return i()}static get func(){return a().def(this.defaults.func)}static get bool(){return o().def(this.defaults.bool)}static get string(){return u().def(this.defaults.string)}static get number(){return l().def(this.defaults.number)}static get array(){return c().def(this.defaults.array)}static get object(){return f().def(this.defaults.object)}static get symbol(){return d()}static get integer(){return b().def(this.defaults.integer)}static extend(e){if(s(e))return e.forEach(t=>this.extend(t)),this;const{name:r,validate:n,getter:i=!1,type:a=null}=e;return m(this,r,{type:t(a)&&a.type?null:a},i,!!n)}},r.defaults={},r.sensibleDefaults=void 0,r.config=e,r.oneOf=g,r.custom=p,r.instanceOf=y,r.oneOfType=h,r.arrayOf=v,r.objectOf=O,r.shape=j,r.utils={toType:n,validate:(...t)=>!!t},x})();function D(t={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var e,r;return r=e=class extends A{static get sensibleDefaults(){return Object.assign({},this.defaults)}static set sensibleDefaults(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}},e.defaults=Object.assign({},t),r}"production"!==process.env.NODE_ENV&&!1===e.silent&&console.warn("You are using the production shimmed version of VueTypes in a development build. Refer to https://dwightjack.github.io/vue-types/guide/installation.html#production-build to learn how to configure VueTypes for usage in multiple environments.");class N extends(D()){}export default N;export{i as any,c as array,v as arrayOf,o as bool,e as config,D as createTypes,p as custom,x as fromType,a as func,y as instanceOf,b as integer,l as number,f as object,O as objectOf,g as oneOf,h as oneOfType,j as shape,u as string,d as symbol,w as toType,T as toValidableType};

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("is-plain-object")):"function"==typeof define&&define.amd?define(["exports","is-plain-object"],e):e((t||self).VueTypes={},t.isPlainObject)}(this,function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o={silent:!1,logLevel:"warn"},f=Object.defineProperty,c=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,n,r){void 0===n&&(n={}),void 0===r&&(r=!1);var u={_vueTypes_name:{value:t,writable:!0},def:{value:function(t){return void 0===t?("default"in this&&delete this.default,this):(this.default=c(t)?function(){return[].concat(t)}:e.isPlainObject(t)?function(){return Object.assign({},t)}:t,this)}},isRequired:{get:function(){return this.required=!0,this}}};return r&&(u.validate={value:function(){}}),n.validator||(n.validator=function(){return!0}),Object.defineProperties(n,u)}var s=function(){return a("any",{},!0)},l=function(){return a("func",{type:Function},!0)},y=function(){return a("bool",{type:Boolean},!0)},d=function(){return a("string",{type:String},!0)},b=function(){return a("number",{type:Number},!0)},p=function(){return a("array",{type:Array},!0)},v=function(){return a("object",{type:Object},!0)},g=function(){return a("symbol")},O=function(){return a("integer",{type:Number})},h=function(t){return a("oneOf")},j=function(t){return a("custom")},m=function(t){return a("instanceOf",{type:t})},T=function(t){return a("oneOfType")},k=function(t){return a("arrayOf",{type:Array})},P=function(t){return a("objectOf",{type:Object})},_=function(t){return f(a("shape",{type:Object}),"loose",{get:function(){return this}})};function x(t,e,n,r,u){var i;void 0===r&&(r=!1),void 0===u&&(u=!1);var o=((i={})[r?"get":"value"]=function(){return a(e,n,u).def(r?t.defaults[e]:void 0)},i);return f(t,e,o)}var A=function(){var t,n;return n=t=function(){function t(){}return t.extend=function(t){var n=this;if(c(t))return t.forEach(function(t){return n.extend(t)}),this;var r=t.validate,u=t.getter,i=void 0!==u&&u,o=t.type,f=void 0===o?null:o;return x(this,t.name,{type:e.isPlainObject(f)&&f.type?null:f},i,!!r)},r(t,null,[{key:"any",get:function(){return s()}},{key:"func",get:function(){return l().def(this.defaults.func)}},{key:"bool",get:function(){return y().def(this.defaults.bool)}},{key:"string",get:function(){return d().def(this.defaults.string)}},{key:"number",get:function(){return b().def(this.defaults.number)}},{key:"array",get:function(){return p().def(this.defaults.array)}},{key:"object",get:function(){return v().def(this.defaults.object)}},{key:"symbol",get:function(){return g()}},{key:"integer",get:function(){return O().def(this.defaults.integer)}}]),t}(),t.defaults={},t.sensibleDefaults=void 0,t.config=o,t.oneOf=h,t.custom=j,t.instanceOf=m,t.oneOfType=T,t.arrayOf=k,t.objectOf=P,t.shape=_,t.utils={toType:a,validate:function(){return!![].slice.call(arguments)}},n}();function q(t){var e,n;return void 0===t&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),n=e=function(e){function n(){return e.apply(this,arguments)||this}return u(n,e),r(n,null,[{key:"sensibleDefaults",get:function(){return Object.assign({},this.defaults)},set:function(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}}]),n}(A),e.defaults=Object.assign({},t),n}var w=function(t){function e(){return t.apply(this,arguments)||this}return u(e,t),e}(q());Object.defineProperty(t,"__esModule",{value:!0}),t.any=s,t.array=p,t.arrayOf=k,t.bool=y,t.config=o,t.createTypes=q,t.custom=j,t.default=w,t.fromType=function(t,e,n){void 0===n&&(n={});var r=a(t,Object.assign({},e,n),!!e.validable);return r.validator&&delete r.validator,r},t.func=l,t.instanceOf=m,t.integer=O,t.number=b,t.object=v,t.objectOf=P,t.oneOf=h,t.oneOfType=T,t.shape=_,t.string=d,t.symbol=g,t.toType=function(t,e){return a(t,e)},t.toValidableType=function(t,e){return a(t,e,!0)}});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("is-plain-object")):"function"==typeof define&&define.amd?define(["exports","is-plain-object"],e):e((t||self).VueTypes={},t.isPlainObject)}(this,function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o={silent:!1,logLevel:"warn"},f=Object.defineProperty,c=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,n,r){void 0===n&&(n={}),void 0===r&&(r=!1);var u={_vueTypes_name:{value:t,writable:!0},def:{value:function(t){return void 0===t?("default"in this&&delete this.default,this):(this.default=c(t)?function(){return[].concat(t)}:e.isPlainObject(t)?function(){return Object.assign({},t)}:t,this)}},isRequired:{get:function(){return this.required=!0,this}}};return r&&(u.validate={value:function(){}}),n.validator||(n.validator=function(){return!0}),Object.defineProperties(n,u)}var s=function(){return a("any",{},!0)},l=function(){return a("func",{type:Function},!0)},y=function(){return a("bool",{type:Boolean},!0)},d=function(){return a("string",{type:String},!0)},b=function(){return a("number",{type:Number},!0)},p=function(){return a("array",{type:Array},!0)},v=function(){return a("object",{type:Object},!0)},g=function(){return a("symbol")},O=function(){return a("integer",{type:Number})},h=function(t){return a("oneOf")},j=function(t){return a("custom")},m=function(t){return a("instanceOf",{type:t})},T=function(t){return a("oneOfType")},k=function(t){return a("arrayOf",{type:Array})},P=function(t){return a("objectOf",{type:Object})},_=function(t){return f(a("shape",{type:Object}),"loose",{get:function(){return this}})};function x(t,e,n,r,u){var i;void 0===r&&(r=!1),void 0===u&&(u=!1);var o=((i={})[r?"get":"value"]=function(){return a(e,Object.assign({},n),u).def(r?t.defaults[e]:void 0)},i);return f(t,e,o)}var A=function(){var t,n;return n=t=function(){function t(){}return t.extend=function(t){var n=this;if(c(t))return t.forEach(function(t){return n.extend(t)}),this;var r=t.validate,u=t.getter,i=void 0!==u&&u,o=t.type,f=void 0===o?null:o;return x(this,t.name,{type:e.isPlainObject(f)&&f.type?null:f},i,!!r)},r(t,null,[{key:"any",get:function(){return s()}},{key:"func",get:function(){return l().def(this.defaults.func)}},{key:"bool",get:function(){return y().def(this.defaults.bool)}},{key:"string",get:function(){return d().def(this.defaults.string)}},{key:"number",get:function(){return b().def(this.defaults.number)}},{key:"array",get:function(){return p().def(this.defaults.array)}},{key:"object",get:function(){return v().def(this.defaults.object)}},{key:"symbol",get:function(){return g()}},{key:"integer",get:function(){return O().def(this.defaults.integer)}}]),t}(),t.defaults={},t.sensibleDefaults=void 0,t.config=o,t.oneOf=h,t.custom=j,t.instanceOf=m,t.oneOfType=T,t.arrayOf=k,t.objectOf=P,t.shape=_,t.utils={toType:a,validate:function(){return!![].slice.call(arguments)}},n}();function q(t){var e,n;return void 0===t&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),n=e=function(e){function n(){return e.apply(this,arguments)||this}return u(n,e),r(n,null,[{key:"sensibleDefaults",get:function(){return Object.assign({},this.defaults)},set:function(e){this.defaults=!1!==e?Object.assign({},!0!==e?e:t):{}}}]),n}(A),e.defaults=Object.assign({},t),n}var w=function(t){function e(){return t.apply(this,arguments)||this}return u(e,t),e}(q());Object.defineProperty(t,"__esModule",{value:!0}),t.any=s,t.array=p,t.arrayOf=k,t.bool=y,t.config=o,t.createTypes=q,t.custom=j,t.default=w,t.fromType=function(t,e,n){void 0===n&&(n={});var r=a(t,Object.assign({},e,n),!!e.validable);return r.validator&&delete r.validator,r},t.func=l,t.instanceOf=m,t.integer=O,t.number=b,t.object=v,t.objectOf=P,t.oneOf=h,t.oneOfType=T,t.shape=_,t.string=d,t.symbol=g,t.toType=function(t,e){return a(t,e)},t.toValidableType=function(t,e){return a(t,e,!0)}});

@@ -101,3 +101,3 @@ /* eslint-disable @typescript-eslint/no-unused-vars */

[prop]: () =>
type(name, props, validable).def(
type(name, Object.assign({}, props), validable).def(
getter ? root.defaults[name] : undefined,

@@ -104,0 +104,0 @@ ),

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc