diff --git a/dist/index.js b/dist/index.js index 349d5e9..81ed5d9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -10321,9 +10321,12 @@ const restartOne = function (service, options) { }; exports.restartOne = restartOne; const logs = function (services, options = {}) { - let args = Array.isArray(services) ? services : [services]; + const args = Array.isArray(services) ? services : [services]; if (options.follow) { - args = ['--follow', ...args]; + args.unshift('--follow'); + } + if (options.timestamps) { + args.unshift('--timestamps'); } return (0, exports.execCompose)('logs', args, options); }; diff --git a/dist/post.js b/dist/post.js index 75facb0..f5070d2 100644 --- a/dist/post.js +++ b/dist/post.js @@ -3610,9 +3610,12 @@ const restartOne = function (service, options) { }; exports.restartOne = restartOne; const logs = function (services, options = {}) { - let args = Array.isArray(services) ? services : [services]; + const args = Array.isArray(services) ? services : [services]; if (options.follow) { - args = ['--follow', ...args]; + args.unshift('--follow'); + } + if (options.timestamps) { + args.unshift('--timestamps'); } return (0, exports.execCompose)('logs', args, options); };