Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@liteflow/service
Advanced tools
- [Installation](#installation) - [Service](#service) - [Task](#task)
npm install @liteflow/service
const Service = require('@liteflow/service')
const liteflow = new Service()
The service have to call liteflow.listenTask
to start listening for task to execute by passing an object containing the tasks' key and function.
liteflow.listenTask({
'TASK_1_KEY': (inputs) => {
// Function of the task 1
// Can directly throw error
if (inputs.foo === undefined) {
throw new Error('foo is undefined')
}
// Return an object
return { foo: inputs.a + 'bar' }
},
'TASK_2_KEY': async (inputs) => {
// Function of the task 2
// Return an Promise containing an object
const response = await fetch('...')
return response.json()
},
})
The task functions accept inputs
as parameter and returns the outputs
as object or Promise of object.
The task function can throw an Error in case of error. The lib will catch it and send it to the MESG Engine.
FAQs
- [Installation](#installation) - [Service](#service) - [Task](#task)
We found that @liteflow/service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.