node-opcua-xml2json 2.88.0 → 2.90.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ReaderStateParserLike } from "./xml2json";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
type UAString = string | null;
|
|
3
|
+
type NodeIdLike = string | null;
|
|
4
|
+
type Int32 = number;
|
|
5
|
+
type UInt32 = number;
|
|
6
|
+
type UABoolean = boolean;
|
|
7
|
+
type LocalizedTextLike = string | null;
|
|
8
8
|
export interface StructureFieldOptions {
|
|
9
9
|
name?: UAString;
|
|
10
10
|
description?: (LocalizedTextLike | null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IReaderState, ReaderStateBase, Xml2Json, XmlAttributes } from "./xml2json";
|
|
2
|
-
export
|
|
2
|
+
export type withPojoLambda = (name: string, pojo: any) => void;
|
|
3
3
|
export declare class ReaderState2 extends ReaderStateBase {
|
|
4
4
|
_stack: any;
|
|
5
5
|
_pojo: any;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* node -> see if https://github.com/isaacs/sax-js could be used instead
|
|
4
4
|
*/
|
|
5
5
|
declare const LtxParser: any;
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type SimpleCallback = (err?: Error) => void;
|
|
7
|
+
export type Callback<T> = (err?: Error | null, result?: T) => void;
|
|
8
8
|
declare interface LtxParser {
|
|
9
9
|
write(str: string): void;
|
|
10
10
|
end(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-xml2json",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.90.1",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -xml2json",
|
|
5
5
|
"main": "dist/source/index.js",
|
|
6
6
|
"types": "dist/source/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"ltx": "^3.0.0",
|
|
16
16
|
"node-opcua-assert": "2.88.0",
|
|
17
|
-
"node-opcua-utils": "2.
|
|
17
|
+
"node-opcua-utils": "2.90.1",
|
|
18
18
|
"thenify": "^3.3.1",
|
|
19
19
|
"xml-writer": "^1.7.0"
|
|
20
20
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"mocha": "^10.2.0",
|
|
25
|
-
"node-opcua-debug": "2.
|
|
25
|
+
"node-opcua-debug": "2.90.1",
|
|
26
26
|
"node-opcua-nodesets": "2.88.0",
|
|
27
27
|
"should": "^13.2.3"
|
|
28
28
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"internet of things"
|
|
40
40
|
],
|
|
41
41
|
"homepage": "http://node-opcua.github.io/",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "3325ff5f8477fd058ba574d19e8128c36e3e831f"
|
|
43
43
|
}
|