Skip to content

Commit 0a349bb

Browse files
committed
Merge branch 'master' of github.com:shelfio/aws-lambda-libreoffice
2 parents 0932107 + d0c899b commit 0a349bb

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shelf/aws-lambda-libreoffice",
3-
"version": "8.0.0",
3+
"version": "8.0.4",
44
"description": "Utility to work with Docker version of LibreOffice in Lambda",
55
"keywords": [
66
"aws lambda",
@@ -15,15 +15,11 @@
1515
"email": "vlad@shelf.io",
1616
"url": "https://shelf.io"
1717
},
18+
"sideEffects": true,
1819
"type": "module",
19-
"main": "lib/index.js",
20+
"exports": "./lib/index.js",
21+
"module": "./lib/index.js",
2022
"types": "lib/index.d.ts",
21-
"exports": {
22-
".": {
23-
"import": "./lib/index.js",
24-
"types": "./lib/index.d.ts"
25-
}
26-
},
2723
"files": [
2824
"lib"
2925
],

src/convert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function convertTo(filename: string, format: string): Promise<strin
4747

4848
if (!logsStr.includes('->')) {
4949
throw new Error(`Cannot generate PDF preview for .${path.extname(outputFilename)} file`, {
50-
cause: err || logs,
50+
cause: `Error:${err.toString()}\nLogs: ${logsStr}`,
5151
});
5252
}
5353

0 commit comments

Comments
 (0)