From ec9bdafe5b3a8db9be43a8b6a1bdc3c3ab29c245 Mon Sep 17 00:00:00 2001 From: lucono Date: Wed, 10 Jun 2015 08:20:19 -0400 Subject: [PATCH] version bump --- bower.json | 2 +- dist/xtype.js | 4 ++-- dist/xtype.min.js | 4 ++-- package.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bower.json b/bower.json index edb33ed..d9e6e09 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "xtypejs", - "version": "0.4.1", + "version": "0.4.2", "homepage": "http://xtype.js.org", "description": "Efficient data-validating pseudo types for JavaScript.", "main": "dist/xtype.js", diff --git a/dist/xtype.js b/dist/xtype.js index 370f966..6dbf11a 100644 --- a/dist/xtype.js +++ b/dist/xtype.js @@ -1,4 +1,4 @@ -/** @license | xtypejs v0.4.1 | (c) 2015, Lucas Ononiwu | MIT license, xtype.js.org/license.txt +/** @license | xtypejs v0.4.2 | (c) 2015, Lucas Ononiwu | MIT license, xtype.js.org/license.txt */ /** @@ -49,7 +49,7 @@ * ------------------------- */ - var VERSION = '0.4.1', + var VERSION = '0.4.2', TYPE_DELIMITER_DEFAULT_PATTERN = '[|, ]', NAME_SCHEME_DEFAULT_OPTION_VALUE = 'default', OBJECT_CLASS_REGEX = /^\[object\s(.*)\]$/, diff --git a/dist/xtype.min.js b/dist/xtype.min.js index 1691448..3d1a28e 100644 --- a/dist/xtype.min.js +++ b/dist/xtype.min.js @@ -1,4 +1,4 @@ -/** @license | xtypejs v0.4.1 | (c) 2015, Lucas Ononiwu | MIT license, xtype.js.org/license.txt +/** @license | xtypejs v0.4.2 | (c) 2015, Lucas Ononiwu | MIT license, xtype.js.org/license.txt */ -!function(a,b){"use strict";function c(){var e=d(a,b);return e.newInstance=c,e}function d(a,b){function c(a){["Boolean","Number","String","Symbol","Function","Array","Date","RegExp","Object","Error"].forEach(function(a){Oa["[object "+a+"]"]=a.toLowerCase()}),F(Fa).forEach(function(b){n(b,a)}),m(),D.defineProperty(a,"VERSION",{value:/\s*{{[^}]*}}\s*/g.test(y)?"unspecified":y,enumerable:!0,writable:!1,configurable:!1})}function d(a){var b="object"==typeof a||"function"==typeof a?Oa[G.call(a)]||G.call(a).match(B)[1].toLowerCase():typeof a;return"number"===b&&isNaN(a)&&(b="nan"),Na?Ja[b]||b:b}function e(a){var b=null===a?"null":"object"==typeof a||"function"==typeof a?Oa[G.call(a)]||"object":typeof a;return"number"===b&&isNaN(a)&&(b="nan"),Na?Ja[b]||b:b}function f(a,c){var d="number"==typeof c?Da&c:"string"==typeof c&&Ha[c]!==b?Ha[c]:"function"==typeof c&&a instanceof c?c:j(c,a);return"function"==typeof d||!!i(a,d)}function g(a,b){b="string"==typeof b?b.split(Ma):Array.isArray(b)?b:[b];var c,d=b.length;for(c=0;d>c;c++)if(f(a,b[c]))return b[c];return La[I]}function h(a){return La[i(a)]}function i(a,c){var d=Ka[e(a)]||I;if(0===(d&Ea))return d&(c!==b?Da&c:Da);var f=c!==b?Ea&c:Ea;if(0===f)return 0;var g,h,i,j;switch(d){case ja:return(g=a.length)&&(h=a.trim().length),O&f&&0===g?O:P&f&&g>0&&0===h?P:R&f&&h>1?R:Q&f&&1===h?Q:0;case ka:return S&f&&0==a?S:ta&f&&isFinite(a)?ra&f&&a%1===0?T&f&&a>0?T:W&f&&0>a?W:0:qa&f&&a%1!==0?U&f&&a>0?U:X&f&&0>a?X:0:0:sa&f&&!isFinite(a)?V&f&&a>0?V:Y&f&&0>a?Y:0:0;case ia:return M&f&&1==a?M:N&f&&0==a?N:0;case la:return i=a.length,Z&f&&0===i?Z:$&f&&1===i?$:_&f&&i>1?_:0;case ma:return j=F(a).length,aa&f&&0===j?aa:ba&f&&1===j?ba:ca&f&&j>1?ca:0}return 0}function j(a,b){var c;if("string"==typeof a)c=a,a=a.split(Ma);else if(!Array.isArray(a))return"number"==typeof a?Da&a:"function"==typeof a&&b instanceof a?a:0;for(var d,e=0,f=0,g=a.length;g>f;f++)if(d=a[f],"string"==typeof d)e|=Ka[d]||0;else if("number"==typeof d)e|=Da&d;else if("function"==typeof d&&b instanceof d)return d;return c&&C>=Ia&&(Ha[c]=e,Ia++),e}function k(a){if("object"==typeof a){var c=[],d=[],e=E(null),f=arguments.length>1&&"object"==typeof arguments[1]?arguments[1]:b;x&&F(x).forEach(function(a){d.push(x[a])}),F(a).forEach(function(g){var h=a[g],i="object"==typeof h?h.typeId:h,j="object"==typeof h?h.compactName:b;if(j=j||(f?f[g]:b),!/^([0-9a-z_]+)$/.test(g))throw"Type name must only contain lowercase alphanumeric characters and underscore";if("number"!=typeof i||(i&Da)!==i)throw"Custom type Id can only be derived using built-in types.";if(c.indexOf(i)>-1||i in La)throw'Custom type Id "'+i+'" conflicts with new or existing type Id';if(g in Fa)throw'Custom type name "'+g+'" conflicts with existing type name';c.push(i);var k=E(null);if(k.typeId=i,x&&"string"==typeof j){if(d.indexOf(j)>0)throw'Custom compact name "'+j+'" conflicts with new or existing name';k.compactName=j,d.push(j)}e[g]=k}),F(e).forEach(function(a){var b=e[a];Fa[a]=b.typeId,"compactName"in b&&(x[a]=b.compactName),n(a,w)}),m(Ja)}}function l(a,b){if("string"==typeof a&&0!==a.trim().length&&"object"==typeof b){var c=a.trim(),d=Ga[c],e=E(null);return F(b).forEach(function(a){e[a]=b[a]}),Ga[c]=e,d}}function m(a){var b=E(null),c=E(null),d=E(null),e=E(null);F(Fa).forEach(function(f){var g=Fa[f],h=a?a[f]:f;if(h="string"==typeof h&&h.length>0?h:f,h in e)throw new Error('Type name conflict: "'+h+'" aliased to "'+f+'" and "'+e[h]+'"');b[g]=h,c[h]=g,d[f]=h,e[h]=f}),La=b,Ka=c,Ja=d,Na=!!a,o()}function n(a,c){D.defineProperty(c,a.toUpperCase(),{value:Fa[a],enumerable:!0,writable:!1,configurable:!1});var d=p(a),e=function(b){return f(b,Fa[a])};c[d]=e,c.not=c.not||E(null),c.not[d]=function(a){return!e(a)},c.any=c.any||E(null),c.any[d]=q(e,!0,b,!0),c.all=c.all||E(null),c.all[d]=q(e,b,!0,!1),c.some=c.some||E(null),c.some[d]=q(e,!0,!0,!0),c.none=c.none||E(null),c.none[d]=q(e,!0,b,!1)}function o(){Ha=E(null),Ia=0}function p(a){var b=a.toLowerCase().replace(/(^|_)(.)/g,function(a,b,c){return c.toUpperCase()});return"is"+b}function q(a,c,d,e){return function(f){f=arguments.length>1?Array.prototype.slice.call(arguments):Array.isArray(f)?f:[f];var g,h=!1,i=!1;for(g=0;gc;c++)if(f(a,b[c]))return b[c];return La[I]}function h(a){return La[i(a)]}function i(a,c){var d=Ka[e(a)]||I;if(0===(d&Ea))return d&(c!==b?Da&c:Da);var f=c!==b?Ea&c:Ea;if(0===f)return 0;var g,h,i,j;switch(d){case ja:return(g=a.length)&&(h=a.trim().length),O&f&&0===g?O:P&f&&g>0&&0===h?P:R&f&&h>1?R:Q&f&&1===h?Q:0;case ka:return S&f&&0==a?S:ta&f&&isFinite(a)?ra&f&&a%1===0?T&f&&a>0?T:W&f&&0>a?W:0:qa&f&&a%1!==0?U&f&&a>0?U:X&f&&0>a?X:0:0:sa&f&&!isFinite(a)?V&f&&a>0?V:Y&f&&0>a?Y:0:0;case ia:return M&f&&1==a?M:N&f&&0==a?N:0;case la:return i=a.length,Z&f&&0===i?Z:$&f&&1===i?$:_&f&&i>1?_:0;case ma:return j=F(a).length,aa&f&&0===j?aa:ba&f&&1===j?ba:ca&f&&j>1?ca:0}return 0}function j(a,b){var c;if("string"==typeof a)c=a,a=a.split(Ma);else if(!Array.isArray(a))return"number"==typeof a?Da&a:"function"==typeof a&&b instanceof a?a:0;for(var d,e=0,f=0,g=a.length;g>f;f++)if(d=a[f],"string"==typeof d)e|=Ka[d]||0;else if("number"==typeof d)e|=Da&d;else if("function"==typeof d&&b instanceof d)return d;return c&&C>=Ia&&(Ha[c]=e,Ia++),e}function k(a){if("object"==typeof a){var c=[],d=[],e=E(null),f=arguments.length>1&&"object"==typeof arguments[1]?arguments[1]:b;x&&F(x).forEach(function(a){d.push(x[a])}),F(a).forEach(function(g){var h=a[g],i="object"==typeof h?h.typeId:h,j="object"==typeof h?h.compactName:b;if(j=j||(f?f[g]:b),!/^([0-9a-z_]+)$/.test(g))throw"Type name must only contain lowercase alphanumeric characters and underscore";if("number"!=typeof i||(i&Da)!==i)throw"Custom type Id can only be derived using built-in types.";if(c.indexOf(i)>-1||i in La)throw'Custom type Id "'+i+'" conflicts with new or existing type Id';if(g in Fa)throw'Custom type name "'+g+'" conflicts with existing type name';c.push(i);var k=E(null);if(k.typeId=i,x&&"string"==typeof j){if(d.indexOf(j)>0)throw'Custom compact name "'+j+'" conflicts with new or existing name';k.compactName=j,d.push(j)}e[g]=k}),F(e).forEach(function(a){var b=e[a];Fa[a]=b.typeId,"compactName"in b&&(x[a]=b.compactName),n(a,w)}),m(Ja)}}function l(a,b){if("string"==typeof a&&0!==a.trim().length&&"object"==typeof b){var c=a.trim(),d=Ga[c],e=E(null);return F(b).forEach(function(a){e[a]=b[a]}),Ga[c]=e,d}}function m(a){var b=E(null),c=E(null),d=E(null),e=E(null);F(Fa).forEach(function(f){var g=Fa[f],h=a?a[f]:f;if(h="string"==typeof h&&h.length>0?h:f,h in e)throw new Error('Type name conflict: "'+h+'" aliased to "'+f+'" and "'+e[h]+'"');b[g]=h,c[h]=g,d[f]=h,e[h]=f}),La=b,Ka=c,Ja=d,Na=!!a,o()}function n(a,c){D.defineProperty(c,a.toUpperCase(),{value:Fa[a],enumerable:!0,writable:!1,configurable:!1});var d=p(a),e=function(b){return f(b,Fa[a])};c[d]=e,c.not=c.not||E(null),c.not[d]=function(a){return!e(a)},c.any=c.any||E(null),c.any[d]=q(e,!0,b,!0),c.all=c.all||E(null),c.all[d]=q(e,b,!0,!1),c.some=c.some||E(null),c.some[d]=q(e,!0,!0,!0),c.none=c.none||E(null),c.none[d]=q(e,!0,b,!1)}function o(){Ha=E(null),Ia=0}function p(a){var b=a.toLowerCase().replace(/(^|_)(.)/g,function(a,b,c){return c.toUpperCase()});return"is"+b}function q(a,c,d,e){return function(f){f=arguments.length>1?Array.prototype.slice.call(arguments):Array.isArray(f)?f:[f];var g,h=!1,i=!1;for(g=0;g