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

moonworker

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moonworker - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.npmignore

42

package.json
{
"name": "moonworker",
"version": "0.0.1",
"description": "Worker Runner =D ",
"version": "0.0.2",
"description": "MoonWorker - Task Runner",
"main": "worker.js",

@@ -9,28 +9,18 @@ "scripts": {

},
"author": {
"name": "guilherme",
"url": "coder"
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/scup/moonworker.git"
},
"license": "ISC",
"_id": "moon-wowker@0.0.1",
"_shasum": "37b4bc7045be44edda36eac136e7b537754076af",
"_from": "moon-wowker@*",
"_npmVersion": "2.14.2",
"_nodeVersion": "4.0.0",
"_npmUser": {
"name": "guisouza",
"email": "gui_souza@me.com"
"keywords": [
"worker",
"runner",
"cron",
"jobs"
],
"author": "Guilherme (Coder)",
"bugs": {
"url": "https://github.com/scup/moonworker/issues"
},
"dist": {
"shasum": "37b4bc7045be44edda36eac136e7b537754076af",
"tarball": "http://registry.npmjs.org/moon-wowker/-/moon-wowker-0.0.1.tgz"
},
"maintainers": [
{
"name": "guisouza",
"email": "gui_souza@me.com"
}
],
"directories": {},
"_resolved": "https://registry.npmjs.org/moon-wowker/-/moon-wowker-0.0.1.tgz"
"homepage": "https://github.com/scup/moonworker#readme"
}

@@ -1,37 +0,1 @@

var Worker = function(params){
'use Strict';
var action = params.step;
var interval = params.interval;
var autoplay = params.autoplay || false;
var timer
var timesRunned = 0
var stopped = false;
function run(){
setTimeout(function(){
action();
timesRunned++;
if (!stopped)
run();
},interval)
}
function stop(){
stopped = true;
}
(function tryToRun(){
if (autoplay)
run();
})()
return {
run : run,
stop : stop,
timesRunned : function(){
return timesRunned
},
}
}
module.exports = require('src/worker')
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