Comparing version 3.0.2 to 3.0.3
@@ -82,3 +82,3 @@ 'use strict'; | ||
if (name === 'close') return void super.emit(name, data); | ||
this.#transport.sendEvent(name, data); | ||
this.sendEvent(name, data); | ||
} | ||
@@ -88,3 +88,3 @@ | ||
const packet = { type: 'event', name, data }; | ||
if (!this.connection) { | ||
if (!this.#transport.connection) { | ||
throw new Error(`Can't send metacom event to http transport`); | ||
@@ -91,0 +91,0 @@ } |
{ | ||
"name": "metacom", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -60,3 +60,3 @@ "description": "Communication protocol for Metarhia stack with rpc, events, binary streams, memory and db access", | ||
"devDependencies": { | ||
"@types/node": "^20.5.0", | ||
"@types/node": "^20.5.1", | ||
"@types/ws": "^8.5.5", | ||
@@ -66,8 +66,8 @@ "eslint": "^8.47.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-import": "^2.28.0", | ||
"eslint-plugin-import": "^2.28.1", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"metatests": "^0.8.2", | ||
"prettier": "^3.0.1", | ||
"prettier": "^3.0.2", | ||
"typescript": "^5.1.6" | ||
} | ||
} |
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