diff options
| author | Brock Fanning <[email protected]> | 2021-04-07 00:01:30 -0400 |
|---|---|---|
| committer | Brock Fanning <[email protected]> | 2021-04-07 00:03:00 -0400 |
| commit | 53e4c48fbff25370b726b3df6a37c0a99a189730 (patch) | |
| tree | 376d4b5410d80b72aeeebb21a03154fa5365967a | |
| parent | c9764abd20a198e318367952a94587eda1bac645 (diff) | |
| download | faker-53e4c48fbff25370b726b3df6a37c0a99a189730.tar.xz faker-53e4c48fbff25370b726b3df6a37c0a99a189730.zip | |
Avoid ES6 syntax for now
| -rw-r--r-- | build/gulp-tasks/package.js | 4 | ||||
| -rw-r--r-- | lib/finance.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/build/gulp-tasks/package.js b/build/gulp-tasks/package.js index c82912c1..0437c3f6 100644 --- a/build/gulp-tasks/package.js +++ b/build/gulp-tasks/package.js @@ -1,12 +1,12 @@ // generates a new faker package based on a list of locales -let locale = 'en'; +var locale = 'en'; /* Here you could override the default directory list of all, and replace it with a list of custom locales like: - let localeList = ['en', 'en_AU', 'de', 'jp', 'ar']; + var localeList = ['en', 'en_AU', 'de', 'jp', 'ar']; */ diff --git a/lib/finance.js b/lib/finance.js index f6818e33..e04729b1 100644 --- a/lib/finance.js +++ b/lib/finance.js @@ -111,7 +111,7 @@ var Finance = function (faker) { symbol = symbol || ''; const randValue = faker.datatype.number({ max: max, min: min, precision: Math.pow(10, -dec) }); - let formattedString; + var formattedString; if(autoFormat) { formattedString = randValue.toLocaleString(undefined, {minimumFractionDigits: dec}); } |
