Socket
Socket
Sign inDemoInstall

items

Package Overview
Dependencies
0
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 2.1.1

4

package.json
{
"name": "items",
"description": "Bare minimum async methods",
"version": "2.1.0",
"version": "2.1.1",
"repository": "git://github.com/hapijs/items",

@@ -18,3 +18,3 @@ "main": "lib/index.js",

"devDependencies": {
"code": "2.x.x",
"code": "3.x.x",
"lab": "10.x.x"

@@ -21,0 +21,0 @@ },

@@ -15,5 +15,6 @@ #items

- `items` an array of items to pass to `method`.
- `method` a function with the signature `function (item, next)`.
- `method` a function with the signature `function (item, next, i)`.
- `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`.
- `i` - The current item's index in the `items` array.
- `callback` - a function with the signature `function (err)`.

@@ -27,5 +28,6 @@ - `err` - indicates any errors during processing.

- `items` an array of items to pass to `method`.
- `method` a function with the signature `function (item, next)`.
- `method` a function with the signature `function (item, next, i)`.
- `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`.
- `next` - callback function to indicate the end of processing for `item`. Calling `next` with a truthy parameter indicates an error and ends `Items.parallel`.
- `i` - The current item's index in the `items` array.
- `callback` - a function with the signature `function (err)`.

@@ -44,2 +46,2 @@ - `err` - indicates any errors during processing.

- `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.
- `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.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc