![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
items
Advanced tools
Readme
#items
Bare minimum async methods adapted specifically for the very limited hapi core use cases. Use async for all your application needs.
Lead Maintainer - Raquel Vélez
Items.serial(items, method, callback)
Runs method
against each value in the items
array in series. callback
is executed when all of the tasks are complete. Calling back with an error will short-circuit the remaining tasks.
items
an array of items to pass to method
.method
a function with the signature function (item, next)
.
item
- is the currently processing item in the items
array.next
- callback function to indicate the end of processing for item
. Calling next
with a truthy parameter indicates an error and ends Items.serial
.callback
- a function with the signature function (err)
.
err
- indicates any errors during processing.Items.parallel(items, method, callback)
Runs method
against each value in the items
array in parallel. callback
is executed when all of the tasks are complete. Calling back with an error will short-circuit the remaining tasks.
items
an array of items to pass to method
.method
a function with the signature function (item, next)
.
item
- is the currently processing item in the items
array.next
- callback function to indicate the end of processing for item
. Calling next
with a truthy parameter indicates an error and ends Items.serial
.callback
- a function with the signature function (err)
.
err
- indicates any errors during processing.Items.parallel.execute(tasks, callback)
Runs all of the functions in tasks
in parallel and stores the results in a collector object passed into callback
. If any of the tasks callback with an error, the collector object is null
.
tasks
- on object containing functions to execute in parallel. The key
of the function is the key
in the result of collector object. The task should have the signature function (next)
next(err, result)
- callback function to indicate the end of processing for the current task.
err
- indicates any errors during processing.result
- result of this function. This value will be set on the collector object in the final callback.callback(err, result)
err
- any errors reported by any of the tasks
.result
- an object containing the result of running all of the tasks
. result
will be null
if any of the tasks callback with an error. The result.key
will be the corresponding key
of the tasks
object.FAQs
Bare minimum async methods
The npm package items receives a total of 159,735 weekly downloads. As such, items popularity was classified as popular.
We found that items demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.