New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

to
1.1.0

xmldoc/LICENSE

53

xmldoc/index.d.ts

@@ -1,5 +0,5 @@

// Type definitions for xmldoc 0.5.1
// Type definitions for xmldoc 1.1
// Project: https://www.npmjs.com/package/xmldoc
// Definitions by: Xavier Stouder <https://github.com/Xstoudi>
// Definitions: https://github.com/DefinitelyTyped/
// Definitions by: Xavier Stouder <https://github.com/Xstoudi>, Andrew Sheehan <https://github.com/ajsheehan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped): // TypeScript Version: 2.1

@@ -9,2 +9,4 @@ export class XmlDocument {

doctype: string;
eachChild(func: (child: XmlElement, index?: number, array?: XmlElement[]) => void): void;

@@ -17,4 +19,15 @@ childNamed(name: string): XmlElement;

toString(opts?: XmlOptions): string;
toStringWithIndent(indent: string, opts?: XmlOptions): string;
}
export class XmlElement {
constructor(tag: XmlElement);
name: string;
attr: XmlAttributes;
val: string;
children: XmlElement[];
firstChild: XmlElement;
lastChild: XmlElement;
eachChild(func: (child: XmlElement, index?: number, array?: XmlElement[]) => void): void;

@@ -27,8 +40,40 @@ childNamed(name: string): XmlElement;

toString(opts?: XmlOptions): string;
toStringWithIndent(indent: string, opts?: XmlOptions): string;
}
export class XmlTextNode {
constructor(text: string);
toString(opts?: XmlOptions): string;
toStringWithIndent(indent: string, opts?: XmlOptions): string;
}
export class XmlCDataNode {
constructor(cdata: string);
toString(opts?: XmlOptions): string;
toStringWithIndent(indent: string, opts?: XmlOptions): string;
}
export class XmlCommentNode {
constructor(comment: string);
toString(opts?: XmlOptions): string;
toStringWithIndent(indent: string, opts?: XmlOptions): string;
}
export interface XmlOptions {
compressed?: boolean;
html?: boolean;
preserveWhitespace?: boolean;
trimmed?: boolean;
preserveWhitespace?: boolean;
}
export interface XmlTag {
name: string;
attributes: XmlAttributes;
}
export interface XmlAttributes {
[key: string]: string;
}

19

xmldoc/package.json
{
"name": "@types/xmldoc",
"version": "0.5.0",
"description": "TypeScript definitions for xmldoc 0.5.1",
"version": "1.1.0",
"description": "TypeScript definitions for xmldoc",
"license": "MIT",
"author": "Xavier Stouder <https://github.com/Xstoudi>",
"contributors": [
{
"name": " Xavier Stouder",
"url": "https://github.com/Xstoudi"
},
{
"name": "Andrew Sheehan",
"url": "https://github.com/ajsheehan"
}
],
"main": "",

@@ -15,4 +24,4 @@ "repository": {

"peerDependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "df2d331cb091c1c3990d60a26c8832aab94b61cd63ca407af422363f2fad164d"
"typesPublisherContentHash": "5ec9b1acd0b546e5b66738861cd8ae7ae25adeb34abe5fe860a77c7b0dac53b5",
"typeScriptVersion": "2.0"
}

@@ -5,15 +5,13 @@ # Installation

# Summary
This package contains type definitions for xmldoc 0.5.1 (https://www.npmjs.com/package/xmldoc).
This package contains type definitions for xmldoc (https://www.npmjs.com/package/xmldoc).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/xmldoc
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmldoc
Additional Details
* Last updated: Mon, 14 Nov 2016 19:35:03 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: none
* Last updated: Fri, 02 Jun 2017 13:55:42 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by Xavier Stouder <https://github.com/Xstoudi>.
These definitions were written by Xavier Stouder <https://github.com/Xstoudi>, Andrew Sheehan <https://github.com/ajsheehan>.