From 3c43933a30856ad39393db26f38404449fc9347d Mon Sep 17 00:00:00 2001 From: Shannon Lal Date: Tue, 19 Dec 2017 20:06:42 -0500 Subject: [PATCH] Added fix for removing let dependency --- CHANGELOG.md | 3 +++ index.js | 4 ++-- package.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index debf840..cb9eef8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.0.1] - 2017-12-19 +### Added +- Removed dependency on let to fix issue #55 @shannonlal ## [1.0.0] - 2017-12-04 ### Added diff --git a/index.js b/index.js index 4a4a76c..9a18650 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ module.exports = { confirm: function(options) { var prompted = false; - let chainFunction; + var chainFunction; return es.map(function(file, cb) { if (prompted === true) { @@ -57,7 +57,7 @@ module.exports = { return new Promise( (resolve,reject)=>{ inq.prompt([options]).then( resp =>{ - let opts = chainFunction( options, resp ); + var opts = chainFunction( options, resp ); if( typeof opts === 'undefined'){ return resolve('response'); }else{ diff --git a/package.json b/package.json index d71a873..14b2510 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gulp-prompt", - "version": "1.0.0", + "version": "1.0.1", "description": "Add interactive console prompts to gulp", "main": "index.js", "scripts": {