
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).
auto-lit-tag-name-map
Advanced tools
Auto set TypeScript HTMLElementTagNameMap for lit-element.
auto-lit-tag-name-map has two modes:
declare global
not declared, HTMLElementTagNameMap
not declared, HTMLElementTagNameMap
declared but does not contain the right custom element tags, etc).declare global
declared in target file. In this case, it constructs a declare global
block with HTMLElementTagNameMap
inside and appends the block of code to the end of the target file.In both modes, auto-lit-tag-name-map will avoid rewriting files that look good. It's also recommended to use prettier (pass a prettier config file path via --prettier
CLI option) to format rewritten files.
Usage
$ npx auto-lit-tag-name-map@1 "<glob>" [options]
Inputs
<glob> Glob search patterns (always quote the glob to avoid misinterpretation by the shell).
Options
--prettier Prettier config file used to format the files to be rewritten.
--dry-run Do not rewrite any file, but show a list of files to be rewritten.
--safe-mode Enable safe mode, see repo README.md for details.
Examples
$ npx auto-lit-tag-name-map@1 "./src/components/**/*.ts" --safe-mode --prettier ./.prettierrc.js
FAQs
Auto set TypeScript HTMLElementTagNameMap for lit-element
We found that auto-lit-tag-name-map 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.