
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
lambda-leak
Advanced tools
Simple utility to detect resource leaks in AWS Lambda handlers using Node.js that can lead to expensive charges lengthy operations or failures from timeouts.
Install via npm.
npm install lambda-leak
The lambda-leak
detector should be used within a unit testing environment, like mocha
, to capture and diagnose potential resource leaks. The
following example demonstrates how to use the leak detector inside a unit test.
'use strict';
const lambdaLeak = require( 'lambda-leak' );
const handler = require( 'my-lambda-handler-module' );
describe( 'myModule', function() {
describe( 'handler', function() {
it( 'detect leak in my handler', function( done ) {
const state = lambdaLeak.capture();
handler( {/* event*/, { /* context */}, function( err, result ) {
if( err ) {
return done( err );
}
let difference = state..getDifferenceInHandles();
if( difference.length > 0 ) {
console.log( 'leaks', difference );
// leaks detected
done( new Error( 'leaks detected' ) );
}
done();
});
});
});
});
lambda-leak
lambda-tester
- reduce the time and effort to test AWS Lambda handlers.We'd love to get feedback on how you're using lambda-tester and things we could add to make this tool better. Feel free to contact us at feedback@vandium.io
2.0.0 (2017-04-24)
Changed:
FAQs
AWS Lambda Resource Leak Detector
The npm package lambda-leak receives a total of 41,920 weekly downloads. As such, lambda-leak popularity was classified as popular.
We found that lambda-leak 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.