lightning-pool 4.8.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/pool.js
CHANGED
|
@@ -36,14 +36,14 @@ class Pool extends events_1.EventEmitter {
|
|
|
36
36
|
throw new TypeError('factory.reset can be a function');
|
|
37
37
|
}
|
|
38
38
|
const opts = (this._options = new pool_options_js_1.PoolOptions(this));
|
|
39
|
+
if (config)
|
|
40
|
+
this.options.assign(config);
|
|
39
41
|
opts.on('change', (prop, val) => {
|
|
40
42
|
if (prop === 'houseKeepInterval')
|
|
41
43
|
this._setHouseKeep(val);
|
|
42
44
|
if (prop === 'min' || prop === 'minIdle')
|
|
43
45
|
this._ensureMin();
|
|
44
46
|
});
|
|
45
|
-
if (config)
|
|
46
|
-
this.options.assign(config);
|
|
47
47
|
this._factory = factory;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["../../src/abort-error.ts","../../src/definitions.ts","../../src/index.ts","../../src/pool-options.ts","../../src/pool-request.ts","../../src/pool.ts","../../src/resource-item.ts"],"version":"5.6.3"}
|
package/esm/pool.js
CHANGED
|
@@ -32,14 +32,14 @@ export class Pool extends EventEmitter {
|
|
|
32
32
|
throw new TypeError('factory.reset can be a function');
|
|
33
33
|
}
|
|
34
34
|
const opts = (this._options = new PoolOptions(this));
|
|
35
|
+
if (config)
|
|
36
|
+
this.options.assign(config);
|
|
35
37
|
opts.on('change', (prop, val) => {
|
|
36
38
|
if (prop === 'houseKeepInterval')
|
|
37
39
|
this._setHouseKeep(val);
|
|
38
40
|
if (prop === 'min' || prop === 'minIdle')
|
|
39
41
|
this._ensureMin();
|
|
40
42
|
});
|
|
41
|
-
if (config)
|
|
42
|
-
this.options.assign(config);
|
|
43
43
|
this._factory = factory;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["../../src/abort-error.ts","../../src/definitions.ts","../../src/index.ts","../../src/pool-options.ts","../../src/pool-request.ts","../../src/pool.ts","../../src/resource-item.ts"],"version":"5.6.3"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lightning-pool",
|
|
3
3
|
"description": "Fastest generic Pool written with TypeScript",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.9.0",
|
|
5
5
|
"author": "Panates Ltd.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "panates/lightning-pool",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"doublylinked": "^2.5.4",
|
|
10
10
|
"putil-promisify": "^1.10.1",
|
|
11
|
-
"tslib": "^2.
|
|
11
|
+
"tslib": "^2.7.0"
|
|
12
12
|
},
|
|
13
13
|
"type": "module",
|
|
14
14
|
"exports": {
|