Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
unexpected-messy
Advanced tools
Plugin for Unexpected that adds the ability to inspect and match instances of the HttpRequest, HttpResponse, HttpExchange, HttpConversation, Mail, and Message classes from the Messy library. It's originally built for unexpected-express and unexpected-http, but can also be used standalone.
In particular, it adds support for the to satisfy
assertion so that you can express your assertions using a very compact and precise syntax. When the conditions are not met, you get a full diff that includes the entire object as a single unit:
var messy = require('messy'),
expect = require('unexpected').clone().installPlugin(require('unexpected-messy'));
expect(new messy.HttpResponse(
'HTTP/1.1 200 OK\r\n' +
'Content-Type: application/json\r\n' +
'\r\n' +
'{"foo":"bar","baz":456}'
), 'to satisfy', {statusCode: 404, body: {baz: expect.it('to be greater than', 1024)}});
Unexpected-messy is licensed under a standard 3-clause BSD license
-- see the LICENSE
file for details.
FAQs
Unexpected plugin for the messy library
We found that unexpected-messy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.