Comparing version 3.0.0-alpha.5 to 3.0.0-alpha.6
@@ -5,2 +5,7 @@ # Changelog | ||
## [3.0.0-alpha.6][] - 2023-02-13 | ||
- Fix `httpCall` for `Client` | ||
- Fix `close` event call for `Client` instance on `Channel` destroy | ||
## [3.0.0-alpha.5][] - 2022-12-23 | ||
@@ -232,3 +237,4 @@ | ||
[unreleased]: https://github.com/metarhia/metacom/compare/v3.0.0-alpha.5...HEAD | ||
[unreleased]: https://github.com/metarhia/metacom/compare/v3.0.0-alpha.6...HEAD | ||
[3.0.0-alpha.6]: https://github.com/metarhia/metacom/compare/v3.0.0-alpha.5...v3.0.0-alpha.6 | ||
[3.0.0-alpha.5]: https://github.com/metarhia/metacom/compare/v3.0.0-alpha.4...v3.0.0-alpha.5 | ||
@@ -235,0 +241,0 @@ [3.0.0-alpha.4]: https://github.com/metarhia/metacom/compare/v3.0.0-alpha.3...v3.0.0-alpha.4 |
@@ -272,3 +272,3 @@ 'use strict'; | ||
destroy() { | ||
this.emit('close'); | ||
this.client.emit('close'); | ||
if (!this.session) return; | ||
@@ -275,0 +275,0 @@ sessions.delete(this.session.token); |
@@ -177,3 +177,3 @@ 'use strict'; | ||
const url = `${protocol}://${dest.host}/api`; | ||
const res = metautil.fetch(url, { | ||
const res = await metautil.fetch(url, { | ||
method: 'POST', | ||
@@ -180,0 +180,0 @@ headers: { 'Content-Type': 'application/json' }, |
@@ -104,9 +104,7 @@ 'use strict'; | ||
async stop() { | ||
if (this.bytesRead === this.size) { | ||
this.streaming = false; | ||
this.emit(PUSH_EVENT, null); | ||
} else { | ||
while (this.bytesRead !== this.size) { | ||
await this.waitEvent(PULL_EVENT); | ||
await this.stop(); | ||
} | ||
this.streaming = false; | ||
this.emit(PUSH_EVENT, null); | ||
} | ||
@@ -113,0 +111,0 @@ |
{ | ||
"name": "metacom", | ||
"version": "3.0.0-alpha.5", | ||
"version": "3.0.0-alpha.6", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -57,16 +57,16 @@ "description": "Communication protocol for Metarhia stack with rpc, events, binary streams, memory and db access", | ||
"metautil": "^3.6.0", | ||
"ws": "^8.11.0" | ||
"ws": "^8.12.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.11.17", | ||
"@types/ws": "^8.5.3", | ||
"eslint": "^8.30.0", | ||
"@types/node": "^18.13.0", | ||
"@types/ws": "^8.5.4", | ||
"eslint": "^8.34.0", | ||
"eslint-config-metarhia": "^8.1.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"metatests": "^0.8.2", | ||
"prettier": "^2.8.1", | ||
"typescript": "^4.9.4" | ||
"prettier": "^2.8.4", | ||
"typescript": "^4.9.5" | ||
} | ||
} |
@@ -111,4 +111,4 @@ # Metacom Communication Protocol for Metarhia | ||
Copyright (c) 2018-2022 [Metarhia contributors](https://github.com/metarhia/metacom/graphs/contributors). | ||
Copyright (c) 2018-2023 [Metarhia contributors](https://github.com/metarhia/metacom/graphs/contributors). | ||
Metacom is [MIT licensed](./LICENSE).\ | ||
Metacom is a part of [Metarhia](https://github.com/metarhia) technology stack. |
Sorry, the diff of this file is not supported yet
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
63344
1561
Updatedws@^8.12.0