Comparing version 1.3.0 to 1.3.1
@@ -5,2 +5,7 @@ # Changelog | ||
## [1.3.1][] - 2021-02-09 | ||
- Revert to lock-file version 1 | ||
- Fix memory leak: remove sessions from collection by token | ||
## [1.3.0][] - 2021-02-07 | ||
@@ -37,3 +42,4 @@ | ||
[unreleased]: https://github.com/metarhia/metacom/compare/v1.3.0...HEAD | ||
[unreleased]: https://github.com/metarhia/metacom/compare/v1.3.1...HEAD | ||
[1.3.1]: https://github.com/metarhia/metacom/compare/v1.3.0...v1.3.1 | ||
[1.3.0]: https://github.com/metarhia/metacom/compare/v1.2.0...v1.3.0 | ||
@@ -40,0 +46,0 @@ [1.2.0]: https://github.com/metarhia/metacom/compare/v1.1.0...v1.2.0 |
@@ -264,4 +264,10 @@ 'use strict'; | ||
} | ||
destroy() { | ||
if (!this.session) return; | ||
const token = this.session.token; | ||
sessions.delete(token); | ||
} | ||
} | ||
module.exports = { Channel, channels }; |
@@ -66,2 +66,3 @@ 'use strict'; | ||
channel.error(504); | ||
channel.destroy(); | ||
}, LONG_RESPONSE); | ||
@@ -74,2 +75,3 @@ | ||
channels.delete(client); | ||
channel.destroy(); | ||
}); | ||
@@ -126,2 +128,3 @@ | ||
} | ||
channel.destroy(); | ||
} | ||
@@ -128,0 +131,0 @@ } |
{ | ||
"name": "metacom", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Communication protocol for Metarhia stack with rpc, events, binary streams, memory and db access", |
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
28911
761