Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
hipchat-js-client
Advanced tools
HipChat's BOSH/XMPP communication layer has always been a mystery to me. So, a few weeks ago I set out to educate myself on how it all worked -- this client library is the side-effect.
How about some code?
// Bootstraps the HipChat connection using your existing
// HipChat browser session
new HipChat(
{
onConnectionChange: function(status, condition){
console.log('INFO', 'connection status changed to ' + status + ': ' + condition);
},
onConnect: function(hc){
// Let's join all the rooms that HipChat knows about from
// the last session
hc.joinAutoJoinRooms();
// Let's listen to any messages that float by
var msgSub = hc.on('message', msgHandler);
// Let's listen in on any presence notifications
var presenceSub = hc.on('presence', presenceHandler);
}
}
});
Get the point? If not, check out the specs to see what else it can do.
This little library will allow you to win the next ShipIt! Here are some ideas:
I built this mostly to educate myself and have a bit of fun, but if all goes well, this may be used in the next version of the HipChat web client.
To run the specs, you must symlink this to your HipChat VM's web dir (e.g., from ../web/www/js):
ln -s ../../../hipchat-js-client
You may then access the spec runner at:
https://<dev-vm-hostname>.hipchat.com/js/hipchat-js-client/specs.html
Go for it. Fork, commit, push, and be merry.
FAQs
HipChat JS client for the browser
The npm package hipchat-js-client receives a total of 17 weekly downloads. As such, hipchat-js-client popularity was classified as not popular.
We found that hipchat-js-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.