@forrestjs/service-fetchq-task
Advanced tools
Comparing version 5.0.0-alpha.2 to 5.0.0-alpha.3
{ | ||
"name": "@forrestjs/service-fetchq-task", | ||
"description": "Simple API to run singleton tasks over a Fetchq queue.", | ||
"version": "5.0.0-alpha.2", | ||
"version": "5.0.0-alpha.3", | ||
"author": "Marco Pegoraro <marco.pegoraro@gmail.com", | ||
@@ -11,3 +11,3 @@ "main": "src/index", | ||
"dependencies": { | ||
"@forrestjs/core": "^5.0.0-alpha.2" | ||
"@forrestjs/core": "^5.0.0-alpha.3" | ||
}, | ||
@@ -30,3 +30,3 @@ "homepage": "https://github.com/forrestjs/forrestjs/tree/master/packages/service-fetchq-task#readme", | ||
}, | ||
"gitHead": "e0a81d69acf49601a5aa9d875e782ec0daeb5a44" | ||
"gitHead": "54a467e806c6a92e544e774eb1d1f6c47040e25b" | ||
} |
@@ -6,3 +6,8 @@ const onInitService = require('./on-init-service'); | ||
const fetchqTask = ({ registerTargets }) => { | ||
const service = { | ||
name: 'fetchq-task', | ||
trace: __filename, | ||
}; | ||
module.exports = ({ registerTargets }) => { | ||
registerTargets({ | ||
@@ -14,2 +19,3 @@ FETCHQ_REGISTER_TASK: 'fetchq/task/register', | ||
{ | ||
...service, | ||
target: '$INIT_SERVICE', | ||
@@ -19,2 +25,3 @@ handler: onInitService, | ||
{ | ||
...service, | ||
target: '$FETCHQ_REGISTER_QUEUE', | ||
@@ -24,2 +31,3 @@ handler: onFetchqRegisterQueue, | ||
{ | ||
...service, | ||
target: '$FETCHQ_READY', | ||
@@ -29,2 +37,3 @@ handler: onFetchqReady, | ||
{ | ||
...service, | ||
target: '$FETCHQ_REGISTER_WORKER', | ||
@@ -35,3 +44,1 @@ handler: onFetchqRegisterWorker, | ||
}; | ||
module.exports = fetchqTask; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7820
137