mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-10-30 23:07:56 +07:00 
			
		
		
		
	init
This commit is contained in:
		
							
								
								
									
										4
									
								
								node_modules/p-each-series/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								node_modules/p-each-series/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | ||||
| 'use strict'; | ||||
| const pReduce = require('p-reduce'); | ||||
|  | ||||
| module.exports = (iterable, iterator) => pReduce(iterable, (a, b, i) => iterator(b, i)).then(() => iterable); | ||||
							
								
								
									
										21
									
								
								node_modules/p-each-series/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								node_modules/p-each-series/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | ||||
| The MIT License (MIT) | ||||
|  | ||||
| Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) | ||||
|  | ||||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
| of this software and associated documentation files (the "Software"), to deal | ||||
| in the Software without restriction, including without limitation the rights | ||||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
| copies of the Software, and to permit persons to whom the Software is | ||||
| furnished to do so, subject to the following conditions: | ||||
|  | ||||
| The above copyright notice and this permission notice shall be included in | ||||
| all copies or substantial portions of the Software. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
| THE SOFTWARE. | ||||
							
								
								
									
										87
									
								
								node_modules/p-each-series/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										87
									
								
								node_modules/p-each-series/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,87 @@ | ||||
| { | ||||
|   "_args": [ | ||||
|     [ | ||||
|       "p-each-series@1.0.0", | ||||
|       "E:\\python\\setup-php" | ||||
|     ] | ||||
|   ], | ||||
|   "_development": true, | ||||
|   "_from": "p-each-series@1.0.0", | ||||
|   "_id": "p-each-series@1.0.0", | ||||
|   "_inBundle": false, | ||||
|   "_integrity": "sha1-kw89Et0fUOdDRFeiLNbwSsatf3E=", | ||||
|   "_location": "/p-each-series", | ||||
|   "_phantomChildren": {}, | ||||
|   "_requested": { | ||||
|     "type": "version", | ||||
|     "registry": true, | ||||
|     "raw": "p-each-series@1.0.0", | ||||
|     "name": "p-each-series", | ||||
|     "escapedName": "p-each-series", | ||||
|     "rawSpec": "1.0.0", | ||||
|     "saveSpec": null, | ||||
|     "fetchSpec": "1.0.0" | ||||
|   }, | ||||
|   "_requiredBy": [ | ||||
|     "/@jest/core" | ||||
|   ], | ||||
|   "_resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-1.0.0.tgz", | ||||
|   "_spec": "1.0.0", | ||||
|   "_where": "E:\\python\\setup-php", | ||||
|   "author": { | ||||
|     "name": "Sindre Sorhus", | ||||
|     "email": "sindresorhus@gmail.com", | ||||
|     "url": "sindresorhus.com" | ||||
|   }, | ||||
|   "bugs": { | ||||
|     "url": "https://github.com/sindresorhus/p-each-series/issues" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "p-reduce": "^1.0.0" | ||||
|   }, | ||||
|   "description": "Iterate over promises serially", | ||||
|   "devDependencies": { | ||||
|     "ava": "*", | ||||
|     "delay": "^1.3.1", | ||||
|     "time-span": "^1.0.0", | ||||
|     "xo": "*" | ||||
|   }, | ||||
|   "engines": { | ||||
|     "node": ">=4" | ||||
|   }, | ||||
|   "files": [ | ||||
|     "index.js" | ||||
|   ], | ||||
|   "homepage": "https://github.com/sindresorhus/p-each-series#readme", | ||||
|   "keywords": [ | ||||
|     "promise", | ||||
|     "foreach", | ||||
|     "for-each", | ||||
|     "for", | ||||
|     "each", | ||||
|     "collection", | ||||
|     "iterable", | ||||
|     "iterator", | ||||
|     "fulfilled", | ||||
|     "async", | ||||
|     "await", | ||||
|     "promises", | ||||
|     "serial", | ||||
|     "serially", | ||||
|     "series", | ||||
|     "bluebird" | ||||
|   ], | ||||
|   "license": "MIT", | ||||
|   "name": "p-each-series", | ||||
|   "repository": { | ||||
|     "type": "git", | ||||
|     "url": "git+https://github.com/sindresorhus/p-each-series.git" | ||||
|   }, | ||||
|   "scripts": { | ||||
|     "test": "xo && ava" | ||||
|   }, | ||||
|   "version": "1.0.0", | ||||
|   "xo": { | ||||
|     "esnext": true | ||||
|   } | ||||
| } | ||||
							
								
								
									
										65
									
								
								node_modules/p-each-series/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								node_modules/p-each-series/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,65 @@ | ||||
| # p-each-series [](https://travis-ci.org/sindresorhus/p-each-series) | ||||
|  | ||||
| > Iterate over promises serially | ||||
|  | ||||
| Useful as a side-effect iterator. Prefer [`p-map`](https://github.com/sindresorhus/p-map) if you don't need side-effects, as it's concurrent. | ||||
|  | ||||
|  | ||||
| ## Install | ||||
|  | ||||
| ``` | ||||
| $ npm install --save p-each-series | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## Usage | ||||
|  | ||||
| ```js | ||||
| const pEachSeries = require('p-each-series'); | ||||
|  | ||||
| const keywords = [ | ||||
| 	getTopKeyword() //=> Promise | ||||
| 	'rainbow', | ||||
| 	'pony' | ||||
| ]; | ||||
|  | ||||
| const iterator = el => saveToDiskPromise(el); //=> Promise | ||||
|  | ||||
| pEachSeries(keywords, iterator).then(result => { | ||||
| 	console.log(result); | ||||
| 	//=> ['unicorn', 'rainbow', 'pony'] | ||||
| }); | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## API | ||||
|  | ||||
| ### pEachSeries(input, iterator) | ||||
|  | ||||
| Returns a `Promise` that is fulfilled when all promises in `input` and ones returned from `iterator` are fulfilled, or rejects if any of the promises reject. The fulfillment value is the original `input`. | ||||
|  | ||||
| #### input | ||||
|  | ||||
| Type: `Iterable<Promise|any>` | ||||
|  | ||||
| Iterated over serially in the `iterator` function. | ||||
|  | ||||
| #### iterator(element, index) | ||||
|  | ||||
| Type: `Function` | ||||
|  | ||||
| Return value is ignored unless it's `Promise`, then it's awaited before continuing with the next iteration. | ||||
|  | ||||
|  | ||||
| ## Related | ||||
|  | ||||
| - [p-map-series](https://github.com/sindresorhus/p-map-series) - Map over promises serially | ||||
| - [p-pipe](https://github.com/sindresorhus/p-pipe) - Compose promise-returning & async functions into a reusable pipeline | ||||
| - [p-reduce](https://github.com/sindresorhus/p-reduce) - Reduce a list of values using promises into a promise for a value | ||||
| - [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently | ||||
| - [More…](https://github.com/sindresorhus/promise-fun) | ||||
|  | ||||
|  | ||||
| ## License | ||||
|  | ||||
| MIT © [Sindre Sorhus](https://sindresorhus.com) | ||||
		Reference in New Issue
	
	Block a user
	 Shivam Mathur
					Shivam Mathur