
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
serverless-esbuild-layers
Advanced tools
[](https://codeclimate.com/github/beforeyoubid/serverless-esbuild-layers/test_coverage) [;
module.exports = [nodeExternalsPlugin()];
Once the plugin is configured in your serverless file, you need to add Layer definitions to your serverless file:
layers:
lib:
path: '.serverless'
name: my-modules
description: node_modules
compatibleRuntimes:
- nodejs14.x
Then you can reference the relevant layers in each function (the ref should match NameLambdaLayer
where name is the key of your layer with the first character uppercase)
functions:
test:
handler: handler.default
layers:
- { Ref: LibLambdaLayer }
If you have multiple functions, it's recommended to add different layers depending on node module overlap. This library will identify which modules are needed by all the functions attached to each layer.
This library can be configured by adding options into your serverless file:
custom:
esbuild-layers:
packager: 'auto' # can be specified as 'npm' | 'yarn' | 'pnpm';
forceExclude:
- some-library
forceInclude:
- some-other-library
If using a monorepo, you may need to specify a different package.json file. You can do so by using the packageJsonPath
config variable like so:
custom:
esbuild-layers:
packageJsonPath: ../
FAQs
[](https://codeclimate.com/github/beforeyoubid/serverless-esbuild-layers/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/e5f4215f1f3f63aad0e
The npm package serverless-esbuild-layers receives a total of 65 weekly downloads. As such, serverless-esbuild-layers popularity was classified as not popular.
We found that serverless-esbuild-layers 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.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.