Skip to content

Commit 0e72006

Browse files
committed
Don't use native padStart
This allows Node.js 6.x usage Fixes #45
1 parent abe75af commit 0e72006

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
"gulp": "^3.9.1",
9090
"gulp-ejs": "^3.1.3",
9191
"gulp-zip": "^4.1.0",
92+
"lodash": "4.17.10",
9293
"merge-stream": "^1.0.1",
9394
"package-json": "^4.0.1",
9495
"semver": "5.5.0",

utility/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22

3+
const { padStart } = require('lodash');
34
const { formatPackageUpgrades } = require('./ui');
45
const { getLibraries, getUpgradeVersions } = require('./packages');
56

@@ -14,7 +15,7 @@ function formatVersionFolder(version) {
1415

1516
return version
1617
.split('.')
17-
.map(n => n.padStart(versionFolderPadding, '0'))
18+
.map(n => padStart(n, versionFolderPadding, '0'))
1819
.join('_');
1920
}
2021

yarn.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,6 +2745,10 @@ lodash.templatesettings@^3.0.0:
27452745
lodash._reinterpolate "^3.0.0"
27462746
lodash.escape "^3.0.0"
27472747

2748+
lodash@4.17.10:
2749+
version "4.17.10"
2750+
resolved "https://www.myget.org/F/dnn-software-public/npm/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"
2751+
27482752
lodash@^3.3.1:
27492753
version "3.10.1"
27502754
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"

0 commit comments

Comments
 (0)