
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
NodeJS library providing dobaos client functionality.
const Dobaos = require("./index.js");
/***
Default params may be overwritten
dob = Dobaos({
redis: null, // provide redis url as a string
req_channel: "dobaos_req",
bcast_channel: "dobaos_cast",
service_channel: "dobaos_service",
res_prefix: "dobaos_res",
req_timeout: 500
});
***/
const dob = Dobaos();
const processDobaosValue = payload => {
if (Array.isArray(payload)) {
return payload.forEach(processDobaosValue);
}
let { id, raw, value } = payload;
console.log("broadcasted: ", id, raw, value);
};
dob.on("datapoint value", processDobaosValue);
dob.on("ready", async _ => {
console.log("dobaos client is ready");
// service reqs
console.log(await dob.reset());
console.log(await dob.getVersion());
// baos reqs
console.log(await dob.getServerItems());
console.log(await dob.getDescription([1, 2, 3]));
console.log(await dob.getValue([1, 2, 3]));
// set value and send to bus
console.log(await dob.setValue({ id: 3, value: true }));
console.log(await dob.setValue([{ id: 10, value: 1 }, { id: 11, value: 0 }]));
console.log(await dob.setValue([{ id: 10, value: 0 }, { id: 11, value: 0 }]));
// set value without sending to bus:
console.log(await dob.putValue([{ id: 10, value: 0 }, { id: 11, value: 0 }]));
console.log(await dob.readValue([1, 2, 5, 6, 7, 8, 9]));
console.log(await dob.readValue(1));
console.log(await dob.getProgrammingMode());
console.log(await dob.setProgrammingMode(1));
console.log(await dob.getProgrammingMode());
console.log(await dob.setProgrammingMode(0));
});
dob.init();
* getServerItems();
* getDescription(null/number/[number, number...]);
* getValue(null/number/[number, number...]);
* readValue(null/number/[number, number...]);
* setValue({id: number, value: <depends on dpt> }/[{id:..}, {id: ..}...]);
* getProgrammingMode();
* setProgrammingMode(0/1/false/true);
* getVersion();
* reset();
FAQs
NodeJS library providing dobaos client functionality.
We found that dobaos.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.