Socket
Socket
Sign inDemoInstall

shifter

Package Overview
Dependencies
147
Maintainers
5
Versions
89
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

15

lib/tasks/jsminify.js

@@ -8,2 +8,14 @@ /*

var yuglifyConfig = {
mangle: true,
output: {
semicolons: true,
max_line_len: 6000,
comments: /^!/,
},
compress: {
hoist_vars: true,
}
};
/**

@@ -18,4 +30,3 @@ * Minify JS.

exports.jsminify = function (options, blob, done) {
//Using the default config
yuglify.jsmin(blob.result, function(err, smashed) {
yuglify.jsmin(blob.result, yuglifyConfig, function(err, smashed) {
if (err) {

@@ -22,0 +33,0 @@ if (options.callback) {

4

package.json

@@ -5,3 +5,3 @@ {

"author": "Dav Glass <davglass@gmail.com>",
"version": "1.0.0",
"version": "1.1.0",
"dependencies": {

@@ -23,3 +23,3 @@ "progress": "~0.1.0",

"which": "*",
"yuglify": "^1.0.1",
"yuglify": "^2.0.0",
"timethat": "~0.0.1",

@@ -26,0 +26,0 @@ "cssproc": "~0.0.1",

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

YUI.add("bar",function(o,r){o[r]=1},"@VERSION@",{requires:["foo"]});
YUI.add("bar",function(o,r){o[r]=1},"@VERSION@",{requires:["foo"]});

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

YUI.add("baz",function(a,r){a[r]=2},"@VERSION@",{requires:["bar"]});
YUI.add("baz",function(a,r){a[r]=2},"@VERSION@",{requires:["bar"]});

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

YUI.add("module-1",function(o,e){console.log("want to see this 1"),console.log("want to see this 2"),console.log("want to see this 3"),console.log("want to see this 4"),console.log("want to see this 5")},"@VERSION@",{skinnable:!1});
YUI.add("module-1",function(o,e){console.log("want to see this 1"),console.log("want to see this 2"),console.log("want to see this 3"),console.log("want to see this 4"),console.log("want to see this 5")},"@VERSION@",{skinnable:!1});

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

YUI.add("module-2",function(o,t){console.log("want to see this 1"),console.log("dont want to see this 1"),console.log("want to see this 2"),console.log("want to see this 3"),console.log("want to see this 4"),console.log("dont want to see this 2"),alert("hi"),console.log("want to see this 5"),console.log("dont want to see this 3"),console.log("want /*@DBG*/ to see this 6"),console.log("dont want to see this 4"),console.log("dont want /*@DBG*/ to see this 5")},"@VERSION@",{skinnable:!0});
YUI.add("module-2",function(o,t){console.log("want to see this 1"),console.log("dont want to see this 1"),console.log("want to see this 2"),console.log("want to see this 3"),console.log("want to see this 4"),console.log("dont want to see this 2"),alert("hi"),console.log("want to see this 5"),console.log("dont want to see this 3"),console.log("want /*@DBG*/ to see this 6"),console.log("dont want to see this 4"),console.log("dont want /*@DBG*/ to see this 5")},"@VERSION@",{skinnable:!0});

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

YUI.add("module-1",function(o,e){console.log("want to see this 1"),console.log("want to see this 2"),console.log("want to see this 3"),console.log("want to see this 4"),console.log("want to see this 5")},"@VERSION@",{skinnable:!1});
YUI.add("module-1",function(o,e){console.log("want to see this 1"),console.log("want to see this 2"),console.log("want to see this 3"),console.log("want to see this 4"),console.log("want to see this 5")},"@VERSION@",{skinnable:!1});

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

YUI.add("module-2",function(o,t){console.log("want to see this 1"),console.log("dont want to see this 1"),console.log("want to see this 2"),console.log("want to see this 3"),console.log("want to see this 4"),console.log("dont want to see this 2"),alert("hi"),console.log("want to see this 5"),console.log("dont want to see this 3"),console.log("want /*@DBG*/ to see this 6"),console.log("dont want to see this 4"),console.log("dont want /*@DBG*/ to see this 5")},"@VERSION@",{skinnable:!0});
YUI.add("module-2",function(o,t){console.log("want to see this 1"),console.log("dont want to see this 1"),console.log("want to see this 2"),console.log("want to see this 3"),console.log("want to see this 4"),console.log("dont want to see this 2"),alert("hi"),console.log("want to see this 5"),console.log("dont want to see this 3"),console.log("want /*@DBG*/ to see this 6"),console.log("dont want to see this 4"),console.log("dont want /*@DBG*/ to see this 5")},"@VERSION@",{skinnable:!0});

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

YUI.add("calendar",function(e,t){function a(e){a.superclass.constructor.apply(this,arguments)}var i=e.ClassNameManager.getClassName,s=(i("calendar","header"),i("calendar","day-selected")),l=i("calendar","day-highlighted"),h=i("calendar","day"),n=i("calendar","prevmonth-day"),d=i("calendar","nextmonth-day"),r=i("calendar","grid"),o=e.DataType.Date,c=(e.delegate,i("calendar","pane")),u=e.UA.os;e.Calendar=e.extend(a,e.CalendarBase,{_keyEvents:[],_highlightedDateNode:null,_lastSelectedDate:null,initializer:function(){this.plug(e.Plugin.CalendarNavigator),this._keyEvents=[],this._highlightedDateNode=null,this._lastSelectedDate=null},_bindCalendarEvents:function(){var e=this.get("contentBox"),t=e.one("."+c);t.on("selectstart",this._preventSelectionStart),t.delegate("click",this._clickCalendar,"."+h+", ."+n+", ."+d,this),t.delegate("keydown",this._keydownCalendar,"."+r,this),t.delegate("focus",this._focusCalendarGrid,"."+r,this),t.delegate("focus",this._focusCalendarCell,"."+h,this),t.delegate("blur",this._blurCalendarGrid,"."+r+",."+h,this)},_preventSelectionStart:function(e){e.preventDefault()},_highlightDateNode:function(e){this._unhighlightCurrentDateNode();var t=this._dateToNode(e);t.focus(),t.addClass(l)},_unhighlightCurrentDateNode:function(){var e=this.get("contentBox").all("."+l);e&&e.removeClass(l)},_getGridNumber:function(e){var t=e.get("id").split("_").reverse();return parseInt(t[0],10)},_blurCalendarGrid:function(e){this._unhighlightCurrentDateNode()},_focusCalendarCell:function(e){this._highlightedDateNode=e.target,e.stopPropagation()},_focusCalendarGrid:function(e){this._unhighlightCurrentDateNode(),this._highlightedDateNode=null},_keydownCalendar:function(e){var t=this._getGridNumber(e.target),a=this._highlightedDateNode?this._nodeToDate(this._highlightedDateNode):null,i=e.keyCode,l=0;switch(i){case 40:l=7,"s";break;case 38:l=-7,"n";break;case 37:l=-1,"w";break;case 39:l=1,"e";break;case 32:case 13:if(e.preventDefault(),this._highlightedDateNode){var h=this.get("selectionMode");"single"!==h||this._highlightedDateNode.hasClass(s)?"multiple"!==h&&"multiple-sticky"!==h||(this._highlightedDateNode.hasClass(s)?this._removeDateFromSelection(a):this._addDateToSelection(a)):(this._clearSelection(!0),this._addDateToSelection(a))}}if(40==i||38==i||37==i||39==i){a||(a=o.addMonths(this.get("date"),t),l=0),e.preventDefault();var n=o.addDays(a,l),d=this.get("date"),r=o.addMonths(this.get("date"),this._paneNumber-1),c=new Date(r);r.setDate(o.daysInMonth(r)),o.isInRange(n,d,r)?this._highlightDateNode(n):o.isGreater(d,n)?o.isGreaterOrEqual(this.get("minimumDate"),d)||(this.set("date",o.addMonths(d,-1)),this._highlightDateNode(n)):o.isGreater(n,r)&&(o.isGreaterOrEqual(c,this.get("maximumDate"))||(this.set("date",o.addMonths(d,1)),this._highlightDateNode(n)))}},_clickCalendar:function(e){var t=e.currentTarget,a=t.hasClass(h)&&!t.hasClass(n)&&!t.hasClass(d),i=t.hasClass(s);switch(this.get("selectionMode")){case"single":a&&(i||(this._clearSelection(!0),this._addDateToSelection(this._nodeToDate(t))));break;case"multiple-sticky":a&&(i?this._removeDateFromSelection(this._nodeToDate(t)):this._addDateToSelection(this._nodeToDate(t)));break;case"multiple":if(a)if(e.metaKey||e.ctrlKey||e.shiftKey){if(("macintosh"==u&&e.metaKey||"macintosh"!=u&&e.ctrlKey)&&!e.shiftKey)i?(this._removeDateFromSelection(this._nodeToDate(t)),this._lastSelectedDate=null):(this._lastSelectedDate=this._nodeToDate(t),this._addDateToSelection(this._lastSelectedDate));else if(("macintosh"==u&&e.metaKey||"macintosh"!=u&&e.ctrlKey)&&e.shiftKey)if(this._lastSelectedDate){var l=this._nodeToDate(t);this._addDateRangeToSelection(l,this._lastSelectedDate),this._lastSelectedDate=l}else this._lastSelectedDate=this._nodeToDate(t),this._addDateToSelection(this._lastSelectedDate);else if(e.shiftKey)if(this._lastSelectedDate){var l=this._nodeToDate(t);this._clearSelection(!0),this._addDateRangeToSelection(l,this._lastSelectedDate),this._lastSelectedDate=l}else this._clearSelection(!0),this._lastSelectedDate=this._nodeToDate(t),this._addDateToSelection(this._lastSelectedDate)}else this._clearSelection(!0),this._lastSelectedDate=this._nodeToDate(t),this._addDateToSelection(this._lastSelectedDate)}a?this.fire("dateClick",{cell:t,date:this._nodeToDate(t)}):t.hasClass(n)?this.fire("prevMonthClick"):t.hasClass(d)&&this.fire("nextMonthClick")},subtractMonth:function(e){this.set("date",o.addMonths(this.get("date"),-1)),e&&e.halt()},subtractYear:function(e){this.set("date",o.addYears(this.get("date"),-1)),e&&e.halt()},addMonth:function(e){this.set("date",o.addMonths(this.get("date"),1)),e&&e.halt()},addYear:function(e){this.set("date",o.addYears(this.get("date"),1)),e&&e.halt()}},{NAME:"calendar",ATTRS:{selectionMode:{value:"single"},date:{value:new Date,lazyAdd:!1,setter:function(e){var t=this._normalizeDate(e),a=o.addMonths(t,this._paneNumber-1),i=this.get("minimumDate"),s=this.get("maximumDate");if(!(i&&!o.isGreaterOrEqual(t,i)||s&&!o.isGreaterOrEqual(s,a)))return t;if(i&&o.isGreater(i,t))return i;if(s&&o.isGreater(a,s)){return o.addMonths(s,-1*(this._paneNumber-1))}}},minimumDate:{value:null,setter:function(e){if(e){var t=this.get("date"),a=this._normalizeDate(e);return t&&!o.isGreaterOrEqual(t,a)&&this.set("date",a),a}return this._normalizeDate(e)}},maximumDate:{value:null,setter:function(e){if(e){var t=this.get("date"),a=this._normalizeDate(e);return t&&!o.isGreaterOrEqual(e,o.addMonths(t,this._paneNumber-1))&&this.set("date",o.addMonths(a,-1*(this._paneNumber-1))),a}return e}}}})},"@VERSION@",{requires:["calendar-base","calendarnavigator"],lang:["de","en","fr","ja","nb-NO","pt-BR","ru","zh-HANT-TW"],skinnable:!0});
YUI.add("calendar",function(e,t){function a(e){a.superclass.constructor.apply(this,arguments)}var i=e.ClassNameManager.getClassName,s="calendar",h=(i(s,"header"),i(s,"day-selected")),l=i(s,"day-highlighted"),n=i(s,"day"),d=i(s,"prevmonth-day"),r=i(s,"nextmonth-day"),o=i(s,"grid"),c=e.DataType.Date,u=(e.delegate,i(s,"pane")),_=e.UA.os;e.Calendar=e.extend(a,e.CalendarBase,{_keyEvents:[],_highlightedDateNode:null,_lastSelectedDate:null,initializer:function(){this.plug(e.Plugin.CalendarNavigator),this._keyEvents=[],this._highlightedDateNode=null,this._lastSelectedDate=null},_bindCalendarEvents:function(){var e=this.get("contentBox").one("."+u);e.on("selectstart",this._preventSelectionStart),e.delegate("click",this._clickCalendar,"."+n+", ."+d+", ."+r,this),e.delegate("keydown",this._keydownCalendar,"."+o,this),e.delegate("focus",this._focusCalendarGrid,"."+o,this),e.delegate("focus",this._focusCalendarCell,"."+n,this),e.delegate("blur",this._blurCalendarGrid,"."+o+",."+n,this)},_preventSelectionStart:function(e){e.preventDefault()},_highlightDateNode:function(e){this._unhighlightCurrentDateNode();var t=this._dateToNode(e);t.focus(),t.addClass(l)},_unhighlightCurrentDateNode:function(){var e=this.get("contentBox").all("."+l);e&&e.removeClass(l)},_getGridNumber:function(e){var t=e.get("id").split("_").reverse();return parseInt(t[0],10)},_blurCalendarGrid:function(e){this._unhighlightCurrentDateNode()},_focusCalendarCell:function(e){this._highlightedDateNode=e.target,e.stopPropagation()},_focusCalendarGrid:function(e){this._unhighlightCurrentDateNode(),this._highlightedDateNode=null},_keydownCalendar:function(e){var t,a,i,s,l,n=this._getGridNumber(e.target),d=this._highlightedDateNode?this._nodeToDate(this._highlightedDateNode):null,r=e.keyCode,o=0;switch(r){case 40:o=7,"s";break;case 38:o=-7,"n";break;case 37:o=-1,"w";break;case 39:o=1,"e";break;case 32:case 13:e.preventDefault(),this._highlightedDateNode&&("single"!==(t=this.get("selectionMode"))||this._highlightedDateNode.hasClass(h)?"multiple"!==t&&"multiple-sticky"!==t||(this._highlightedDateNode.hasClass(h)?this._removeDateFromSelection(d):this._addDateToSelection(d)):(this._clearSelection(!0),this._addDateToSelection(d)))}40!=r&&38!=r&&37!=r&&39!=r||(d||(d=c.addMonths(this.get("date"),n),o=0),e.preventDefault(),a=c.addDays(d,o),i=this.get("date"),s=c.addMonths(this.get("date"),this._paneNumber-1),l=new Date(s),s.setDate(c.daysInMonth(s)),c.isInRange(a,i,s)?this._highlightDateNode(a):c.isGreater(i,a)?c.isGreaterOrEqual(this.get("minimumDate"),i)||(this.set("date",c.addMonths(i,-1)),this._highlightDateNode(a)):c.isGreater(a,s)&&(c.isGreaterOrEqual(l,this.get("maximumDate"))||(this.set("date",c.addMonths(i,1)),this._highlightDateNode(a))))},_clickCalendar:function(e){var t,a=e.currentTarget,i=a.hasClass(n)&&!a.hasClass(d)&&!a.hasClass(r),s=a.hasClass(h);switch(this.get("selectionMode")){case"single":i&&(s||(this._clearSelection(!0),this._addDateToSelection(this._nodeToDate(a))));break;case"multiple-sticky":i&&(s?this._removeDateFromSelection(this._nodeToDate(a)):this._addDateToSelection(this._nodeToDate(a)));break;case"multiple":i&&(e.metaKey||e.ctrlKey||e.shiftKey?("macintosh"==_&&e.metaKey||"macintosh"!=_&&e.ctrlKey)&&!e.shiftKey?s?(this._removeDateFromSelection(this._nodeToDate(a)),this._lastSelectedDate=null):(this._lastSelectedDate=this._nodeToDate(a),this._addDateToSelection(this._lastSelectedDate)):("macintosh"==_&&e.metaKey||"macintosh"!=_&&e.ctrlKey)&&e.shiftKey?this._lastSelectedDate?(t=this._nodeToDate(a),this._addDateRangeToSelection(t,this._lastSelectedDate),this._lastSelectedDate=t):(this._lastSelectedDate=this._nodeToDate(a),this._addDateToSelection(this._lastSelectedDate)):e.shiftKey&&(this._lastSelectedDate?(t=this._nodeToDate(a),this._clearSelection(!0),this._addDateRangeToSelection(t,this._lastSelectedDate),this._lastSelectedDate=t):(this._clearSelection(!0),this._lastSelectedDate=this._nodeToDate(a),this._addDateToSelection(this._lastSelectedDate))):(this._clearSelection(!0),this._lastSelectedDate=this._nodeToDate(a),this._addDateToSelection(this._lastSelectedDate)))}i?this.fire("dateClick",{cell:a,date:this._nodeToDate(a)}):a.hasClass(d)?this.fire("prevMonthClick"):a.hasClass(r)&&this.fire("nextMonthClick")},subtractMonth:function(e){this.set("date",c.addMonths(this.get("date"),-1)),e&&e.halt()},subtractYear:function(e){this.set("date",c.addYears(this.get("date"),-1)),e&&e.halt()},addMonth:function(e){this.set("date",c.addMonths(this.get("date"),1)),e&&e.halt()},addYear:function(e){this.set("date",c.addYears(this.get("date"),1)),e&&e.halt()}},{NAME:"calendar",ATTRS:{selectionMode:{value:"single"},date:{value:new Date,lazyAdd:!1,setter:function(e){var t=this._normalizeDate(e),a=c.addMonths(t,this._paneNumber-1),i=this.get("minimumDate"),s=this.get("maximumDate");return i&&!c.isGreaterOrEqual(t,i)||s&&!c.isGreaterOrEqual(s,a)?i&&c.isGreater(i,t)?i:s&&c.isGreater(a,s)?c.addMonths(s,-1*(this._paneNumber-1)):void 0:t}},minimumDate:{value:null,setter:function(e){if(e){var t=this.get("date"),a=this._normalizeDate(e);return t&&!c.isGreaterOrEqual(t,a)&&this.set("date",a),a}return this._normalizeDate(e)}},maximumDate:{value:null,setter:function(e){if(e){var t=this.get("date"),a=this._normalizeDate(e);return t&&!c.isGreaterOrEqual(e,c.addMonths(t,this._paneNumber-1))&&this.set("date",c.addMonths(a,-1*(this._paneNumber-1))),a}return e}}}})},"@VERSION@",{requires:["calendar-base","calendarnavigator"],lang:["de","en","fr","ja","nb-NO","pt-BR","ru","zh-HANT-TW"],skinnable:!0});

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

!function(){var e,t=YUI.Env,n=YUI.config,o=n.doc,r=o&&o.documentElement,i=n.pollInterval||40;r.doScroll&&!t._ieready&&(t._ieready=function(){t._ready()},
/*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
self!==self.top?(e=function(){"complete"==o.readyState&&(t.remove(o,"onreadystatechange",e),t.ieready())},t.add(o,"onreadystatechange",e)):t._dri=setInterval(function(){try{r.doScroll("left"),clearInterval(t._dri),t._dri=null,t._ieready()}catch(e){}},i))}(),YUI.add("event-base-ie",function(e,t){function n(){e.DOM2EventFacade.apply(this,arguments)}function o(t){var n=e.config.doc.createEventObject(t),r=o.prototype;return n.hasOwnProperty=function(){return!0},n.init=r.init,n.halt=r.halt,n.preventDefault=r.preventDefault,n.stopPropagation=r.stopPropagation,n.stopImmediatePropagation=r.stopImmediatePropagation,e.DOM2EventFacade.apply(n,arguments),n}var r=e.config.doc&&e.config.doc.implementation,i=e.config.lazyEventFacade,a={0:1,4:2,2:3},c={mouseout:"toElement",mouseover:"fromElement"},l=e.DOM2EventFacade.resolve,s={init:function(){n.superclass.init.apply(this,arguments);var t,o,r,i,c,s,p=this._event;this.target=l(p.srcElement),"clientX"in p&&!t&&0!==t&&(t=p.clientX,o=p.clientY,r=e.config.doc,i=r.body,c=r.documentElement,t+=c.scrollLeft||i&&i.scrollLeft||0,o+=c.scrollTop||i&&i.scrollTop||0,this.pageX=t,this.pageY=o),"mouseout"==p.type?s=p.toElement:"mouseover"==p.type&&(s=p.fromElement),this.relatedTarget=l(s||p.relatedTarget),this.which=this.button=p.keyCode||a[p.button]||p.button},stopPropagation:function(){this._event.cancelBubble=!0,this._wrapper.stopped=1,this.stopped=1},stopImmediatePropagation:function(){this.stopPropagation(),this._wrapper.stopped=2,this.stopped=2},preventDefault:function(e){this._event.returnValue=e||!1,this._wrapper.prevented=1,this.prevented=1}};if(e.extend(n,e.DOM2EventFacade,s),e.extend(o,e.DOM2EventFacade,s),o.prototype.init=function(){var e,t=this._event,n=this._wrapper.overrides,r=o._define,i=o._lazyProperties;this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.metaKey=t.metaKey,this.shiftKey=t.shiftKey,this.type=n&&n.type||t.type,this.clientX=t.clientX,this.clientY=t.clientY,this.keyCode=this.charCode=t.keyCode,this.which=this.button=t.keyCode||a[t.button]||t.button;for(e in i)i.hasOwnProperty(e)&&r(this,e,i[e]);this._touch&&this._touch(t,this._currentTarget,this._wrapper)},o._lazyProperties={target:function(){return l(this._event.srcElement)},relatedTarget:function(){var e=this._event,t=c[e.type]||"relatedTarget";return l(e[t]||e.relatedTarget)},currentTarget:function(){return l(this._currentTarget)},wheelDelta:function(){var e=this._event;if("mousewheel"===e.type||"DOMMouseScroll"===e.type)return e.detail?-1*e.detail:Math.round(e.wheelDelta/80)||(e.wheelDelta<0?-1:1)},pageX:function(){var t,n,o,r=this._event,i=r.pageX;return void 0===i&&(t=e.config.doc,n=t.body&&t.body.scrollLeft,o=t.documentElement.scrollLeft,i=r.clientX+(o||n||0)),i},pageY:function(){var t,n,o,r=this._event,i=r.pageY;return void 0===i&&(t=e.config.doc,n=t.body&&t.body.scrollTop,o=t.documentElement.scrollTop,i=r.clientY+(o||n||0)),i}},o._define=function(e,t,n){function o(o){var r=arguments.length?o:n.call(this);return delete e[t],Object.defineProperty(e,t,{value:r,configurable:!0,writable:!0}),r}Object.defineProperty(e,t,{get:o,set:o,configurable:!0})},r&&!r.hasFeature("Events","2.0")){if(i)try{Object.defineProperty(e.config.doc.createEventObject(),"z",{})}catch(e){i=!1}e.DOMEventFacade=i?o:n}},"@VERSION@",{requires:["node-base"]});
!function(){var e,t=YUI.Env,n=YUI.config,o=n.doc,r=o&&o.documentElement,i="onreadystatechange",a=n.pollInterval||40;r.doScroll&&!t._ieready&&(t._ieready=function(){t._ready()},/*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
self!==self.top?(e=function(){"complete"==o.readyState&&(t.remove(o,i,e),t.ieready())},t.add(o,i,e)):t._dri=setInterval(function(){try{r.doScroll("left"),clearInterval(t._dri),t._dri=null,t._ieready()}catch(e){}},a))}(),YUI.add("event-base-ie",function(e,t){function n(){e.DOM2EventFacade.apply(this,arguments)}function o(t){var n=e.config.doc.createEventObject(t),r=o.prototype;return n.hasOwnProperty=function(){return!0},n.init=r.init,n.halt=r.halt,n.preventDefault=r.preventDefault,n.stopPropagation=r.stopPropagation,n.stopImmediatePropagation=r.stopImmediatePropagation,e.DOM2EventFacade.apply(n,arguments),n}var r=e.config.doc&&e.config.doc.implementation,i=e.config.lazyEventFacade,a={0:1,4:2,2:3},c={mouseout:"toElement",mouseover:"fromElement"},l=e.DOM2EventFacade.resolve,s={init:function(){n.superclass.init.apply(this,arguments);var t,o,r,i,c,s,p=this._event;this.target=l(p.srcElement),"clientX"in p&&!t&&0!==t&&(t=p.clientX,o=p.clientY,i=(r=e.config.doc).body,t+=(c=r.documentElement).scrollLeft||i&&i.scrollLeft||0,o+=c.scrollTop||i&&i.scrollTop||0,this.pageX=t,this.pageY=o),"mouseout"==p.type?s=p.toElement:"mouseover"==p.type&&(s=p.fromElement),this.relatedTarget=l(s||p.relatedTarget),this.which=this.button=p.keyCode||a[p.button]||p.button},stopPropagation:function(){this._event.cancelBubble=!0,this._wrapper.stopped=1,this.stopped=1},stopImmediatePropagation:function(){this.stopPropagation(),this._wrapper.stopped=2,this.stopped=2},preventDefault:function(e){this._event.returnValue=e||!1,this._wrapper.prevented=1,this.prevented=1}};if(e.extend(n,e.DOM2EventFacade,s),e.extend(o,e.DOM2EventFacade,s),o.prototype.init=function(){var e,t=this._event,n=this._wrapper.overrides,r=o._define,i=o._lazyProperties;this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.metaKey=t.metaKey,this.shiftKey=t.shiftKey,this.type=n&&n.type||t.type,this.clientX=t.clientX,this.clientY=t.clientY,this.keyCode=this.charCode=t.keyCode,this.which=this.button=t.keyCode||a[t.button]||t.button;for(e in i)i.hasOwnProperty(e)&&r(this,e,i[e]);this._touch&&this._touch(t,this._currentTarget,this._wrapper)},o._lazyProperties={target:function(){return l(this._event.srcElement)},relatedTarget:function(){var e=this._event,t=c[e.type]||"relatedTarget";return l(e[t]||e.relatedTarget)},currentTarget:function(){return l(this._currentTarget)},wheelDelta:function(){var e=this._event;if("mousewheel"===e.type||"DOMMouseScroll"===e.type)return e.detail?-1*e.detail:Math.round(e.wheelDelta/80)||(e.wheelDelta<0?-1:1)},pageX:function(){var t,n,o,r=this._event,i=r.pageX;return void 0===i&&(n=(t=e.config.doc).body&&t.body.scrollLeft,o=t.documentElement.scrollLeft,i=r.clientX+(o||n||0)),i},pageY:function(){var t,n,o,r=this._event,i=r.pageY;return void 0===i&&(n=(t=e.config.doc).body&&t.body.scrollTop,o=t.documentElement.scrollTop,i=r.clientY+(o||n||0)),i}},o._define=function(e,t,n){function o(o){var r=arguments.length?o:n.call(this);return delete e[t],Object.defineProperty(e,t,{value:r,configurable:!0,writable:!0}),r}Object.defineProperty(e,t,{get:o,set:o,configurable:!0})},r&&!r.hasFeature("Events","2.0")){if(i)try{Object.defineProperty(e.config.doc.createEventObject(),"z",{})}catch(e){i=!1}e.DOMEventFacade=i?o:n}},"@VERSION@",{requires:["node-base"]});

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

!function(){var e,t=YUI.Env,n=YUI.config,o=n.doc,r=o&&o.documentElement,i=n.pollInterval||40;r.doScroll&&!t._ieready&&(t._ieready=function(){t._ready()},
/*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
self!==self.top?(e=function(){"complete"==o.readyState&&(t.remove(o,"onreadystatechange",e),t.ieready())},t.add(o,"onreadystatechange",e)):t._dri=setInterval(function(){try{r.doScroll("left"),clearInterval(t._dri),t._dri=null,t._ieready()}catch(e){}},i))}(),YUI.add("event-base-ie",function(e,t){function n(){e.DOM2EventFacade.apply(this,arguments)}function o(t){var n=e.config.doc.createEventObject(t),r=o.prototype;return n.hasOwnProperty=function(){return!0},n.init=r.init,n.halt=r.halt,n.preventDefault=r.preventDefault,n.stopPropagation=r.stopPropagation,n.stopImmediatePropagation=r.stopImmediatePropagation,e.DOM2EventFacade.apply(n,arguments),n}var r=e.config.doc&&e.config.doc.implementation,i=e.config.lazyEventFacade,a={0:1,4:2,2:3},c={mouseout:"toElement",mouseover:"fromElement"},l=e.DOM2EventFacade.resolve,s={init:function(){n.superclass.init.apply(this,arguments);var t,o,r,i,c,s,d=this._event;this.target=l(d.srcElement),"clientX"in d&&!t&&0!==t&&(t=d.clientX,o=d.clientY,r=e.config.doc,i=r.body,c=r.documentElement,t+=c.scrollLeft||i&&i.scrollLeft||0,o+=c.scrollTop||i&&i.scrollTop||0,this.pageX=t,this.pageY=o),"mouseout"==d.type?s=d.toElement:"mouseover"==d.type&&(s=d.fromElement),this.relatedTarget=l(s||d.relatedTarget),this.which=this.button=d.keyCode||a[d.button]||d.button},stopPropagation:function(){this._event.cancelBubble=!0,this._wrapper.stopped=1,this.stopped=1},stopImmediatePropagation:function(){this.stopPropagation(),this._wrapper.stopped=2,this.stopped=2},preventDefault:function(e){this._event.returnValue=e||!1,this._wrapper.prevented=1,this.prevented=1}};if(e.extend(n,e.DOM2EventFacade,s),e.extend(o,e.DOM2EventFacade,s),o.prototype.init=function(){var e,t=this._event,n=this._wrapper.overrides,r=o._define,i=o._lazyProperties;this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.metaKey=t.metaKey,this.shiftKey=t.shiftKey,this.type=n&&n.type||t.type,this.clientX=t.clientX,this.clientY=t.clientY,this.keyCode=this.charCode=t.keyCode,this.which=this.button=t.keyCode||a[t.button]||t.button;for(e in i)i.hasOwnProperty(e)&&r(this,e,i[e]);this._touch&&this._touch(t,this._currentTarget,this._wrapper)},o._lazyProperties={target:function(){return l(this._event.srcElement)},relatedTarget:function(){var e=this._event,t=c[e.type]||"relatedTarget";return l(e[t]||e.relatedTarget)},currentTarget:function(){return l(this._currentTarget)},wheelDelta:function(){var e=this._event;if("mousewheel"===e.type||"DOMMouseScroll"===e.type)return e.detail?-1*e.detail:Math.round(e.wheelDelta/80)||(e.wheelDelta<0?-1:1)},pageX:function(){var t,n,o,r=this._event,i=r.pageX;return void 0===i&&(t=e.config.doc,n=t.body&&t.body.scrollLeft,o=t.documentElement.scrollLeft,i=r.clientX+(o||n||0)),i},pageY:function(){var t,n,o,r=this._event,i=r.pageY;return void 0===i&&(t=e.config.doc,n=t.body&&t.body.scrollTop,o=t.documentElement.scrollTop,i=r.clientY+(o||n||0)),i}},o._define=function(e,t,n){function o(o){var r=arguments.length?o:n.call(this);return delete e[t],Object.defineProperty(e,t,{value:r,configurable:!0,writable:!0}),r}Object.defineProperty(e,t,{get:o,set:o,configurable:!0})},r&&!r.hasFeature("Events","2.0")){if(i)try{Object.defineProperty(e.config.doc.createEventObject(),"z",{})}catch(e){i=!1}e.DOMEventFacade=i?o:n}},"@VERSION@",{requires:["node-base"]}),YUI.add("event-base",function(e,t){},"@VERSION@",{requires:["event-custom-base"]});
!function(){var e,t=YUI.Env,n=YUI.config,o=n.doc,r=o&&o.documentElement,i="onreadystatechange",a=n.pollInterval||40;r.doScroll&&!t._ieready&&(t._ieready=function(){t._ready()},/*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
self!==self.top?(e=function(){"complete"==o.readyState&&(t.remove(o,i,e),t.ieready())},t.add(o,i,e)):t._dri=setInterval(function(){try{r.doScroll("left"),clearInterval(t._dri),t._dri=null,t._ieready()}catch(e){}},a))}(),YUI.add("event-base-ie",function(e,t){function n(){e.DOM2EventFacade.apply(this,arguments)}function o(t){var n=e.config.doc.createEventObject(t),r=o.prototype;return n.hasOwnProperty=function(){return!0},n.init=r.init,n.halt=r.halt,n.preventDefault=r.preventDefault,n.stopPropagation=r.stopPropagation,n.stopImmediatePropagation=r.stopImmediatePropagation,e.DOM2EventFacade.apply(n,arguments),n}var r=e.config.doc&&e.config.doc.implementation,i=e.config.lazyEventFacade,a={0:1,4:2,2:3},c={mouseout:"toElement",mouseover:"fromElement"},l=e.DOM2EventFacade.resolve,s={init:function(){n.superclass.init.apply(this,arguments);var t,o,r,i,c,s,p=this._event;this.target=l(p.srcElement),"clientX"in p&&!t&&0!==t&&(t=p.clientX,o=p.clientY,i=(r=e.config.doc).body,t+=(c=r.documentElement).scrollLeft||i&&i.scrollLeft||0,o+=c.scrollTop||i&&i.scrollTop||0,this.pageX=t,this.pageY=o),"mouseout"==p.type?s=p.toElement:"mouseover"==p.type&&(s=p.fromElement),this.relatedTarget=l(s||p.relatedTarget),this.which=this.button=p.keyCode||a[p.button]||p.button},stopPropagation:function(){this._event.cancelBubble=!0,this._wrapper.stopped=1,this.stopped=1},stopImmediatePropagation:function(){this.stopPropagation(),this._wrapper.stopped=2,this.stopped=2},preventDefault:function(e){this._event.returnValue=e||!1,this._wrapper.prevented=1,this.prevented=1}};if(e.extend(n,e.DOM2EventFacade,s),e.extend(o,e.DOM2EventFacade,s),o.prototype.init=function(){var e,t=this._event,n=this._wrapper.overrides,r=o._define,i=o._lazyProperties;this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.metaKey=t.metaKey,this.shiftKey=t.shiftKey,this.type=n&&n.type||t.type,this.clientX=t.clientX,this.clientY=t.clientY,this.keyCode=this.charCode=t.keyCode,this.which=this.button=t.keyCode||a[t.button]||t.button;for(e in i)i.hasOwnProperty(e)&&r(this,e,i[e]);this._touch&&this._touch(t,this._currentTarget,this._wrapper)},o._lazyProperties={target:function(){return l(this._event.srcElement)},relatedTarget:function(){var e=this._event,t=c[e.type]||"relatedTarget";return l(e[t]||e.relatedTarget)},currentTarget:function(){return l(this._currentTarget)},wheelDelta:function(){var e=this._event;if("mousewheel"===e.type||"DOMMouseScroll"===e.type)return e.detail?-1*e.detail:Math.round(e.wheelDelta/80)||(e.wheelDelta<0?-1:1)},pageX:function(){var t,n,o,r=this._event,i=r.pageX;return void 0===i&&(n=(t=e.config.doc).body&&t.body.scrollLeft,o=t.documentElement.scrollLeft,i=r.clientX+(o||n||0)),i},pageY:function(){var t,n,o,r=this._event,i=r.pageY;return void 0===i&&(n=(t=e.config.doc).body&&t.body.scrollTop,o=t.documentElement.scrollTop,i=r.clientY+(o||n||0)),i}},o._define=function(e,t,n){function o(o){var r=arguments.length?o:n.call(this);return delete e[t],Object.defineProperty(e,t,{value:r,configurable:!0,writable:!0}),r}Object.defineProperty(e,t,{get:o,set:o,configurable:!0})},r&&!r.hasFeature("Events","2.0")){if(i)try{Object.defineProperty(e.config.doc.createEventObject(),"z",{})}catch(e){i=!1}e.DOMEventFacade=i?o:n}},"@VERSION@",{requires:["node-base"]}),YUI.add("event-base",function(e,t){},"@VERSION@",{requires:["event-custom-base"]});

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

FOO.add("uploader",function(e,a){var l=Y.config.win;l&&l.File&&l.FormData&&l.XMLHttpRequest?Y.Uploader=Y.UploaderHTML5:Y.SWFDetect.isFlashVersionAtLeast(10,0,45)?Y.Uploader=Y.UploaderFlash:(Y.namespace("Uploader"),Y.Uploader.TYPE="none")},"@VERSION@",{requires:["uploader-html5","uploader-flash"]});
FOO.add("uploader",function(e,a){var l=Y.config.win;l&&l.File&&l.FormData&&l.XMLHttpRequest?Y.Uploader=Y.UploaderHTML5:Y.SWFDetect.isFlashVersionAtLeast(10,0,45)?Y.Uploader=Y.UploaderFlash:(Y.namespace("Uploader"),Y.Uploader.TYPE="none")},"@VERSION@",{requires:["uploader-html5","uploader-flash"]});

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

YUI.add("yql",function(t,s){
/*!
YUI.add("yql",function(t,s){/*!
ENSURE THIS STAYS AT MIN TIME

@@ -8,2 +7,2 @@ Copyright 2012 Yahoo! Inc. All rights reserved.

*/
;var e=function(s,e,n,o){this._types={esc:{token:"",re:/\\[:\[\]\(\)#\.\'\>+~"]/gi},attr:{token:"",re:/(\[[^\]]*\])/g},pseudo:{token:"",re:/(\([^\)]*\))/g}},n||(n={}),n.q=s,n.format||(n.format=t.YQLRequest.FORMAT),n.env||(n.env=t.YQLRequest.ENV),this._context=this,o&&o.context&&(this._context=o.context,delete o.context),n&&n.context&&(this._context=n.context,delete n.context),this._params=n,this._opts=o,this._callback=e};e.prototype={_jsonp:null,_opts:null,_callback:null,_params:null,_context:null,_internal:function(){this._callback.apply(this._context,arguments)},send:function(){var s,e=[],n=this._opts&&this._opts.proto?this._opts.proto:t.YQLRequest.PROTO;return t.each(this._params,function(t,s){e.push(s+"="+encodeURIComponent(t))}),e=e.join("&"),n+=(this._opts&&this._opts.base?this._opts.base:t.YQLRequest.BASE_URL)+e,s=t.Lang.isFunction(this._callback)?{on:{success:this._callback}}:this._callback,s.on=s.on||{},this._callback=s.on.success,s.on.success=t.bind(this._internal,this),!1!==s.allowCache&&(s.allowCache=!0),this._jsonp?(this._jsonp.url=n,s.on&&s.on.success&&(this._jsonp._config.on.success=s.on.success),this._jsonp.send()):this._jsonp=t.jsonp(n,s),this}},e.FORMAT="json",e.PROTO="http",e.BASE_URL="://query.yahooapis.com/v1/public/yql?",e.ENV="http://datatables.org/alltables.env",t.YQLRequest=e,t.YQL=function(s,e,n,o){return new t.YQLRequest(s,e,n,o).send()}},"1.2.3.4",{requires:["jsonp","jsonp-url"]});
var n=function(s,n,e,o){this._types={esc:{token:"",re:/\\[:\[\]\(\)#\.\'\>+~"]/gi},attr:{token:"",re:/(\[[^\]]*\])/g},pseudo:{token:"",re:/(\([^\)]*\))/g}},e||(e={}),e.q=s,e.format||(e.format=t.YQLRequest.FORMAT),e.env||(e.env=t.YQLRequest.ENV),this._context=this,o&&o.context&&(this._context=o.context,delete o.context),e&&e.context&&(this._context=e.context,delete e.context),this._params=e,this._opts=o,this._callback=n};n.prototype={_jsonp:null,_opts:null,_callback:null,_params:null,_context:null,_internal:function(){this._callback.apply(this._context,arguments)},send:function(){var s,n=[],e=this._opts&&this._opts.proto?this._opts.proto:t.YQLRequest.PROTO;return t.each(this._params,function(t,s){n.push(s+"="+encodeURIComponent(t))}),n=n.join("&"),e+=(this._opts&&this._opts.base?this._opts.base:t.YQLRequest.BASE_URL)+n,s=t.Lang.isFunction(this._callback)?{on:{success:this._callback}}:this._callback,s.on=s.on||{},this._callback=s.on.success,s.on.success=t.bind(this._internal,this),!1!==s.allowCache&&(s.allowCache=!0),this._jsonp?(this._jsonp.url=e,s.on&&s.on.success&&(this._jsonp._config.on.success=s.on.success),this._jsonp.send()):this._jsonp=t.jsonp(e,s),this}},n.FORMAT="json",n.PROTO="http",n.BASE_URL="://query.yahooapis.com/v1/public/yql?",n.ENV="http://datatables.org/alltables.env",t.YQLRequest=n,t.YQL=function(s,n,e,o){return new t.YQLRequest(s,n,e,o).send()}},"1.2.3.4",{requires:["jsonp","jsonp-url"]});
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc