Skip to content

Commit cb19601

Browse files
committed
Removed pad-left
1 parent 7bea5e2 commit cb19601

File tree

3 files changed

+1
-36
lines changed

3 files changed

+1
-36
lines changed

lib/save.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import dateformat from 'dateformat';
2-
import padLeft from 'pad-left';
32
import { getClientAPI } from './util';
43

54
const noop = () => {};
@@ -154,7 +153,7 @@ export function resolveFilename (opt = {}) {
154153
} else {
155154
totalFrames = Math.max(10000, opt.frame);
156155
}
157-
frame = padLeft(String(opt.frame), String(totalFrames).length, '0');
156+
frame = String(opt.frame).padStart(String(totalFrames).length, '0');
158157
}
159158

160159
const layerStr = isFinite(opt.totalLayers) && isFinite(opt.layer) && opt.totalLayers > 1 ? `${opt.layer}` : '';

package-lock.json

Lines changed: 0 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"is-class": "0.0.5",
1919
"is-dom": "^1.0.9",
2020
"is-promise": "^2.1.0",
21-
"pad-left": "^2.1.0",
2221
"right-now": "^1.0.0"
2322
},
2423
"devDependencies": {

0 commit comments

Comments
 (0)