Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "moonworker", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "MoonWorker - Task Runner", | ||
@@ -5,0 +5,0 @@ "main": "worker.js", |
@@ -24,2 +24,2 @@ 'use strict'; | ||
module.exports = Worker; | ||
module.exports = Job; |
'use strict'; | ||
function Worker(){ | ||
var Job = require('./Job') | ||
var Worker = function(){ | ||
return this.constructor.apply(this,arguments) | ||
@@ -33,4 +35,4 @@ }; | ||
Worker.prototype.argumentsToArray = function(arguments){ | ||
returnArray = []; | ||
Worker.prototype.argumentsToArray = function(){ | ||
var returnArray = []; | ||
for(var arg in arguments){ | ||
@@ -88,1 +90,4 @@ returnArray.push(arguments[arg]) | ||
}; | ||
module.exports = Worker |
@@ -1,1 +0,1 @@ | ||
module.exports = require('src/worker') | ||
module.exports = require('./src/Worker') |
Sorry, the diff of this file is not supported yet
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent 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
4816
93
1