jsdom-worker
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -1,2 +0,2 @@ | ||
function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var fetch=require("node-fetch"),fetch__default=_interopDefault(fetch);function mitt(e){return e=e||Object.create(null),{on:function(t,o){(e[t]||(e[t]=[])).push(o)},off:function(t,o){e[t]&&e[t].splice(e[t].indexOf(o)>>>0,1)},emit:function(t,o){(e[t]||[]).slice().map(function(e){e(o)}),(e["*"]||[]).slice().map(function(e){e(t,o)})}}}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var uuidV4=createCommonjsModule(function(e,t){t=e.exports=function(){for(var e,o="",n=0;n<32;n++)e=16*t.random()|0,n>4&&n<21&&!(n%4)&&(o+="-"),o+=(12===n?4:16===n?3&e|8:e).toString(16);return o};var o=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;t.isUUID=function(e){return o.test(e)},t.random=function(){return Math.random()}});if(global.URL||(global.URL={}),!global.URL.$$objects){global.URL.$$objects=new Map,global.URL.createObjectURL=e=>{let t=uuidV4();return global.URL.$$objects[t]=e,"blob:http://localhost/"+t};let e=global.fetch||fetch__default;global.fetch=function(t,o){return t.match(/^blob:/)?new Promise((e,o)=>{let n=new FileReader;n.onload=()=>{let t=global.Response||fetch.Response;e(new t(n.result,{status:200,statusText:"OK"}))},n.onerror=()=>{o(n.error)};let s=t.match(/[^/]+$/)[0];n.readAsText(global.URL.$$objects[s])}):e.call(this,t,o)}}function Event(e){this.type=e}global.document||(global.document={}),Event.prototype.initEvent=Object,global.document.createEvent||(global.document.createEvent=function(e){return new(global[e]||Event)(e)}),global.Worker=function Worker(url){let messageQueue=[],inside=mitt(),outside=mitt(),scope={onmessage:null,dispatchEvent:inside.emit,addEventListener:inside.on,removeEventListener:inside.off,postMessage(e){outside.emit("message",{data:e})},fetch:global.fetch,importScripts(){}},getScopeVar;inside.on("message",e=>{let t=getScopeVar("onmessage");t&&t.call(scope,e)}),this.addEventListener=outside.on,this.removeEventListener=outside.off,this.dispatchEvent=outside.emit,outside.on("message",e=>{this.onmessage&&this.onmessage(e)}),this.postMessage=e=>{null!=messageQueue?messageQueue.push(e):inside.emit("message",{data:e})},this.terminate=()=>{throw Error("Not Supported")},global.fetch(url).then(e=>e.text()).then(code=>{let vars="var self=this,global=self";for(let e in scope)vars+=`,${e}=self.${e}`;getScopeVar=eval("(function() {"+vars+";\n"+code+"\nreturn function(__){return eval(__)}})").call(scope);let q=messageQueue;messageQueue=null,q.forEach(this.postMessage)}).catch(e=>{outside.emit("error",e),console.error(e)})}; | ||
var e,t=require("node-fetch"),o=(e=t)&&"object"==typeof e&&"default"in e?e.default:e;function n(e){return e=e||Object.create(null),{on:function(t,o){(e[t]||(e[t]=[])).push(o)},off:function(t,o){e[t]&&e[t].splice(e[t].indexOf(o)>>>0,1)},emit:function(t,o){(e[t]||[]).slice().map(function(e){e(o)}),(e["*"]||[]).slice().map(function(e){e(t,o)})}}}var l,a=(function(e,t){t=e.exports=function(){for(var e,o="",n=0;n<32;n++)e=16*t.random()|0,n>4&&n<21&&!(n%4)&&(o+="-"),o+=(12===n?4:16===n?3&e|8:e).toString(16);return o};var o=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;t.isUUID=function(e){return o.test(e)},t.random=function(){return Math.random()}}(l={exports:{}},l.exports),l.exports);if(global.URL||(global.URL={}),global.URL.$$objects||(global.URL.$$objects=new Map,global.URL.createObjectURL=e=>{let t=a();return global.URL.$$objects[t]=e,"blob:http://localhost/"+t}),!global.fetch||!global.fetch.jsdomWorker){let e=global.fetch||o;global.fetch=function(o,n){return o.match(/^blob:/)?new Promise((e,n)=>{let l=new FileReader;l.onload=()=>{let o=global.Response||t.Response;e(new o(l.result,{status:200,statusText:"OK"}))},l.onerror=()=>{n(l.error)};let a=o.match(/[^/]+$/)[0];l.readAsText(global.URL.$$objects[a])}):e.call(this,o,n)},global.fetch.jsdomWorker=!0}function s(e){this.type=e}global.document||(global.document={}),s.prototype.initEvent=Object,global.document.createEvent||(global.document.createEvent=function(e){return new(global[e]||s)(e)}),global.Worker=function(e){let t,o=[],l=n(),a=n(),s={onmessage:null,dispatchEvent:l.emit,addEventListener:l.on,removeEventListener:l.off,postMessage(e){a.emit("message",{data:e})},fetch:global.fetch,importScripts(){}};l.on("message",e=>{let o=s.onmessage||t("onmessage");o&&o.call(s,e)}),this.addEventListener=a.on,this.removeEventListener=a.off,this.dispatchEvent=a.emit,a.on("message",e=>{this.onmessage&&this.onmessage(e)}),this.postMessage=e=>{null!=o?o.push(e):l.emit("message",{data:e})},this.terminate=()=>{throw Error("Not Supported")},global.fetch(e).then(e=>e.text()).then(e=>{let n="var self=this,global=self";for(let e in s)n+=`,${e}=self.${e}`;t=Function(n+";\n"+e+'\nreturn function(n){return n=="onmessage"?onmessage:null;}').call(s);let l=o;o=null,l.forEach(this.postMessage)}).catch(e=>{a.emit("error",e),console.error(e)})}; | ||
//# sourceMappingURL=jsdom-worker.js.map |
@@ -1,2 +0,2 @@ | ||
import fetch,{Response}from"node-fetch";function mitt(e){return e=e||Object.create(null),{on:function(t,o){(e[t]||(e[t]=[])).push(o)},off:function(t,o){e[t]&&e[t].splice(e[t].indexOf(o)>>>0,1)},emit:function(t,o){(e[t]||[]).slice().map(function(e){e(o)}),(e["*"]||[]).slice().map(function(e){e(t,o)})}}}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var uuidV4=createCommonjsModule(function(e,t){t=e.exports=function(){for(var e,o="",n=0;n<32;n++)e=16*t.random()|0,n>4&&n<21&&!(n%4)&&(o+="-"),o+=(12===n?4:16===n?3&e|8:e).toString(16);return o};var o=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;t.isUUID=function(e){return o.test(e)},t.random=function(){return Math.random()}});if(global.URL||(global.URL={}),!global.URL.$$objects){global.URL.$$objects=new Map,global.URL.createObjectURL=e=>{let t=uuidV4();return global.URL.$$objects[t]=e,"blob:http://localhost/"+t};let e=global.fetch||fetch;global.fetch=function(t,o){return t.match(/^blob:/)?new Promise((e,o)=>{let n=new FileReader;n.onload=()=>{let t=global.Response||Response;e(new t(n.result,{status:200,statusText:"OK"}))},n.onerror=()=>{o(n.error)};let s=t.match(/[^/]+$/)[0];n.readAsText(global.URL.$$objects[s])}):e.call(this,t,o)}}function Event(e){this.type=e}global.document||(global.document={}),Event.prototype.initEvent=Object,global.document.createEvent||(global.document.createEvent=function(e){return new(global[e]||Event)(e)}),global.Worker=function Worker(url){let messageQueue=[],inside=mitt(),outside=mitt(),scope={onmessage:null,dispatchEvent:inside.emit,addEventListener:inside.on,removeEventListener:inside.off,postMessage(e){outside.emit("message",{data:e})},fetch:global.fetch,importScripts(...e){}},getScopeVar;inside.on("message",e=>{let t=getScopeVar("onmessage");t&&t.call(scope,e)}),this.addEventListener=outside.on,this.removeEventListener=outside.off,this.dispatchEvent=outside.emit,outside.on("message",e=>{this.onmessage&&this.onmessage(e)}),this.postMessage=e=>{null!=messageQueue?messageQueue.push(e):inside.emit("message",{data:e})},this.terminate=()=>{throw Error("Not Supported")},global.fetch(url).then(e=>e.text()).then(code=>{let vars="var self=this,global=self";for(let e in scope)vars+=`,${e}=self.${e}`;getScopeVar=eval("(function() {"+vars+";\n"+code+"\nreturn function(__){return eval(__)}})").call(scope);let q=messageQueue;messageQueue=null,q.forEach(this.postMessage)}).catch(e=>{outside.emit("error",e),console.error(e)})}; | ||
import e,{Response as t}from"node-fetch";function o(e){return e=e||Object.create(null),{on:function(t,o){(e[t]||(e[t]=[])).push(o)},off:function(t,o){e[t]&&e[t].splice(e[t].indexOf(o)>>>0,1)},emit:function(t,o){(e[t]||[]).slice().map(function(e){e(o)}),(e["*"]||[]).slice().map(function(e){e(t,o)})}}}var n,l=(function(e,t){t=e.exports=function(){for(var e,o="",n=0;n<32;n++)e=16*t.random()|0,n>4&&n<21&&!(n%4)&&(o+="-"),o+=(12===n?4:16===n?3&e|8:e).toString(16);return o};var o=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;t.isUUID=function(e){return o.test(e)},t.random=function(){return Math.random()}}(n={exports:{}},n.exports),n.exports);if(global.URL||(global.URL={}),global.URL.$$objects||(global.URL.$$objects=new Map,global.URL.createObjectURL=e=>{let t=l();return global.URL.$$objects[t]=e,"blob:http://localhost/"+t}),!global.fetch||!global.fetch.jsdomWorker){let o=global.fetch||e;global.fetch=function(e,n){return e.match(/^blob:/)?new Promise((o,n)=>{let l=new FileReader;l.onload=()=>{let e=global.Response||t;o(new e(l.result,{status:200,statusText:"OK"}))},l.onerror=()=>{n(l.error)};let s=e.match(/[^/]+$/)[0];l.readAsText(global.URL.$$objects[s])}):o.call(this,e,n)},global.fetch.jsdomWorker=!0}function s(e){this.type=e}global.document||(global.document={}),s.prototype.initEvent=Object,global.document.createEvent||(global.document.createEvent=function(e){return new(global[e]||s)(e)}),global.Worker=function(e){let t,n=[],l=o(),s=o(),a={onmessage:null,dispatchEvent:l.emit,addEventListener:l.on,removeEventListener:l.off,postMessage(e){s.emit("message",{data:e})},fetch:global.fetch,importScripts(){}};l.on("message",e=>{let o=a.onmessage||t("onmessage");o&&o.call(a,e)}),this.addEventListener=s.on,this.removeEventListener=s.off,this.dispatchEvent=s.emit,s.on("message",e=>{this.onmessage&&this.onmessage(e)}),this.postMessage=e=>{null!=n?n.push(e):l.emit("message",{data:e})},this.terminate=()=>{throw Error("Not Supported")},global.fetch(e).then(e=>e.text()).then(e=>{let o="var self=this,global=self";for(let e in a)o+=`,${e}=self.${e}`;t=Function(o+";\n"+e+'\nreturn function(n){return n=="onmessage"?onmessage:null;}').call(a);let l=n;n=null,l.forEach(this.postMessage)}).catch(e=>{s.emit("error",e),console.error(e)})}; | ||
//# sourceMappingURL=jsdom-worker.modern.js.map |
@@ -1,2 +0,2 @@ | ||
import fetch,{Response}from"node-fetch";function mitt(e){return e=e||Object.create(null),{on:function(t,o){(e[t]||(e[t]=[])).push(o)},off:function(t,o){e[t]&&e[t].splice(e[t].indexOf(o)>>>0,1)},emit:function(t,o){(e[t]||[]).slice().map(function(e){e(o)}),(e["*"]||[]).slice().map(function(e){e(t,o)})}}}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var uuidV4=createCommonjsModule(function(e,t){t=e.exports=function(){for(var e,o="",n=0;n<32;n++)e=16*t.random()|0,n>4&&n<21&&!(n%4)&&(o+="-"),o+=(12===n?4:16===n?3&e|8:e).toString(16);return o};var o=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;t.isUUID=function(e){return o.test(e)},t.random=function(){return Math.random()}});if(global.URL||(global.URL={}),!global.URL.$$objects){global.URL.$$objects=new Map,global.URL.createObjectURL=e=>{let t=uuidV4();return global.URL.$$objects[t]=e,"blob:http://localhost/"+t};let e=global.fetch||fetch;global.fetch=function(t,o){return t.match(/^blob:/)?new Promise((e,o)=>{let n=new FileReader;n.onload=()=>{let t=global.Response||Response;e(new t(n.result,{status:200,statusText:"OK"}))},n.onerror=()=>{o(n.error)};let s=t.match(/[^/]+$/)[0];n.readAsText(global.URL.$$objects[s])}):e.call(this,t,o)}}function Event(e){this.type=e}global.document||(global.document={}),Event.prototype.initEvent=Object,global.document.createEvent||(global.document.createEvent=function(e){return new(global[e]||Event)(e)}),global.Worker=function Worker(url){let messageQueue=[],inside=mitt(),outside=mitt(),scope={onmessage:null,dispatchEvent:inside.emit,addEventListener:inside.on,removeEventListener:inside.off,postMessage(e){outside.emit("message",{data:e})},fetch:global.fetch,importScripts(){}},getScopeVar;inside.on("message",e=>{let t=getScopeVar("onmessage");t&&t.call(scope,e)}),this.addEventListener=outside.on,this.removeEventListener=outside.off,this.dispatchEvent=outside.emit,outside.on("message",e=>{this.onmessage&&this.onmessage(e)}),this.postMessage=e=>{null!=messageQueue?messageQueue.push(e):inside.emit("message",{data:e})},this.terminate=()=>{throw Error("Not Supported")},global.fetch(url).then(e=>e.text()).then(code=>{let vars="var self=this,global=self";for(let e in scope)vars+=`,${e}=self.${e}`;getScopeVar=eval("(function() {"+vars+";\n"+code+"\nreturn function(__){return eval(__)}})").call(scope);let q=messageQueue;messageQueue=null,q.forEach(this.postMessage)}).catch(e=>{outside.emit("error",e),console.error(e)})}; | ||
import e,{Response as t}from"node-fetch";function o(e){return e=e||Object.create(null),{on:function(t,o){(e[t]||(e[t]=[])).push(o)},off:function(t,o){e[t]&&e[t].splice(e[t].indexOf(o)>>>0,1)},emit:function(t,o){(e[t]||[]).slice().map(function(e){e(o)}),(e["*"]||[]).slice().map(function(e){e(t,o)})}}}var n,l=(function(e,t){t=e.exports=function(){for(var e,o="",n=0;n<32;n++)e=16*t.random()|0,n>4&&n<21&&!(n%4)&&(o+="-"),o+=(12===n?4:16===n?3&e|8:e).toString(16);return o};var o=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;t.isUUID=function(e){return o.test(e)},t.random=function(){return Math.random()}}(n={exports:{}},n.exports),n.exports);if(global.URL||(global.URL={}),global.URL.$$objects||(global.URL.$$objects=new Map,global.URL.createObjectURL=e=>{let t=l();return global.URL.$$objects[t]=e,"blob:http://localhost/"+t}),!global.fetch||!global.fetch.jsdomWorker){let o=global.fetch||e;global.fetch=function(e,n){return e.match(/^blob:/)?new Promise((o,n)=>{let l=new FileReader;l.onload=()=>{let e=global.Response||t;o(new e(l.result,{status:200,statusText:"OK"}))},l.onerror=()=>{n(l.error)};let s=e.match(/[^/]+$/)[0];l.readAsText(global.URL.$$objects[s])}):o.call(this,e,n)},global.fetch.jsdomWorker=!0}function s(e){this.type=e}global.document||(global.document={}),s.prototype.initEvent=Object,global.document.createEvent||(global.document.createEvent=function(e){return new(global[e]||s)(e)}),global.Worker=function(e){let t,n=[],l=o(),s=o(),a={onmessage:null,dispatchEvent:l.emit,addEventListener:l.on,removeEventListener:l.off,postMessage(e){s.emit("message",{data:e})},fetch:global.fetch,importScripts(){}};l.on("message",e=>{let o=a.onmessage||t("onmessage");o&&o.call(a,e)}),this.addEventListener=s.on,this.removeEventListener=s.off,this.dispatchEvent=s.emit,s.on("message",e=>{this.onmessage&&this.onmessage(e)}),this.postMessage=e=>{null!=n?n.push(e):l.emit("message",{data:e})},this.terminate=()=>{throw Error("Not Supported")},global.fetch(e).then(e=>e.text()).then(e=>{let o="var self=this,global=self";for(let e in a)o+=`,${e}=self.${e}`;t=Function(o+";\n"+e+'\nreturn function(n){return n=="onmessage"?onmessage:null;}').call(a);let l=n;n=null,l.forEach(this.postMessage)}).catch(e=>{s.emit("error",e),console.error(e)})}; | ||
//# sourceMappingURL=jsdom-worker.module.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("node-fetch")):"function"==typeof define&&define.amd?define(["node-fetch"],t):t((e=e||self).fetch)}(this,function(fetch){var fetch__default="default"in fetch?fetch.default:fetch;function mitt(e){return e=e||Object.create(null),{on:function(t,o){(e[t]||(e[t]=[])).push(o)},off:function(t,o){e[t]&&e[t].splice(e[t].indexOf(o)>>>0,1)},emit:function(t,o){(e[t]||[]).slice().map(function(e){e(o)}),(e["*"]||[]).slice().map(function(e){e(t,o)})}}}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var uuidV4=createCommonjsModule(function(e,t){t=e.exports=function(){for(var e,o="",n=0;n<32;n++)e=16*t.random()|0,n>4&&n<21&&!(n%4)&&(o+="-"),o+=(12===n?4:16===n?3&e|8:e).toString(16);return o};var o=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;t.isUUID=function(e){return o.test(e)},t.random=function(){return Math.random()}});if(global.URL||(global.URL={}),!global.URL.$$objects){global.URL.$$objects=new Map,global.URL.createObjectURL=e=>{let t=uuidV4();return global.URL.$$objects[t]=e,"blob:http://localhost/"+t};let e=global.fetch||fetch__default;global.fetch=function(t,o){return t.match(/^blob:/)?new Promise((e,o)=>{let n=new FileReader;n.onload=()=>{let t=global.Response||fetch.Response;e(new t(n.result,{status:200,statusText:"OK"}))},n.onerror=()=>{o(n.error)};let s=t.match(/[^/]+$/)[0];n.readAsText(global.URL.$$objects[s])}):e.call(this,t,o)}}function Event(e){this.type=e}global.document||(global.document={}),Event.prototype.initEvent=Object,global.document.createEvent||(global.document.createEvent=function(e){return new(global[e]||Event)(e)}),global.Worker=function Worker(url){let messageQueue=[],inside=mitt(),outside=mitt(),scope={onmessage:null,dispatchEvent:inside.emit,addEventListener:inside.on,removeEventListener:inside.off,postMessage(e){outside.emit("message",{data:e})},fetch:global.fetch,importScripts(){}},getScopeVar;inside.on("message",e=>{let t=getScopeVar("onmessage");t&&t.call(scope,e)}),this.addEventListener=outside.on,this.removeEventListener=outside.off,this.dispatchEvent=outside.emit,outside.on("message",e=>{this.onmessage&&this.onmessage(e)}),this.postMessage=e=>{null!=messageQueue?messageQueue.push(e):inside.emit("message",{data:e})},this.terminate=()=>{throw Error("Not Supported")},global.fetch(url).then(e=>e.text()).then(code=>{let vars="var self=this,global=self";for(let e in scope)vars+=`,${e}=self.${e}`;getScopeVar=eval("(function() {"+vars+";\n"+code+"\nreturn function(__){return eval(__)}})").call(scope);let q=messageQueue;messageQueue=null,q.forEach(this.postMessage)}).catch(e=>{outside.emit("error",e),console.error(e)})}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("node-fetch")):"function"==typeof define&&define.amd?define(["node-fetch"],t):t((e=e||self).fetch)}(this,function(e){var t="default"in e?e.default:e;function o(e){return e=e||Object.create(null),{on:function(t,o){(e[t]||(e[t]=[])).push(o)},off:function(t,o){e[t]&&e[t].splice(e[t].indexOf(o)>>>0,1)},emit:function(t,o){(e[t]||[]).slice().map(function(e){e(o)}),(e["*"]||[]).slice().map(function(e){e(t,o)})}}}var n=function(e,t){return function(e,t){t=e.exports=function(){for(var e,o="",n=0;n<32;n++)e=16*t.random()|0,n>4&&n<21&&!(n%4)&&(o+="-"),o+=(12===n?4:16===n?3&e|8:e).toString(16);return o};var o=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;t.isUUID=function(e){return o.test(e)},t.random=function(){return Math.random()}}(t={exports:{}},t.exports),t.exports}();if(global.URL||(global.URL={}),global.URL.$$objects||(global.URL.$$objects=new Map,global.URL.createObjectURL=e=>{let t=n();return global.URL.$$objects[t]=e,"blob:http://localhost/"+t}),!global.fetch||!global.fetch.jsdomWorker){let o=global.fetch||t;global.fetch=function(t,n){return t.match(/^blob:/)?new Promise((o,n)=>{let l=new FileReader;l.onload=()=>{let t=global.Response||e.Response;o(new t(l.result,{status:200,statusText:"OK"}))},l.onerror=()=>{n(l.error)};let s=t.match(/[^/]+$/)[0];l.readAsText(global.URL.$$objects[s])}):o.call(this,t,n)},global.fetch.jsdomWorker=!0}function l(e){this.type=e}global.document||(global.document={}),l.prototype.initEvent=Object,global.document.createEvent||(global.document.createEvent=function(e){return new(global[e]||l)(e)}),global.Worker=function(e){let t,n=[],l=o(),s=o(),a={onmessage:null,dispatchEvent:l.emit,addEventListener:l.on,removeEventListener:l.off,postMessage(e){s.emit("message",{data:e})},fetch:global.fetch,importScripts(){}};l.on("message",e=>{let o=a.onmessage||t("onmessage");o&&o.call(a,e)}),this.addEventListener=s.on,this.removeEventListener=s.off,this.dispatchEvent=s.emit,s.on("message",e=>{this.onmessage&&this.onmessage(e)}),this.postMessage=e=>{null!=n?n.push(e):l.emit("message",{data:e})},this.terminate=()=>{throw Error("Not Supported")},global.fetch(e).then(e=>e.text()).then(e=>{let o="var self=this,global=self";for(let e in a)o+=`,${e}=self.${e}`;t=Function(o+";\n"+e+'\nreturn function(n){return n=="onmessage"?onmessage:null;}').call(a);let l=n;n=null,l.forEach(this.postMessage)}).catch(e=>{s.emit("error",e),console.error(e)})}}); | ||
//# sourceMappingURL=jsdom-worker.umd.js.map |
{ | ||
"name": "jsdom-worker", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Experimental Web Worker API implementation for JSDOM.", | ||
@@ -5,0 +5,0 @@ "main": "dist/jsdom-worker.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
4
48681
41