- Sep 14, 2017
-
-
Daniele Di Sarli authored
-
Daniel Di Sarli authored
This is an example of a valid minified function that doesn't work with the regex in toFunction: function profileModelWorkerRunner(){var Moment=eval("require")("moment-timezone");self.onmessage=function(event){var profileModelClass=eval("require")(event.data.profileModelPath).default,profileModelWorker=new profileModelClass(Moment,event.data.timezone),params=event.data.params;var result=profileModelWorker.check(params);postMessage(result)}} I've replaced that code with an eval, which is safer than parsing JS code (which is not a context-free grammar) with regular expressions.
-
- Mar 05, 2017
-
-
Jason Mulligan authored
Defaulting `options.cwd` to `process.cwd()`, passing `options.cwd` to `worker.js`, fixing `worker.js` by setting `global.__dirname` to `obj.cwd` on init, really fixes #10
-
- Jan 05, 2017
-
-
Jason Mulligan authored
-
Jason Mulligan authored
-
- Oct 03, 2016
-
-
Jason Mulligan authored
-
Jason Mulligan authored
-
- Jun 15, 2016
-
-
Jason Mulligan authored
-
Jason Mulligan authored
-
Jason Mulligan authored
-
- Oct 14, 2015
-
-
Jason Mulligan authored
-
Jason Mulligan authored
Adding `require` to the inline script context for convenience, fixing API mistake by removing `close()` from the instance & updating README
-
- Sep 30, 2015
-
-
Jason Mulligan authored
-
Jason Mulligan authored
-
Jason Mulligan authored
-
Jason Mulligan authored
-
- Sep 29, 2015
-
-
Jason Mulligan authored
-