UNPKG

homebridge-eqiva-swift-bridge

Version:

Homebridge Eqiva Plugin Bridge for Swift Eqiva eQ-3 Bluetooth Lock Controller.

16 lines 446 B
export function sortStatusJsonForLogging(obj) { const sorted = {}; // Add timestamp first if present if ('timestamp' in obj) { sorted.timestamp = obj.timestamp; } // Add all other keys sorted, excluding timestamp Object.keys(obj) .filter((key) => key !== 'timestamp') .sort() .forEach((key) => { sorted[key] = obj[key]; }); return sorted; } //# sourceMappingURL=utils.js.map