Comparing version 1.5.2 to 1.5.3
@@ -5,2 +5,8 @@ # Changelog | ||
## [1.5.3][] - 2021-02-28 | ||
- Marshal timeout error to the client side | ||
- Get user ip from Client class: `context.client.ip` | ||
- Change queue configuration: https://github.com/metarhia/impress/issues/1484 | ||
## [1.5.2][] - 2021-02-23 | ||
@@ -67,3 +73,4 @@ | ||
[unreleased]: https://github.com/metarhia/metacom/compare/v1.5.2...HEAD | ||
[unreleased]: https://github.com/metarhia/metacom/compare/v1.5.3...HEAD | ||
[1.5.3]: https://github.com/metarhia/metacom/compare/v1.5.2...v1.5.3 | ||
[1.5.2]: https://github.com/metarhia/metacom/compare/v1.5.1...v1.5.2 | ||
@@ -70,0 +77,0 @@ [1.5.1]: https://github.com/metarhia/metacom/compare/v1.5.0...v1.5.1 |
@@ -63,2 +63,6 @@ 'use strict'; | ||
get ip() { | ||
return channels.get(this).ip; | ||
} | ||
on(name, callback) { | ||
@@ -217,3 +221,4 @@ if (name !== 'close') return; | ||
} catch (err) { | ||
this.error(500, err, callId); | ||
const code = err.message === 'Timeout reached' ? 408 : 500; | ||
this.error(code, err, callId); | ||
} finally { | ||
@@ -220,0 +225,0 @@ proc.leave(); |
@@ -29,3 +29,4 @@ 'use strict'; | ||
this.application = application; | ||
const { host, balancer, protocol, ports, concurrency, queue } = config; | ||
const { host, balancer, protocol, ports, queue } = config; | ||
const concurrency = queue.concurrency || config.concurrency; | ||
this.semaphore = new Semaphore(concurrency, queue.size, queue.timeout); | ||
@@ -32,0 +33,0 @@ const { threadId } = worker; |
{ | ||
"name": "metacom", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -57,5 +57,5 @@ "description": "Communication protocol for Metarhia stack with rpc, events, binary streams, memory and db access", | ||
"devDependencies": { | ||
"eslint": "^7.20.0", | ||
"eslint": "^7.21.0", | ||
"eslint-config-metarhia": "^7.0.1", | ||
"eslint-config-prettier": "^8.0.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
@@ -62,0 +62,0 @@ "eslint-plugin-prettier": "^3.3.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29394
732