Comparing version 2.0.0 to 2.0.2
{ | ||
"name": "sugar-core", | ||
"description": "Core package for the Sugar Javascript utility library.", | ||
"description": "Core module for the Sugar Javascript utility library.", | ||
"version": "2.0.2", | ||
"homepage": "https://sugarjs.com/", | ||
"icon": "https://sugarjs.com/icon.svg", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/andrewplummer/Sugar.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Andrew Plummer <plummer.andrew@gmail.com>", | ||
"keywords": [ | ||
@@ -12,11 +21,2 @@ "sugar", | ||
], | ||
"homepage": "https://sugarjs.com/", | ||
"icon": "https://sugarjs.com/icon.svg", | ||
"author": "Andrew Plummer <plummer.andrew@gmail.com>", | ||
"license": "MIT", | ||
"main": "sugar-core.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/andrewplummer/Sugar.git" | ||
}, | ||
"bugs": { | ||
@@ -31,3 +31,4 @@ "url": "https://github.com/andrewplummer/Sugar/issues" | ||
}, | ||
"version": "2.0.0" | ||
"typings": "sugar.d.ts", | ||
"main": "sugar-core.js" | ||
} |
/* | ||
* Sugar v2.0.0 | ||
* Sugar v2.0.2 | ||
* | ||
@@ -9,21 +9,22 @@ * Freely distributable and licensed under the MIT-style license. | ||
* ---------------------------- */ | ||
(function(){'use strict';(function(){function k(a,b){for(var d in a)if(p(a,d)&&!1===b.call(a,a[d],d,a))break}function F(a){function b(a,d,b){l(c,a,function(a,e,g){a=z(a,e,g);V(c,a.methods,d,b,a.a);return c})}var d="Object"===a,c=G(a);b("defineStatic",1);b("defineInstance",2);b("defineInstanceAndStatic",3);b("defineStaticWithArguments",1,!0);b("defineInstanceWithArguments",2,!0);l(c,"defineStaticPolyfill",function(d,c,b){d=z(d,c,b);v(t[a],d.methods,!0,d.a)});l(c,"defineInstancePolyfill",function(d,b,h){d=z(d,b,h);v(t[a].prototype, | ||
d.methods,!0,d.a);k(d.methods,function(a,d){q(c,d,a)})});l(c,"alias",function(a,d){var b=c,g="string"===typeof d?c[d]:d;b[a]=g;g.instance&&q(b,a,g.instance)});l(c,"extend",function(b){function f(a,d){var c=b[a];if(c)for(var f=0,h;h=c[f];f++)if(h===d)return!0;return!1}function h(a,d,c){if(!d[a]||!c)return!1;for(a=0;a<c.length;a++)if(!1===b[c[a]])return!0}var r=t[a],u=r.prototype,m={},n={},q;b=b||{};q=b.methods;if(!f("except",r)&&(!b.namespaces||f("namespaces",r)))return d&&"boolean"===typeof b.objectPrototype&& | ||
(A=b.objectPrototype),k(q||c,function(a,b){q&&(b=a,a=c[b]);!p(a,"instance")||d&&u===u&&(!A||"get"===b||"set"===b)||h(b,u,a.flags)||f("except",b)||(n[b]=a.instance);!p(a,"static")||d&&r===u&&(!A||"get"===b||"set"===b)||h(b,r,a.flags)||f("except",b)||(m[b]=a)}),v(r,m),v(u,n),q||l(c,"active",!0),g});w[a]=c;H["[object "+a+"]"]=c;B(a);W(c);return g[a]=c}function X(){return"Sugar"}function V(a,b,d,c,e){k(b,function(b,h){var g,k=b;c&&(k=I(b));e&&(k.flags=e);d&2&&!b.instance&&(g=c?I(b,!0):Y(b),l(k,"instance", | ||
g));d&1&&l(k,"static",!0);g=k;a[h]=g;g.instance&&q(a,h,g.instance);a.active&&a.extend(h)})}function z(a,b,d){var c;"string"===typeof a?(c={},c[a]=b,a=d):(c=a,a=b);return{a:a,methods:c}}function I(a,b){var d=a.length-1-(b?1:0);return function(){var c=[],e=[],f;b&&c.push(this);f=Math.max(arguments.length,d);for(var h=0;h<f;h++)h<d?c.push(arguments[h]):e.push(arguments[h]);c.push(e);return a.apply(this,c)}}function Y(a){switch(a.length){case 0:case 1:return function(){return a(this)};case 2:return function(b){return a(this, | ||
b)};case 3:return function(b,d){return a(this,b,d)};case 4:return function(b,d,c){return a(this,b,d,c)};case 5:return function(b,d,c,e){return a(this,b,d,c,e)}}}function v(a,b,d,c){k(b,function(b,f){d&&!c&&a[f]||l(a,f,b)})}function G(a){function b(a,c){if(!(this instanceof b))return new b(a,c);this.constructor!==b&&(a=this.constructor.apply(a,arguments));this.raw=a}l(b,"toString",function(){return"Sugar"+a});l(b.prototype,"valueOf",function(){return this.raw});return b}function q(a,b,d){d=Z(d);var c, | ||
e,f;f=J.prototype;e=(c=f[b])&&c!==Object.prototype[b];c&&c.b||(f[b]=e?aa(b):d);a.prototype[b]=d;a===g.Object&&ba(b,d)}function W(a){k(g.Object&&g.Object.prototype,function(b,d){if("function"===typeof b){var c=a.prototype;p(c,d)||(c[d]=b)}})}function ba(a,b){k(w,function(d){d=d.prototype;p(d,a)||(d[a]=b)})}function Z(a){return function(){return new J(a.apply(this.raw,arguments))}}function aa(a){function b(){var b=this.raw,c;null!=b&&(c=H[C(b)]);c||(c=g.Object);c=(new c(b))[a];if(c.b)throw new TypeError("Cannot resolve namespace for "+ | ||
b);return c.apply(this,arguments)}b.b=!0;return b}function B(a,b){var d=w[a],c=t[a].prototype;!b&&K&&(b=K(c));k(b,function(a){if("constructor"!==a&&"valueOf"!==a&&"__proto__"!==a){try{var b=c[a];if("function"!==typeof b)return}catch(h){return}q(d,a,b)}})}function ca(a,b,d){a[b]=d.value}function l(a,b,d,c){L(a,b,{value:d,enumerable:!!c,configurable:!0,writable:!0})}function C(a){return da.call(a)}function p(a,b){return!!a&&ea.call(a,b)}function fa(a,b){if(p(a,b))return a[b]}function D(a,b,d){d||(d= | ||
C(a));return d==="[object "+b+"]"}function M(a){return function(b,d,c){b[a](d,c)}}function m(a){if(!N(a))throw new TypeError("Function is not callable");}function ga(a){var b;b=typeof a;null!=a&&"string"!==b&&"number"!==b&&"boolean"!==b||(a=Object(a));if(ha&&x(a)){b=a;for(var d=0,c;c=b.charAt(d);)b[d++]=c}return a}function O(a,b,d,c){var e=[],f;for(f in a)f>>>0==f&&4294967295!=f&&(d||(c?f<=b:f>=b))&&e.push(+f);e.sort(function(a,d){var c=a>b;return c!==d>b?c?-1:1:a-d});return e}function ia(a){for(var b= | ||
"Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" "),d=0,c=b.length;d<c;d++){if(!(d in b)){for(var d=O(b,d,void 0),e=0,f=d.length;e<f;e++)c=d[e],a.call(b,b[c],c,b);break}a(b[d],d)}}function n(a,b){for(var d=ja(a).toString(10),c="0",e=b-d.replace(/\.\d+/,"").length,f="",c=c.toString();0<e;)if(e&1&&(f+=c),e>>=1)c+=c;d=f+d;0>a&&(d=(0>a?"-":"+")+d);return d}function ka(){function a(a,c){for(var e=0;e<b.length;e++)c.push(a+b[e])}var b="FullYear Month Date Hours Minutes Seconds Milliseconds".split(" "); | ||
k({Function:"apply,call",RegExp:"compile,exec,test",Number:"toExponential,toFixed,toLocaleString,toPrecision",Object:"hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString",Array:"concat,join,pop,push,reverse,shift,slice,sort,splice,toLocaleString,unshift",Date:"getTime,getTimezoneOffset,setTime,toDateString,toGMTString,toLocaleDateString,toLocaleString,toLocaleTimeString,toTimeString,toUTCString",String:"anchor,big,blink,bold,charAt,charCodeAt,concat,fixed,fontcolor,fontsize,indexOf,italics,lastIndexOf,link,localeCompare,match,replace,search,slice,small,split,strike,sub,substr,substring,sup,toLocaleLowerCase,toLocaleUpperCase,toLowerCase,toUpperCase"}, | ||
function(b,c){var e=b.split(",");"Date"===c&&(a("get",e),a("set",e),a("getUTC",e),a("setUTC",e));e.push("toString");B(c,e)})}function P(a,b,d,c){var e=a.length,f,h;h=c?-1:1;f=c?e-1:0;(d=la(d))||0===d||(d=f);0>d&&(d=e+d);if(!c&&0>d||c&&d>=e)d=f;for(f=d;c&&0<=f||!c&&f<e;){if(!(f in a))return ma(a,b,d,c);if(f>>>0==f&&4294967295!=f&&a[f]===b)return f;f+=h}return-1}function ma(a,b,d,c){d=O(a,d,!1,c);var e;for(d.sort(function(a,b){return c?b-a:a-b});void 0!==(e=d.shift());)if(a[e]===b)return+e;return-1} | ||
function Q(a,b,d,c){var e=a.length,f=0,h=void 0!==d;m(b);if(0!=e||h)h||(d=a[c?e-1:f],f++);else throw new TypeError("Reduce called on empty array with no initial value");for(;f<e;)h=c?e-f-1:f,h in a&&(d=b(d,a[h],h,a)),f++;return d}var g,t="undefined"!==typeof global&&global.Object===Object?global:this,na="undefined"!==typeof module&&module.c,A=!1,w={},H={},L=Object.defineProperty&&Object.defineProperties?Object.defineProperty:ca,J=G("Chainable"),K=Object.getOwnPropertyNames,da=Object.prototype.toString, | ||
ea=Object.prototype.hasOwnProperty;(function(){g=t.Sugar;if(!g){g=function(a){k(g,function(b,d){p(w,d)&&b.extend(a)});return g};if(na)module.c=g;else try{t.Sugar=g}catch(a){}k("Object Number String Array Date RegExp Function".split(" "),function(a){F(a)});l(g,"extend",g);l(g,"toString",X);l(g,"createNamespace",F);l(g,"util",{hasOwn:p,getOwn:fa,setProperty:l,classToString:C,defineProperty:L,forEachProperty:k,mapNativeToChainable:B})}})();var ha=!("0"in Object("a")),oa=g.Object,R=g.Array,S=g.Date,pa= | ||
g.String,qa=g.Function,x,N,T,E=M("defineStaticPolyfill"),y=M("defineInstancePolyfill"),la=Math.trunc||function(a){return 0!==a&&isFinite(a)?0>a?ra(a):sa(a):a},ja=Math.abs,ra=Math.ceil,sa=Math.floor,U=String.fromCharCode;(function(){function a(a,c){return c&&D(new c,"Object")?b(c):d(a)}function b(a){var b=String(a);return function(a){return String(a.constructor)===b}}function d(a){return function(b,c){return D(b,a,c)}}function c(a){var b=a.toLowerCase();return function(c){var d=typeof c;return d=== | ||
b||"object"===d&&D(c,a)}}(function(){var b="Boolean Number String Date RegExp Function Array Error Set Map".split(" ");x=c(b[2]);a(b[3]);a(b[4]);N=a(b[5]);T=Array.isArray||a(b[6]);a(b[7]);a(b[8],"undefined"!==typeof Set&&Set);a(b[9],"undefined"!==typeof Map&&Map)})();(function(){ia(function(){})})()})();(function(){for(var a=0;9>=a;a++)U(a+65296),U(a+48)})();var ta="valueOf toString constructor isPrototypeOf hasOwnProperty toLocaleString propertyIsEnumerable".split(" ");(function(){if(!{toString:1}.propertyIsEnumerable("toString")){var a= | ||
k;k=function(b,d){a(b,d);for(var c=0,e;(e=ta[c])&&(!p(b,e)||!1!==d.call(b,b[e],e,b));c++);}}})();Object.getOwnPropertyNames||ka();E(oa,{keys:function(a){var b=[];if(null==a)throw new TypeError("Object required");k(ga(a),function(a,c){b.push(c)});return b}});E(R,{isArray:function(a){return T(a)}});y(R,{every:function(a){var b=arguments[1],d=this.length,c=0;for(m(a);c<d;){if(c in this&&!a.call(b,this[c],c,this))return!1;c++}return!0},some:function(a){var b=arguments[1],d=this.length,c=0;for(m(a);c< | ||
d;){if(c in this&&a.call(b,this[c],c,this))return!0;c++}return!1},map:function(a){var b=arguments[1],d=this.length,c=0,e=Array(d);for(m(a);c<d;)c in this&&(e[c]=a.call(b,this[c],c,this)),c++;return e},filter:function(a){var b=arguments[1],d=this.length,c=0,e=[];for(m(a);c<d;)c in this&&a.call(b,this[c],c,this)&&e.push(this[c]),c++;return e},indexOf:function(a){var b=arguments[1];return x(this)?this.indexOf(a,b):P(this,a,b)},lastIndexOf:function(a){var b=arguments[1];return x(this)?this.lastIndexOf(a, | ||
b):P(this,a,b,!0)},forEach:function(a){var b=arguments[1],d=this.length,c=0;for(m(a);c<d;)c in this&&a.call(b,this[c],c,this),c++},reduce:function(a){return Q(this,a,arguments[1])},reduceRight:function(a){return Q(this,a,arguments[1],!0)}});var ua=RegExp("^[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u2028\u2029\u3000\ufeff]+|[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u2028\u2029\u3000\ufeff]+$", | ||
"g");y(pa,{trim:function(){return this.toString().replace(ua,"")}});y(qa,{bind:function(a){for(var b=[],d=1,c=arguments.length;d<c;d++)b.push(arguments[d]);var e=this;m(this);d=function(){for(var c=[],d=0,g=arguments.length;d<g;d++)c.push(arguments[d]);return e.apply(e.prototype&&this instanceof e?this:a,b.concat(c))};d.prototype=this.prototype;return d}});E(S,{now:function(){return(new Date).getTime()}});y(S,{toISOString:function(){return n(this.getUTCFullYear(),4)+"-"+n(this.getUTCMonth()+1,2)+ | ||
"-"+n(this.getUTCDate(),2)+"T"+n(this.getUTCHours(),2)+":"+n(this.getUTCMinutes(),2)+":"+n(this.getUTCSeconds(),2)+"."+n(this.getUTCMilliseconds(),3)+"Z"},toJSON:function(a){return this.toISOString(a)}},!function(){var a=new Date(Date.UTC(2E3,0));return!!a.toISOString&&"2000-01-01T00:00:00.000Z"===a.toISOString()}())}).call(this);}).call(this); | ||
(function(){'use strict';(function(){function l(a,b){for(var c in a)if(p(a,c)&&!1===b.call(a,a[c],c,a))break}function E(a){function b(a,c,b){k(d,a,function(a,e,f){a=y(a,e,f);U(d,a.methods,c,b,a.a);return d})}var c="Object"===a,d=F(a);b("defineStatic",1);b("defineInstance",2);b("defineInstanceAndStatic",3);b("defineStaticWithArguments",1,!0);b("defineInstanceWithArguments",2,!0);k(d,"defineStaticPolyfill",function(c,b,h){c=y(c,b,h);u(r[a],c.methods,!0,c.a);return d});k(d,"defineInstancePolyfill",function(c,b,h){c=y(c,b,h); | ||
u(r[a].prototype,c.methods,!0,c.a);l(c.methods,function(a,c){q(d,c,a)});return d});k(d,"alias",function(a,c){var b=d,e="string"===typeof c?d[c]:c;b[a]=e;e.instance&&q(b,a,e.instance);return d});k(d,"extend",function(b){function e(a,c){var d=b[a];if(d)for(var e=0,f;f=d[e];e++)if(f===c)return!0;return!1}function h(a,c,d){if(!c[a]||!d)return!1;for(a=0;a<d.length;a++)if(!1===b[d[a]])return!0}var g=r[a],t=g.prototype,m={},n={},q;b=b||{};q=b.methods;if(!e("except",g)&&(!b.namespaces||e("namespaces",g)))return c&& | ||
"boolean"===typeof b.objectPrototype&&(z=b.objectPrototype),l(q||d,function(a,b){q&&(b=a,a=d[b]);!p(a,"instance")||c&&t===t&&(!z||"get"===b||"set"===b)||h(b,t,a.flags)||e("except",b)||(n[b]=a.instance);!p(a,"static")||c&&g===t&&(!z||"get"===b||"set"===b)||h(b,g,a.flags)||e("except",b)||(m[b]=a)}),u(g,m),u(t,n),q||k(d,"active",!0),d});v[a]=d;G["[object "+a+"]"]=d;A(a);V(d);return g[a]=d}function W(){return"Sugar"}function U(a,b,c,d,e){l(b,function(b,h){var f,g=b;d&&(g=H(b));e&&(g.flags=e);c&2&&!b.instance&& | ||
(f=d?H(b,!0):X(b),k(g,"instance",f));c&1&&k(g,"static",!0);f=g;a[h]=f;f.instance&&q(a,h,f.instance);a.active&&a.extend(h)})}function y(a,b,c){var d;"string"===typeof a?(d={},d[a]=b,a=c):(d=a,a=b);return{a:a,methods:d}}function H(a,b){var c=a.length-1-(b?1:0);return function(){var d=[],e=[],f;b&&d.push(this);f=Math.max(arguments.length,c);for(var h=0;h<f;h++)h<c?d.push(arguments[h]):e.push(arguments[h]);d.push(e);return a.apply(this,d)}}function X(a){switch(a.length){case 0:case 1:return function(){return a(this)}; | ||
case 2:return function(b){return a(this,b)};case 3:return function(b,c){return a(this,b,c)};case 4:return function(b,c,d){return a(this,b,c,d)};case 5:return function(b,c,d,e){return a(this,b,c,d,e)}}}function u(a,b,c,d){l(b,function(b,f){c&&!d&&a[f]||k(a,f,b)})}function F(a){function b(a,d){if(!(this instanceof b))return new b(a,d);this.constructor!==b&&(a=this.constructor.apply(a,arguments));this.raw=a}k(b,"toString",function(){return"Sugar"+a});k(b.prototype,"valueOf",function(){return this.raw}); | ||
return b}function q(a,b,c){c=Y(c);var d,e,f;f=I.prototype;e=(d=f[b])&&d!==Object.prototype[b];d&&d.b||(f[b]=e?Z(b):c);a.prototype[b]=c;a===g.Object&&aa(b,c)}function V(a){l(g.Object&&g.Object.prototype,function(b,c){if("function"===typeof b){var d=a.prototype;p(d,c)||(d[c]=b)}})}function aa(a,b){l(v,function(c){c=c.prototype;p(c,a)||(c[a]=b)})}function Y(a){return function(){return new I(a.apply(this.raw,arguments))}}function Z(a){function b(){var b=this.raw,d;null!=b&&(d=G[B(b)]);d||(d=g.Object); | ||
d=(new d(b))[a];if(d.b)throw new TypeError("Cannot resolve namespace for "+b);return d.apply(this,arguments)}b.b=!0;return b}function A(a,b){var c=v[a],d=r[a].prototype;!b&&J&&(b=J(d));l(b,function(a){if("constructor"!==a&&"valueOf"!==a&&"__proto__"!==a){try{var b=d[a];if("function"!==typeof b)return}catch(h){return}q(c,a,b)}})}function ba(a,b,c){a[b]=c.value}function k(a,b,c,d){K(a,b,{value:c,enumerable:!!d,configurable:!0,writable:!0})}function B(a){return ca.call(a)}function p(a,b){return!!a&& | ||
da.call(a,b)}function ea(a,b){if(p(a,b))return a[b]}function C(a,b,c){c||(c=B(a));return c==="[object "+b+"]"}function L(a){return function(b,c,d){b[a](c,d)}}function m(a){if(!M(a))throw new TypeError("Function is not callable");}function fa(a){var b;b=typeof a;null!=a&&"string"!==b&&"number"!==b&&"boolean"!==b||(a=Object(a));if(ga&&w(a)){b=a;for(var c=0,d;d=b.charAt(c);)b[c++]=d}return a}function N(a,b,c,d){var e=[],f;for(f in a)f>>>0==f&&4294967295!=f&&(c||(d?f<=b:f>=b))&&e.push(+f);e.sort(function(a, | ||
c){var d=a>b;return d!==c>b?d?-1:1:a-c});return e}function ha(a){for(var b="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" "),c=0,d=b.length;c<d;c++){if(!(c in b)){for(var c=N(b,c,void 0),e=0,f=c.length;e<f;e++)d=c[e],a.call(b,b[d],d,b);break}a(b[c],c)}}function n(a,b){for(var c=ia(a).toString(10),d="0",e=b-c.replace(/\.\d+/,"").length,f="",d=d.toString();0<e;)if(e&1&&(f+=d),e>>=1)d+=d;c=f+c;0>a&&(c=(0>a?"-":"+")+c);return c}function ja(){function a(a,d){for(var c=0;c< | ||
b.length;c++)d.push(a+b[c])}var b="FullYear Month Date Hours Minutes Seconds Milliseconds".split(" ");l({Function:"apply,call",RegExp:"compile,exec,test",Number:"toExponential,toFixed,toLocaleString,toPrecision",Object:"hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString",Array:"concat,join,pop,push,reverse,shift,slice,sort,splice,toLocaleString,unshift",Date:"getTime,getTimezoneOffset,setTime,toDateString,toGMTString,toLocaleDateString,toLocaleString,toLocaleTimeString,toTimeString,toUTCString", | ||
String:"anchor,big,blink,bold,charAt,charCodeAt,concat,fixed,fontcolor,fontsize,indexOf,italics,lastIndexOf,link,localeCompare,match,replace,search,slice,small,split,strike,sub,substr,substring,sup,toLocaleLowerCase,toLocaleUpperCase,toLowerCase,toUpperCase"},function(b,d){var c=b.split(",");"Date"===d&&(a("get",c),a("set",c),a("getUTC",c),a("setUTC",c));c.push("toString");A(d,c)})}function O(a,b,c,d){var e=a.length,f,h;h=d?-1:1;f=d?e-1:0;(c=ka(c))||0===c||(c=f);0>c&&(c=e+c);if(!d&&0>c||d&&c>=e)c= | ||
f;for(f=c;d&&0<=f||!d&&f<e;){if(!(f in a))return la(a,b,c,d);if(f>>>0==f&&4294967295!=f&&a[f]===b)return f;f+=h}return-1}function la(a,b,c,d){c=N(a,c,!1,d);var e;for(c.sort(function(a,b){return d?b-a:a-b});void 0!==(e=c.shift());)if(a[e]===b)return+e;return-1}function P(a,b,c,d){var e=a.length,f=0,h=void 0!==c;m(b);if(0!=e||h)h||(c=a[d?e-1:f],f++);else throw new TypeError("Reduce called on empty array with no initial value");for(;f<e;)h=d?e-f-1:f,h in a&&(c=b(c,a[h],h,a)),f++;return c}var g,r="undefined"!== | ||
typeof global&&global.Object===Object?global:this,ma="undefined"!==typeof module&&module.c,z=!1,v={},G={},K=Object.defineProperty&&Object.defineProperties?Object.defineProperty:ba,I=F("Chainable"),J=Object.getOwnPropertyNames,ca=Object.prototype.toString,da=Object.prototype.hasOwnProperty;(function(){g=r.Sugar;if(!g){g=function(a){l(g,function(b,c){p(v,c)&&b.extend(a)});return g};if(ma)module.c=g;else try{r.Sugar=g}catch(a){}l("Object Number String Array Date RegExp Function".split(" "),function(a){E(a)}); | ||
k(g,"extend",g);k(g,"toString",W);k(g,"createNamespace",E);k(g,"util",{hasOwn:p,getOwn:ea,setProperty:k,classToString:B,defineProperty:K,forEachProperty:l,mapNativeToChainable:A})}})();var ga=!("0"in Object("a")),na=g.Object,Q=g.Array,R=g.Date,oa=g.String,pa=g.Function,w,M,S,D=L("defineStaticPolyfill"),x=L("defineInstancePolyfill"),ka=Math.trunc||function(a){return 0!==a&&isFinite(a)?0>a?qa(a):ra(a):a},ia=Math.abs,qa=Math.ceil,ra=Math.floor,T=String.fromCharCode;(function(){function a(a,d){return d&& | ||
C(new d,"Object")?b(d):c(a)}function b(a){var b=String(a);return function(a){return String(a.constructor)===b}}function c(a){return function(b,c){return C(b,a,c)}}function d(a){var b=a.toLowerCase();return function(c){var d=typeof c;return d===b||"object"===d&&C(c,a)}}(function(){var b="Boolean Number String Date RegExp Function Array Error Set Map".split(" ");w=d(b[2]);a(b[3]);a(b[4]);M=a(b[5]);S=Array.isArray||a(b[6]);a(b[7]);a(b[8],"undefined"!==typeof Set&&Set);a(b[9],"undefined"!==typeof Map&& | ||
Map)})();(function(){ha(function(){})})()})();(function(){for(var a=0;9>=a;a++)T(a+65296),T(a+48)})();var sa="valueOf toString constructor isPrototypeOf hasOwnProperty toLocaleString propertyIsEnumerable".split(" ");(function(){if(!{toString:1}.propertyIsEnumerable("toString")){var a=l;l=function(b,c){a(b,c);for(var d=0,e;(e=sa[d])&&(!p(b,e)||!1!==c.call(b,b[e],e,b));d++);}}})();Object.getOwnPropertyNames||ja();D(na,{keys:function(a){var b=[];if(null==a)throw new TypeError("Object required");l(fa(a), | ||
function(a,d){b.push(d)});return b}});D(Q,{isArray:function(a){return S(a)}});x(Q,{every:function(a){var b=arguments[1],c=this.length,d=0;for(m(a);d<c;){if(d in this&&!a.call(b,this[d],d,this))return!1;d++}return!0},some:function(a){var b=arguments[1],c=this.length,d=0;for(m(a);d<c;){if(d in this&&a.call(b,this[d],d,this))return!0;d++}return!1},map:function(a){var b=arguments[1],c=this.length,d=0,e=Array(c);for(m(a);d<c;)d in this&&(e[d]=a.call(b,this[d],d,this)),d++;return e},filter:function(a){var b= | ||
arguments[1],c=this.length,d=0,e=[];for(m(a);d<c;)d in this&&a.call(b,this[d],d,this)&&e.push(this[d]),d++;return e},indexOf:function(a){var b=arguments[1];return w(this)?this.indexOf(a,b):O(this,a,b)},lastIndexOf:function(a){var b=arguments[1];return w(this)?this.lastIndexOf(a,b):O(this,a,b,!0)},forEach:function(a){var b=arguments[1],c=this.length,d=0;for(m(a);d<c;)d in this&&a.call(b,this[d],d,this),d++},reduce:function(a){return P(this,a,arguments[1])},reduceRight:function(a){return P(this,a,arguments[1], | ||
!0)}});var ta=RegExp("^[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u2028\u2029\u3000\ufeff]+|[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u2028\u2029\u3000\ufeff]+$","g");x(oa,{trim:function(){return this.toString().replace(ta,"")}});x(pa,{bind:function(a){for(var b=[],c=1,d=arguments.length;c<d;c++)b.push(arguments[c]);var e=this;m(this);c=function(){for(var c=[],d= | ||
0,g=arguments.length;d<g;d++)c.push(arguments[d]);return e.apply(e.prototype&&this instanceof e?this:a,b.concat(c))};c.prototype=this.prototype;return c}});D(R,{now:function(){return(new Date).getTime()}});x(R,{toISOString:function(){return n(this.getUTCFullYear(),4)+"-"+n(this.getUTCMonth()+1,2)+"-"+n(this.getUTCDate(),2)+"T"+n(this.getUTCHours(),2)+":"+n(this.getUTCMinutes(),2)+":"+n(this.getUTCSeconds(),2)+"."+n(this.getUTCMilliseconds(),3)+"Z"},toJSON:function(a){return this.toISOString(a)}}, | ||
!function(){var a=new Date(Date.UTC(2E3,0));return!!a.toISOString&&"2000-01-01T00:00:00.000Z"===a.toISOString()}())}).call(this);}).call(this); |
/* | ||
* Sugar v2.0.0 | ||
* Sugar v2.0.2 | ||
* | ||
@@ -97,5 +97,5 @@ * Freely distributable and licensed under the MIT-style license. | ||
/*** | ||
* @method createNamespace(<name>) | ||
* @returns Namespace | ||
* @global | ||
* @method createNamespace(name) | ||
* @returns SugarNamespace | ||
* @namespace Sugar | ||
* @short Creates a new Sugar namespace. | ||
@@ -113,2 +113,4 @@ * @extra This method is for plugin developers who want to define methods to be | ||
* | ||
* @param {string} name - The namespace name. | ||
* | ||
***/ | ||
@@ -124,10 +126,9 @@ function createNamespace(name) { | ||
/*** | ||
* @method extend([options]) | ||
* @method extend([opts]) | ||
* @returns Sugar | ||
* @global | ||
* @namespace | ||
* @namespace Sugar | ||
* @short Extends Sugar defined methods onto natives. | ||
* @extra This method can be called on individual namespaces like | ||
* `Sugar.Array` or on the `Sugar` global itself, in which case | ||
* [options] will be forwarded to each `extend` call. For more, | ||
* [opts] will be forwarded to each `extend` call. For more, | ||
* see `extending`. | ||
@@ -165,2 +166,18 @@ * | ||
* | ||
* @option {Array<string>} [methods] | ||
* @option {Array<string|NativeConstructor>} [except] | ||
* @option {Array<NativeConstructor>} [namespaces] | ||
* @option {boolean} [enhance] | ||
* @option {boolean} [enhanceString] | ||
* @option {boolean} [enhanceArray] | ||
* @option {boolean} [objectPrototype] | ||
* @param {ExtendOptions} [opts] | ||
* | ||
*** | ||
* @method extend([opts]) | ||
* @returns SugarNamespace | ||
* @namespace SugarNamespace | ||
* @short Extends Sugar defined methods for a specific namespace onto natives. | ||
* @param {ExtendOptions} [opts] | ||
* | ||
***/ | ||
@@ -262,3 +279,3 @@ var extend = function (opts) { | ||
} | ||
return Sugar; | ||
return sugarNamespace; | ||
}; | ||
@@ -275,5 +292,5 @@ | ||
/*** | ||
* @method defineStatic(...) | ||
* @returns Namespace | ||
* @namespace | ||
* @method defineStatic(methods) | ||
* @returns SugarNamespace | ||
* @namespace SugarNamespace | ||
* @short Defines static methods on the namespace that can later be extended | ||
@@ -294,2 +311,6 @@ * onto the native globals. | ||
* | ||
* @signature defineStatic(methodName, methodFn) | ||
* @param {Object} methods - Methods to be defined. | ||
* @param {string} methodName - Name of a single method to be defined. | ||
* @param {Function} methodFn - Function body of a single method to be defined. | ||
***/ | ||
@@ -299,5 +320,5 @@ defineWithOptionCollect('defineStatic', STATIC); | ||
/*** | ||
* @method defineInstance(...) | ||
* @returns Namespace | ||
* @namespace | ||
* @method defineInstance(methods) | ||
* @returns SugarNamespace | ||
* @namespace SugarNamespace | ||
* @short Defines methods on the namespace that can later be extended as | ||
@@ -326,2 +347,6 @@ * instance methods onto the native prototype. | ||
* | ||
* @signature defineInstance(methodName, methodFn) | ||
* @param {Object} methods - Methods to be defined. | ||
* @param {string} methodName - Name of a single method to be defined. | ||
* @param {Function} methodFn - Function body of a single method to be defined. | ||
***/ | ||
@@ -331,5 +356,5 @@ defineWithOptionCollect('defineInstance', INSTANCE); | ||
/*** | ||
* @method defineInstanceAndStatic(...) | ||
* @returns Namespace | ||
* @namespace | ||
* @method defineInstanceAndStatic(methods) | ||
* @returns SugarNamespace | ||
* @namespace SugarNamespace | ||
* @short A shortcut to define both static and instance methods on the namespace. | ||
@@ -348,2 +373,6 @@ * @extra This method is intended for use with `Object` instance methods. Sugar | ||
* | ||
* @signature defineInstanceAndStatic(methodName, methodFn) | ||
* @param {Object} methods - Methods to be defined. | ||
* @param {string} methodName - Name of a single method to be defined. | ||
* @param {Function} methodFn - Function body of a single method to be defined. | ||
***/ | ||
@@ -354,5 +383,5 @@ defineWithOptionCollect('defineInstanceAndStatic', INSTANCE | STATIC); | ||
/*** | ||
* @method defineStaticWithArguments(...) | ||
* @returns Namespace | ||
* @namespace | ||
* @method defineStaticWithArguments(methods) | ||
* @returns SugarNamespace | ||
* @namespace SugarNamespace | ||
* @short Defines static methods that collect arguments. | ||
@@ -376,2 +405,6 @@ * @extra This method is identical to `defineStatic`, except that when defined | ||
* | ||
* @signature defineStaticWithArguments(methodName, methodFn) | ||
* @param {Object} methods - Methods to be defined. | ||
* @param {string} methodName - Name of a single method to be defined. | ||
* @param {Function} methodFn - Function body of a single method to be defined. | ||
***/ | ||
@@ -381,5 +414,5 @@ defineWithOptionCollect('defineStaticWithArguments', STATIC, true); | ||
/*** | ||
* @method defineInstanceWithArguments(...) | ||
* @returns Namespace | ||
* @namespace | ||
* @method defineInstanceWithArguments(methods) | ||
* @returns SugarNamespace | ||
* @namespace SugarNamespace | ||
* @short Defines instance methods that collect arguments. | ||
@@ -403,2 +436,6 @@ * @extra This method is identical to `defineInstance`, except that when | ||
* | ||
* @signature defineInstanceWithArguments(methodName, methodFn) | ||
* @param {Object} methods - Methods to be defined. | ||
* @param {string} methodName - Name of a single method to be defined. | ||
* @param {Function} methodFn - Function body of a single method to be defined. | ||
***/ | ||
@@ -408,5 +445,5 @@ defineWithOptionCollect('defineInstanceWithArguments', INSTANCE, true); | ||
/*** | ||
* @method defineStaticPolyfill(...) | ||
* @returns Namespace | ||
* @namespace | ||
* @method defineStaticPolyfill(methods) | ||
* @returns SugarNamespace | ||
* @namespace SugarNamespace | ||
* @short Defines static methods that are mapped onto the native if they do | ||
@@ -426,2 +463,6 @@ * not already exist. | ||
* | ||
* @signature defineStaticPolyfill(methodName, methodFn) | ||
* @param {Object} methods - Methods to be defined. | ||
* @param {string} methodName - Name of a single method to be defined. | ||
* @param {Function} methodFn - Function body of a single method to be defined. | ||
***/ | ||
@@ -431,8 +472,9 @@ setProperty(sugarNamespace, 'defineStaticPolyfill', function(arg1, arg2, arg3) { | ||
extendNative(globalContext[name], opts.methods, true, opts.last); | ||
return sugarNamespace; | ||
}); | ||
/*** | ||
* @method defineInstancePolyfill(...) | ||
* @returns Namespace | ||
* @namespace | ||
* @method defineInstancePolyfill(methods) | ||
* @returns SugarNamespace | ||
* @namespace SugarNamespace | ||
* @short Defines instance methods that are mapped onto the native prototype | ||
@@ -455,2 +497,6 @@ * if they do not already exist. | ||
* | ||
* @signature defineInstancePolyfill(methodName, methodFn) | ||
* @param {Object} methods - Methods to be defined. | ||
* @param {string} methodName - Name of a single method to be defined. | ||
* @param {Function} methodFn - Function body of a single method to be defined. | ||
***/ | ||
@@ -464,8 +510,9 @@ setProperty(sugarNamespace, 'defineInstancePolyfill', function(arg1, arg2, arg3) { | ||
}); | ||
return sugarNamespace; | ||
}); | ||
/*** | ||
* @method alias(<toName>, <fromName>) | ||
* @returns Namespace | ||
* @namespace | ||
* @method alias(toName, from) | ||
* @returns SugarNamespace | ||
* @namespace SugarNamespace | ||
* @short Aliases one Sugar method to another. | ||
@@ -477,2 +524,5 @@ * | ||
* | ||
* @signature alias(toName, fn) | ||
* @param {string} toName - Name for new method. | ||
* @param {string|Function} from - Method to alias, or string shortcut. | ||
***/ | ||
@@ -482,2 +532,3 @@ setProperty(sugarNamespace, 'alias', function(name, source) { | ||
setMethod(sugarNamespace, name, method); | ||
return sugarNamespace; | ||
}); | ||
@@ -484,0 +535,0 @@ |
/* | ||
* Sugar v2.0.0 | ||
* Sugar v2.0.2 | ||
* | ||
@@ -9,10 +9,10 @@ * Freely distributable and licensed under the MIT-style license. | ||
* ---------------------------- */ | ||
(function(){'use strict';(function(){function l(b,a){for(var d in b)if(m(b,d)&&!1===a.call(b,b[d],d,b))break}function x(b){function a(b,a,d){f(c,b,function(b,G,e){b=v(b,G,e);H(c,b.methods,a,d,b.a);return c})}var d="Object"===b,c=y(b);a("defineStatic",1);a("defineInstance",2);a("defineInstanceAndStatic",3);a("defineStaticWithArguments",1,!0);a("defineInstanceWithArguments",2,!0);f(c,"defineStaticPolyfill",function(a,c,d){a=v(a,c,d);t(r[b],a.methods,!0,a.a)});f(c,"defineInstancePolyfill",function(a,d,e){a=v(a,d,e);t(r[b].prototype, | ||
a.methods,!0,a.a);l(a.methods,function(b,a){n(c,a,b)})});f(c,"alias",function(b,a){var d=c,e="string"===typeof a?c[a]:a;d[b]=e;e.instance&&n(d,b,e.instance)});f(c,"extend",function(a){function g(b,d){var c=a[b];if(c)for(var e=0,g;g=c[e];e++)if(g===d)return!0;return!1}function q(b,d,c){if(!d[b]||!c)return!1;for(b=0;b<c.length;b++)if(!1===a[c[b]])return!0}var h=r[b],k=h.prototype,n={},p={},u;a=a||{};u=a.methods;if(!g("except",h)&&(!a.namespaces||g("namespaces",h)))return d&&"boolean"===typeof a.objectPrototype&& | ||
(w=a.objectPrototype),l(u||c,function(b,a){u&&(a=b,b=c[a]);!m(b,"instance")||d&&k===k&&(!w||"get"===a||"set"===a)||q(a,k,b.flags)||g("except",a)||(p[a]=b.instance);!m(b,"static")||d&&h===k&&(!w||"get"===a||"set"===a)||q(a,h,b.flags)||g("except",a)||(n[a]=b)}),t(h,n),t(k,p),u||f(c,"active",!0),e});p[b]=c;z["[object "+b+"]"]=c;A(b);I(c);return e[b]=c}function J(){return"Sugar"}function H(b,a,d,c,e){l(a,function(a,q){var h,k=a;c&&(k=B(a));e&&(k.flags=e);d&2&&!a.instance&&(h=c?B(a,!0):K(a),f(k,"instance", | ||
h));d&1&&f(k,"static",!0);h=k;b[q]=h;h.instance&&n(b,q,h.instance);b.active&&b.extend(q)})}function v(b,a,d){var c;"string"===typeof b?(c={},c[b]=a,b=d):(c=b,b=a);return{a:b,methods:c}}function B(b,a){var d=b.length-1-(a?1:0);return function(){var c=[],e=[],g;a&&c.push(this);g=Math.max(arguments.length,d);for(var f=0;f<g;f++)f<d?c.push(arguments[f]):e.push(arguments[f]);c.push(e);return b.apply(this,c)}}function K(b){switch(b.length){case 0:case 1:return function(){return b(this)};case 2:return function(a){return b(this, | ||
a)};case 3:return function(a,d){return b(this,a,d)};case 4:return function(a,d,c){return b(this,a,d,c)};case 5:return function(a,d,c,e){return b(this,a,d,c,e)}}}function t(b,a,d,c){l(a,function(a,e){d&&!c&&b[e]||f(b,e,a)})}function y(b){function a(b,c){if(!(this instanceof a))return new a(b,c);this.constructor!==a&&(b=this.constructor.apply(b,arguments));this.raw=b}f(a,"toString",function(){return"Sugar"+b});f(a.prototype,"valueOf",function(){return this.raw});return a}function n(b,a,d){d=L(d);var c, | ||
f,g;g=C.prototype;f=(c=g[a])&&c!==Object.prototype[a];c&&c.b||(g[a]=f?M(a):d);b.prototype[a]=d;b===e.Object&&N(a,d)}function I(b){l(e.Object&&e.Object.prototype,function(a,d){if("function"===typeof a){var c=b.prototype;m(c,d)||(c[d]=a)}})}function N(b,a){l(p,function(d){d=d.prototype;m(d,b)||(d[b]=a)})}function L(b){return function(){return new C(b.apply(this.raw,arguments))}}function M(b){function a(){var a=this.raw,c;null!=a&&(c=z[D(a)]);c||(c=e.Object);c=(new c(a))[b];if(c.b)throw new TypeError("Cannot resolve namespace for "+ | ||
a);return c.apply(this,arguments)}a.b=!0;return a}function A(b,a){var d=p[b],c=r[b].prototype;!a&&E&&(a=E(c));l(a,function(a){if("constructor"!==a&&"valueOf"!==a&&"__proto__"!==a){try{var b=c[a];if("function"!==typeof b)return}catch(e){return}n(d,a,b)}})}function O(b,a,d){b[a]=d.value}function f(b,a,d,c){F(b,a,{value:d,enumerable:!!c,configurable:!0,writable:!0})}function D(b){return P.call(b)}function m(b,a){return!!b&&Q.call(b,a)}function R(b,a){if(m(b,a))return b[a]}var e,r="undefined"!==typeof global&& | ||
global.Object===Object?global:this,S="undefined"!==typeof module&&module.c,w=!1,p={},z={},F=Object.defineProperty&&Object.defineProperties?Object.defineProperty:O,C=y("Chainable"),E=Object.getOwnPropertyNames,P=Object.prototype.toString,Q=Object.prototype.hasOwnProperty;(function(){e=r.Sugar;if(!e){e=function(b){l(e,function(a,d){m(p,d)&&a.extend(b)});return e};if(S)module.c=e;else try{r.Sugar=e}catch(b){}l("Object Number String Array Date RegExp Function".split(" "),function(b){x(b)});f(e,"extend", | ||
e);f(e,"toString",J);f(e,"createNamespace",x);f(e,"util",{hasOwn:m,getOwn:R,setProperty:f,classToString:D,defineProperty:F,forEachProperty:l,mapNativeToChainable:A})}})()}).call(this);}).call(this); | ||
(function(){'use strict';(function(){function l(b,a){for(var d in b)if(m(b,d)&&!1===a.call(b,b[d],d,b))break}function x(b){function a(b,a,d){h(c,b,function(b,g,f){b=v(b,g,f);G(c,b.methods,a,d,b.a);return c})}var d="Object"===b,c=y(b);a("defineStatic",1);a("defineInstance",2);a("defineInstanceAndStatic",3);a("defineStaticWithArguments",1,!0);a("defineInstanceWithArguments",2,!0);h(c,"defineStaticPolyfill",function(a,d,r){a=v(a,d,r);t(q[b],a.methods,!0,a.a);return c});h(c,"defineInstancePolyfill",function(a,d,r){a=v(a,d,r); | ||
t(q[b].prototype,a.methods,!0,a.a);l(a.methods,function(b,a){n(c,a,b)});return c});h(c,"alias",function(b,a){var d=c,g="string"===typeof a?c[a]:a;d[b]=g;g.instance&&n(d,b,g.instance);return c});h(c,"extend",function(a){function f(b,d){var c=a[b];if(c)for(var g=0,f;f=c[g];g++)if(f===d)return!0;return!1}function g(b,d,c){if(!d[b]||!c)return!1;for(b=0;b<c.length;b++)if(!1===a[c[b]])return!0}var e=q[b],k=e.prototype,n={},p={},u;a=a||{};u=a.methods;if(!f("except",e)&&(!a.namespaces||f("namespaces",e)))return d&& | ||
"boolean"===typeof a.objectPrototype&&(w=a.objectPrototype),l(u||c,function(b,a){u&&(a=b,b=c[a]);!m(b,"instance")||d&&k===k&&(!w||"get"===a||"set"===a)||g(a,k,b.flags)||f("except",a)||(p[a]=b.instance);!m(b,"static")||d&&e===k&&(!w||"get"===a||"set"===a)||g(a,e,b.flags)||f("except",a)||(n[a]=b)}),t(e,n),t(k,p),u||h(c,"active",!0),c});p[b]=c;z["[object "+b+"]"]=c;A(b);H(c);return e[b]=c}function I(){return"Sugar"}function G(b,a,d,c,g){l(a,function(a,e){var f,k=a;c&&(k=B(a));g&&(k.flags=g);d&2&&!a.instance&& | ||
(f=c?B(a,!0):J(a),h(k,"instance",f));d&1&&h(k,"static",!0);f=k;b[e]=f;f.instance&&n(b,e,f.instance);b.active&&b.extend(e)})}function v(b,a,d){var c;"string"===typeof b?(c={},c[b]=a,b=d):(c=b,b=a);return{a:b,methods:c}}function B(b,a){var d=b.length-1-(a?1:0);return function(){var c=[],g=[],f;a&&c.push(this);f=Math.max(arguments.length,d);for(var e=0;e<f;e++)e<d?c.push(arguments[e]):g.push(arguments[e]);c.push(g);return b.apply(this,c)}}function J(b){switch(b.length){case 0:case 1:return function(){return b(this)}; | ||
case 2:return function(a){return b(this,a)};case 3:return function(a,d){return b(this,a,d)};case 4:return function(a,d,c){return b(this,a,d,c)};case 5:return function(a,d,c,e){return b(this,a,d,c,e)}}}function t(b,a,d,c){l(a,function(a,e){d&&!c&&b[e]||h(b,e,a)})}function y(b){function a(b,c){if(!(this instanceof a))return new a(b,c);this.constructor!==a&&(b=this.constructor.apply(b,arguments));this.raw=b}h(a,"toString",function(){return"Sugar"+b});h(a.prototype,"valueOf",function(){return this.raw}); | ||
return a}function n(b,a,d){d=K(d);var c,g,f;f=C.prototype;g=(c=f[a])&&c!==Object.prototype[a];c&&c.b||(f[a]=g?L(a):d);b.prototype[a]=d;b===e.Object&&M(a,d)}function H(b){l(e.Object&&e.Object.prototype,function(a,d){if("function"===typeof a){var c=b.prototype;m(c,d)||(c[d]=a)}})}function M(b,a){l(p,function(d){d=d.prototype;m(d,b)||(d[b]=a)})}function K(b){return function(){return new C(b.apply(this.raw,arguments))}}function L(b){function a(){var a=this.raw,c;null!=a&&(c=z[D(a)]);c||(c=e.Object);c= | ||
(new c(a))[b];if(c.b)throw new TypeError("Cannot resolve namespace for "+a);return c.apply(this,arguments)}a.b=!0;return a}function A(b,a){var d=p[b],c=q[b].prototype;!a&&E&&(a=E(c));l(a,function(a){if("constructor"!==a&&"valueOf"!==a&&"__proto__"!==a){try{var b=c[a];if("function"!==typeof b)return}catch(r){return}n(d,a,b)}})}function N(b,a,d){b[a]=d.value}function h(b,a,d,c){F(b,a,{value:d,enumerable:!!c,configurable:!0,writable:!0})}function D(b){return O.call(b)}function m(b,a){return!!b&&P.call(b, | ||
a)}function Q(b,a){if(m(b,a))return b[a]}var e,q="undefined"!==typeof global&&global.Object===Object?global:this,R="undefined"!==typeof module&&module.c,w=!1,p={},z={},F=Object.defineProperty&&Object.defineProperties?Object.defineProperty:N,C=y("Chainable"),E=Object.getOwnPropertyNames,O=Object.prototype.toString,P=Object.prototype.hasOwnProperty;(function(){e=q.Sugar;if(!e){e=function(b){l(e,function(a,d){m(p,d)&&a.extend(b)});return e};if(R)module.c=e;else try{q.Sugar=e}catch(b){}l("Object Number String Array Date RegExp Function".split(" "), | ||
function(b){x(b)});h(e,"extend",e);h(e,"toString",I);h(e,"createNamespace",x);h(e,"util",{hasOwn:m,getOwn:Q,setProperty:h,classToString:D,defineProperty:F,forEachProperty:l,mapNativeToChainable:A})}})()}).call(this);}).call(this); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
186909
11
3401
0