Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lambda-leak

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-leak - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

6

CHANGELOG.md
# Change Log
## 2.0.0 (2017-04-24)
Changed:
* Updated to work with Node 6.10.x
## 1.0.0 (2016-05-08)
Initial Release

33

lib/index.js

@@ -8,2 +8,7 @@ 'use strict';

function isTimerValid( handle ) {
return (handle._list._idlePrev !== handle._list );
}
function isHandleValid( handle ) {

@@ -16,7 +21,3 @@

if( (handle._idleNext === handle) && (handle._idlePrev === handle) ) {
// handler has fired and just remains in queue
valid = false;
}
valid = isTimerValid( handle );
}

@@ -44,2 +45,11 @@ else if( handle.destroyed === true ) {

}
//
// function extract() {
//
// let handles = getActiveHandles();
//
// for( state )
// // save a copy of the current handles
// this.savedState = getActiveHandles().slice( 0 );
// }

@@ -60,9 +70,14 @@ class ActiveHandleState {

getActiveHandles().forEach( function( handle ) {
let handles = getActiveHandles();
if( !containsState( savedState, handle ) && isHandleValid( handle ) ) {
for( let handle of handles ) {
difference.push( handle );
if( !containsState( savedState, handle ) ) {
if( isHandleValid( handle ) ) {
difference.push( handle );
}
}
});
}

@@ -69,0 +84,0 @@ return difference;

{
"name": "lambda-leak",
"version": "1.0.0",
"description": "AWS Lambda Resource Leak Detector",
"main": "lib/index.js",
"keywords": [
"AWS",
"Lambda",
"leak",
"detector",
"unit test",
"unit testing",
"integration test",
"integration testing",
"serverless"
],
"engines": {
"node": ">=4.3.2"
},
"repository": {
"type": "git",
"url": "https://github.com/vandium-io/lambda-leak.git"
},
"scripts": {
"test": "./node_modules/.bin/mocha --recursive",
"coverage": "./node_modules/.bin/istanbul cover node_modules/mocha/bin/_mocha -- -R spec --recursive"
},
"author": "Vandium Software Inc.",
"license": "BSD-3-Clause",
"devDependencies": {
"chai": "^3.5.0",
"istanbul": "^0.4.2",
"mocha": "^2.4.5",
"sinon": "^1.17.3"
},
"dependencies": {
}
"name": "lambda-leak",
"version": "2.0.0",
"description": "AWS Lambda Resource Leak Detector",
"main": "lib/index.js",
"keywords": [
"AWS",
"Lambda",
"leak",
"detector",
"unit test",
"unit testing",
"integration test",
"integration testing",
"serverless"
],
"engines": {
"node": ">=6.10.0"
},
"repository": {
"type": "git",
"url": "https://github.com/vandium-io/lambda-leak.git"
},
"scripts": {
"test": "./node_modules/.bin/mocha --recursive",
"coverage": "./node_modules/.bin/istanbul cover node_modules/mocha/bin/_mocha -- -R spec --recursive"
},
"author": "Vandium Software Inc.",
"license": "BSD-3-Clause",
"devDependencies": {
"chai": "^3.5.0",
"istanbul": "^0.4.5",
"mocha": "^3.3.0",
"sinon": "^2.1.0"
},
"dependencies": {}
}

@@ -12,3 +12,3 @@ [![Build Status](https://travis-ci.org/vandium-io/lambda-leak.svg?branch=master)](https://travis-ci.org/vandium-io/lambda-leak)

* Works with mocha's timeout system
* Works with Node 4.3.2+
* Works with Node 6.10.x

@@ -15,0 +15,0 @@ ## Installation

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc