@bigtest/agent
Advanced tools
Comparing version
@@ -1,4 +0,20 @@ | ||
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"AyCt":[function(require,module,exports) { | ||
var e=regeneratorRuntime.mark(n);function n(n){var s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(s=document.createElement("script")).src=n,s.addEventListener("load",function(){console.log("[agent] loaded test manifest",__bigtestManifest)}),document.body.appendChild(s);case 4:case"end":return e.stop()}},e)}console.log("[harness] hello from harness"),window.parent.postMessage("message from harness","*"),window.addEventListener("message",function(e){console.log("[harness] received message:",e.data)}); | ||
},{}]},{},["AyCt"], null) | ||
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"dgxz":[function(require,module,exports) { | ||
var t=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,r,e,n){var o=r&&r.prototype instanceof v?r:v,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,r,e){var n=f;return function(o,i){if(n===l)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return N()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=_(a,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===f)throw n=p,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=l;var u=h(t,r,e);if("normal"===u.type){if(n=e.done?p:s,u.arg===y)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=p,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(n){return{type:"throw",arg:n}}}t.wrap=u;var f="suspendedStart",s="suspendedYield",l="executing",p="completed",y={};function v(){}function d(){}function g(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,L=w&&w(w(G([])));L&&L!==e&&n.call(L,i)&&(m=L);var x=g.prototype=v.prototype=Object.create(m);function E(t){["next","throw","return"].forEach(function(r){t[r]=function(t){return this._invoke(r,t)}})}function b(t){var r;this._invoke=function(e,o){function i(){return new Promise(function(r,i){!function r(e,o,i,a){var c=h(t[e],t,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then(function(t){r("next",t,i,a)},function(t){r("throw",t,i,a)}):Promise.resolve(f).then(function(t){u.value=t,i(u)},function(t){return r("throw",t,i,a)})}a(c.arg)}(e,o,r,i)})}return r=r?r.then(i,i):i()}}function _(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,_(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function j(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function O(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function G(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:N}}function N(){return{value:r,done:!0}}return d.prototype=x.constructor=g,g.constructor=d,g[c]=d.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===d||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},E(b.prototype),b.prototype[a]=function(){return this},t.AsyncIterator=b,t.async=function(r,e,n,o){var i=new b(u(r,e,n,o));return t.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},E(x),x[c]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=G,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),O(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;O(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:G(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}("object"==typeof module?module.exports:{});try{regeneratorRuntime=t}catch(r){Function("r","regeneratorRuntime = r")(t)} | ||
},{}],"rLuD":[function(require,module,exports) { | ||
"use strict";function t(t){return e=>{let i=e.resume,n=e.ensure,r=setTimeout(i,t);n(()=>clearTimeout(r))}}function e(t){return null!=t&&"function"==typeof t.constructor&&"GeneratorFunction"===t.constructor.name}function i(t){return null!=t&&"function"==typeof t.next&&"function"==typeof t.throw&&"function"==typeof t.return}Object.defineProperty(exports,"__esModule",{value:!0}),exports.fork=l,exports.join=u,exports.main=f,exports.monitor=h,exports.timeout=t;class n{static of(t){return new this(t)}static for(t){return null==t?n.of(t=>t):t instanceof n?t:e(t)?s(t):i(t)?o(t):"function"==typeof t.then?r(t):"function"==typeof t?n.of(t):void 0}constructor(t){this.call=t}}function r(t){return n.of(function(e){let i=e.resume,n=e.fail,r=e.ensure,s=i,o=n,l=t=>t;t.then(t=>{s(t)},t=>{o(t)}),r(()=>s=o=l)})}const s=t=>n.of(function(){return o(t()).call(...arguments)}),o=t=>n.of(e=>{e.ensure(()=>t.return());let i=e=>r(()=>t.next(e)),n=e=>r(()=>t.throw(e));function r(t){try{let s=t();if(s.done)e.resume(s.value);else{let t=s.value,r=e.context.spawn(t,t=>{e.context.isBlocking&&(t.isErrored&&n(t.result),t.isCompleted&&i(t.result),t.isHalted&&n(new a(t.result)))});r.isBlocking&&e.context.requiredChildren.add(r)}}catch(r){e.fail(r)}}i()});function l(t){return e=>{let i=e.resume,n=e.context,r=n.parent?n.parent:n,s=r.spawn(t,t=>{t.isErrored?r.fail(t.result):r.isWaiting&&0===r.requiredChildren.size&&r.resume()});s.isBlocking&&r.requiredChildren.add(s),i(s)}}function h(t){return e=>{let i=e.resume,n=e.context,r=n.parent?n.parent:n,s=r.spawn(t,()=>{s.isErrored?r.fail(s.result):r.isWaiting&&0===r.requiredChildren.size&&r.resume()});i(s)}}function u(t){return e=>{let i=e.resume,n=e.fail,r=e.ensure,s=e.context;r(t.ensure(function(){if(s.isRunning){let e=t.result;t.isCompleted?i(e):t.isErrored?n(e):t.isHalted&&n(new a(t.result))}}))}}class a extends Error{constructor(t){super("Interrupted: ".concat(t)),this.cause=t}}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class d{get isUnstarted(){return"unstarted"===this.state}get isRunning(){return"running"===this.state}get isWaiting(){return"waiting"===this.state}get isCompleted(){return"completed"===this.state}get isErrored(){return"errored"===this.state}get isHalted(){return"halted"===this.state}get isBlocking(){return this.isRunning||this.isWaiting||this.isUnstarted}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t;this.id=this.constructor.ids++,this.parent=t,this.children=new Set,this.requiredChildren=new Set,this.exitHooks=new Set,this.state="unstarted",this.resume=this.resume.bind(this),this.fail=this.fail.bind(this),this.ensure=this.ensure.bind(this),this.spawn=this.spawn.bind(this),this.continue=e.bind(null,this)}get promise(){return this._promise=new Promise((t,e)=>{this.resolve=t,this.reject=e}),this.finalizePromise(),this._promise}finalizePromise(){this.isCompleted&&this.resolve?this.resolve(this.result):this.isErrored&&this.reject?this.reject(this.result):this.isHalted&&this.reject&&this.reject(new a(this.result))}then(){return this.promise.then(...arguments)}catch(){return this.promise.catch(...arguments)}finally(){return this.promise.finally(...arguments)}get root(){return this.parent?this.parent.root:this}spawn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t,i=new d(this,e);return this.children.add(i),i.enter(t),i}ensure(t){let e=t.bind(null,this);return this.isBlocking?(this.exitHooks.add(e),()=>this.exitHooks.delete(e)):(t(),t=>t)}enter(t){if(!this.isUnstarted)throw new Error("\nTried to call #enter() on a Context that has already been finalized. This\nshould never happen and so is almost assuredly a bug in effection. All of\nits users would be in your eternal debt were you to please take the time to\nreport this issue here:\nhttps://github.com/thefrontside/effection.js/issues/new\n\nThanks!");{let e=this.createController(t);this.operation=t,this.state="running";let i=this.resume,n=this.fail,r=this.ensure,s=this.spawn;e.call({resume:i,fail:n,ensure:r,spawn:s,context:this})}}halt(t){this.isBlocking&&this.finalize("halted",t)}resume(t){this.isRunning&&(this.result=t),this.requiredChildren.size>0?this.state="waiting":this.finalize("completed",t)}fail(t){this.finalize("errored",t)}finalize(t,e){this.halt=this.resume=this.fail=this.finalize=function(){},this.state=t,this.result=e||this.result;for(let i of[...this.children].reverse())i.halt(e);for(let i of[...this.exitHooks].reverse())i();this.parent&&(this.parent.children.delete(this),this.parent.requiredChildren.delete(this)),this.finalizePromise(),this.continue()}createController(t){let e=n.for(t);if(!e)throw new Error("cannot find controller for ".concat(t));return e}toString(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this.operation&&this.operation.name||"",i=[...this.children].map(e=>"".concat(e.toString(t+" ")));return["".concat(t,"-> [").concat(this.id,"](").concat(e,"): ").concat(this.state),...i].join("\n")}}function f(t){let e=new d;return e.enter(t),e}c(d,"ids",1); | ||
},{}],"KWh1":[function(require,module,exports) { | ||
"use strict";var e,t="object"==typeof Reflect?Reflect:null,n=t&&"function"==typeof t.apply?t.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function r(e){console&&console.warn&&console.warn(e)}e=t&&"function"==typeof t.ownKeys?t.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}module.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function v(e,t,n,i){var o,s,v;if(u(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),v=s[t]),void 0===v)v=s[t]=n,++e._eventsCount;else if("function"==typeof v?v=s[t]=i?[n,v]:[v,n]:i?v.unshift(n):v.push(n),(o=f(e))>0&&v.length>o&&!v.warned){v.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+v.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=v.length,r(l)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function a(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?d(i):c(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function c(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function d(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return f(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var f=o[e];if(void 0===f)return!1;if("function"==typeof f)n(f,this,t);else{var v=f.length,l=c(f,v);for(r=0;r<v;++r)n(l[r],this,t)}return!0},o.prototype.addListener=function(e,t){return v(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return v(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,a(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,a(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():y(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}; | ||
},{}],"NQvd":[function(require,module,exports) { | ||
"use strict";function t(t,o){return e(t)||n(t,o)||r()}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function n(t,r){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],e=!0,o=!1,u=void 0;try{for(var i,c=t[Symbol.iterator]();!(e=(i=c.next()).done)&&(n.push(i.value),!r||n.length!==r);e=!0);}catch(y){o=!0,u=y}finally{try{e||null==c.return||c.return()}finally{if(o)throw u}}return n}}function e(t){if(Array.isArray(t))return t}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(r){return function(n){return void 0===r||(Array.isArray(r)?r.every(function(t,r){return u(t)(n[r])}):"object"===o(r)?Object.entries(r).every(function(r){var e=t(r,2),o=e[0];return u(e[1])(n[o])}):"function"==typeof r?r(n):r===n)}}function i(t){return"array"===t?function(t){return Array.isArray(t)}:t?function(r){return o(r)===t}:function(){return!0}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.compile=u,exports.any=i; | ||
},{}],"buhN":[function(require,module,exports) { | ||
"use strict";function e(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function n(e,n){for(var r=0;r<n.length;r++){var t=n[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function r(e,r,t){return r&&n(e.prototype,r),t&&n(e,t),e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("effection"),i=require("events"),a=require("./pattern"),s=require("./pattern");exports.any=s.any;var o=function(){function n(){e(this,n),this.subscriptions=new i.EventEmitter,this.messages=new Set}return r(n,[{key:"send",value:function(e){this.messages.add(e),this.subscriptions.emit("message",e)}},{key:"receive",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,r=a.compile(n);return function(n){var t=n.resume,i=n.ensure,a=function(n){if(e.messages.has(n)&&r(n))return e.messages.delete(n),t(n),!0},s=!0,o=!1,u=void 0;try{for(var c,f=e.messages[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var l=c.value;if(a(l))return}}catch(v){o=!0,u=v}finally{try{s||null==f.return||f.return()}finally{if(o)throw u}}e.subscriptions.on("message",a),i(function(){return e.subscriptions.off("message",a)})}}},{key:"watch",value:regeneratorRuntime.mark(function e(n,r){var i,a=this,s=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=s.length>2&&void 0!==s[2]?s[2]:function(e){return e},e.next=3,function(e){return(0,e.resume)(e.context.parent.parent)};case 3:e.sent.spawn(t.monitor(function(e){var t=e.ensure,s=!0,o=!1,u=void 0;try{for(var c,f=function(){var e=c.value,r=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];a.send(i({event:e,args:r}))};n.addEventListener(e,r),t(function(){return n.removeEventListener(e,r)})},l=[].concat(r)[Symbol.iterator]();!(s=(c=l.next()).done);s=!0)f()}catch(v){o=!0,u=v}finally{try{s||null==l.return||l.return()}finally{if(o)throw u}}}));case 5:case"end":return e.stop()}},e)})}]),n}();exports.Mailbox=o; | ||
},{"effection":"rLuD","events":"KWh1","./pattern":"NQvd"}],"kAYb":[function(require,module,exports) { | ||
"use strict";function e(e){return function(t){var n=t.context;(0,t.resume)(n.parent.parent.spawn(e))}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.suspend=e; | ||
},{}],"oJcB":[function(require,module,exports) { | ||
"use strict";function e(e,a){return n(e)||t(e,a)||r()}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function t(e,r){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var t=[],n=!0,a=!1,i=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(t.push(o.value),!r||t.length!==r);n=!0);}catch(s){a=!0,i=s}finally{try{n||null==u.return||u.return()}finally{if(a)throw i}}return t}}function n(e){if(Array.isArray(e))return e}function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function i(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,r,t){return r&&i(e.prototype,r),t&&i(e,t),e}Object.defineProperty(exports,"__esModule",{value:!0});var u=require("./effection/mailbox"),s=require("./effection/suspend"),c=function(){function r(e){a(this,r),this.mailbox=e}return o(r,[{key:"send",value:function(e){window.parent.postMessage(JSON.stringify(e),"*")}},{key:"receive",value:regeneratorRuntime.mark(function r(){var t,n,a;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.mailbox.receive({event:"message"});case 2:return t=r.sent,n=e(t.args,1),a=n[0],r.abrupt("return",a.data);case 6:case"end":return r.stop()}},r,this)})}],[{key:"start",value:regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=new u.Mailbox,e.next=3,s.suspend(t.watch(window,["message"]));case 3:return e.abrupt("return",new r(t));case 4:case"end":return e.stop()}},e)})}]),r}();exports.ParentFrame=c; | ||
},{"./effection/mailbox":"buhN","./effection/suspend":"kAYb"}],"jSYW":[function(require,module,exports) { | ||
"use strict";var e=regeneratorRuntime.mark(n),t=regeneratorRuntime.mark(s);Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./parent-frame");function n(){var t,n,c;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("[harness] starting"),e.next=3,r.ParentFrame.start();case 3:t=e.sent;case 4:return e.next=7,t.receive();case 7:if(n=e.sent,console.log("[harness] got message",n),"run"!==n.type){e.next=15;break}return e.next=12,a(n.manifestUrl);case 12:return c=e.sent,e.next=15,s(t,c,n.path.slice(1));case 15:e.next=4;break;case 17:case"end":return e.stop()}},e)}function s(e,r,n){var a,c,u,i,o,p,v,d,l,b,x,h,f,k,m,g,y,j,w,R,_,E,S=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=S.length>3&&void 0!==S[3]?S[3]:[],c=a.concat(r.description),u=!0,i=!1,o=void 0,t.prev=5,p=r.steps[Symbol.iterator]();case 7:if(u=(v=p.next()).done){t.next=25;break}return d=v.value,l=c.concat(d.description),t.prev=10,e.send({type:"running",subject:"step",path:l}),t.next=14,d.action({});case 14:e.send({type:"result",subject:"step",status:"ok",path:l}),t.next=22;break;case 17:return t.prev=17,t.t0=t.catch(10),e.send({type:"result",subject:"step",status:"error",path:l}),e.send({type:"done"}),t.abrupt("return");case 22:u=!0,t.next=7;break;case 25:t.next=31;break;case 27:t.prev=27,t.t1=t.catch(5),i=!0,o=t.t1;case 31:t.prev=31,t.prev=32,u||null==p.return||p.return();case 34:if(t.prev=34,!i){t.next=37;break}throw o;case 37:return t.finish(34);case 38:return t.finish(31);case 39:b=!0,x=!1,h=void 0,t.prev=42,f=r.assertions[Symbol.iterator]();case 44:if(b=(k=f.next()).done){t.next=61;break}m=k.value,g=c.concat(m.description),t.prev=47,e.send({type:"running",subject:"assertion",path:g}),m.check({}),e.send({type:"result",subject:"assertion",status:"ok",path:g}),t.next=58;break;case 53:return t.prev=53,t.t2=t.catch(47),e.send({type:"result",subject:"assertion",status:"error",path:g}),e.send({type:"done"}),t.abrupt("return");case 58:b=!0,t.next=44;break;case 61:t.next=67;break;case 63:t.prev=63,t.t3=t.catch(42),x=!0,h=t.t3;case 67:t.prev=67,t.prev=68,b||null==f.return||f.return();case 70:if(t.prev=70,!x){t.next=73;break}throw h;case 73:return t.finish(70);case 74:return t.finish(67);case 75:if(0!==n.length){t.next=79;break}e.send({type:"done"}),t.next=106;break;case 79:y=!0,j=!1,w=void 0,t.prev=82,R=r.children[Symbol.iterator]();case 84:if(y=(_=R.next()).done){t.next=92;break}if((E=_.value).description!==n[0]){t.next=89;break}return t.next=89,s(e,E,n.slice(1),c);case 89:y=!0,t.next=84;break;case 92:t.next=98;break;case 94:t.prev=94,t.t4=t.catch(82),j=!0,w=t.t4;case 98:t.prev=98,t.prev=99,y||null==R.return||R.return();case 101:if(t.prev=101,!j){t.next=104;break}throw w;case 104:return t.finish(101);case 105:return t.finish(98);case 106:case"end":return t.stop()}},t,null,[[5,27,31,39],[10,17],[32,,34,38],[42,63,67,75],[47,53],[68,,70,74],[82,94,98,106],[99,,101,105]])}function a(e){return function(t){var r=t.resume,n=t.ensure,s=document.createElement("script"),a=function(){r(__bigtestManifest)};s.addEventListener("load",a),n(function(){s.removeEventListener("load",a)}),s.src=e,document.head.appendChild(s)}}exports.createHarness=n; | ||
},{"./parent-frame":"oJcB"}],"AyCt":[function(require,module,exports) { | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("regenerator-runtime/runtime");var e=require("effection"),r=require("./create-harness");e.main(r.createHarness()).catch(function(e){return console.error(e)}); | ||
},{"regenerator-runtime/runtime":"dgxz","effection":"rLuD","./create-harness":"jSYW"}]},{},["AyCt"], null) | ||
//# sourceMappingURL=/harness.js.map |
{ | ||
"name": "@bigtest/agent", | ||
"version": "0.1.0-bea602f", | ||
"version": "0.1.0-d861fea", | ||
"description": "Agent for connecting test environments (browsers) to BigTest", | ||
@@ -5,0 +5,0 @@ "main": "dist/agent.umd.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
324779
77.82%374
58.47%3
50%