removed left-pad module (#218)
This commit is contained in:
parent
27df445fc2
commit
ce03eb3c36
2 changed files with 1 additions and 2 deletions
|
@ -46,7 +46,7 @@ const request = {
|
||||||
};
|
};
|
||||||
|
|
||||||
function _moneyToString (m) {
|
function _moneyToString (m) {
|
||||||
return `${m.units}.${leftPad(m.nanos, 9, '0')} ${m.currency_code}`;
|
return `${m.units}.${m.nanos.toString().padStart(9,'0')} ${m.currency_code}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
client.getSupportedCurrencies({}, (err, response) => {
|
client.getSupportedCurrencies({}, (err, response) => {
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
"async": "^1.5.2",
|
"async": "^1.5.2",
|
||||||
"google-protobuf": "^3.0.0",
|
"google-protobuf": "^3.0.0",
|
||||||
"grpc": "^1.0.0",
|
"grpc": "^1.0.0",
|
||||||
"left-pad": "^1.3.0",
|
|
||||||
"pino": "^5.6.2",
|
"pino": "^5.6.2",
|
||||||
"request": "^2.87.0",
|
"request": "^2.87.0",
|
||||||
"xml2js": "^0.4.19"
|
"xml2js": "^0.4.19"
|
||||||
|
|
Loading…
Reference in a new issue