diff --git a/es5/dist.js b/es5/dist.js deleted file mode 100644 index 4134334..0000000 --- a/es5/dist.js +++ /dev/null @@ -1,82 +0,0 @@ -var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.owns=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};$jscomp.assign="function"==typeof Object.assign?Object.assign:function(a,b){for(var h=1;hb&&(d.warned= -!0,b=Error("Possible EventEmitter memory leak detected. "+d.length+' "'+String(c)+'" listeners added. Use emitter.setMaxListeners() to increase limit.'),b.name="MaxListenersExceededWarning",b.emitter=a,b.type=c,b.count=d.length,"object"===("undefined"===typeof console?"undefined":_typeof2(console))&&console.warn&&console.warn("%s: %s",b.name,b.message))):(g[c]=b,++a._eventsCount);return a}function m(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target); -case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var a=Array(arguments.length),c=0;ca||a!==a)throw new TypeError('"defaultMaxListeners" must be a positive number'); -u=a}}):e.defaultMaxListeners=u;e.prototype.setMaxListeners=function(a){if("number"!==typeof a||0>a||isNaN(a))throw new TypeError('"n" argument must be a positive number');this._maxListeners=a;return this};e.prototype.getMaxListeners=function(){return void 0===this._maxListeners?e.defaultMaxListeners:this._maxListeners};e.prototype.emit=function(a){var c,b,g;var d="error"===a;if(g=this._events)d=d&&null==g.error;else if(!d)return!1;if(d){1d)return this;if(0===d)f.shift();else{b=d+1;for(var k=f.length;bb},function(a,b){return m(_templateObject14,a,b)}];b.exports.lessThan=[function(a,b){return a=b},function(a,b){return m(_templateObject16,a,b)}];b.exports.lte=[function(a,b){return a<=b},function(a,b){return m(_templateObject17,a,b)}];b.exports.success=b.exports.done;b.exports.succeed=b.exports.done;b.exports.failure=b.exports.fail;b.exports.equal=b.exports.equals; -b.exports.deepEqual=b.exports.deepEquals;b.exports.match=b.exports.deepEquals;b.exports.greaterThanOrEqualTo=b.exports.gte;b.exports.lessThanOrEqualTo=b.exports.lte},{"../util":21,"@codefeathers/iseq":2}],12:[function(a,b,h){a("../gunner");var e=a("../util/symbols"),d=function(a){return function(b){return{type:a,unit:b}}};b.exports=function(a){var b=[];Array.prototype.push.apply(b,a.__suite__.beforeHooks[e.Start].map(d("@start")));b.push.apply(a.__suite__.afterHooks[e.Start].map(d("@start")));a.__suite__.tests.forEach(function(c){return Array.prototype.push.apply(b, -a.__suite__.beforeHooks["*"].map(d("@every"))),Array.prototype.push.apply(b,(a.__suite__.beforeHooks[c.description]||[]).map(d("@this"))),b.push(d("@test")(c)),Array.prototype.push.apply(b,(a.__suite__.afterHooks[c.description]||[]).map(d("@afterTest"))),Array.prototype.push.apply(b,a.__suite__.afterHooks["*"].map(d("@afterEvery")))});Array.prototype.push.apply(b,a.__suite__.beforeHooks[e.End].map(d("@beforeend")));Array.prototype.push.apply(b,a.__suite__.afterHooks[e.End].map(d("@end")));return b}}, -{"../gunner":9,"../util/symbols":22}],13:[function(a,b,h){var e=a("../util").isPromise;b.exports=function(a,b){var c=0,d=0,l=void 0,f=void 0,k=void 0;try{c=Date.now(),l=a(b),d=Date.now()}catch(r){d=Date.now(),k=!0,f=r}return e(l)?l.then(function(a){return{duration:Date.now()-c,status:"ok",resolve:a,promise:!0}}).catch(function(a){return{duration:Date.now()-c,status:"notOk",rejection:a,promise:!0}}):Promise.resolve(_extends2({duration:d-c,status:k?"notOk":"ok"},!k&&{value:l},k&&{error:f},{promise:!1}))}}, -{"../util":21}],14:[function(a,b,h){a=function(a){function b(){_classCallCheck(this,b);return _possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}_inherits(b,a);return b}(a("events"));b.exports=new a},{events:6}],15:[function(a,b,h){h=a("../util");var e=h.liftPromise,d=h.lowerCaseFirstLetter,m=a("./assertionsLibrary"),c=a("./assertPromise"),g=function(a,b){var f=2",c[0],c[1],a.description);b.trace&&a.reason&&console.log("\n---\n\n",a.reason,"\n\n---\n")})});a.on("end",function(a){console.log(a.success.length,"tests of",a.length,"passed");console.log("Success ratio:",a.successPercent,"%")})};b.exports.convert= -function(a){return a}},{}],18:[function(a,b,h){b.exports={default:a("./default"),tap:a("./tap"),xunit:a("./xunit")}},{"./default":17,"./tap":19,"./xunit":20}],19:[function(a,b,h){var e={ok:"ok",notOk:"not ok",skip:"skip"},d=function(a,b){return"\nTAP version 13\n"+(a.length?"1":0)+".."+a.length+"\n"+a.map(function(a,c){var f=b.trace&&a.reason&&(a.reason.stack?a.reason.stack:a.reason)||"";return e[a.status]+" "+(c+1)+" - "+a.description+(f&&"\n ---\n message: |\n "+f+"\n ---\n")}).join("\n")+ -"\n"};b.exports=function(a,b){a.on("end",function(a){return console.log(d(a,b))})};b.exports.convert=d},{}],20:[function(a,b,h){var e=function(a,b,d,e){d=d?"/>":">";var c=[],g=void 0;Object.keys(b).forEach(function(a){Object.prototype.hasOwnProperty.call(b,a)&&c.push(a+'="'+b[a]+'"')});g="<"+a+(c.length?" "+c.join(" "):"")+d;e&&(g+=e+"'+e("testsuites",{},!1,e("testsuite",{name:a.name,tests:a.count,success:a.success.length,failures:a.failures.length, -skipped:a.skipped.length,timestamp:(new Date).toUTCString(),time:a.duration/1E3||0},!1,a.reduce(function(a,b){var c="ok"===b.status,f="ok"!==b.status&&("skip"===b.status?e("skipped",{},!0):e("failure",{},!b.reason,b.reason?b.reason:""));return a+=e("testcase",{name:b.description,time:b.duration/1E3||0},c,f||"")},"")))};b.exports=function(a){a.on("end",function(a){console.log(d(a))})};b.exports.convert=d},{}],21:[function(a,b,h){var e=a("json-stringify-safe"),d=function(a){return a&&"object"===("undefined"=== -typeof a?"undefined":_typeof2(a))},m=function(a){return d(a)?a.stack||e(a):a},c=function(a){return a&&"function"===typeof a.then},g=function(a,b){return c(b)?b.then(a):a(b)};b.exports={isObject:d,isPromise:c,liftPromise:g,path:function(a){return function(b){return b.reduce(function(a,b){return a&&a[b]},a)}},pick:function(a){return function(b){return b[a]}},pipe:function(){for(var a=arguments.length,b=Array(a),c=0;c, Joscha Feth 2013 [MIT Licensed] + + var element_start_char = "a-zA-Z_\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FFF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD"; + var element_non_start_char = "-.0-9\xB7\u0300-\u036F\u203F\u2040"; + var element_replace = new RegExp("^([^" + element_start_char + "])|^((x|X)(m|M)(l|L))|([^" + element_start_char + element_non_start_char + "])", "g"); + var not_safe_in_xml = /[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm; + + var process_to_xml = function process_to_xml(node_data, options) { + + var makeNode = function makeNode(name, content, attributes, level, hasSubNodes) { + + var indent_value = options.indent !== undefined ? options.indent : "\t"; + var indent = options.prettyPrint ? '\n' + new Array(level).join(indent_value) : ''; + if (options.removeIllegalNameCharacters) { + name = name.replace(element_replace, '_'); + } + + var node = [indent, '<', name, attributes || '']; + if (content && content.length > 0 || options.html) { + node.push('>'); + node.push(content); + hasSubNodes && node.push(indent); + node.push(''); + } else { + node.push('/>'); + } + return node.join(''); + }; + + return function fn(node_data, node_descriptor, level) { + var type = typeof node_data === "undefined" ? "undefined" : _typeof2(node_data); + if (Array.isArray ? Array.isArray(node_data) : node_data instanceof Array) { + type = 'array'; + } else if (node_data instanceof Date) { + type = 'date'; + } + + switch (type) { + //if value is an array create child nodes from values + case 'array': + var ret = []; + node_data.map(function (v) { + ret.push(fn(v, 1, level + 1)); + //entries that are values of an array are the only ones that can be special node descriptors + }); + options.prettyPrint && ret.push('\n'); + return ret.join(''); + break; + + case 'date': + // cast dates to ISO 8601 date (soap likes it) + return node_data.toJSON ? node_data.toJSON() : node_data + ''; + break; + + case 'object': + if (node_descriptor == 1 && node_data.name) { + var content = [], + attributes = []; + + if (node_data.attrs) { + if (_typeof2(node_data.attrs) != 'object') { + // attrs is a string, etc. - just use it as an attribute + attributes.push(' '); + attributes.push(node_data.attrs); + } else { + for (var key in node_data.attrs) { + var value = node_data.attrs[key]; + attributes.push(' '); + attributes.push(key); + attributes.push('="'); + attributes.push(options.escape ? esc(value) : value); + attributes.push('"'); + } + } + } + + //later attributes can be added here + if (typeof node_data.value != 'undefined') { + var c = '' + node_data.value; + content.push(options.escape && !node_data.noescape ? esc(c) : c); + } else if (typeof node_data.text != 'undefined') { + var c = '' + node_data.text; + content.push(options.escape && !node_data.noescape ? esc(c) : c); + } + + if (node_data.children) { + content.push(fn(node_data.children, 0, level + 1)); + } + + return makeNode(node_data.name, content.join(''), attributes.join(''), level, !!node_data.children); + } else { + var nodes = []; + for (var name in node_data) { + nodes.push(makeNode(name, fn(node_data[name], 0, level + 1), null, level + 1)); + } + options.prettyPrint && nodes.length > 0 && nodes.push('\n'); + return nodes.join(''); + } + break; + + case 'function': + return node_data(); + break; + + default: + return options.escape ? esc(node_data) : '' + node_data; + } + }(node_data, 0, 0); + }; + + var xml_header = function xml_header(standalone) { + var ret = [''); + + return ret.join(''); + }; + + module.exports = function (obj, options) { + + var Buffer = this.Buffer || function Buffer() {}; + + if (typeof obj == 'string' || obj instanceof Buffer) { + try { + obj = JSON.parse(obj.toString()); + } catch (e) { + return false; + } + } + + var xmlheader = ''; + var docType = ''; + if (options) { + if ((typeof options === "undefined" ? "undefined" : _typeof2(options)) == 'object') { + // our config is an object + + if (options.xmlHeader) { + // the user wants an xml header + xmlheader = xml_header(!!options.xmlHeader.standalone); + } + + if (typeof options.docType != 'undefined') { + docType = ''; + } + } else { + // our config is a boolean value, so just add xml header + xmlheader = xml_header(); + } + } + options = options || {}; + + var ret = [xmlheader, options.prettyPrint && docType ? '\n' : '', docType, process_to_xml(obj, options)]; + + return ret.join(''); + }; + + module.exports.json_to_xml = module.exports.obj_to_xml = module.exports; + + module.exports.escape = esc; + + function esc(str) { + return ('' + str).replace(/&/g, '&').replace(//g, '>').replace(/'/g, ''').replace(/"/g, '"').replace(not_safe_in_xml, ''); + } + + module.exports.cdata = cdata; + + function cdata(str) { + if (str) return "/g, '') + ']]>'; + return ""; + }; }, {}], 8: [function (require, module, exports) { + exports.endianness = function () { + return 'LE'; + }; + + exports.hostname = function () { + if (typeof location !== 'undefined') { + return location.hostname; + } else return ''; + }; + + exports.loadavg = function () { + return []; + }; + + exports.uptime = function () { + return 0; + }; + + exports.freemem = function () { + return Number.MAX_VALUE; + }; + + exports.totalmem = function () { + return Number.MAX_VALUE; + }; + + exports.cpus = function () { + return []; + }; + + exports.type = function () { + return 'Browser'; + }; + + exports.release = function () { + if (typeof navigator !== 'undefined') { + return navigator.appVersion; + } + return ''; + }; + + exports.networkInterfaces = exports.getNetworkInterfaces = function () { + return {}; + }; + + exports.arch = function () { + return 'javascript'; + }; + + exports.platform = function () { + return 'browser'; + }; + + exports.tmpdir = exports.tmpDir = function () { + return '/tmp'; + }; + + exports.EOL = '\n'; + + exports.homedir = function () { + return '/'; + }; + }, {}], 9: [function (require, module, exports) { // shim for using process in browser var process = module.exports = {}; @@ -1074,7 +1314,7 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar process.umask = function () { return 0; }; - }, {}], 9: [function (require, module, exports) { + }, {}], 10: [function (require, module, exports) { (function (process) { 'use strict'; @@ -1181,7 +1421,7 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar emitter.emit('test end', results); emitter.emit('end', results); - return options.request ? (_ref = {}, _defineProperty2(_ref, options.request, reporters[options.request].convert(results)), _defineProperty2(_ref, "json", results), _ref) : results; + return options.request ? (_ref = {}, _defineProperty2(_ref, options.request, reporters[options.request].convert(results)), _defineProperty2(_ref, "default", results), _ref) : results; }); } }]); @@ -1196,7 +1436,7 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar module.exports.End = symbols.End; module.exports.Gunner = module.exports; }).call(this, require('_process')); - }, { "./lib/caller": 13, "./lib/emitter": 14, "./lib/expect": 15, "./lib/testrunner": 16, "./reporters": 18, "./util": 21, "./util/symbols": 22, "_process": 8 }], 10: [function (require, module, exports) { + }, { "./lib/caller": 14, "./lib/emitter": 15, "./lib/expect": 16, "./lib/testrunner": 17, "./reporters": 19, "./util": 24, "./util/symbols": 26, "_process": 9 }], 11: [function (require, module, exports) { var _require2 = require('../util'), isPromise = _require2.isPromise; @@ -1227,7 +1467,7 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar }; module.exports = assertPromise; - }, { "../util": 21 }], 11: [function (require, module, exports) { + }, { "../util": 24 }], 12: [function (require, module, exports) { var isEq = require('@codefeathers/iseq'); var U = require('../util'); var _ = U.taggedStringify; @@ -1352,7 +1592,7 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar module.exports.match = module.exports.deepEquals; module.exports.greaterThanOrEqualTo = module.exports.gte; module.exports.lessThanOrEqualTo = module.exports.lte; - }, { "../util": 21, "@codefeathers/iseq": 2 }], 12: [function (require, module, exports) { + }, { "../util": 24, "@codefeathers/iseq": 2 }], 13: [function (require, module, exports) { // Only imported for JSDoc /* eslint-disable-next-line */ var Gunner = require('../gunner'); @@ -1386,7 +1626,7 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar }; module.exports = buildTestTree; - }, { "../gunner": 9, "../util/symbols": 22 }], 13: [function (require, module, exports) { + }, { "../gunner": 10, "../util/symbols": 26 }], 14: [function (require, module, exports) { var _require3 = require('../util'), isPromise = _require3.isPromise; @@ -1436,7 +1676,7 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar }; module.exports = caller; - }, { "../util": 21 }], 14: [function (require, module, exports) { + }, { "../util": 24 }], 15: [function (require, module, exports) { var EventEmitter = require('events'); var GunnerEmitter = function (_EventEmitter) { @@ -1452,7 +1692,7 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar }(EventEmitter); module.exports = new GunnerEmitter(); - }, { "events": 6 }], 15: [function (require, module, exports) { + }, { "events": 5 }], 16: [function (require, module, exports) { 'use strict'; var _require4 = require('../util'), @@ -1517,21 +1757,22 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar module.exports = expect; module.exports.expectMany = expectMany; - }, { "../util": 21, "./assertPromise": 10, "./assertionsLibrary": 11 }], 16: [function (require, module, exports) { + }, { "../util": 24, "./assertPromise": 11, "./assertionsLibrary": 12 }], 17: [function (require, module, exports) { // Only imported for JSDoc /* eslint-disable-next-line */ var Gunner = require('../gunner'); Promise.object = require('@codefeathers/promise.object'); - var _require5 = require('perf_hooks'), - performance = _require5.performance; + var _require5 = require('../util'), + last = _require5.last, + pipe = _require5.pipe, + pick = _require5.pick, + assignToObject = _require5.assignToObject; - var _require6 = require('../util'), - last = _require6.last, - pipe = _require6.pipe, - pick = _require6.pick, - assignToObject = _require6.assignToObject; + var _require6 = require('../util/constants'), + eventMap = _require6.eventMap; + var emitter = require('./emitter'); var buildTestQueue = require('./buildTestQueue'); var findSkip = function findSkip(skip, unit) { @@ -1577,6 +1818,9 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar duration: duration, description: item.unit.description }, (status === 'notOk' || status === 'skip') && { reason: result.error || result.rejection || result.description }); + + emitter.emit(eventMap[status], resultObject); + acc.results.push(resultObject); } else { @@ -1618,13 +1862,16 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar var perf = { start: Date.now() }; return Promise.object(pipe(buildTestQueue, reduceQueue, pick('results'))(instance)).then(function (results) { - results.duration = Date.now() - perf.start; + perf.end = Date.now(); + results.end = perf.end.toUTCString(); + results.start = perf.start.toUTCString(); + results.duration = perf.end - perf.start; return results; }); }; module.exports = testrunner; - }, { "../gunner": 9, "../util": 21, "./buildTestQueue": 12, "@codefeathers/promise.object": 3, "perf_hooks": 5 }], 17: [function (require, module, exports) { + }, { "../gunner": 10, "../util": 24, "../util/constants": 23, "./buildTestQueue": 13, "./emitter": 15, "@codefeathers/promise.object": 3 }], 18: [function (require, module, exports) { var statusMap = { 'ok': ['ok', '✅'], @@ -1663,15 +1910,65 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar module.exports = Default; module.exports.convert = convert; - }, {}], 18: [function (require, module, exports) { + }, {}], 19: [function (require, module, exports) { module.exports = { default: require('./default'), tap: require('./tap'), - xunit: require('./xunit') + xunit: require('./xunit'), + min: require('./min') + + }; + }, { "./default": 18, "./min": 20, "./tap": 21, "./xunit": 22 }], 20: [function (require, module, exports) { + var _require7 = require('../util/constants'), + eventMap = _require7.eventMap, + eventVerbs = _require7.eventVerbs; + + var _require8 = require('../util/nodeutils'), + clear = _require8.clear; + + var convert = function convert(x) { + return x; + }; + + var count = { + pass: 0, + fail: 0, + skip: 0, + collapse: function collapse() { + return this.pass + this.fail + this.skip; + } + }; + + var doneHandler = function doneHandler(event) { + clear(); + var mapEvent = eventMap[event.status]; + count[mapEvent]++; + console.log(count[mapEvent] + " tests " + eventVerbs[mapEvent][2] + (" (total: " + count.collapse() + ")")); }; - }, { "./default": 17, "./tap": 19, "./xunit": 20 }], 19: [function (require, module, exports) { + + var Min = function Min(runner) { + + runner.on('start', function () { + return console.log('Started tests'); + }); + + runner.on('pass', doneHandler); + runner.on('fail', doneHandler); + runner.on('skip', doneHandler); + + runner.on('end', function (results) { + + clear(); + console.log("Test suite " + results.name + " has done running."); + console.log('Success ratio:', results.successPercent, '%'); + }); + }; + + module.exports = Min; + module.exports.convert = convert; + }, { "../util/constants": 23, "../util/nodeutils": 25 }], 21: [function (require, module, exports) { var statusMap = { 'ok': 'ok', @@ -1698,61 +1995,83 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar module.exports = TAP; module.exports.convert = convert; - }, {}], 20: [function (require, module, exports) { - var tag = function tag(name, attrs, close, content) { - var end = close ? "/>" : ">"; - var pairs = []; - var tag = void 0; - - Object.keys(attrs).forEach(function (key) { - if (Object.prototype.hasOwnProperty.call(attrs, key)) { - pairs.push(key + '="' + attrs[key] + '"'); - } - }); + }, {}], 22: [function (require, module, exports) { + var toXML = require('jsontoxml'); - tag = "<" + name + (pairs.length ? " " + pairs.join(" ") : "") + end; - if (content) { - tag += content + "' + tag('testsuites', {}, false, tag('testsuite', { - name: results.name, - tests: count, - success: success.length, - failures: failures.length, - skipped: skipped.length, - timestamp: new Date().toUTCString(), - time: results.duration / 1000 || 0 - }, false, results.reduce(function (acc, r) { - var close = r.status === 'ok'; - var content = r.status !== 'ok' && (r.status === 'skip' ? tag('skipped', {}, true) : tag('failure', {}, !r.reason, r.reason ? r.reason : '')); - acc += tag('testcase', { - name: r.description, - time: r.duration / 1000 || 0 - }, close, content || ''); - return acc; - }, ''))); + return toXML(toJSON(results), { xmlHeader: { standalone: true } }); }; var xunit = function xunit(runner) { - runner.on("end", function (results) { - - console.log(convert(results)); + return runner.on("end", function (results) { + return clear(), console.log(convert([results])); }); }; module.exports = xunit; module.exports.convert = convert; - }, {}], 21: [function (require, module, exports) { + }, { "../util/nodeutils": 25, "jsontoxml": 7 }], 23: [function (require, module, exports) { + var _require10 = require('os'), + EOL = _require10.EOL; + + module.exports = { + EOL: EOL, + eventMap: { + 'ok': 'pass', + 'notOk': 'fail', + 'skip': 'skip' + }, + eventVerbs: { + pass: ['pass', 'passing', 'passed'], + fail: ['fail', 'failing', 'failed'], + skip: ['skip', 'skipping', 'skipped'] + } + }; + }, { "os": 8 }], 24: [function (require, module, exports) { var _stringify = require('json-stringify-safe'); var isObject = function isObject(x) { @@ -1959,7 +2278,21 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar } }; - }, { "json-stringify-safe": 7 }], 22: [function (require, module, exports) { + }, { "json-stringify-safe": 6 }], 25: [function (require, module, exports) { + (function (process) { + module.exports = { + + clear: function clear() { + + // clear screen + process.stdout.write("\x1B[2J"); + // set cursor position to top + process.stdout.write("\x1B[1;1H"); + } + + }; + }).call(this, require('_process')); + }, { "_process": 9 }], 26: [function (require, module, exports) { module.exports = { Start: Symbol('Start'), diff --git a/package.json b/package.json index 12de6d2..7de6c40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@klenty/gunner", - "version": "0.11.0", + "version": "0.11.1", "description": "Zero magic, fast test-runner and assertion framework. No magic globals.", "main": "es6/index.js", "repository": { @@ -15,8 +15,7 @@ "unit testing" ], "scripts": { - "build": "rm -rf ./es5 && mkdir ./es5 && browserify ./es6/index.js -s Gunner > ./es5/index.js && babel --presets=env --plugins=babel-plugin-transform-object-rest-spread ./es5/index.js -o ./es5/index.js", - "build:closure": "./scripts/closure.sh" + "build": "rm -rf ./es5 && mkdir ./es5 && browserify ./es6/index.js -s Gunner > ./es5/index.js && babel --presets=env --plugins=babel-plugin-transform-object-rest-spread ./es5/index.js -o ./es5/index.js" }, "author": "Muthu Kumar <@MKRhere> (https://mkr.pw)", "license": "MIT", diff --git a/scripts/closure.sh b/scripts/closure.sh deleted file mode 100755 index 0d47359..0000000 --- a/scripts/closure.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -java -jar $CLOSURE_COMPILER_PATH ./es5/index.js --js_output_file ./es5/dist.js --language_out ECMASCRIPT5 --warning_level QUIET -echo "Done!" \ No newline at end of file