From 676159ba626199a8d6742dd00e0646adb8d8372a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 5 Jan 2015 23:20:29 -0700 Subject: [PATCH] typo fix for native Promise implementation --- forEachAsync.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/forEachAsync.js b/forEachAsync.js index b7cdaaa..ff99c24 100644 --- a/forEachAsync.js +++ b/forEachAsync.js @@ -65,7 +65,7 @@ try { exp.forEachAsync = create(require('bluebird')); } catch(e) { - if ('undefined' !== typeof PromiseA) { + if ('undefined' !== typeof Promise) { exp.forEachAsync = create(Promise); } else { try { diff --git a/package.json b/package.json index f9cce9d..acaae91 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "foreachasync", - "version": "5.0.2", + "version": "5.0.3", "description": "A node- and browser-ready async (now with promises) counterpart of Array.prototype.forEach", "homepage": "https://github.com/FuturesJS/forEachAsync", "main": "forEachAsync.js",