From 976225da4b3b31fc899879a6ed19484578604af9 Mon Sep 17 00:00:00 2001 From: Kamil Ejsymont Date: Mon, 2 Jan 2017 12:45:03 +0100 Subject: [PATCH] Use "var" instead of "let" --- index.js | 2 +- lib/replace-version-string.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c94a169..5a8ac14 100644 --- a/index.js +++ b/index.js @@ -91,7 +91,7 @@ module.exports = { var trees = []; if (tree) { - let versionTree = new RecastFilter(tree, null, replaceVersionString, { + var versionTree = new RecastFilter(tree, null, replaceVersionString, { version: d3Version('d3', this.parent.nodeModulesPath) }); diff --git a/lib/replace-version-string.js b/lib/replace-version-string.js index 479499c..57b8a83 100644 --- a/lib/replace-version-string.js +++ b/lib/replace-version-string.js @@ -5,7 +5,7 @@ var types = recast.types; var b = recast.types.builders; module.exports = function replaceVersionString(code, packageName, options) { - let version = options.version; + var version = options.version; var ast = recast.parse(code); types.visit(ast, {