Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/xmldoc

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/xmldoc - npm Package Compare versions

Comparing version 1.1.5 to 1.1.6

8

xmldoc/index.d.ts

@@ -74,6 +74,6 @@ // Type definitions for xmldoc 1.1

export interface XmlOptions {
compressed?: boolean;
html?: boolean;
preserveWhitespace?: boolean;
trimmed?: boolean;
compressed?: boolean | undefined;
html?: boolean | undefined;
preserveWhitespace?: boolean | undefined;
trimmed?: boolean | undefined;
}

@@ -80,0 +80,0 @@

{
"name": "@types/xmldoc",
"version": "1.1.5",
"version": "1.1.6",
"description": "TypeScript definitions for xmldoc",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmldoc",
"license": "MIT",

@@ -32,4 +33,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "3ce31bc6aedfec582c041080280b2ce8c3c016993c6b9642df52f748597d03a3",
"typeScriptVersion": "3.1"
"typesPublisherContentHash": "259160896320d704d81a3402681da8160fa331668c1411e2b1f348e24e4621d0",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,96 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmldoc.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmldoc/index.d.ts)
````ts
// Type definitions for xmldoc 1.1
// Project: https://github.com/nfarina/xmldoc
// Definitions by: Xavier Stouder <https://github.com/Xstoudi>
// Andrew Sheehan <https://github.com/ajsheehan>
// Jordi Bunster <https://github.com/notlaforge>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
export class XmlDocument extends XmlElement {
constructor(xml: string);
doctype: string;
}
export type XmlNode = XmlElement | XmlTextNode | XmlCDataNode | XmlCommentNode;
export class XmlElement {
constructor(tag: XmlTag);
type: 'element';
name: string;
attr: XmlAttributes;
val: string;
children: XmlNode[];
firstChild: XmlNode | null;
lastChild: XmlNode | null;
line: number;
column: number;
position: number;
startTagPosition: number;
eachChild(iterator: (child: XmlElement, index: number, array: XmlNode[]) => void): void;
eachChild<T>(iterator: (this: T, child: XmlElement, index: number, array: XmlNode[]) => void, context: T): void;
childNamed(name: string): XmlElement | undefined;
childrenNamed(name: string): XmlElement[];
childWithAttribute(name: string, value?: string | null): XmlElement | undefined;
descendantWithPath(path: string): XmlElement | undefined;
valueWithPath(path: string): string | undefined;
toString(opts?: XmlOptions): string;
toStringWithIndent(indent: string, opts?: XmlOptions): string;
}
export class XmlTextNode {
constructor(text: string);
type: 'text';
text: string;
toString(opts?: XmlOptions): string;
toStringWithIndent(indent: string, opts?: XmlOptions): string;
}
export class XmlCDataNode {
constructor(cdata: string);
type: 'cdata';
cdata: string;
toString(opts?: XmlOptions): string;
toStringWithIndent(indent: string, opts?: XmlOptions): string;
}
export class XmlCommentNode {
constructor(comment: string);
type: 'comment';
comment: string;
toString(opts?: XmlOptions): string;
toStringWithIndent(indent: string, opts?: XmlOptions): string;
}
export interface XmlOptions {
compressed?: boolean | undefined;
html?: boolean | undefined;
preserveWhitespace?: boolean | undefined;
trimmed?: boolean | undefined;
}
export interface XmlTag {
name: string;
attributes: XmlAttributes;
}
export interface XmlAttributes {
[key: string]: string;
}
````
### Additional Details
* Last updated: Mon, 14 Sep 2020 18:06:56 GMT
* Last updated: Fri, 02 Jul 2021 17:02:22 GMT
* Dependencies: none

@@ -14,0 +105,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc