
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
next-rsc-error-handler
Advanced tools
Webpack plugin that allow to handle RSC errors on the server side
Webpack plugin that allow to handle RSC errors on the server side.
This plugin does not allow to use dual client and server components
npm i next-rsc-error-handler
import { rscErrorHandler } from "next-rsc-error-handler";
const withRscErrorHandler = rscErrorHandler({
componentName: /^_?[A-Z]/, // optional, defaults to /^[A-Z]/
});
export default withRscErrorHandler({
// next config here
});
global-server-error.js
in your root folder with following content:/** @type {import('next-rsc-error-handler').GlobalServerError} */
export default function onGlobalServerError(err, ctx) {
// handling here
}
Alternatively, you can use global-server-error.ts
with:
import { type GlobalServerErrorContext } from 'next-rsc-error-handler';
export default function onGlobalServerError(err: unknown, ctx: GlobalServerErrorContext) {
// handling here
}
FAQs
Webpack plugin that allow to handle RSC errors on the server side
The npm package next-rsc-error-handler receives a total of 0 weekly downloads. As such, next-rsc-error-handler popularity was classified as not popular.
We found that next-rsc-error-handler demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.