Skip to content

Commit

Permalink
update docs and clean up (#30)
Browse files Browse the repository at this point in the history
* update pixlet-github and readme versions

* fix lint errors and revert base64 encoding refactor
  • Loading branch information
btjones authored Oct 7, 2023
1 parent 9bb87e8 commit 35701bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions functions/axilla/axilla.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const RESERVERD_PARAMS = [
'format',
'output',
'applet',
'version'
'version',
]

const FORMATS = {
Expand Down Expand Up @@ -131,14 +131,15 @@ exports.handler = async (event) => {
}

// base64 encode the generated image
const imageBase64 = await fs.readFile(outputPath, 'base64', function(err, data){
if (err) {
let imageBase64
try {
imageBase64 = await fs.readFile(outputPath, 'base64')
} catch (error) {
return {
statusCode: 500,
body: `Error: Could not read output file. ${error.message} ${outputPath}`,
}
}
});

// delete the temp input and output files
try { await fs.unlink(INPUT_APPLET_PATH) } catch (error) { /* noop */ }
Expand Down
4 changes: 2 additions & 2 deletions functions/axilla/pixlet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## `pixlet-aws`

Version: ~0.18.1 (commit: [5282d88](https://github.com/tidbyt/pixlet/commit/5282d88a7127408329b549018cadb3d1d41c2209))
Version: ~0.28.4 (commit: [c0ae433](https://github.com/tidbyt/pixlet/commit/6855af9b4364362130e4da5a13d3552d4dfb1b1d))

`pixlet-aws` is [built from source](https://github.com/tidbyt/pixlet/blob/main/docs/BUILD.md) using an Amazon EC2 instance.

## `pixlet-github`

Version: 0.18.1 ([official release](https://github.com/tidbyt/pixlet/releases))
Version: 0.28.4 ([official release](https://github.com/tidbyt/pixlet/releases))

`pixlet-github` uses an [official pixlet linux_amd64 release](https://github.com/tidbyt/pixlet/releases).

Expand Down
Binary file modified functions/axilla/pixlet/pixlet-github
Binary file not shown.

0 comments on commit 35701bb

Please sign in to comment.