Compare commits
	
		
			No commits in common. "master" and "v5.1.2" have entirely different histories.
		
	
	
		
	
		
| @ -1,7 +1,7 @@ | ||||
| forEachAsync.js | ||||
| forEachAsync | ||||
| === | ||||
| 
 | ||||
| | A [Root](https://rootprojects.org) project | ||||
| | Sponsored by [ppl](https://ppl.family) | ||||
| 
 | ||||
| Analogous to `[].forEach`, but handles items asynchronously with a final callback passed to `then`. | ||||
| 
 | ||||
|  | ||||
| @ -67,7 +67,17 @@ | ||||
|     try { | ||||
|      exp.forEachAsync = create(require('bluebird')); | ||||
|     } catch(e) { | ||||
|       console.warn("This version of node doesn't support promises. Please `npm install --save bluebird` in your project."); | ||||
|       try { | ||||
|        exp.forEachAsync = create(require('es6-promise')); | ||||
|       } catch(e) { | ||||
|         try { | ||||
|          exp.forEachAsync = create(require('rsvp')); | ||||
|         } catch(e) { | ||||
|           console.warn('forEachAsync needs requires a promise implementation and your environment does not provide one.' | ||||
|             + '\nYou may provide your own by calling forEachAsync.create(Promise) with a PromiseA+ implementation' | ||||
|           ); | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										5
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										5
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -1,5 +0,0 @@ | ||||
| { | ||||
|   "name": "foreachasync", | ||||
|   "version": "5.1.3", | ||||
|   "lockfileVersion": 1 | ||||
| } | ||||
| @ -1,10 +1,9 @@ | ||||
| { | ||||
|   "name": "foreachasync", | ||||
|   "version": "5.1.3", | ||||
|   "version": "5.1.2", | ||||
|   "description": "A node- and browser-ready async (now with promises) counterpart of Array.prototype.forEach", | ||||
|   "homepage": "https://git.coolaj86.com/coolaj86/foreachasync.js", | ||||
|   "main": "foreachasync.js", | ||||
|   "files": [], | ||||
|   "directories": { | ||||
|     "test": "test" | ||||
|   }, | ||||
| @ -13,7 +12,7 @@ | ||||
|   }, | ||||
|   "repository": { | ||||
|     "type": "git", | ||||
|     "url": "https://git.coolaj86.com/coolaj86/foreachasync.js.git" | ||||
|     "url": "git://git.coolaj86.com/coolaj86/foreachasync.js.git" | ||||
|   }, | ||||
|   "keywords": [ | ||||
|     "futuresjs", | ||||
| @ -26,11 +25,11 @@ | ||||
|     "promises", | ||||
|     "each" | ||||
|   ], | ||||
|   "trulyOptionalDependencies": { | ||||
|   "optionalDependencies": { | ||||
|     "bluebird": "^3.5.1" | ||||
|   }, | ||||
|   "author": "AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/)", | ||||
|   "license": "(MIT OR Apache-2.0)", | ||||
|   "license": "(MIT or Apache-2.0)", | ||||
|   "bugs": { | ||||
|     "url": "https://git.coolaj86.com/coolaj86/foreachasync.js/issues" | ||||
|   }, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user