UNPKG

@shelf/aws-lambda-libreoffice

Version:

Utility to work with Docker version of LibreOffice in Lambda

15 lines (14 loc) 426 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getConvertedFilePath = getConvertedFilePath; function getConvertedFilePath(logs) { try { return logs.match(/\/tmp\/.+->\s(\/tmp\/.+) using/)[1]; } catch (e) { const ErrorWithExtendedMessage = new Error(e); ErrorWithExtendedMessage.message += `;\tTried to parse string: "${logs}"`; throw ErrorWithExtendedMessage; } }