
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
webext-buildtools-builder-types
Advanced tools
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
The npm package webext-buildtools-builder-types receives a total of 8 weekly downloads. As such, webext-buildtools-builder-types popularity was classified as not popular.
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.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.