Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
canvas-aws-prebuilt
Advanced tools
##Adapted version of node-canvas to use with AWS and Serverless.
node-canvas v1.6.7
. Support of v2
may be added later.Download the package:
npm install --save canvas-aws-prebuilt
Next you'll need to copy the shared libraries from the package directory into the root of your Lambda package.
You'll need these:
canvas.node
module: {
plugins: [
new CopyWebpackPlugin([
{
from: 'node_modules/canvas-aws-prebuilt/lib',
to: ''
}
])
],
}
Copy all of the node_modules/canvas-aws-prebuilt/lib
libs into the root folder of your Lambda package.
Replace require('canvas')
with require('canvas-aws-prebuilt')
.
See node-canvas API.
No, you're probably looking for node-canvas-prebuilt.
I spent some time (a week, actually) trying to deploy a Serverless application with node-canvas (and succeeded), so I decided to make life easier for those who try to do the same. The main problem I came across is that the project used serverless-webpack with externals enabled, which prevented me from simply copying the pre-built module into node_modules.
MIT
FAQs
Adapted version of node-canvas to use with AWS and Serverless
The npm package canvas-aws-prebuilt receives a total of 3 weekly downloads. As such, canvas-aws-prebuilt popularity was classified as not popular.
We found that canvas-aws-prebuilt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.