New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-xml2json

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-xml2json - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

2

dist/source/xml2json.js

@@ -360,2 +360,3 @@ "use strict";

_on_finish() {
/* empy */
}

@@ -391,2 +392,3 @@ _on_startElement(level, elementName, attrs) {

_on_endElement2(level, elementName) {
/* empty */
}

@@ -393,0 +395,0 @@ _on_endElement(level, elementName) {

8

package.json
{
"name": "node-opcua-xml2json",
"version": "2.0.0",
"version": "2.1.0",
"description": "pure nodejs OPCUA SDK - module -xml2json",

@@ -15,4 +15,4 @@ "main": "dist/source/xml2json.js",

"node-opcua-assert": "^2.0.0",
"node-opcua-debug": "^2.0.0",
"node-opcua-utils": "^2.0.0",
"node-opcua-debug": "^2.1.0",
"node-opcua-utils": "^2.1.0",
"underscore": "^1.9.1"

@@ -39,3 +39,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "deed061b032e8490d44f59fc42559d413968ab89"
"gitHead": "ddce2b6e3e13371510e63d839c1a4c4ff0be2c15"
}

@@ -66,7 +66,7 @@ /**

init?: (
this: IReaderState,
name: string,
attrs: XmlAttributes,
parent: IReaderState,
engine: Xml2Json
this: IReaderState,
name: string,
attrs: XmlAttributes,
parent: IReaderState,
engine: Xml2Json
) => void;

@@ -85,7 +85,7 @@ finish?: (this: IReaderState) => void;

init?: (
this: any,
name: string,
attrs: XmlAttributes,
parent: IReaderState,
engine: Xml2Json
this: any,
name: string,
attrs: XmlAttributes,
parent: IReaderState,
engine: Xml2Json
) => void;

@@ -100,7 +100,7 @@ finish?: (this: any) => void;

_on_init(
elementName: string,
attrs: XmlAttributes,
parent: IReaderState,
level: number,
engine: Xml2Json): void;
elementName: string,
attrs: XmlAttributes,
parent: IReaderState,
level: number,
engine: Xml2Json): void;

@@ -133,4 +133,4 @@ _on_finish(): void;

public _init?: (
name: string, attrs: XmlAttributes,
parent: IReaderState, engine: Xml2Json
name: string, attrs: XmlAttributes,
parent: IReaderState, engine: Xml2Json
) => void;

@@ -169,4 +169,4 @@ public _finish?: () => void;

throw new Error("Invalid filed detected in ReaderState Parser ! : " +
invalid_fields.join(" - ") +
" t =" + options.constructor.name);
invalid_fields.join(" - ") +
" t =" + options.constructor.name);
}

@@ -192,7 +192,7 @@ this._init = options.init;

public _on_init(
elementName: string,
attrs: XmlAttributes,
parent: IReaderState,
level: number,
engine: Xml2Json
elementName: string,
attrs: XmlAttributes,
parent: IReaderState,
level: number,
engine: Xml2Json
) {

@@ -369,3 +369,3 @@

const state = (options instanceof ReaderState)
? options as ReaderState : new ReaderState(options);
? options as ReaderState : new ReaderState(options);
state.root = this;

@@ -425,4 +425,4 @@

fs.createReadStream(xmlFile, { autoClose: true, encoding: "utf8" })
.pipe(new Bomstrip())
.pipe(parser);
.pipe(new Bomstrip())
.pipe(parser);

@@ -496,7 +496,7 @@ }

parser.on("close",
() => {
if (callback) {
(callback as any)(null, this._pojo);
}
});
() => {
if (callback) {
(callback as any)(null, this._pojo);
}
});
return parser;

@@ -530,7 +530,7 @@ }

public _on_init(
elementName: string,
attrs: XmlAttributes,
parent: IReaderState,
level: number,
engine: Xml2Json
elementName: string,
attrs: XmlAttributes,
parent: IReaderState,
level: number,
engine: Xml2Json
): void {

@@ -548,3 +548,3 @@

public _on_finish() {
/* empy */
}

@@ -582,2 +582,3 @@

public _on_endElement2(level: number, elementName: string): void {
/* empty */
}

@@ -617,7 +618,7 @@

init(
this: IReaderState,
elementName: string,
attrs: XmlAttributes,
parent: IReaderState,
engine: Xml2Json
this: IReaderState,
elementName: string,
attrs: XmlAttributes,
parent: IReaderState,
engine: Xml2Json
) {

@@ -635,4 +636,4 @@ json_extractor._on_init(elementName, attrs, parent, 0, engine);

Xml2Json.prototype.parseString =
thenify.withCallback(Xml2Json.prototype.parseString, opts);
thenify.withCallback(Xml2Json.prototype.parseString, opts);
Xml2Json.prototype.parse =
thenify.withCallback(Xml2Json.prototype.parse, opts);
thenify.withCallback(Xml2Json.prototype.parse, opts);

Sorry, the diff of this file is not supported yet

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