
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).
@types/xml
Advanced tools
TypeScript definitions for xml
npm install --save @types/xml
This package contains type definitions for xml (https://github.com/dylang/node-xml).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xml.
/// <reference types="node" />
declare namespace xml {
interface Option {
/**
* String used for tab, defaults to no tabs (compressed)
*/
indent?: string | undefined;
/**
* Return the result as a `stream` (default false)
*/
stream?: boolean | undefined;
/**
* Add default xml declaration (default false)
*/
declaration?:
| boolean
| {
encoding?: string | undefined;
standalone?: string | undefined;
}
| undefined;
}
interface XmlAttrs {
[attr: string]: XmlAtom;
}
interface XmlDescArray {
[index: number]: { _attr: XmlAttrs } | XmlObject;
}
interface ElementObject {
push(xmlObject: XmlObject): void;
close(xmlObject?: XmlObject): void;
}
type XmlAtom = string | number | boolean | null;
type XmlDesc =
| { _attr: XmlAttrs }
| { _cdata: string }
| { _attr: XmlAttrs; _cdata: string }
| XmlAtom
| XmlAtom[]
| XmlDescArray;
type XmlObject = { [tag: string]: ElementObject | XmlDesc } | XmlDesc;
function element(...xmlObjects: XmlObject[]): ElementObject;
function Element(...xmlObjects: XmlObject[]): ElementObject;
}
declare function xml(
xmlObject: xml.XmlObject | xml.XmlObject[],
options: { stream: true } & xml.Option,
): NodeJS.ReadableStream;
declare function xml(xmlObject?: xml.XmlObject | xml.XmlObject[], options?: boolean | string | xml.Option): string;
export = xml;
These definitions were written by Jianrong Yu, and Semyon Fomin.
FAQs
TypeScript definitions for xml
We found that @types/xml 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.