@matter/protocol
Advanced tools
Comparing version 0.12.0-alpha.0-20241220-2c53108aa to 0.12.0-alpha.0-20241220-755393a73
@@ -600,4 +600,5 @@ "use strict"; | ||
} | ||
return { | ||
operational: combinedAnswers.operational ? Object.fromEntries( | ||
const result = {}; | ||
if (combinedAnswers.operational) { | ||
result.operational = Object.fromEntries( | ||
Object.entries(combinedAnswers.operational).map(([recordType, records]) => [ | ||
@@ -607,4 +608,6 @@ recordType, | ||
]) | ||
) : void 0, | ||
commissionable: combinedAnswers.commissionable ? Object.fromEntries( | ||
); | ||
} | ||
if (combinedAnswers.commissionable) { | ||
result.commissionable = Object.fromEntries( | ||
Object.entries(combinedAnswers.commissionable).map(([recordType, records]) => [ | ||
@@ -614,5 +617,8 @@ recordType, | ||
]) | ||
) : void 0, | ||
addresses: combinedAnswers.addresses | ||
}; | ||
); | ||
} | ||
if (combinedAnswers.addresses) { | ||
result.addresses = combinedAnswers.addresses; | ||
} | ||
return result; | ||
} | ||
@@ -619,0 +625,0 @@ /** |
@@ -602,4 +602,5 @@ /** | ||
} | ||
return { | ||
operational: combinedAnswers.operational ? Object.fromEntries( | ||
const result = {}; | ||
if (combinedAnswers.operational) { | ||
result.operational = Object.fromEntries( | ||
Object.entries(combinedAnswers.operational).map(([recordType, records]) => [ | ||
@@ -609,4 +610,6 @@ recordType, | ||
]) | ||
) : void 0, | ||
commissionable: combinedAnswers.commissionable ? Object.fromEntries( | ||
); | ||
} | ||
if (combinedAnswers.commissionable) { | ||
result.commissionable = Object.fromEntries( | ||
Object.entries(combinedAnswers.commissionable).map(([recordType, records]) => [ | ||
@@ -616,5 +619,8 @@ recordType, | ||
]) | ||
) : void 0, | ||
addresses: combinedAnswers.addresses | ||
}; | ||
); | ||
} | ||
if (combinedAnswers.addresses) { | ||
result.addresses = combinedAnswers.addresses; | ||
} | ||
return result; | ||
} | ||
@@ -621,0 +627,0 @@ /** |
{ | ||
"name": "@matter/protocol", | ||
"version": "0.12.0-alpha.0-20241220-2c53108aa", | ||
"version": "0.12.0-alpha.0-20241220-755393a73", | ||
"description": "Low-level APIs for Matter interaction", | ||
@@ -43,10 +43,10 @@ "keywords": [ | ||
"dependencies": { | ||
"@matter/general": "0.12.0-alpha.0-20241220-2c53108aa", | ||
"@matter/model": "0.12.0-alpha.0-20241220-2c53108aa", | ||
"@matter/types": "0.12.0-alpha.0-20241220-2c53108aa", | ||
"@matter/general": "0.12.0-alpha.0-20241220-755393a73", | ||
"@matter/model": "0.12.0-alpha.0-20241220-755393a73", | ||
"@matter/types": "0.12.0-alpha.0-20241220-755393a73", | ||
"@noble/curves": "^1.7.0" | ||
}, | ||
"devDependencies": { | ||
"@matter/tools": "0.12.0-alpha.0-20241220-2c53108aa", | ||
"@matter/testing": "0.12.0-alpha.0-20241220-2c53108aa" | ||
"@matter/tools": "0.12.0-alpha.0-20241220-755393a73", | ||
"@matter/testing": "0.12.0-alpha.0-20241220-755393a73" | ||
}, | ||
@@ -53,0 +53,0 @@ "files": [ |
@@ -785,21 +785,24 @@ /** | ||
return { | ||
operational: combinedAnswers.operational | ||
? Object.fromEntries( | ||
Object.entries(combinedAnswers.operational).map(([recordType, records]) => [ | ||
recordType, | ||
Array.from(records.values()), | ||
]), | ||
) | ||
: undefined, | ||
commissionable: combinedAnswers.commissionable | ||
? Object.fromEntries( | ||
Object.entries(combinedAnswers.commissionable).map(([recordType, records]) => [ | ||
recordType, | ||
Array.from(records.values()), | ||
]), | ||
) | ||
: undefined, | ||
addresses: combinedAnswers.addresses, | ||
}; | ||
const result: StructuredDnsAnswers = {}; | ||
if (combinedAnswers.operational) { | ||
result.operational = Object.fromEntries( | ||
Object.entries(combinedAnswers.operational).map(([recordType, records]) => [ | ||
recordType, | ||
Array.from(records.values()), | ||
]), | ||
); | ||
} | ||
if (combinedAnswers.commissionable) { | ||
result.commissionable = Object.fromEntries( | ||
Object.entries(combinedAnswers.commissionable).map(([recordType, records]) => [ | ||
recordType, | ||
Array.from(records.values()), | ||
]), | ||
); | ||
} | ||
if (combinedAnswers.addresses) { | ||
result.addresses = combinedAnswers.addresses; | ||
} | ||
return result; | ||
} | ||
@@ -806,0 +809,0 @@ |
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
4015803
69761
+ Added@matter/general@0.12.0-alpha.0-20241220-755393a73(transitive)
+ Added@matter/model@0.12.0-alpha.0-20241220-755393a73(transitive)
+ Added@matter/types@0.12.0-alpha.0-20241220-755393a73(transitive)
- Removed@matter/general@0.12.0-alpha.0-20241220-2c53108aa(transitive)
- Removed@matter/model@0.12.0-alpha.0-20241220-2c53108aa(transitive)
- Removed@matter/types@0.12.0-alpha.0-20241220-2c53108aa(transitive)