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

metacom

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metacom - npm Package Compare versions

Comparing version 1.5.2 to 1.5.3

9

CHANGELOG.md

@@ -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();

3

lib/server.js

@@ -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",

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