
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
webext-buildtools-builder-types
Advanced tools
Base webext-buildtools builders types definitions
Package with interfaces definitions for all webext-buildtools builders.
If you need complete solution for Web Extension build/deploy, go to webext-buildtools-integrated-builder repo.
npm install webext-buildtools-builder-types
webext-buildtools is a toolkit for building and deploying Web Extensions (browser extensions standard introduced by Google and supported by Chrome, Firefox, Internet Explorer, Opera, etc.).
Use this package to create own builder which implements ISimpleBuilder
to make it compatible with other builders in webext-buildtools toolkit.
ISimpleBuilder
interfaceDifferent builders can perform similar operations (pack directory to zip for example) or require the same input data (path to extension directory). It's a reason to extract that operations to a separate build step (i.e. another builder). To use common intermediate (or final) build results builders can be chained:
IBuildAsset
which contains some build-related dataIDisposableBuildAsset
is asset which contains data, which can be disposed (removed/cleaned up) after entire build process (temporary files)One more defined type is:
type ILogMethod = (level: string, message: string, ...meta: any[]) => any;
It's not used in ISimpleBuilder
definition, but usually you can pass logMethod: ILogMethod | undefined
to builder constructor to customize logging behaviour.
Example of ILogMethod implementation using winston package:
const winston = require('winston');
const logger = winston.createLogger({
level: 'info',
format: winston.format.combine(
winston.format.splat(),
winston.format.cli()
),
prettyPrint: JSON.stringify,
transports: [new winston.transports.Console()]
});
const logMethod = logger.log.bind(logger);
Using console.log
:
const logger = (level, message, ...meta) => {
console.log(message);
for (const m of meta) {
console.log(m);
}
};
FAQs
Base webext-buildtools builders types definitions
We found that webext-buildtools-builder-types 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.