removed left-pad module

This commit is contained in:
Dinesh Nagar 2019-05-15 11:36:51 +05:30
parent 27df445fc2
commit 9064cb33a1
3 changed files with 1455 additions and 2 deletions

View file

@ -46,7 +46,8 @@ const request = {
}; };
function _moneyToString (m) { function _moneyToString (m) {
return `${m.units}.${leftPad(m.nanos, 9, '0')} ${m.currency_code}`; m = m.toString();
return `${m.units}.${m.nanos.padStart(9,'0')} ${m.currency_code}`;
} }
client.getSupportedCurrencies({}, (err, response) => { client.getSupportedCurrencies({}, (err, response) => {

File diff suppressed because it is too large Load diff

View file

@ -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"