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

@types/xml2js

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/xml2js - npm Package Compare versions

Comparing version 0.0.33 to 0.4.0

xml2js/lib/processors.d.ts

136

xml2js/index.d.ts

@@ -1,80 +0,78 @@

// Type definitions for node-xml2js
// Type definitions for node-xml2js 0.4
// Project: https://github.com/Leonidas-from-XIV/node-xml2js
// Definitions by: Michel Salib <https://github.com/michelsalib>, Jason McNeil <https://github.com/jasonrm>, Christopher Currens <https://github.com/ccurrens>, Edward Hinkle <https://github.com/edwardhinkle>
// Definitions by: Michel Salib <https://github.com/michelsalib>
// Jason McNeil <https://github.com/jasonrm>
// Christopher Currens <https://github.com/ccurrens>
// Edward Hinkle <https://github.com/edwardhinkle>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="./processors.d.ts" />
/// <reference types="node"/>
import { EventEmitter } from 'events';
export = xml2js;
export function parseString(xml: convertableToString, callback: (err: any, result: any) => void): void;
export function parseString(xml: convertableToString, options: OptionsV2, callback: (err: any, result: any) => void): void;
import * as events from 'events'
export const defaults: {
'0.1': Options;
'0.2': OptionsV2;
};
declare namespace xml2js {
function parseString(xml: convertableToString, callback: (err: any, result: any) => void): void;
function parseString(xml: convertableToString, options: OptionsV2, callback: (err: any, result: any) => void): void;
export class Builder {
constructor(options?: OptionsV2);
buildObject(rootObj: any): string;
}
var defaults: {
'0.1': Options;
'0.2': OptionsV2;
}
export class Parser extends EventEmitter {
constructor(options?: OptionsV2);
parseString(str: convertableToString, cb?: Function): void;
reset(): void;
}
class Builder {
constructor(options?: OptionsV2);
buildObject(rootObj: any): string;
}
export interface Options {
async?: boolean;
attrkey?: string;
attrNameProcessors?: [(name: string) => any];
attrValueProcessors?: [(name: string) => any];
charkey?: string;
charsAsChildren?: boolean;
childkey?: string;
emptyTag?: any;
explicitArray?: boolean;
explicitCharkey?: boolean;
explicitChildren?: boolean;
explicitRoot?: boolean;
ignoreAttrs?: boolean;
includeWhiteChars?: boolean;
mergeAttrs?: boolean;
normalize?: boolean;
normalizeTags?: boolean;
strict?: boolean;
tagNameProcessors?: [(name: string) => any];
trim?: boolean;
validator?: Function;
valueProcessors?: [(name: string) => any];
xmlns?: boolean;
}
class Parser extends events.EventEmitter {
constructor(options?: OptionsV2);
parseString(str: convertableToString, cb?: Function): void;
reset(): void;
}
export interface OptionsV2 extends Options {
preserveChildrenOrder?: boolean;
rootName?: string;
xmldec?: {
version: string;
encoding?: string;
standalone?: boolean;
};
doctype?: any;
renderOpts?: {
pretty?: boolean;
indent?: string;
newline?: string;
};
headless?: boolean;
chunkSize?: number;
cdata?: boolean;
}
interface Options {
async?: boolean;
attrkey?: string;
attrNameProcessors?: [(name: string) => any];
attrValueProcessors?: [(name: string) => any];
charkey?: string;
charsAsChildren?: boolean;
childkey?: string;
emptyTag?: any;
explicitArray?: boolean;
explicitCharkey?: boolean;
explicitChildren?: boolean;
explicitRoot?: boolean;
ignoreAttrs?: boolean;
includeWhiteChars?: boolean;
mergeAttrs?: boolean;
normalize?: boolean;
normalizeTags?: boolean;
strict?: boolean;
tagNameProcessors?: [(name: string) => any];
trim?: boolean;
validator?: Function;
valueProcessors?: [(name: string) => any];
xmlns?: boolean;
}
interface OptionsV2 extends Options {
preserveChildrenOrder?: boolean;
rootName?: string;
xmldec?: {
version: string;
encoding?: string;
standalone?: boolean;
};
doctype?: any;
renderOpts?: {
pretty?: boolean;
indent?: string;
newline?: string;
};
headless?: boolean;
chunkSize?: number;
cdata?: boolean;
}
interface convertableToString {
toString(): string;
}
export interface convertableToString {
toString(): string;
}
{
"name": "@types/xml2js",
"version": "0.0.33",
"version": "0.4.0",
"description": "TypeScript definitions for node-xml2js",

@@ -30,6 +30,8 @@ "license": "MIT",

"scripts": {},
"dependencies": {},
"dependencies": {
"@types/node": "*"
},
"peerDependencies": {},
"typesPublisherContentHash": "7cbb2b959eca2601a60fa04e26556c1887136fe5aab90d5aac36e525c20ff2b1",
"typesPublisherContentHash": "e03aa8386aeb137adae12dd97f741a0020b794e849f45eb9253c9947abe56959",
"typeScriptVersion": "2.0"
}

@@ -8,7 +8,7 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/xml2js
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xml2js
Additional Details
* Last updated: Sat, 11 Mar 2017 00:22:02 GMT
* Dependencies: events
* Last updated: Fri, 23 Jun 2017 17:39:13 GMT
* Dependencies: events, node
* Global values: none

@@ -15,0 +15,0 @@

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