From e534d3a4b3e0f1e0c441dfedcf80a5894e897296 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 5 Apr 2019 12:53:27 -0600 Subject: [PATCH] v5.1.3: remove deps, update link --- README.md | 2 +- foreachasync.js | 12 +----------- package-lock.json | 5 +++++ package.json | 9 +++++---- 4 files changed, 12 insertions(+), 16 deletions(-) create mode 100644 package-lock.json diff --git a/README.md b/README.md index c79271f..1af8d58 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ forEachAsync.js === -| Sponsored by [ppl](https://ppl.family) +| A [Root](https://rootprojects.org) project Analogous to `[].forEach`, but handles items asynchronously with a final callback passed to `then`. diff --git a/foreachasync.js b/foreachasync.js index e546d76..0fe16b4 100644 --- a/foreachasync.js +++ b/foreachasync.js @@ -67,17 +67,7 @@ try { exp.forEachAsync = create(require('bluebird')); } catch(e) { - 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' - ); - } - } + console.warn("This version of node doesn't support promises. Please `npm install --save bluebird` in your project."); } } diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..5ce0891 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "foreachasync", + "version": "5.1.3", + "lockfileVersion": 1 +} diff --git a/package.json b/package.json index 2a0a501..346f3c6 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,10 @@ { "name": "foreachasync", - "version": "5.1.2", + "version": "5.1.3", "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" }, @@ -12,7 +13,7 @@ }, "repository": { "type": "git", - "url": "git://git.coolaj86.com/coolaj86/foreachasync.js.git" + "url": "https://git.coolaj86.com/coolaj86/foreachasync.js.git" }, "keywords": [ "futuresjs", @@ -25,11 +26,11 @@ "promises", "each" ], - "optionalDependencies": { + "trulyOptionalDependencies": { "bluebird": "^3.5.1" }, "author": "AJ ONeal (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" },