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

lightning-pool

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightning-pool - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

17

dist/Pool.js

@@ -191,4 +191,4 @@ "use strict";

this._itemDestroy(item, callback);
else
callback && callback();
else if (callback)
callback();
}

@@ -295,3 +295,3 @@ finally {

requestTime: request ? request.created : Date.now(),
tries: tries,
tries,
maxRetries: this.options.acquireMaxRetries

@@ -337,3 +337,2 @@ });

}
;
_houseKeep() {

@@ -415,3 +414,4 @@ const isClosing = this._state === definitions_1.PoolState.CLOSING;

this.emit('return', item.resource);
callback && callback();
if (callback)
callback();
// noinspection JSAccessibilityCheck

@@ -442,3 +442,4 @@ this._processNextRequest();

item.destroyed = true;
callback && callback();
if (callback)
callback();
};

@@ -459,6 +460,8 @@ try {

const o = this._factory.validate(item.resource);
// @ts-ignore
putil_promisify_1.default.await(o, callback);
}
catch (e) {
callback && callback(e);
if (callback)
callback(e);
}

@@ -465,0 +468,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PoolRequest = void 0;
function noop() { }
// eslint-disable-next-line @typescript-eslint/no-empty-function
function noop() {
}
class PoolRequest {

@@ -6,0 +8,0 @@ constructor(pool, callback) {

{
"name": "lightning-pool",
"description": "Fastest generic Pool written with TypeScript",
"version": "3.1.1",
"version": "3.1.2",
"author": "Panates Ltd.",

@@ -23,7 +23,7 @@ "contributors": [

"@types/mocha": "^8.2.0",
"@types/node": "^14.14.11",
"@types/node": "^15.6.1",
"@typescript-eslint/eslint-plugin": "^4.9.1",
"@typescript-eslint/parser": "^4.9.1",
"babel-eslint": "^10.1.0",
"dotenv": "^8.2.0",
"dotenv": "^10.0.0",
"eslint": "^7.15.0",

@@ -35,5 +35,5 @@ "eslint-config-google": "^0.14.0",

"ts-cleanup": "^0.2.2",
"ts-loader": "^8.0.11",
"ts-loader": "^9.2.2",
"ts-mocha": "^8.0.0",
"ts-node": "^9.1.1",
"ts-node": "^10.0.0",
"tsconfig-paths": "^3.9.0",

@@ -67,5 +67,5 @@ "typescript": "^4.1.2"

"compile": "tsc -b tsconfig.json",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"lint": "eslint src/** --no-error-on-unmatched-pattern",
"travis-cover": "nyc --reporter lcovonly npm run test"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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