This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
exports.handler = async (event, context, callback) => { | |
const result = { | |
body: null, | |
isBase64Encoded: false, | |
statusCode: 200 | |
}; | |
console.log('Received a render request event'); | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "node-canvas-lambda-container", | |
"version": "1.0.0", | |
"dependencies": { | |
"canvas": "^2.8.0" | |
}, | |
"license": "MIT" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const inputStr = ... ; // a base64 encoded string | |
if (inputStr) { | |
const decodedStr = Buffer.from(inputStr, 'base64').toString('utf8'); | |
const result = JSON.parse(decodedStr); | |
if (result) { | |
// ... | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ruleset comparisonMethod="maven" | |
xmlns="https://www.mojohaus.org/VERSIONS/RULE/2.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="https://www.mojohaus.org/VERSIONS/RULE/2.1.0 https://www.mojohaus.org/versions/versions-model/xsd/rule-2.1.0.xsd"> | |
<ignoreVersions> | |
<ignoreVersion type="regex">.*[-_\.](alpha|Alpha|ALPHA|b|beta|Beta|BETA|rc|RC|CR|M|EA|AM)[-_\.]?\d*</ignoreVersion> | |
</ignoreVersions> | |
<rules> | |
<rule groupId="com.diffplug.spotless" artifactId="spotless-maven-plugin" comparisonMethod="maven"> | |
<ignoreVersions> | |
<ignoreVersion type="range">[2.31.0,)</ignoreVersion> |
OlderNewer