New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

async-array-buffer

Package Overview
Dependencies
Maintainers
1
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-array-buffer - npm Package Compare versions

Comparing version 3.0.36 to 3.0.37

2

build/es5/bundle.js

@@ -8,3 +8,3 @@ (function (global, factory) {

// tslint:disable-next-line:max-line-length
var worker = "!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,\"a\",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p=\"\",r(r.s=0)}([function(t,e,r){\"use strict\";r.r(e);r(1)},function(t,e,r){!function(t){\"use strict\";t.createWorker(self,{allocate:function(t){var e=function(t){return new ArrayBuffer(t)}(t.length);return{result:e,transferables:[e]}},deallocate:function(){return{result:void 0}}})}(r(2))},function(t,e,r){!function(t,e,r,n,o,i){\"use strict\";e=e&&e.hasOwnProperty(\"default\")?e.default:e,r=r&&r.hasOwnProperty(\"default\")?r.default:r,o=o&&o.hasOwnProperty(\"default\")?o.default:o;var a=-32603,u=-32602,c=-32601,s=n.compile({message:'The requested method called \"${method}\" is not supported.',status:c}),f=n.compile({message:'The handler of the method called \"${method}\" returned no required result.',status:a}),l=n.compile({message:'The handler of the method called \"${method}\" returned an unexpected result.',status:a}),h=n.compile({message:'The specified parameter called \"portId\" with the given value \"${portId}\" does not identify a port connected to this worker.',status:u}),p=function(t,n){return function(){var o=r(e.mark((function r(o){var i,a,u,c,h,p,d,v,m,y,g,w,b;return e.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=o.data,a=i.id,u=i.method,c=i.params,h=n[u],e.prev=2,void 0!==h){e.next=5;break}throw s({method:u});case 5:if(void 0!==(p=void 0===c?h():h(c))){e.next=8;break}throw f({method:u});case 8:if(!(p instanceof Promise)){e.next=14;break}return e.next=11,p;case 11:e.t0=e.sent,e.next=15;break;case 14:e.t0=p;case 15:if(d=e.t0,null!==a){e.next=21;break}if(void 0===d.result){e.next=19;break}throw l({method:u});case 19:e.next=25;break;case 21:if(void 0!==d.result){e.next=23;break}throw l({method:u});case 23:v=d.result,m=d.transferables,y=void 0===m?[]:m,t.postMessage({id:a,result:v},y);case 25:e.next=31;break;case 27:e.prev=27,e.t1=e.catch(2),g=e.t1.message,w=e.t1.status,b=void 0===w?-32603:w,t.postMessage({error:{code:b,message:g},id:a});case 31:case\"end\":return e.stop()}}),r,null,[[2,27]])})));return function(t){return o.apply(this,arguments)}}()},d=function(){return new Promise((function(t){var e=new ArrayBuffer(0),r=new MessageChannel,n=r.port1,o=r.port2;n.onmessage=function(e){var r=e.data;return t(null!==r)},o.postMessage(e,[e])}))};function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var m=new Map,y=function(t,n,a){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(r,!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},n,{connect:function(e){var r=e.port;r.start();var o=t(r,n),a=i.generateUniqueNumber(m);return m.set(a,(function(){o(),r.close(),m.delete(a)})),{result:a}},disconnect:function(t){var e=t.portId,r=m.get(e);if(void 0===r)throw h({portId:e.toString()});return r(),{result:null}},isSupported:(u=r(e.mark((function t(){var r,n;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d();case 2:if(!t.sent){t.next=14;break}if(!((r=a())instanceof Promise)){t.next=11;break}return t.next=8,r;case 8:t.t0=t.sent,t.next=12;break;case 11:t.t0=r;case 12:return n=t.t0,t.abrupt(\"return\",{result:n});case 14:return t.abrupt(\"return\",{result:!1});case 15:case\"end\":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})});var u};t.createWorker=function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},o=y(t,r,n),i=p(e,o);return e.addEventListener(\"message\",i),function(){return e.removeEventListener(\"message\",i)}},t.isSupported=d,Object.defineProperty(t,\"__esModule\",{value:!0})}(e,r(3),r(5),r(6),r(13),r(14))},function(t,e,r){t.exports=r(4)},function(t,e,r){var n=function(t){\"use strict\";var e,r=Object.prototype,n=r.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},i=o.iterator||\"@@iterator\",a=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error(\"Generator is already running\");if(n===p){if(\"throw\"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=P(a,r);if(u){if(u===d)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);n=h;var c=s(t,e,r);if(\"normal\"===c.type){if(n=r.done?p:l,c.arg===d)continue;return{value:c.arg,done:r.done}}\"throw\"===c.type&&(n=p,r.method=\"throw\",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=c;var f=\"suspendedStart\",l=\"suspendedYield\",h=\"executing\",p=\"completed\",d={};function v(){}function m(){}function y(){}var g={};g[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(k([])));b&&b!==r&&n.call(b,i)&&(g=b);var x=y.prototype=v.prototype=Object.create(g);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,a){var u=s(t[r],t,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==typeof f&&n.call(f,\"__await\")?Promise.resolve(f.__await).then((function(t){e(\"next\",t,i,a)}),(function(t){e(\"throw\",t,i,a)})):Promise.resolve(f).then((function(t){c.value=t,i(c)}),(function(t){return e(\"throw\",t,i,a)}))}a(u.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function P(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,\"throw\"===r.method){if(t.iterator.return&&(r.method=\"return\",r.arg=e,P(t,r),\"throw\"===r.method))return d;r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return d}var o=s(n,t.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=e),r.delegate=null,d):i:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,d)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(L,this),this.reset(!0)}function k(t){if(t){var r=t[i];if(r)return r.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:S}}function S(){return{value:e,done:!0}}return m.prototype=x.constructor=y,y.constructor=m,y[u]=m.displayName=\"GeneratorFunction\",t.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===m||\"GeneratorFunction\"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u in t||(t[u]=\"GeneratorFunction\")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},O(E.prototype),E.prototype[a]=function(){return this},t.AsyncIterator=E,t.async=function(e,r,n,o){var i=new E(c(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(x),x[u]=\"Generator\",x[i]=function(){return this},x.toString=function(){return\"[object Generator]\"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=e,this.tryEntries.forEach(j),!t)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},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 r=this;function o(n,o){return u.type=\"throw\",u.arg=t,r.next=n,o&&(r.method=\"next\",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var c=n.call(a,\"catchLoc\"),s=n.call(a,\"finallyLoc\");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev<o.finallyLoc){var i=o;break}}i&&(\"break\"===t||\"continue\"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method=\"next\",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){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&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;j(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(n)}},function(t,e){function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,\"next\",t)}function c(t){r(a,o,i,u,c,\"throw\",t)}u(void 0)}))}}},function(t,e,r){!function(t,e,r,n){\"use strict\";e=e&&e.hasOwnProperty(\"default\")?e.default:e,r=r&&r.hasOwnProperty(\"default\")?r.default:r,n=n&&n.hasOwnProperty(\"default\")?n.default:n;var o=function(t,e){return void 0===e?t:e.reduce((function(t,e){if(\"capitalize\"===e){var o=t.charAt(0).toUpperCase(),i=t.slice(1);return\"\".concat(o).concat(i)}return\"dashify\"===e?r(t):\"prependIndefiniteArticle\"===e?\"\".concat(n(t),\" \").concat(t):t}),t)},i=function(t,r){for(var n=/\\${([^.}]+)((\\.[^(]+\\(\\))*)}/g,i=[],a=n.exec(t);null!==a;){var u={modifiers:[],name:a[1]};if(void 0!==a[3])for(var c=/\\.[^(]+\\(\\)/g,s=c.exec(a[2]);null!==s;)u.modifiers.push(s[0].slice(1,-2)),s=c.exec(a[2]);i.push(u),a=n.exec(t)}var f=i.reduce((function(t,n){return t.map((function(t){return\"string\"==typeof t?t.split(function(t){var e=t.name+t.modifiers.map((function(t){return\"\\\\.\".concat(t,\"\\\\(\\\\)\")})).join(\"\");return new RegExp(\"\\\\$\\\\{\".concat(e,\"}\"),\"g\")}(n)).reduce((function(t,i,a){return 0===a?[i]:n.name in r?[].concat(e(t),[o(r[n.name],n.modifiers),i]):[].concat(e(t),[function(t){return o(t[n.name],n.modifiers)},i])}),[]):[t]})).reduce((function(t,r){return[].concat(e(t),e(r))}),[])}),[t]);return function(t){return f.reduce((function(r,n){return[].concat(e(r),\"string\"==typeof n?[n]:[n(t)])}),[]).join(\"\")}};t.compile=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=void 0===t.code?void 0:i(t.code,e),n=void 0===t.message?void 0:i(t.message,e);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=void 0===o&&(e instanceof Error||void 0!==e.code&&\"Exception\"===e.code.slice(-9))?{cause:e,missingParameters:{}}:{cause:o,missingParameters:e},a=i.cause,u=i.missingParameters,c=void 0===n?new Error:new Error(n(u));return null!==a&&(c.cause=a),void 0!==r&&(c.code=r(u)),void 0!==t.status&&(c.status=t.status),c}return o},Object.defineProperty(t,\"__esModule\",{value:!0})}(e,r(7),r(11),r(12))},function(t,e,r){var n=r(8),o=r(9),i=r(10);t.exports=function(t){return n(t)||o(t)||i()}},function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}},function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||\"[object Arguments]\"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,e){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},function(t,e,r){\"use strict\";t.exports=function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"expected a string\");return t.trim().replace(/([a-z])([A-Z])/g,\"$1-$2\").replace(/\\W/g,(function(t){return/[\xC0-\u017E]/.test(t)?t:\"-\"})).replace(/^-+|-+$/g,\"\").replace(/-{2,}/g,(function(t){return e&&e.condense?\"-\":t})).toLowerCase()}},function(t,e,r){var n=function(t){var e,r,n=/\\w+/.exec(t);if(!n)return\"an\";var o=(r=n[0]).toLowerCase(),i=[\"honest\",\"hour\",\"hono\"];for(e in i)if(0==o.indexOf(i[e]))return\"an\";if(1==o.length)return\"aedhilmnorsx\".indexOf(o)>=0?\"an\":\"a\";if(r.match(/(?!FJO|[HLMNS]Y.|RY[EO]|SQU|(F[LR]?|[HL]|MN?|N|RH?|S[CHKLMNPTVW]?|X(YL)?)[AEIOU])[FHLMNRSX][A-Z]/))return\"an\";var a=[/^e[uw]/,/^onc?e\\b/,/^uni([^nmd]|mo)/,/^u[bcfhjkqrst][aeiou]/];for(e=0;e<a.length;e++)if(o.match(a[e]))return\"a\";return r.match(/^U[NK][AIEO]/)?\"a\":r==r.toUpperCase()?\"aedhilmnorsx\".indexOf(o[0])>=0?\"an\":\"a\":\"aeiou\".indexOf(o[0])>=0?\"an\":o.match(/^y(b[lor]|cl[ea]|fere|gg|p[ios]|rou|tt)/)?\"an\":\"a\"};void 0!==t.exports?t.exports=n:window.indefiniteArticle=n},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){!function(t){\"use strict\";var e,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=new WeakMap,o=(e=n,function(t,r){return e.set(t,r),r}),i=function(t,e){return function(n){var o=e.get(n),i=void 0===o?n.size:o>2147483646?0:o+1;if(!n.has(i))return t(n,i);if(n.size<1073741824){for(;n.has(i);)i=Math.floor(2147483648*Math.random());return t(n,i)}if(n.size>r)throw new Error(\"Congratulations, you created a collection of unique numbers which uses all available integers!\");for(;n.has(i);)i=Math.floor(Math.random()*r);return t(n,i)}}(o,n),a=function(t){return function(e){var r=t(e);return e.add(r),r}}(i);t.addUniqueNumber=a,t.generateUniqueNumber=i,Object.defineProperty(t,\"__esModule\",{value:!0})}(e)}]);";
var worker = "!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=0)}([function(e,t,r){\"use strict\";r.r(t);r(1)},function(e,t,r){!function(e){\"use strict\";e.createWorker(self,{allocate:function(e){var t=function(e){return new ArrayBuffer(e)}(e.length);return{result:t,transferables:[t]}},deallocate:function(){return{result:void 0}}})}(r(2))},function(e,t,r){!function(e,t,r,n,o){\"use strict\";t=t&&t.hasOwnProperty(\"default\")?t.default:t,n=n&&n.hasOwnProperty(\"default\")?n.default:n;var i=-32603,a=-32602,u=-32601,c=r.compile({message:'The requested method called \"${method}\" is not supported.',status:u}),s=r.compile({message:'The handler of the method called \"${method}\" returned no required result.',status:i}),f=r.compile({message:'The handler of the method called \"${method}\" returned an unexpected result.',status:i}),l=r.compile({message:'The specified parameter called \"portId\" with the given value \"${portId}\" does not identify a port connected to this worker.',status:a}),h=function(e,r){return function(n){var o,i,a,u,l,h,d,p,v,m,y,g,w;return t.async((function(b){for(;;)switch(b.prev=b.next){case 0:if(o=n.data,i=o.id,a=o.method,u=o.params,l=r[a],b.prev=2,void 0!==l){b.next=5;break}throw c({method:a});case 5:if(void 0!==(h=void 0===u?l():l(u))){b.next=8;break}throw s({method:a});case 8:if(!(h instanceof Promise)){b.next=14;break}return b.next=11,t.awrap(h);case 11:b.t0=b.sent,b.next=15;break;case 14:b.t0=h;case 15:if(d=b.t0,null!==i){b.next=21;break}if(void 0===d.result){b.next=19;break}throw f({method:a});case 19:b.next=25;break;case 21:if(void 0!==d.result){b.next=23;break}throw f({method:a});case 23:p=d.result,v=d.transferables,m=void 0===v?[]:v,e.postMessage({id:i,result:p},m);case 25:b.next=31;break;case 27:b.prev=27,b.t1=b.catch(2),y=b.t1.message,g=b.t1.status,w=void 0===g?-32603:g,e.postMessage({error:{code:w,message:y},id:i});case 31:case\"end\":return b.stop()}}),null,null,[[2,27]])}},d=function(){return new Promise((function(e){var t=new ArrayBuffer(0),r=new MessageChannel,n=r.port1,o=r.port2;n.onmessage=function(t){var r=t.data;return e(null!==r)},o.postMessage(t,[t])}))};function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var v=new Map,m=function(e,r,i){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(r,!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r,{connect:function(t){var n=t.port;n.start();var i=e(n,r),a=o.generateUniqueNumber(v);return v.set(a,(function(){i(),n.close(),v.delete(a)})),{result:a}},disconnect:function(e){var t=e.portId,r=v.get(t);if(void 0===r)throw l({portId:t.toString()});return r(),{result:null}},isSupported:function(){var e,r;return t.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.awrap(d());case 2:if(!n.sent){n.next=14;break}if(!((e=i())instanceof Promise)){n.next=11;break}return n.next=8,t.awrap(e);case 8:n.t0=n.sent,n.next=12;break;case 11:n.t0=e;case 12:return r=n.t0,n.abrupt(\"return\",{result:r});case 14:return n.abrupt(\"return\",{result:!1});case 15:case\"end\":return n.stop()}}))}})};e.createWorker=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},o=m(e,r,n),i=h(t,o);return t.addEventListener(\"message\",i),function(){return t.removeEventListener(\"message\",i)}},e.isSupported=d,Object.defineProperty(e,\"__esModule\",{value:!0})}(t,r(3),r(5),r(12),r(13))},function(e,t,r){e.exports=r(4)},function(e,t,r){var n=function(e){\"use strict\";var t,r=Object.prototype,n=r.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},i=o.iterator||\"@@iterator\",a=o.asyncIterator||\"@@asyncIterator\",u=o.toStringTag||\"@@toStringTag\";function c(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===h)throw new Error(\"Generator is already running\");if(n===d){if(\"throw\"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=L(a,r);if(u){if(u===p)continue;return u}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);n=h;var c=s(e,t,r);if(\"normal\"===c.type){if(n=r.done?d:l,c.arg===p)continue;return{value:c.arg,done:r.done}}\"throw\"===c.type&&(n=d,r.method=\"throw\",r.arg=c.arg)}}}(e,r,a),i}function s(e,t,r){try{return{type:\"normal\",arg:e.call(t,r)}}catch(e){return{type:\"throw\",arg:e}}}e.wrap=c;var f=\"suspendedStart\",l=\"suspendedYield\",h=\"executing\",d=\"completed\",p={};function v(){}function m(){}function y(){}var g={};g[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(k([])));b&&b!==r&&n.call(b,i)&&(g=b);var x=y.prototype=v.prototype=Object.create(g);function O(e){[\"next\",\"throw\",\"return\"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function E(e){var t;this._invoke=function(r,o){function i(){return new Promise((function(t,i){!function t(r,o,i,a){var u=s(e[r],e,o);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==typeof f&&n.call(f,\"__await\")?Promise.resolve(f.__await).then((function(e){t(\"next\",e,i,a)}),(function(e){t(\"throw\",e,i,a)})):Promise.resolve(f).then((function(e){c.value=e,i(c)}),(function(e){return t(\"throw\",e,i,a)}))}a(u.arg)}(r,o,t,i)}))}return t=t?t.then(i,i):i()}}function L(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,\"throw\"===r.method){if(e.iterator.return&&(r.method=\"return\",r.arg=t,L(e,r),\"throw\"===r.method))return p;r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return p}var o=s(n,e.iterator,r.arg);if(\"throw\"===o.type)return r.method=\"throw\",r.arg=o.arg,r.delegate=null,p;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,p):i:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,p)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(j,this),this.reset(!0)}function k(e){if(e){var r=e[i];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:S}}function S(){return{value:t,done:!0}}return m.prototype=x.constructor=y,y.constructor=m,y[u]=m.displayName=\"GeneratorFunction\",e.isGeneratorFunction=function(e){var t=\"function\"==typeof e&&e.constructor;return!!t&&(t===m||\"GeneratorFunction\"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u in e||(e[u]=\"GeneratorFunction\")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},O(E.prototype),E.prototype[a]=function(){return this},e.AsyncIterator=E,e.async=function(t,r,n,o){var i=new E(c(t,r,n,o));return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(x),x[u]=\"Generator\",x[i]=function(){return this},x.toString=function(){return\"[object Generator]\"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=k,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)\"t\"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(\"throw\"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type=\"throw\",u.arg=e,r.next=n,o&&(r.method=\"next\",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var c=n.call(a,\"catchLoc\"),s=n.call(a,\"finallyLoc\");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev<o.finallyLoc){var i=o;break}}i&&(\"break\"===e||\"continue\"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method=\"next\",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if(\"throw\"===e.type)throw e.arg;return\"break\"===e.type||\"continue\"===e.type?this.next=e.arg:\"return\"===e.type?(this.rval=this.arg=e.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;P(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function(\"r\",\"regeneratorRuntime = r\")(n)}},function(e,t,r){!function(e,t,r,n){\"use strict\";t=t&&t.hasOwnProperty(\"default\")?t.default:t,r=r&&r.hasOwnProperty(\"default\")?r.default:r,n=n&&n.hasOwnProperty(\"default\")?n.default:n;var o=function(e,t){return void 0===t?e:t.reduce((function(e,t){if(\"capitalize\"===t){var o=e.charAt(0).toUpperCase(),i=e.slice(1);return\"\".concat(o).concat(i)}return\"dashify\"===t?r(e):\"prependIndefiniteArticle\"===t?\"\".concat(n(e),\" \").concat(e):e}),e)},i=function(e,r){for(var n=/\\${([^.}]+)((\\.[^(]+\\(\\))*)}/g,i=[],a=n.exec(e);null!==a;){var u={modifiers:[],name:a[1]};if(void 0!==a[3])for(var c=/\\.[^(]+\\(\\)/g,s=c.exec(a[2]);null!==s;)u.modifiers.push(s[0].slice(1,-2)),s=c.exec(a[2]);i.push(u),a=n.exec(e)}var f=i.reduce((function(e,n){return e.map((function(e){return\"string\"==typeof e?e.split(function(e){var t=e.name+e.modifiers.map((function(e){return\"\\\\.\".concat(e,\"\\\\(\\\\)\")})).join(\"\");return new RegExp(\"\\\\$\\\\{\".concat(t,\"}\"),\"g\")}(n)).reduce((function(e,i,a){return 0===a?[i]:n.name in r?[].concat(t(e),[o(r[n.name],n.modifiers),i]):[].concat(t(e),[function(e){return o(e[n.name],n.modifiers)},i])}),[]):[e]})).reduce((function(e,r){return[].concat(t(e),t(r))}),[])}),[e]);return function(e){return f.reduce((function(r,n){return[].concat(t(r),\"string\"==typeof n?[n]:[n(e)])}),[]).join(\"\")}};e.compile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=void 0===e.code?void 0:i(e.code,t),n=void 0===e.message?void 0:i(e.message,t);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=void 0===o&&(t instanceof Error||void 0!==t.code&&\"Exception\"===t.code.slice(-9))?{cause:t,missingParameters:{}}:{cause:o,missingParameters:t},a=i.cause,u=i.missingParameters,c=void 0===n?new Error:new Error(n(u));return null!==a&&(c.cause=a),void 0!==r&&(c.code=r(u)),void 0!==e.status&&(c.status=e.status),c}return o},Object.defineProperty(e,\"__esModule\",{value:!0})}(t,r(6),r(10),r(11))},function(e,t,r){var n=r(7),o=r(8),i=r(9);e.exports=function(e){return n(e)||o(e)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},function(e,t,r){\"use strict\";e.exports=function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"expected a string\");return e.trim().replace(/([a-z])([A-Z])/g,\"$1-$2\").replace(/\\W/g,(function(e){return/[\xC0-\u017E]/.test(e)?e:\"-\"})).replace(/^-+|-+$/g,\"\").replace(/-{2,}/g,(function(e){return t&&t.condense?\"-\":e})).toLowerCase()}},function(e,t,r){var n=function(e){var t,r,n=/\\w+/.exec(e);if(!n)return\"an\";var o=(r=n[0]).toLowerCase(),i=[\"honest\",\"hour\",\"hono\"];for(t in i)if(0==o.indexOf(i[t]))return\"an\";if(1==o.length)return\"aedhilmnorsx\".indexOf(o)>=0?\"an\":\"a\";if(r.match(/(?!FJO|[HLMNS]Y.|RY[EO]|SQU|(F[LR]?|[HL]|MN?|N|RH?|S[CHKLMNPTVW]?|X(YL)?)[AEIOU])[FHLMNRSX][A-Z]/))return\"an\";var a=[/^e[uw]/,/^onc?e\\b/,/^uni([^nmd]|mo)/,/^u[bcfhjkqrst][aeiou]/];for(t=0;t<a.length;t++)if(o.match(a[t]))return\"a\";return r.match(/^U[NK][AIEO]/)?\"a\":r==r.toUpperCase()?\"aedhilmnorsx\".indexOf(o[0])>=0?\"an\":\"a\":\"aeiou\".indexOf(o[0])>=0?\"an\":o.match(/^y(b[lor]|cl[ea]|fere|gg|p[ios]|rou|tt)/)?\"an\":\"a\"};void 0!==e.exports?e.exports=n:window.indefiniteArticle=n},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){!function(e){\"use strict\";var t,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=new WeakMap,o=(t=n,function(e,r){return t.set(e,r),r}),i=function(e,t){return function(n){var o=t.get(n),i=void 0===o?n.size:o>2147483646?0:o+1;if(!n.has(i))return e(n,i);if(n.size<1073741824){for(;n.has(i);)i=Math.floor(2147483648*Math.random());return e(n,i)}if(n.size>r)throw new Error(\"Congratulations, you created a collection of unique numbers which uses all available integers!\");for(;n.has(i);)i=Math.floor(Math.random()*r);return e(n,i)}}(o,n),a=function(e){return function(t){var r=e(t);return t.add(r),r}}(i);e.addUniqueNumber=a,e.generateUniqueNumber=i,Object.defineProperty(e,\"__esModule\",{value:!0})}(t)}]);";

@@ -11,0 +11,0 @@ var blob = new Blob([worker], {

@@ -12,5 +12,5 @@ {

"dependencies": {
"@babel/runtime": "^7.6.3",
"async-array-buffer-broker": "^3.0.31",
"async-array-buffer-worker": "^5.0.31",
"@babel/runtime": "^7.7.1",
"async-array-buffer-broker": "^3.0.32",
"async-array-buffer-worker": "^5.0.32",
"tslib": "^1.10.0"

@@ -20,6 +20,6 @@ },

"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/core": "^7.7.0",
"@babel/plugin-external-helpers": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.3",
"@babel/preset-env": "^7.7.1",
"@commitlint/cli": "^8.2.0",

@@ -52,3 +52,3 @@ "@commitlint/config-angular": "^8.2.0",

"mocha": "^6.2.2",
"rollup": "^1.26.0",
"rollup": "^1.26.3",
"rollup-plugin-babel": "^4.3.3",

@@ -60,6 +60,6 @@ "rollup-plugin-replace": "^2.2.0",

"ts-loader": "^6.2.1",
"tsconfig-holy-grail": "^10.0.25",
"tslint": "^5.20.0",
"tslint-config-holy-grail": "^46.1.6",
"typescript": "^3.6.4",
"tsconfig-holy-grail": "^10.0.27",
"tslint": "^5.20.1",
"tslint-config-holy-grail": "^46.1.8",
"typescript": "^3.7.2",
"webpack": "^4.41.2"

@@ -92,3 +92,3 @@ },

"types": "build/es2018/module.d.ts",
"version": "3.0.36"
"version": "3.0.37"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc