-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
In a strict (typescript) environment the module fails to build due to the following error:
build failed (node_modules/node-dns-sd/lib/dns-sd.js:236:16 v = 'address';): Cannot assign to "v" because it is a constant
the offending code:
if ('key' in params) {
const v = params['key']; // <---
if (typeof (v) !== 'string' || !/^(address|fqdn)$/.test(v)) {
return { error: new Error('The `key` is invalid.') };
}
if (!v) {
v = 'address'; // <--- can't reassign to const v
}
p['key'] = v;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels