items
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
45
7634
5
90
1