From f69bb7393b49f98ec3815793f09ae090d37fcfd5 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Mon, 22 May 2017 12:00:36 +0200 Subject: [PATCH] Remove browser build --- .bumpedrc | 3 +-- README.md | 2 +- bower.json | 33 ------------------------------ component.json | 2 +- dist/acho.js | 7 ------- dist/example.html | 15 -------------- gulpfile.coffee | 52 ----------------------------------------------- package.json | 11 +--------- 8 files changed, 4 insertions(+), 121 deletions(-) delete mode 100644 bower.json delete mode 100644 dist/acho.js delete mode 100644 dist/example.html delete mode 100644 gulpfile.coffee diff --git a/.bumpedrc b/.bumpedrc index cd8a8fc..007ee65 100644 --- a/.bumpedrc +++ b/.bumpedrc @@ -1,6 +1,5 @@ files: [ 'package.json' - 'bower.json' ] plugins: @@ -21,7 +20,7 @@ plugins: 'Commiting new version': plugin: 'bumped-terminal' - command: 'git add CHANGELOG.md bower.json package.json dist && git commit -m "Release $newVersion"' + command: 'git add CHANGELOG.md package.json && git commit -m "Release $newVersion"' 'Detecting problem before publish': plugin: 'bumped-terminal' diff --git a/README.md b/README.md index 5fa42fb..f71cbec 100755 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ [![NPM Status](http://img.shields.io/npm/dm/acho.svg?style=flat-square)](https://www.npmjs.org/package/acho) [![Donate](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square)](https://paypal.me/kikobeats) -> Simple & hackable log system for NodeJS/Browser. +> Simple & hackable log system for NodeJS. # Why diff --git a/bower.json b/bower.json deleted file mode 100644 index 947dfe6..0000000 --- a/bower.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "acho", - "description": "Simple & hackable log system for NodeJS/Browser.", - "homepage": "https://github.com/achohq/acho", - "version": "3.2.1", - "main": "dist/acho.js", - "author": { - "name": "Kiko Beats" - }, - "authors": [ - "Kiko Beats josefrancisco.verdu@gmail.com" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/achohq/acho.git" - }, - "bugs": { - "url": "https://github.com/achohq/acho/issues" - }, - "keywords": [ - "log", - "logger", - "logging" - ], - "ignore": [ - "**/.*", - "bower_components", - "node_modules", - "test", - "tests" - ], - "license": "MIT" -} diff --git a/component.json b/component.json index 094a355..0ce9fee 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "acho", - "description": "Simple & hackable log system for NodeJS/Browser.", + "description": "Simple & hackable log system for NodeJS.", "version": "1.0.6", "main": "dist/acho.js" } diff --git a/dist/acho.js b/dist/acho.js deleted file mode 100644 index eb6f9bc..0000000 --- a/dist/acho.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * acho - An extremely simple (but powerful) logging system for NodeJS and browser. - * @version v3.2.1 - * @link https://github.com/achohq/acho - * @license MIT - */!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,r.Acho=t()}}(function(){return function t(r,e,n){function i(s,u){if(!e[s]){if(!r[s]){var f="function"==typeof require&&require;if(!u&&f)return f(s,!0);if(o)return o(s,!0);var a=new Error("Cannot find module '"+s+"'");throw a.code="MODULE_NOT_FOUND",a}var c=e[s]={exports:{}};r[s][0].call(c.exports,function(t){var e=r[s][1][t];return i(e?e:t)},c,c.exports,t,r,e,n)}return e[s].exports}for(var o="function"==typeof require&&require,s=0;s0?"0".repeat(r)+e:e},outputMessage:function(t){return t},outputType:function(t){return this.keyword&&(t=this.keyword===n.SYMBOL_KEYWORD?this.types[t].symbol:this.keyword),this.upperCase&&(t=t.toUpperCase()),t},outputAlign:function(){return this.align?this.align:" "},outputCounter:function(){var t;return this.timestamp?(this._counterTimestamp||(this._counterTimestamp=0),this._lastTimestamp||(this._lastTimestamp=null),t=Date.now()-this._lastTimestamp,t>=this.timestamp&&(++this._counterTimestamp,this._lastTimestamp=Date.now())," ["+this.decorateCounter(this._counterTimestamp)+"]"):""},outputSeparator:function(t){return this.keyword?"":this.types[t].separator||""},outputContext:function(){return this.context?" "+this.context:""},transport:console.log,generateMessage:function(t,r){var e,i,o,u,f,a,c,h;if(this.isPrintable(t))return i=this.types[t].color,r=this.outputMessage(r),r=this.colorizeMessage(t,r),o=null,this.diff&&(this.diff[t]?(o=s(Date.now()-this.diff[t]),o=" +"+o,this.diff[t]=Date.now()):(this.diff[t]=Date.now(),o=" +0ms")),a=this.outputType(t),a=this.colorize(i,a),h=this.outputSeparator(t),f=this.outputCounter(),f=this.colorize(n.LINE_COLOR,f),u=this.outputContext(),u=this.colorize(n.LINE_COLOR,u),e=this.outputAlign(),c=""+h+a+f+u+e+r,o&&(c+=this.colorize(i,o)),c},generateTypeMessage:function(t){return function(){var r,e;return e=1<=arguments.length?u.call(arguments,0):[],r=this.types[t].color,e=this.format(e,r),e=this.generateMessage(t,e),e&&this.transport(e),this}},colorizeMessage:function(t,r){var e,i;return this.color?(e=n.LINE_COLOR,r.indexOf(!1)?this.colorize(e,r):(i=this.types[t].color,r.toString().split(" ").map(function(t){return function(r){return r=r.split("="),r.length>1?(r[0]=t.colorize(i,r[0]),r[1]=t.colorize(e,r[1]),r.join(t.colorize(e,"="))):t.colorize(e,r)}}(this)).join(" "))):r},colorize:function(t,r){var e,n,o,s;if(!this.color)return r;for(t=t.split(" "),s=i,n=0,o=t.length;n<]/g}},{}],6:[function(t,r,e){"use strict";function n(){var t={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return t.colors.grey=t.colors.gray,Object.keys(t).forEach(function(r){var e=t[r];Object.keys(e).forEach(function(r){var n=e[r];t[r]=e[r]={open:"["+n[0]+"m",close:"["+n[1]+"m"}}),Object.defineProperty(t,r,{value:e,enumerable:!1})}),t}Object.defineProperty(r,"exports",{enumerable:!0,get:n})},{}],7:[function(t,r,e){"use strict";function n(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[r-2]?2:"="===t[r-1]?1:0}function i(t){return 3*t.length/4-n(t)}function o(t){var r,e,i,o,s,u,f=t.length;s=n(t),u=new h(3*f/4-s),i=s>0?f-4:f;var a=0;for(r=0,e=0;r>16&255,u[a++]=o>>8&255,u[a++]=255&o;return 2===s?(o=c[t.charCodeAt(r)]<<2|c[t.charCodeAt(r+1)]>>4,u[a++]=255&o):1===s&&(o=c[t.charCodeAt(r)]<<10|c[t.charCodeAt(r+1)]<<4|c[t.charCodeAt(r+2)]>>2,u[a++]=o>>8&255,u[a++]=255&o),u}function s(t){return a[t>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}function u(t,r,e){for(var n,i=[],o=r;oc?c:f+s));return 1===n?(r=t[e-1],i+=a[r>>2],i+=a[r<<4&63],i+="=="):2===n&&(r=(t[e-2]<<8)+t[e-1],i+=a[r>>10],i+=a[r>>4&63],i+=a[r<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=f;for(var a=[],c=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,g=l.length;p=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),s.alloc(+t)}function v(t,r){if(s.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return $(t).length;default:if(n)return J(t).length;r=(""+r).toLowerCase(),n=!0}}function m(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if(e>>>=0,r>>>=0,e<=r)return"";for(t||(t="utf8");;)switch(t){case"hex":return M(this,r,e);case"utf8":case"utf-8":return P(this,r,e);case"ascii":return S(this,r,e);case"latin1":case"binary":return C(this,r,e);case"base64":return U(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function b(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=s.from(r,n)),s.isBuffer(r))return 0===r.length?-1:E(t,r,e,n,i);if("number"==typeof r)return r=255&r,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):E(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function E(t,r,e,n,i){function o(t,r){return 1===s?t[r]:t.readUInt16BE(r*s)}var s=1,u=t.length,f=r.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;s=2,u/=2,f/=2,e/=2}var a;if(i){var c=-1;for(a=e;au&&(e=u-f),a=e;a>=0;a--){for(var h=!0,l=0;li&&(n=i)):n=i;var o=r.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s239?4:o>223?3:o>191?2:1;if(i+u<=e){var f,a,c,h;switch(u){case 1:o<128&&(s=o);break;case 2:f=t[i+1],128===(192&f)&&(h=(31&o)<<6|63&f,h>127&&(s=h));break;case 3:f=t[i+1],a=t[i+2],128===(192&f)&&128===(192&a)&&(h=(15&o)<<12|(63&f)<<6|63&a,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:f=t[i+1],a=t[i+2],c=t[i+3],128===(192&f)&&128===(192&a)&&128===(192&c)&&(h=(15&o)<<18|(63&f)<<12|(63&a)<<6|63&c,h>65535&&h<1114112&&(s=h))}}null===s?(s=65533,u=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=u}return B(n)}function B(t){var r=t.length;if(r<=tt)return String.fromCharCode.apply(String,t);for(var e="",n=0;nn)&&(e=n);for(var i="",o=r;oe)throw new RangeError("Trying to access beyond buffer length")}function Y(t,r,e,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||rt.length)throw new RangeError("Index out of range")}function L(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i>>8*(n?i:1-i)}function k(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i>>8*(n?i:3-i)&255}function j(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function N(t,r,e,n,i){return i||j(t,r,e,4,3.4028234663852886e38,-3.4028234663852886e38),H.write(t,r,e,n,23,4),e+4}function F(t,r,e,n,i){return i||j(t,r,e,8,1.7976931348623157e308,-1.7976931348623157e308),H.write(t,r,e,n,52,8),e+8}function z(t){if(t=G(t).replace(rt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function G(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function q(t){return t<16?"0"+t.toString(16):t.toString(16)}function J(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],s=0;s55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function Z(t){for(var r=[],e=0;e>8,i=e%256,o.push(i),o.push(n);return o}function $(t){return X.toByteArray(z(t))}function K(t,r,e,n){for(var i=0;i=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function V(t){return t!==t}var X=t("base64-js"),H=t("ieee754"),Q=t("isarray");e.Buffer=s,e.SlowBuffer=d,e.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:n(),e.kMaxLength=i(),s.poolSize=8192,s._augment=function(t){return t.__proto__=s.prototype,t},s.from=function(t,r,e){return u(null,t,r,e)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(t,r,e){return a(null,t,r,e)},s.allocUnsafe=function(t){return c(null,t)},s.allocUnsafeSlow=function(t){return c(null,t)},s.isBuffer=function(t){return!(null==t||!t._isBuffer)},s.compare=function(t,r){if(!s.isBuffer(t)||!s.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);i0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},s.prototype.compare=function(t,r,e,n,i){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return-1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,u=e-r,f=Math.min(o,u),a=this.slice(n,i),c=t.slice(r,e),h=0;hi)&&(e=i),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,t,r,e);case"utf8":case"utf-8":return R(this,t,r,e);case"ascii":return _(this,t,r,e);case"latin1":case"binary":return T(this,t,r,e);case"base64":return x(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;s.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e,t<0&&(t=0)):t>e&&(t=e),r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),r0&&(i*=256);)n+=this[t+--r]*i;return n},s.prototype.readUInt8=function(t,r){return r||D(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,r){return r||D(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,r){return r||D(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,r){return r||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,r){return r||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,r,e){t=0|t,r=0|r,e||D(t,r,this.length);for(var n=this[t],i=1,o=0;++o=i&&(n-=Math.pow(2,8*r)),n},s.prototype.readIntBE=function(t,r,e){t=0|t,r=0|r,e||D(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o},s.prototype.readInt8=function(t,r){return r||D(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},s.prototype.readInt16LE=function(t,r){r||D(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},s.prototype.readInt16BE=function(t,r){r||D(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},s.prototype.readInt32LE=function(t,r){return r||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,r){return r||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,r){return r||D(t,4,this.length),H.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,r){return r||D(t,4,this.length),H.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,r){return r||D(t,8,this.length),H.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,r){return r||D(t,8,this.length),H.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,r,e,n){if(t=+t,r=0|r,e=0|e,!n){var i=Math.pow(2,8*e)-1;Y(this,t,r,e,i,0)}var o=1,s=0;for(this[r]=255&t;++s=0&&(s*=256);)this[r+o]=t/s&255;return r+e},s.prototype.writeUInt8=function(t,r,e){return t=+t,r=0|r,e||Y(this,t,r,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},s.prototype.writeUInt16LE=function(t,r,e){return t=+t,r=0|r,e||Y(this,t,r,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):L(this,t,r,!0),r+2},s.prototype.writeUInt16BE=function(t,r,e){return t=+t,r=0|r,e||Y(this,t,r,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):L(this,t,r,!1),r+2},s.prototype.writeUInt32LE=function(t,r,e){return t=+t,r=0|r,e||Y(this,t,r,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):k(this,t,r,!0),r+4},s.prototype.writeUInt32BE=function(t,r,e){return t=+t,r=0|r,e||Y(this,t,r,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):k(this,t,r,!1),r+4},s.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r=0|r,!n){var i=Math.pow(2,8*e-1);Y(this,t,r,e,i-1,-i)}var o=0,s=1,u=0;for(this[r]=255&t;++o>0)-u&255;return r+e},s.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r=0|r,!n){var i=Math.pow(2,8*e-1);Y(this,t,r,e,i-1,-i)}var o=e-1,s=1,u=0;for(this[r+o]=255&t;--o>=0&&(s*=256);)t<0&&0===u&&0!==this[r+o+1]&&(u=1),this[r+o]=(t/s>>0)-u&255;return r+e},s.prototype.writeInt8=function(t,r,e){return t=+t,r=0|r,e||Y(this,t,r,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},s.prototype.writeInt16LE=function(t,r,e){return t=+t,r=0|r,e||Y(this,t,r,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):L(this,t,r,!0),r+2},s.prototype.writeInt16BE=function(t,r,e){return t=+t,r=0|r,e||Y(this,t,r,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):L(this,t,r,!1),r+2},s.prototype.writeInt32LE=function(t,r,e){return t=+t,r=0|r,e||Y(this,t,r,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):k(this,t,r,!0),r+4},s.prototype.writeInt32BE=function(t,r,e){return t=+t,r=0|r,e||Y(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):k(this,t,r,!1),r+4},s.prototype.writeFloatLE=function(t,r,e){return N(this,t,r,!0,e)},s.prototype.writeFloatBE=function(t,r,e){return N(this,t,r,!1,e)},s.prototype.writeDoubleLE=function(t,r,e){return F(this,t,r,!0,e)},s.prototype.writeDoubleBE=function(t,r,e){return F(this,t,r,!1,e)},s.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--i)t[i+r]=this[i+e];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,e=void 0===e?this.length:e>>>0,t||(t=0);var o;if("number"==typeof t)for(o=r;o1)for(var n=1;nf.max?A+l(r,b):E?A+E:A+=g(b)?d(b,r,{offset:a+i(c).length+v.length,depth:{curr:f.curr+1,max:f.max},path:w,lookupRef:o}):p(r,b)});return"\n"+m.join("\n")},v={punctuation:o.yellow,annotation:o.gray,property:o.green,literal:o.magenta,number:o.cyan, -string:o.bold},m=function(t,r,e,n){return void 0===r&&(r=1/0),void 0===e&&(e=v),void 0===n&&(n=2),d(t,e,{depth:{curr:0,max:r},lookupRef:y(),path:[],offset:n})};r.exports=m},{chalk:10,longest:17,"lpad-align":18,tsml:28}],13:[function(t,r,e){"use strict";var n=t("ansi-regex"),i=new RegExp(n().source);r.exports=i.test.bind(i)},{"ansi-regex":5}],14:[function(t,r,e){e.read=function(t,r,e,n,i){var o,s,u=8*i-n-1,f=(1<>1,c=-7,h=e?i-1:0,l=e?-1:1,p=t[r+h];for(h+=l,o=p&(1<<-c)-1,p>>=-c,c+=u;c>0;o=256*o+t[r+h],h+=l,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[r+h],h+=l,c-=8);if(0===o)o=1-a;else{if(o===f)return s?NaN:(p?-1:1)*(1/0);s+=Math.pow(2,n),o-=a}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,r,e,n,i,o){var s,u,f,a=8*o-i-1,c=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,g=n?1:-1,y=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,s=c):(s=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-s))<1&&(s--,f*=2),r+=s+h>=1?l/f:l*Math.pow(2,1-h),r*f>=2&&(s++,f/=2),s+h>=c?(u=0,s=c):s+h>=1?(u=(r*f-1)*Math.pow(2,i),s+=h):(u=r*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[e+p]=255&u,p+=g,u/=256,i-=8);for(s=s<0;t[e+p]=255&s,p+=g,s/=256,a-=8);t[e+p-g]|=128*y}},{}],15:[function(t,r,e){"use strict";var n=t("number-is-nan");r.exports=Number.isFinite||function(t){return!("number"!=typeof t||n(t)||t===1/0||t===-(1/0))}},{"number-is-nan":20}],16:[function(t,r,e){var n={}.toString;r.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],17:[function(t,r,e){"use strict";r.exports=function(t){if(!t)return null;var r=t.length;if(!r)return null;for(var e,n,i,o=0,s=0;so&&(i=e,o=n);return i}},{}],18:[function(t,r,e){"use strict";var n=t("longest"),i=t("lpad");r.exports=function(t,r,e){if(!Array.isArray(r))throw new Error("`arr` is required");var o=n(r).length;return i(t,new Array((e||0)+1+o-t.length).join(" "))}},{longest:17,lpad:19}],19:[function(t,r,e){"use strict";r.exports=function(t,r){return r?String(t).split(/\r?\n/).map(function(t){return t?r+t:t}).join("\n"):t}},{}],20:[function(t,r,e){"use strict";r.exports=Number.isNaN||function(t){return t!==t}},{}],21:[function(t,r,e){"use strict";r.exports=function(t){if("number"!=typeof t)throw new TypeError("Expected a number");var r=t>0?Math.floor:Math.ceil;return{days:r(t/864e5),hours:r(t/36e5)%24,minutes:r(t/6e4)%60,seconds:r(t/1e3)%60,milliseconds:r(t)%1e3}}},{}],22:[function(t,r,e){"use strict";r.exports=function(t,r,e){return"number"==typeof r&&(e=r,r=t+"s"),1===e?t:r}},{}],23:[function(t,r,e){"use strict";var n=t("parse-ms"),i=t("plur"),o=t("is-finite");r.exports=function(t,r){if(!o(t))throw new TypeError("Expected a finite number");if(r=r||{},t<1e3){var e="number"==typeof r.msDecimalDigits?r.msDecimalDigits:0;return(e?t.toFixed(e):Math.ceil(t))+(r.verbose?" "+i("millisecond",Math.ceil(t)):"ms")}var s=[],u=function(t,e,n,o){if(0!==t){var u=r.verbose?" "+i(e,t):n;s.push((o||t)+u)}},f=n(t);if(u(f.days,"day","d"),u(f.hours,"hour","h"),u(f.minutes,"minute","m"),r.compact)return u(f.seconds,"second","s"),"~"+s[0];var a=t/1e3%60,c="number"==typeof r.secDecimalDigits?r.secDecimalDigits:1,h=a.toFixed(c).replace(/\.0$/,"");return u(a,"second","s",h),s.join(" ")}},{"is-finite":15,"parse-ms":21,plur:22}],24:[function(t,r,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(h===setTimeout)return setTimeout(t,0);if((h===n||!h)&&setTimeout)return h=setTimeout,setTimeout(t,0);try{return h(t,0)}catch(r){try{return h.call(null,t,0)}catch(r){return h.call(this,t,0)}}}function s(t){if(l===clearTimeout)return clearTimeout(t);if((l===i||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(r){try{return l.call(null,t)}catch(r){return l.call(this,t)}}}function u(){d&&g&&(d=!1,g.length?y=g.concat(y):v=-1,y.length&&f())}function f(){if(!d){var t=o(u);d=!0;for(var r=y.length;r;){for(g=y,y=[];++v1)for(var e=1;eo;)n[i-o]=t[i];return n}},{}],26:[function(t,r,e){"use strict";var n=t("ansi-regex")();r.exports=function(t){return"string"==typeof t?t.replace(n,""):t}},{"ansi-regex":5}],27:[function(t,r,e){(function(t){"use strict";var e=t.argv,n=e.indexOf("--"),i=function(t){t="--"+t;var r=e.indexOf(t);return r!==-1&&(n===-1||r - - - - Example - - - - - - - diff --git a/gulpfile.coffee b/gulpfile.coffee deleted file mode 100644 index ce7dee4..0000000 --- a/gulpfile.coffee +++ /dev/null @@ -1,52 +0,0 @@ -'use strict' - -# -- Dependencies -------------------------------------------------------------- - -gulp = require 'gulp' -titleize = require 'titleize' -coffeeify = require 'coffeeify' -gutil = require 'gulp-util' -browserify = require 'browserify' -header = require 'gulp-header' -uglify = require 'gulp-uglify' -buffer = require 'vinyl-buffer' -pkg = require './package.json' -source = require 'vinyl-source-stream' - -# -- Files --------------------------------------------------------------------- - -src = - main: './index.js' - -module = - filename : "#{pkg.name}.js" - shortcut : titleize pkg.name - dist : 'dist' - -banner = [ - "/**" - " * <%= pkg.name %> - <%= pkg.description %>" - " * @version v<%= pkg.version %>" - " * @link <%= pkg.homepage %>" - " * @license <%= pkg.license %>" - " */"].join("\n") - -# -- Tasks --------------------------------------------------------------------- - -gulp.task 'browserify', -> - browserify - extensions: ['.coffee', '.js'] - standalone: module.shortcut - .transform coffeeify - .require(src.main, { expose: module.shortcut }) - .ignore('coffee-script') - .bundle() - .pipe source module.filename - .pipe buffer() - .pipe uglify() - .pipe header banner, pkg: pkg - .pipe gulp.dest module.dist - -gulp.task 'default', -> - gulp.start 'browserify' - return diff --git a/package.json b/package.json index 4b94971..d7b3eb3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "acho", - "description": "Simple & hackable log system for NodeJS/Browser.", + "description": "Simple & hackable log system for NodeJS.", "homepage": "https://github.com/achohq/acho", "version": "3.2.1", "main": "./index.js", @@ -33,23 +33,14 @@ }, "devDependencies": { "acho-skin-cli": "latest", - "browserify": "latest", - "coffeeify": "latest", "coveralls": "latest", "date-utils": "latest", "git-dirty": "latest", - "gulp": "latest", - "gulp-header": "latest", - "gulp-uglify": "latest", - "gulp-util": "latest", "mocha": "latest", "nyc": "latest", "set-dateout": "latest", "should": "latest", "standard": "latest", - "titleize": "latest", - "vinyl-buffer": "latest", - "vinyl-source-stream": "latest" }, "engines": { "node": ">= 4"