@matter/nodejs
Advanced tools
Comparing version
@@ -150,3 +150,8 @@ "use strict"; | ||
if (error !== null) { | ||
const netError = "code" in error && error.code === "EHOSTUNREACH" ? (0, import_general.repackErrorAs)(error, import_protocol.RetransmissionLimitReachedError) : (0, import_general.repackErrorAs)(error, import_general.NetworkError); | ||
const netError = "code" in error && error.code === "EHOSTUNREACH" ? (0, import_general.repackErrorAs)( | ||
error, | ||
// TODO - this is a routing error; current error indicates timeout and is defined | ||
// in higher-level module (MessageExchange) | ||
import_protocol.RetransmissionLimitReachedError | ||
) : (0, import_general.repackErrorAs)(error, import_general.NetworkError); | ||
reject(netError); | ||
@@ -153,0 +158,0 @@ return; |
@@ -126,3 +126,8 @@ /** | ||
if (error !== null) { | ||
const netError = "code" in error && error.code === "EHOSTUNREACH" ? repackErrorAs(error, RetransmissionLimitReachedError) : repackErrorAs(error, NetworkError); | ||
const netError = "code" in error && error.code === "EHOSTUNREACH" ? repackErrorAs( | ||
error, | ||
// TODO - this is a routing error; current error indicates timeout and is defined | ||
// in higher-level module (MessageExchange) | ||
RetransmissionLimitReachedError | ||
) : repackErrorAs(error, NetworkError); | ||
reject(netError); | ||
@@ -129,0 +134,0 @@ return; |
{ | ||
"name": "@matter/nodejs", | ||
"version": "0.12.4-alpha.0-20250223-1e0341a1a", | ||
"version": "0.12.4-alpha.0-20250224-46934b522", | ||
"description": "Node.js platform support for matter.js", | ||
@@ -47,14 +47,14 @@ "keywords": [ | ||
"dependencies": { | ||
"@matter/general": "0.12.4-alpha.0-20250223-1e0341a1a", | ||
"@matter/node": "0.12.4-alpha.0-20250223-1e0341a1a", | ||
"@matter/protocol": "0.12.4-alpha.0-20250223-1e0341a1a", | ||
"@matter/types": "0.12.4-alpha.0-20250223-1e0341a1a", | ||
"@matter/general": "0.12.4-alpha.0-20250224-46934b522", | ||
"@matter/node": "0.12.4-alpha.0-20250224-46934b522", | ||
"@matter/protocol": "0.12.4-alpha.0-20250224-46934b522", | ||
"@matter/types": "0.12.4-alpha.0-20250224-46934b522", | ||
"node-localstorage": "^3.0.5" | ||
}, | ||
"devDependencies": { | ||
"@matter/model": "0.12.4-alpha.0-20250223-1e0341a1a", | ||
"@matter/protocol": "0.12.4-alpha.0-20250223-1e0341a1a", | ||
"@matter/tools": "0.12.4-alpha.0-20250223-1e0341a1a", | ||
"@matter/testing": "0.12.4-alpha.0-20250223-1e0341a1a", | ||
"@project-chip/matter.js": "0.12.4-alpha.0-20250223-1e0341a1a", | ||
"@matter/model": "0.12.4-alpha.0-20250224-46934b522", | ||
"@matter/protocol": "0.12.4-alpha.0-20250224-46934b522", | ||
"@matter/tools": "0.12.4-alpha.0-20250224-46934b522", | ||
"@matter/testing": "0.12.4-alpha.0-20250224-46934b522", | ||
"@project-chip/matter.js": "0.12.4-alpha.0-20250224-46934b522", | ||
"@types/bytebuffer": "^5.0.49", | ||
@@ -61,0 +61,0 @@ "@types/node-localstorage": "^1.3.3" |
@@ -141,3 +141,8 @@ /** | ||
"code" in error && error.code === "EHOSTUNREACH" | ||
? repackErrorAs(error, RetransmissionLimitReachedError) | ||
? repackErrorAs( | ||
error, | ||
// TODO - this is a routing error; current error indicates timeout and is defined | ||
// in higher-level module (MessageExchange) | ||
RetransmissionLimitReachedError, | ||
) | ||
: repackErrorAs(error, NetworkError); | ||
@@ -144,0 +149,0 @@ reject(netError); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
303312
0.25%2105
40.71%5760
0.26%122
4.27%34
3.03%6
20%122
4.27%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed