node-opcua-packet-analyzer 2.98.0 → 2.98.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.
@@ -0,0 +1 @@
1
+ export { analyzePacket, analyseExtensionObject, analyze_object_binary_encoding } from "./packet_analyzer/packet_analyzer";
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.analyze_object_binary_encoding = exports.analyseExtensionObject = exports.analyzePacket = void 0;
4
+ var packet_analyzer_1 = require("./packet_analyzer/packet_analyzer");
5
+ Object.defineProperty(exports, "analyzePacket", { enumerable: true, get: function () { return packet_analyzer_1.analyzePacket; } });
6
+ Object.defineProperty(exports, "analyseExtensionObject", { enumerable: true, get: function () { return packet_analyzer_1.analyseExtensionObject; } });
7
+ Object.defineProperty(exports, "analyze_object_binary_encoding", { enumerable: true, get: function () { return packet_analyzer_1.analyze_object_binary_encoding; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/index.ts"],"names":[],"mappings":";;;AAAA,qEAA0H;AAAjH,gHAAA,aAAa,OAAA;AAAE,yHAAA,sBAAsB,OAAA;AAAE,iIAAA,8BAA8B,OAAA"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="node" />
2
+ import { BinaryStream } from "node-opcua-binary-stream";
3
+ import { BaseUAObject } from "node-opcua-factory";
4
+ interface AnalyzePacketOptions {
5
+ }
6
+ export interface ObjectMessage {
7
+ encode(stream: BinaryStream): void;
8
+ decode(stream: BinaryStream): void;
9
+ decodeDebug(stream: BinaryStream, options: any): void;
10
+ }
11
+ export declare function analyzePacket(buffer: Buffer, objMessage: ObjectMessage, padding: number, offset?: number, customOptions?: AnalyzePacketOptions): void;
12
+ export declare function analyseExtensionObject(buffer: Buffer, padding: number, offset: number, customOptions?: AnalyzePacketOptions): void;
13
+ export declare function analyze_object_binary_encoding(obj: BaseUAObject): void;
14
+ export {};
@@ -0,0 +1,188 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.analyze_object_binary_encoding = exports.analyseExtensionObject = exports.analyzePacket = void 0;
4
+ const util_1 = require("util");
5
+ const chalk = require("chalk");
6
+ const node_opcua_assert_1 = require("node-opcua-assert");
7
+ const node_opcua_basic_types_1 = require("node-opcua-basic-types");
8
+ const node_opcua_binary_stream_1 = require("node-opcua-binary-stream");
9
+ const node_opcua_debug_1 = require("node-opcua-debug");
10
+ const node_opcua_factory_1 = require("node-opcua-factory");
11
+ const node_opcua_utils_1 = require("node-opcua-utils");
12
+ const spaces = " ";
13
+ function f(n, width) {
14
+ const s = n.toString();
15
+ return (s + " ").substring(0, Math.max(s.length, width));
16
+ }
17
+ function display_encoding_mask(padding, encodingMask, encodingInfo) {
18
+ for (const v in encodingInfo) {
19
+ if (!Object.prototype.hasOwnProperty.call(encodingInfo, v)) {
20
+ continue;
21
+ }
22
+ const enumKey = encodingInfo[v];
23
+ if (typeof enumKey === "number") {
24
+ continue;
25
+ }
26
+ const mask = encodingInfo[enumKey];
27
+ const bit = Math.log(mask) / Math.log(2);
28
+ const bits = [".", ".", ".", ".", ".", ".", ".", ".", "."];
29
+ bits[bit] = (encodingMask & mask) === mask ? "Y" : "n";
30
+ console.log(padding + " ", bits.join(""), " <- has " + enumKey + " 0x" + mask.toString(16));
31
+ }
32
+ // DataValueEncodingByte
33
+ }
34
+ function hex_block(start, end, buffer) {
35
+ const n = end - start;
36
+ const strBuf = (0, node_opcua_utils_1.buffer_ellipsis)(buffer);
37
+ return (chalk.cyan("s:") + f(start, 4) + chalk.cyan(" e:") + f(end, 4) + chalk.cyan(" n:") + f(n, 4) + " " + chalk.yellow(strBuf));
38
+ }
39
+ function make_tracer(buffer, padding, offset) {
40
+ padding = !padding ? 0 : padding;
41
+ offset = offset || 0;
42
+ const pad = () => " ".substring(0, padding);
43
+ function _display(str, hexInfo) {
44
+ hexInfo = hexInfo || "";
45
+ // account for ESC codes for colors
46
+ const nbColorAttributes = [...str.split("")].filter((c) => c === "\u001b").length;
47
+ const extra = nbColorAttributes * 5;
48
+ console.log((pad() + str + spaces).substring(0, 132 + extra) + "|" + hexInfo);
49
+ }
50
+ function display(str, hexInfo) {
51
+ const lines = str.split("\n");
52
+ for (const line of lines) {
53
+ _display(line, hexInfo);
54
+ }
55
+ }
56
+ function display_encodeable(value, buffer1, start, end) {
57
+ const bufferExtract = buffer1.subarray(start, end);
58
+ const stream = new node_opcua_binary_stream_1.BinaryStream(bufferExtract);
59
+ const nodeId = (0, node_opcua_basic_types_1.decodeNodeId)(stream);
60
+ const encodingMask = (0, node_opcua_basic_types_1.decodeByte)(stream); // 1 bin 2: xml
61
+ const length = (0, node_opcua_basic_types_1.decodeUInt32)(stream);
62
+ display(chalk.green(" ExpandedNodId =") + " " + nodeId);
63
+ display(chalk.green(" encoding mask =") + " " + encodingMask);
64
+ display(chalk.green(" length =") + " " + length);
65
+ analyzePacket(bufferExtract.subarray(stream.length), value.encodingDefaultBinary, padding + 2, start + stream.length);
66
+ }
67
+ return {
68
+ tracer: {
69
+ dump: (title, value) => display(title + " " + chalk.green(value.toString())),
70
+ encoding_byte: (encodingMask, valueEnum, start, end) => {
71
+ (0, node_opcua_assert_1.assert)(valueEnum);
72
+ const b = buffer.subarray(start, end);
73
+ display(" 012345678", hex_block(start, end, b));
74
+ display_encoding_mask(pad(), encodingMask, valueEnum);
75
+ },
76
+ trace: (operation, name, value, start, end, fieldType) => {
77
+ const b = buffer.subarray(start, end);
78
+ let _hexDump = "";
79
+ switch (operation) {
80
+ case "start":
81
+ padding += 2;
82
+ display(name.toString());
83
+ break;
84
+ case "end":
85
+ padding -= 2;
86
+ break;
87
+ case "start_array":
88
+ display("." + name + " (length = " + value + ") " + "[", hex_block(start, end, b));
89
+ padding += 2;
90
+ break;
91
+ case "end_array":
92
+ padding -= 2;
93
+ display("] // " + name);
94
+ break;
95
+ case "start_element":
96
+ display(" #" + value + " {");
97
+ padding += 2;
98
+ break;
99
+ case "end_element":
100
+ padding -= 2;
101
+ display(" } // # " + value);
102
+ break;
103
+ case "member":
104
+ display("." + name + " : " + fieldType);
105
+ _hexDump = "";
106
+ if (value instanceof Buffer) {
107
+ _hexDump = (0, node_opcua_debug_1.hexDump)(value);
108
+ console.log(_hexDump);
109
+ value = "<BUFFER>";
110
+ }
111
+ if (value && value.encode) {
112
+ if (fieldType === "ExtensionObject") {
113
+ display_encodeable(value, buffer, start, end);
114
+ }
115
+ else {
116
+ const str = value.toString() || "<empty>";
117
+ display(str);
118
+ }
119
+ }
120
+ else {
121
+ display(" " + value, hex_block(start, end, b));
122
+ }
123
+ break;
124
+ }
125
+ }
126
+ }
127
+ };
128
+ }
129
+ function analyzePacket(buffer, objMessage, padding, offset, customOptions) {
130
+ const stream = new node_opcua_binary_stream_1.BinaryStream(buffer);
131
+ _internalAnalyzePacket(buffer, stream, objMessage, padding, customOptions, offset);
132
+ }
133
+ exports.analyzePacket = analyzePacket;
134
+ function analyseExtensionObject(buffer, padding, offset, customOptions) {
135
+ const stream = new node_opcua_binary_stream_1.BinaryStream(buffer);
136
+ let id;
137
+ let objMessage;
138
+ try {
139
+ id = (0, node_opcua_basic_types_1.decodeExpandedNodeId)(stream);
140
+ objMessage = (0, node_opcua_factory_1.getStandardDataTypeFactory)().constructObject(id);
141
+ }
142
+ catch (err) {
143
+ console.log(id);
144
+ console.log(err);
145
+ console.log("Cannot read decodeExpandedNodeId on stream " + stream.buffer.toString("hex"));
146
+ }
147
+ _internalAnalyzePacket(buffer, stream, objMessage, padding, customOptions, offset);
148
+ }
149
+ exports.analyseExtensionObject = analyseExtensionObject;
150
+ function _internalAnalyzePacket(buffer, stream, objMessage, padding, customOptions, offset) {
151
+ let options = make_tracer(buffer, padding, offset);
152
+ options.name = "message";
153
+ if (customOptions)
154
+ options = Object.assign(Object.assign({}, options), customOptions);
155
+ try {
156
+ if (objMessage) {
157
+ objMessage.decodeDebug(stream, options);
158
+ }
159
+ else {
160
+ console.log(" Invalid object", objMessage);
161
+ }
162
+ }
163
+ catch (err) {
164
+ console.log(" Error in ", err);
165
+ if (err instanceof Error) {
166
+ console.log(" Error in ", err.stack);
167
+ }
168
+ console.log(" objMessage ", (0, util_1.inspect)(objMessage, { colors: true }));
169
+ }
170
+ }
171
+ function analyze_object_binary_encoding(obj) {
172
+ (0, node_opcua_assert_1.assert)(obj);
173
+ const size = obj.binaryStoreSize();
174
+ console.log("-------------------------------------------------");
175
+ console.log(" size = ", size);
176
+ const stream = new node_opcua_binary_stream_1.BinaryStream(size);
177
+ obj.encode(stream);
178
+ stream.rewind();
179
+ console.log("-------------------------------------------------");
180
+ if (stream.buffer.length < 256) {
181
+ console.log((0, node_opcua_debug_1.hexDump)(stream.buffer));
182
+ console.log("-------------------------------------------------");
183
+ }
184
+ const reloadedObject = new obj.constructor();
185
+ analyzePacket(stream.buffer, reloadedObject, 0);
186
+ }
187
+ exports.analyze_object_binary_encoding = analyze_object_binary_encoding;
188
+ //# sourceMappingURL=packet_analyzer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packet_analyzer.js","sourceRoot":"","sources":["../../../source/packet_analyzer/packet_analyzer.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,+BAA+B;AAC/B,yDAA2C;AAE3C,mEAAsG;AACtG,uEAAwD;AACxD,uDAA2C;AAC3C,2DAA8E;AAC9E,uDAAmD;AAEnD,MAAM,MAAM,GACR,+KAA+K,CAAC;AAEpL,SAAS,CAAC,CAAC,CAAS,EAAE,KAAa;IAC/B,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;IACvB,OAAO,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;AAClE,CAAC;AAED,SAAS,qBAAqB,CAAC,OAAe,EAAE,YAAiB,EAAE,Y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;AAED,SAAgB,8BAA8B,CAAC,GAAiB;IAC5D,IAAA,0BAAM,EAAC,GAAG,CAAC,CAAC;IAEZ,MAAM,IAAI,GAAG,GAAG,CAAC,eAAe,EAAE,CAAC;IACnC,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC9B,MAAM,MAAM,GAAG,IAAI,uCAAY,CAAC,IAAI,CAAC,CAAC;IACtC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEnB,MAAM,CAAC,MAAM,EAAE,CAAC;IAChB,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IACjE,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE;QAC5B,OAAO,CAAC,GAAG,CAAC,IAAA,0BAAO,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QACpC,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;KACpE;IAED,MAAM,cAAc,GAAG,IAAK,GAAG,CAAC,WAAmB,EAAE,CAAC;IACtD,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;AACpD,CAAC;AAlBD,wEAkBC"}
@@ -0,0 +1,2 @@
1
+ import { BaseUAObject } from "node-opcua-factory";
2
+ export declare function compare_obj_by_encoding(obj1: BaseUAObject, obj2: BaseUAObject): boolean;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.compare_obj_by_encoding = void 0;
4
+ const node_opcua_binary_stream_1 = require("node-opcua-binary-stream");
5
+ const should = require("should");
6
+ const persist = should;
7
+ function compare_obj_by_encoding(obj1, obj2) {
8
+ function encoded(obj) {
9
+ const stream = new node_opcua_binary_stream_1.BinaryStream(obj.binaryStoreSize());
10
+ obj.encode(stream);
11
+ return stream.buffer.toString("hex");
12
+ }
13
+ encoded(obj1).should.eql(encoded(obj2));
14
+ return true;
15
+ }
16
+ exports.compare_obj_by_encoding = compare_obj_by_encoding;
17
+ //# sourceMappingURL=compare_obj_by_encoding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compare_obj_by_encoding.js","sourceRoot":"","sources":["../../test_helpers/compare_obj_by_encoding.ts"],"names":[],"mappings":";;;AAAA,uEAAwD;AAExD,iCAAiC;AACjC,MAAM,OAAO,GAAG,MAAM,CAAC;AAEvB,SAAgB,uBAAuB,CAAC,IAAkB,EAAE,IAAkB;IAC1E,SAAS,OAAO,CAAC,GAAiB;QAC9B,MAAM,MAAM,GAAG,IAAI,uCAAY,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;QACvD,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACnB,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACxC,OAAO,IAAI,CAAC;AAChB,CAAC;AARD,0DAQC"}
@@ -0,0 +1,22 @@
1
+ /// <reference types="node" />
2
+ import { BinaryStream } from "node-opcua-binary-stream";
3
+ import { ExpandedNodeId } from "node-opcua-nodeid";
4
+ import { BaseUAObject } from "node-opcua-factory";
5
+ export interface IExtensionObject extends BaseUAObject {
6
+ binaryStoreSize(): number;
7
+ encode(stream: BinaryStream): void;
8
+ decode(stream: BinaryStream): void;
9
+ encodingDefaultBinary?: ExpandedNodeId;
10
+ constructor: any;
11
+ }
12
+ type encode_decode_round_trip_testCallback = (buffer: Buffer, encoding: any, options: any) => void;
13
+ /**
14
+ * @method encode_decode_round_trip_test
15
+ * @param obj : object to test ( the object must provide a binaryStoreSize,encode,decode method
16
+ * @param [options]
17
+ * @param callback_buffer
18
+ * @return {*}
19
+ */
20
+ export declare function encode_decode_round_trip_test(obj: IExtensionObject, options?: unknown | encode_decode_round_trip_testCallback, callback_buffer?: encode_decode_round_trip_testCallback): any;
21
+ export declare function json_encode_decode_round_trip_test(obj: unknown, options: unknown, callbackBuffer?: unknown): void;
22
+ export {};
@@ -1,59 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.json_encode_decode_round_trip_test = exports.encode_decode_round_trip_test = void 0;
1
4
  // tslint:disable:no-console
2
5
  // @ts-check
3
- import * as chalk from "chalk";
4
- import { BinaryStream } from "node-opcua-binary-stream";
5
- import { hexDump } from "node-opcua-debug";
6
- import { ExpandedNodeId } from "node-opcua-nodeid";
7
- import { BaseUAObject, ConstructorFuncWithSchema, getStandardDataTypeFactory } from "node-opcua-factory";
8
- import { assert_arrays_are_equal } from "node-opcua-test-helpers";
9
- import * as should from "should";
10
-
11
- import { analyze_object_binary_encoding, analyzePacket } from "../source";
12
-
13
- export interface IExtensionObject extends BaseUAObject {
14
- binaryStoreSize(): number;
15
- encode(stream: BinaryStream): void;
16
- decode(stream: BinaryStream): void;
17
- encodingDefaultBinary?: ExpandedNodeId;
18
- constructor: any;
19
- }
20
- function dump_block_in_debug_mode(buffer: Buffer, id: any, options: any) {
6
+ const chalk = require("chalk");
7
+ const node_opcua_binary_stream_1 = require("node-opcua-binary-stream");
8
+ const node_opcua_debug_1 = require("node-opcua-debug");
9
+ const node_opcua_factory_1 = require("node-opcua-factory");
10
+ const node_opcua_test_helpers_1 = require("node-opcua-test-helpers");
11
+ const should = require("should");
12
+ const source_1 = require("../source");
13
+ function dump_block_in_debug_mode(buffer, id, options) {
21
14
  if (process.env.DEBUG) {
22
- console.log(hexDump(buffer));
23
- analyzePacket(buffer, id, 0, 0, options);
15
+ console.log((0, node_opcua_debug_1.hexDump)(buffer));
16
+ (0, source_1.analyzePacket)(buffer, id, 0, 0, options);
24
17
  }
25
18
  }
26
-
27
- function isTypedArray(v: any): boolean {
19
+ function isTypedArray(v) {
28
20
  if (v && v.buffer && v.buffer instanceof ArrayBuffer) {
29
21
  return true;
30
22
  }
31
23
  return false;
32
24
  }
33
-
34
- function isArrayOrTypedArray(v: any): boolean {
25
+ function isArrayOrTypedArray(v) {
35
26
  return isTypedArray(v) || v instanceof Array;
36
27
  }
37
-
38
- function compare(objReloaded: any, obj: any) {
39
- function displayError(p: string, expected: any, actual: any) {
28
+ function compare(objReloaded, obj) {
29
+ function displayError(p, expected, actual) {
40
30
  console.log(chalk.yellow(" ---------------------------------- error in encode_decode_round_trip_test"));
41
31
  console.log(chalk.red(" key "), p);
42
32
  console.log(chalk.red(" expected "), JSON.stringify(expected));
43
33
  console.log(chalk.cyan(" actual "), JSON.stringify(actual));
44
34
  }
45
-
46
- Object.keys(objReloaded).forEach((p: any) => {
35
+ Object.keys(objReloaded).forEach((p) => {
47
36
  try {
48
37
  if (isArrayOrTypedArray(obj[p])) {
49
- assert_arrays_are_equal(objReloaded[p], obj[p]);
50
- } else {
38
+ (0, node_opcua_test_helpers_1.assert_arrays_are_equal)(objReloaded[p], obj[p]);
39
+ }
40
+ else {
51
41
  if (objReloaded[p] === undefined || obj[p] === undefined) {
52
42
  return;
53
43
  }
54
- (JSON.stringify(objReloaded[p]) as any).should.eql(JSON.stringify(obj[p]));
44
+ JSON.stringify(objReloaded[p]).should.eql(JSON.stringify(obj[p]));
55
45
  }
56
- } catch (err) {
46
+ }
47
+ catch (err) {
57
48
  displayError(p, obj[p], objReloaded[p]);
58
49
  console.log(obj.toString());
59
50
  console.log(objReloaded.toString());
@@ -62,26 +53,21 @@ function compare(objReloaded: any, obj: any) {
62
53
  }
63
54
  });
64
55
  }
65
-
66
- function redirectToNull(functor: () => void) {
56
+ function redirectToNull(functor) {
67
57
  const old = console.log;
68
-
69
58
  if (!process.env.DEBUG) {
70
59
  // tslint:disable:no-empty
71
- console.log = (...args: any[]) => {
60
+ console.log = (...args) => {
72
61
  /** */
73
62
  };
74
63
  }
75
-
76
64
  try {
77
65
  functor();
78
- } finally {
66
+ }
67
+ finally {
79
68
  console.log = old;
80
69
  }
81
70
  }
82
-
83
- type encode_decode_round_trip_testCallback = (buffer: Buffer, encoding: any, options: any) => void;
84
-
85
71
  /**
86
72
  * @method encode_decode_round_trip_test
87
73
  * @param obj : object to test ( the object must provide a binaryStoreSize,encode,decode method
@@ -89,55 +75,38 @@ type encode_decode_round_trip_testCallback = (buffer: Buffer, encoding: any, opt
89
75
  * @param callback_buffer
90
76
  * @return {*}
91
77
  */
92
- export function encode_decode_round_trip_test(
93
- obj: IExtensionObject,
94
- options?: unknown | encode_decode_round_trip_testCallback,
95
- callback_buffer?: encode_decode_round_trip_testCallback
96
- ): any {
78
+ function encode_decode_round_trip_test(obj, options, callback_buffer) {
97
79
  if (!callback_buffer && typeof options === "function") {
98
- callback_buffer = options as encode_decode_round_trip_testCallback;
80
+ callback_buffer = options;
99
81
  options = {};
100
82
  }
101
-
102
83
  callback_buffer = callback_buffer || dump_block_in_debug_mode;
103
-
104
84
  should.exist(obj);
105
-
106
85
  const size = obj.binaryStoreSize();
107
-
108
- const stream = new BinaryStream(Buffer.alloc(size));
109
-
86
+ const stream = new node_opcua_binary_stream_1.BinaryStream(Buffer.alloc(size));
110
87
  obj.encode(stream);
111
-
112
88
  callback_buffer(stream.buffer, obj.encodingDefaultBinary, options);
113
-
114
89
  stream.rewind();
115
-
116
90
  // reconstruct a object ( some object may not have a default Binary and should be recreated
117
91
  const expandedNodeId = obj.encodingDefaultBinary;
118
- const objReloaded = expandedNodeId ? getStandardDataTypeFactory().constructObject(expandedNodeId) : new obj.constructor();
119
-
92
+ const objReloaded = expandedNodeId ? (0, node_opcua_factory_1.getStandardDataTypeFactory)().constructObject(expandedNodeId) : new obj.constructor();
120
93
  objReloaded.decode(stream);
121
-
122
- redirectToNull(() => analyze_object_binary_encoding(obj));
94
+ redirectToNull(() => (0, source_1.analyze_object_binary_encoding)(obj));
123
95
  compare(objReloaded, obj);
124
96
  return objReloaded;
125
97
  }
126
-
127
- export function json_encode_decode_round_trip_test(obj: unknown, options: unknown, callbackBuffer?: unknown): void {
98
+ exports.encode_decode_round_trip_test = encode_decode_round_trip_test;
99
+ function json_encode_decode_round_trip_test(obj, options, callbackBuffer) {
128
100
  if (!callbackBuffer && typeof options === "function") {
129
101
  callbackBuffer = options;
130
102
  options = {};
131
103
  }
132
104
  callbackBuffer = callbackBuffer || dump_block_in_debug_mode;
133
-
134
105
  should.exist(obj);
135
-
136
106
  const json = JSON.stringify(obj);
137
-
138
107
  const objReloaded = JSON.parse(json);
139
-
140
108
  compare(objReloaded, obj);
141
-
142
109
  return objReloaded;
143
110
  }
111
+ exports.json_encode_decode_round_trip_test = json_encode_decode_round_trip_test;
112
+ //# sourceMappingURL=encode_decode_round_trip_test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encode_decode_round_trip_test.js","sourceRoot":"","sources":["../../test_helpers/encode_decode_round_trip_test.ts"],"names":[],"mappings":";;;AAAA,4BAA4B;AAC5B,YAAY;AACZ,+BAA+B;AAC/B,uEAAwD;AACxD,uDAA2C;AAE3C,2DAAyG;AACzG,qEAAkE;AAClE,iCAAiC;AAEjC,sCAA0E;AAS1E,SAAS,wBAAwB,CAAC,MAAc,EAAE,EAAO,EAAE,OAAY;IACnE,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE;QACnB,OAAO,CAAC,GAAG,CAAC,IAAA,0BAAO,EAAC,MAAM,CAAC,CAAC,CAAC;QAC7B,IAAA,sBAAa,EAAC,MAAM,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;KAC5C;AACL,CAAC;AAED,SAAS,YAAY,CAAC,CAAM;IACxB,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,YAAY,WAAW,EAAE;QAClD,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,mBAAmB,CAAC,CAAM;IAC/B,OAAO,YAAY,CAAC,CAAC,CAA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AC,qBAAqB,CAAC;IACjD,MAAM,WAAW,GAAG,cAAc,CAAC,CAAC,CAAC,IAAA,+CAA0B,GAAE,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC;IAE1H,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAE3B,cAAc,CAAC,GAAG,EAAE,CAAC,IAAA,uCAA8B,EAAC,GAAG,CAAC,CAAC,CAAC;IAC1D,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IAC1B,OAAO,WAAW,CAAC;AACvB,CAAC;AAjCD,sEAiCC;AAED,SAAgB,kCAAkC,CAAC,GAAY,EAAE,OAAgB,EAAE,cAAwB;IACvG,IAAI,CAAC,cAAc,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE;QAClD,cAAc,GAAG,OAAO,CAAC;QACzB,OAAO,GAAG,EAAE,CAAC;KAChB;IACD,cAAc,GAAG,cAAc,IAAI,wBAAwB,CAAC;IAE5D,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAElB,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAEjC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAErC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IAE1B,OAAO,WAAW,CAAC;AACvB,CAAC;AAhBD,gFAgBC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./compare_obj_by_encoding"), exports);
18
+ __exportStar(require("./encode_decode_round_trip_test"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../test_helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,kEAAgD"}
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es6.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es5.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.dom.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.scripthost.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../node-opcua-assert/dist/index.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/index.d.ts","../../node-opcua-binary-stream/dist/binaryStream.d.ts","../../node-opcua-binary-stream/dist/binaryStreamSizeCalculator.d.ts","../../node-opcua-binary-stream/dist/index.d.ts","../../node-opcua-basic-types/dist/array.d.ts","../../node-opcua-basic-types/dist/attributeIds.d.ts","../../node-opcua-basic-types/dist/boolean.d.ts","../../node-opcua-basic-types/dist/byte_string.d.ts","../../node-opcua-basic-types/dist/data_type.d.ts","../../node-opcua-date-time/dist/date_time.d.ts","../../node-opcua-date-time/dist/encode_decode.d.ts","../../node-opcua-date-time/dist/index.d.ts","../../node-opcua-basic-types/dist/date_time.d.ts","../../node-opcua-basic-types/dist/floats.d.ts","../../node-opcua-guid/dist/guid.d.ts","../../node-opcua-guid/dist/index.d.ts","../../node-opcua-basic-types/dist/guid.d.ts","../../node-opcua-basic-types/dist/integers.d.ts","../../node-opcua-basic-types/dist/string.d.ts","../../node-opcua-basic-types/dist/locale_id.d.ts","../../node-opcua-nodeid/dist/nodeid.d.ts","../../node-opcua-nodeid/dist/expanded_nodeid.d.ts","../../node-opcua-nodeid/dist/index.d.ts","../../node-opcua-basic-types/dist/node_id.d.ts","../../node-opcua-basic-types/dist/round_to_float.d.ts","../../node-opcua-status-code/dist/_generated_status_codes.d.ts","../../node-opcua-status-code/dist/opcua_status_code.d.ts","../../node-opcua-status-code/dist/callbacks.d.ts","../../node-opcua-status-code/dist/index.d.ts","../../node-opcua-basic-types/dist/status_code.d.ts","../../node-opcua-basic-types/dist/index.d.ts","../../node-opcua-debug/dist/remove_decoration.d.ts","../../node-opcua-debug/dist/display_trace.d.ts","../../node-opcua-debug/dist/make_loggers.d.ts","../../node-opcua-debug/dist/make_buffer_from_trace.d.ts","../../node-opcua-debug/dist/hexDump.d.ts","../../node-opcua-debug/dist/dump_if.d.ts","../../node-opcua-debug/dist/index.d.ts","../../node-opcua-enum/dist/enum.d.ts","../../node-opcua-enum/dist/index.d.ts","../../node-opcua-factory/dist/builtin_types.d.ts","../../node-opcua-factory/dist/enumerations.d.ts","../../node-opcua-factory/dist/datatype_factory.d.ts","../../node-opcua-factory/dist/types.d.ts","../../node-opcua-factory/dist/base_ua_object.d.ts","../../node-opcua-factory/dist/basic_type.d.ts","../../node-opcua-factory/dist/builtin_types_special.d.ts","../../node-opcua-factory/dist/get_standard_data_type_factory.d.ts","../../node-opcua-factory/dist/get_structured_type_schema.d.ts","../../node-opcua-factory/dist/id_generator.d.ts","../../node-opcua-factory/dist/nodeid_type.d.ts","../../node-opcua-factory/dist/parameters.d.ts","../../node-opcua-factory/dist/register_class_definition.d.ts","../../node-opcua-factory/dist/schema_helpers.d.ts","../../node-opcua-factory/dist/structured_type_schema.d.ts","../../node-opcua-factory/dist/index.d.ts","../../node-opcua-utils/dist/buffer_ellipsis.d.ts","../../node-opcua-utils/dist/string_utils.d.ts","../../node-opcua-utils/dist/object_classname.d.ts","../../node-opcua-utils/dist/get_clock_tick.d.ts","../../node-opcua-utils/dist/compare_buffers.d.ts","../../node-opcua-utils/dist/function_variadic.d.ts","../../node-opcua-utils/dist/get_function_parameters_name.d.ts","../../node-opcua-utils/dist/watchdog.d.ts","../../node-opcua-utils/dist/set_deprecated.d.ts","../../node-opcua-utils/dist/replace_buffer_with_hex_dump.d.ts","../../node-opcua-utils/dist/timestamp.d.ts","../../node-opcua-utils/dist/line_file.d.ts","../../node-opcua-utils/dist/match_uri.d.ts","../../node-opcua-utils/dist/hrtime.d.ts","../../node-opcua-utils/dist/index.d.ts","../source/packet_analyzer/packet_analyzer.ts","../source/index.ts","../../../node_modules/.pnpm/should@13.2.3/node_modules/should/should.d.ts","../test_helpers/compare_obj_by_encoding.ts","../../node-opcua-test-helpers/dist/lorem_ipsum.d.ts","../../node-opcua-test-helpers/dist/typedarray_helpers.d.ts","../../node-opcua-test-helpers/dist/make_lorem_ipsum_buffer.d.ts","../../node-opcua-test-helpers/dist/index.d.ts","../test_helpers/encode_decode_round_trip_test.ts","../test_helpers/index.ts","../../../node_modules/.pnpm/@types+async@3.2.18/node_modules/@types/async/index.d.ts","../../../node_modules/.pnpm/@types+bonjour@3.5.10/node_modules/@types/bonjour/index.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/common/common.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/common/array.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/common/collection.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/common/date.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/common/function.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/common/lang.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/common/math.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/common/number.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/common/object.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/common/seq.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/common/string.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/common/util.d.ts","../../../node_modules/.pnpm/@types+lodash@4.14.192/node_modules/@types/lodash/index.d.ts","../../../node_modules/.pnpm/@types+long@4.0.2/node_modules/@types/long/index.d.ts","../../../node_modules/.pnpm/@types+mkdirp@1.0.2/node_modules/@types/mkdirp/index.d.ts","../../../node_modules/.pnpm/@types+mocha@10.0.1/node_modules/@types/mocha/index.d.ts","../../../node_modules/.pnpm/@types+once@1.4.0/node_modules/@types/once/index.d.ts","../../../node_modules/.pnpm/@types+prettier@2.7.2/node_modules/@types/prettier/index.d.ts","../../../node_modules/.pnpm/@types+minimatch@5.1.2/node_modules/@types/minimatch/index.d.ts","../../../node_modules/.pnpm/@types+glob@8.0.0/node_modules/@types/glob/index.d.ts","../../../node_modules/.pnpm/@types+rimraf@3.0.2/node_modules/@types/rimraf/index.d.ts","../../../node_modules/.pnpm/@types+sinonjs__fake-timers@8.1.2/node_modules/@types/sinonjs__fake-timers/index.d.ts","../../../node_modules/.pnpm/@types+sinon@10.0.13/node_modules/@types/sinon/index.d.ts","../../../node_modules/.pnpm/@types+underscore@1.11.4/node_modules/@types/underscore/index.d.ts","../../../node_modules/.pnpm/@types+wordwrap@1.0.1/node_modules/@types/wordwrap/index.d.ts","../../../node_modules/.pnpm/@types+yargs-parser@21.0.0/node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/.pnpm/@types+yargs@17.0.24/node_modules/@types/yargs/index.d.ts"],"fileInfos":["df039a67536fe2acc3affdcbfb645892f842db36fe599e8e652e2f0c640a90d1",{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"fcd3ecc9f764f06f4d5c467677f4f117f6abf49dee6716283aa204ff1162498b","affectsGlobalScope":true},{"version":"9a60b92bca4c1257db03b349d58e63e4868cfc0d1c8d0ba60c2dbc63f4e6c9f6","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","f851fc7f1146a83998a766c28cd6e0b4f3485f74eedba8c4843cf20065ef1aa4","7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"57b6cb95756d1fe3bfeb20205de27b0c5406e4a86e130c6dfa6bd92af641e09d","affectsGlobalScope":true},"11e2d554398d2bd460e7d06b2fa5827a297c8acfbe00b4f894a224ac0862857f",{"version":"e193e634a99c9c1d71f1c6e4e1567a4a73584328d21ea02dd5cddbaad6693f61","affectsGlobalScope":true},"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","e596c9bb2f29a2699fdd4ae89139612652245192f67f45617c5a4b20832aaae9","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","216717f17c095cde1dc19375e1ab3af0a4a485355860c077a4f9d6ea59fab5b5","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"80473bd0dd90ca1e166514c2dfead9d5803f9c51418864ca35abbeec6e6847e1","1c84b46267610a34028edfd0d035509341751262bac1062857f3c8df7aff7153","e6c86d83bd526c8bdb5d0bf935b8e72ce983763d600743f74d812fdf4abf4df6","a3d541d303ee505053f5dcbf9fafb65cac3d5631037501cd616195863a6c5740","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true},"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"0715e4cd28ad471b2a93f3e552ff51a3ae423417a01a10aa1d3bc7c6b95059d6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","7d55d78cd47cf5280643b53434b16c2d9d11d144126932759fbdd51da525eec4","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","f69ff39996a61a0dd10f4bce73272b52e8024a4d58b13ab32bf4712909d0a2b7",{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","c4577fb855ca259bdbf3ea663ca73988ce5f84251a92b4aef80a1f4122b6f98e","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"ff07a9a03c65732ccc59b3c65bc584173da093bd563a6565411c01f5703bd3cb","affectsGlobalScope":true},"6de4a219df57d2b27274d59b67708f13c2cbf7ed211abe57d8f9ab8b25cde776","0fe8985a28f82c450a04a6edf1279d7181c0893f37da7d2a27f8efd4fd5edb03","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"d8d555f3d607ecaa18d55de6995ea8f206342ecc93305919eac945c7c78c78c6","e95c31209ebc6be999bb87bad6112f69abae0de4d09e53e660b76cd3236f5e5c","493877a62dfb743c1fd4a9332e40616db8913927a38626c791624f70926b2b37","576bf3d4754a489d145ae6f8a0d51dbc33bcaad81fa567e04360f7c96eff345b","e1726e41c1235296e2ba3fbbb61f8d6f1d6686e31adc376184296abdd004fe5c","b55e1482f0380266d6eda811c4a87b9c36b19b6e734b7bb35fc41458c3ae9305","b44b0b277b1740d83063063fdddb8bb7afe879255e168e237b15e71fc4bd8ecb","bc6f355cf30be936728ca3906cd613abd5dac775d62a2bbcc58ca884a302fa40","0b6507b84e91f1d725e4708c13e5c692154489ff616a902497fbf018a701c35b","949dbda9e5dc370ba53f6f25ecb6828cb82cab7da0547b16abb5703979a6dba9","edc615d392f156f20b36a041ff0720213bf74108297fa80891c2d5fc6988a358","62a8ebfbda3c606c1c0123bfe3c3b98ec8e418dbb89fb8f575155a80c516a428","f14a1aeb17ea707267ec4b85e2d83c0c547fb9b310e536cde30cf8b696ac1b6c","f8dd312f8508f7e8297a702c9d98b0bd6966c64fbe185129da75f18dc97d5265","0eac4786d9cf06f8acb8c88113922c1a29eda6eddca393b16c9628af9f1bc122","01db9315534d0ed457260aac7637e3f5873d2f0ee3356def729fce07924674a6","d631af53eda6b313e9f0d78bb8f07f029d92fa5c457bdcaec592b418b9a74e34","8f804c7cc3b3acb023d47af89f5b79be9b2a2ff2bb57653f85cb68052609b5ca","6931743d317a28c615f28c562d39f1159c868c16c9dce65feaf6a2c9b97f14e8","97ef53e5c3fa7b2ef64e19ab2f1b56deadf50736472af744c49a1034c47afacc","b79c118be0ae2bcf5e311758813314924f5abc4c7e4b2457eb54c3837ddcfcaa","e8aa3e3e0b2e99e249aeb4311b2e90b50bebb99d53ea2e581214a37a636065b6","8fd5a91e0727696171da12f46774e98776383594eae8a73b5c69b0499b70b46c","314d4a91f0fda442fd955ca40278c9a86a6235f11dd9ddac69fdc2662dbfce24","606fb9af057883b0714da484677892c212117490a07aa26774e0ac970589c217","f9ddade8f7c5886014685b67d2c5fff808a8648ceb2b72fb69dd48bdebaa16c8","aedb397a02856e9d771f048f3e5603d0e73a183a28246ccb3b2d7655a795e86b","6ec934c20bf7fde4288dbb76bb81a4ebe54a84dedb076f0dafd39525d174352e","bc625934d84ae336f7e1bfb7201875cc545a3b50ed49636357cd06fe47ef339e","3b2b9457b1f91dcc2995413c70595916e63247ac89d77228eaff70cea5ee0724","fa985d8ce5f029bddbf26924ae6b6b9a2330d83119c886031de9f279448611de","ab0428ae3b3641df1755556c134f6357ed20f37cd1723308f9d9f0e56d05cdd5","a4b332bb52f18d01e1eaea25758d8f606aeeb66835179425400556a7cac9424f","134343298cd548afd89eddca49dc635de9951b3132fc770024e84ca18e821cec","750b4a4635c8944681bee108155c55762e01a9f9deeeb12cd36e768c1abd1a94","568e64fedba4db2ab15b0b599ff28c263bc8230ce9249f61364d7c2b9d5c4934","0dc1ad1c10178c0dc222355a2c5ee847088e244629a532ee7890f4441230bbab","6a6878ba2d942fc2bce9afdca5ff947d5d95b34fd46e9729b6b766e2c2ecc632","698059609cc8652d768c726e97d27913e85b8ec41e4d0939ad38344823c2388a","83c69746d548a45d58dd71d9997577697ed2510ea53727d9b9f4e035adacba99","3c39a65af58f843fa043863c9388cdc75c73a607d7bdbcc9be491a726e522a23","fcc87813fc22de385d29a0775570680dceb15452b438c48e5d45445cd127b6f0","a44a5d3becccf67fba073a57115268891b5b043f6ad507b48997177a12fa4d74","c69f095dc04da61db5ddad0aa4a1f716feb56fa8c36d4e85c54f0e48a63e5dd1","4241ed18bc82bb61e3f59900f9a95544eb3f62e8bfee48aa84119571b2c91910","9c0061855dc5c6093c14b9119827919be046505cad4021a869dbc94e6baec92b","4ed20c7e58bb65ac9daa9a1148169b2bcdabb1da58d31bfa0d5d312d65deaec0","8d1512ed6a1cc6e6bb6fa42ddcebe61c40018edd5a13368c164d30d773edf561","8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","67d3742d9a9dcb3eba7f7523524abfb2c6f0978e96ee7d91e0fd5b2495b37e16","1a2246964d96c7c1c926b50d6bc7ea49c10fc4f017cde64e71871c1d4ec330d8","b1c9590cd22ec8472ab598e8a55a2637ce3743f808abeca93d951551750b5335","392f580927fbeb428d4c72f9264b1b071d31d424f03d34f5a0fa9387f8dff2e2","1dbd7bb79b50d47f01605f7d67d40d97edb48464bbe23cc1f8c577494a80cb8f","df85ca077a50d9a6939000d098e0556b59251f82b56cd97a73d883e1dfa38ba8","04964a25ffe1a5dfab0097c435bcf90a7e25f3f7ee421ee826563d66a5cbfa30","bb7e28d9e4dcb69c400d04bb59b4c97518070593ba73d70e18884cf60a8c86b9","f42c2b7084c4f208dc7a0ed5fdddec0ae10e27a5b965eab338a0ad816d027a57","6acd4c7987f6cfdaefa6f477d1089c621a07513b457cb930d62ff1deb0c88aa7","81f081ae345273dd679344ec3993723edeb6cc3505f4ab1f5e3d019f38c23417","328bb7c2a6ed8f003fbcab042a539641da1c095cab0e9652bec8bbd846dc73c3","76fc59b0a8cc6a37e60439a76a8fe69e47579837d3d3ed2ee417f8a01951a294","e844cc50b2bc35f5ab85b86cc1178fb670f3faba32ecc07cb8bdc8a518ed7c93","951fb2a0fad409f153f74a8500c4c72749914c731523793ba177d68bfcf46a2a","0a1b9f3fe65f85fb4841f46be7fe231bfe1636e35165aba6233bc22103a72bc2","b811ae36a6044491b53928268237f97d5c4cbc50f9782633ab90d76433cf407f","5de0510a5e35d764ba0df2c597c7e607140cf65df8aba9ec9aa27b1e81ca1cb9","5c9ea5caace1d9705abf419e488056736aa69ff4e4765b0225b5abcb35324add","2379c3dc5c4ed466eaffb3b2c9022d75e3afd83906c8112d2d6973760697d87e","2b59db7caff4ab87aedc2adadddef2d8cb18c33547167bed68e1b0aa5a5894e1","cffe12661e1a6f9f8d62f80dc93985e594d5b119d4fe36ae637096ef5bebddb1",{"version":"80df102e2aebd29651f201e2103848ea5f2fd49cd2892142809991f189783e02","signature":"023c17031b80937444f7ab224e28591c676bbace6c9ba06b39eb2c358d21bd5a"},"fbd914e2b6d10271f638536eec30ec8d423a6ab60e0086c29f06dd7cc89baccc",{"version":"79da89e1b61cecf107f52a0c2578f31528bc0accdc73bec7325f468a5706a559","affectsGlobalScope":true},{"version":"857c0306ee7d0ed6dd0dcdc1eaf69dc599f7fe10903bc933622174f6312ed04c","signature":"eebdaf38fd0e25c77b60e69e784800e7d00fdd52da0cb0b0d97e123eccb36238"},"d1a70b71eac694918c83ee0f73d6932c4dc08d72417413612576fa3b69e16111","ae5a2c5757e8c78bffdcab937b0b1e77190c1c8496f2f1cd738c1beec1459028","2f993b5052006470e17b33a2ad0c7a1755fabc730beb2b97812d801a5b78453f","5481faaea0019234848087b3251afae485079193d1473764487dfc678585087f",{"version":"f3df6047e7f270731983c194ab2e22968e6587b05bbe76bbacf4c87f439b2062","signature":"a893c76166477d61bc501d719c34756382c35698a0c0f55c05f0a5bc913ee16b"},"e4ce5688f0b644842c5e19e2963b4400c395ebd7da59f9c334fe459c3172e72f","211886ed3f8780d63af755714f1c868851fc561dfb305722708f10f874ed9f6f","d78e5898c8de5e0f934eee83f680262de005caa268d137101b833fd932f95e07","1171e4dfda53f093511e29b1f993a21fca24925055640cacc94226eefb7bb062","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","dcd91d3b697cb650b95db5471189b99815af5db2a1cd28760f91e0b12ede8ed5","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"0e60e0cbf2283adfd5a15430ae548cd2f662d581b5da6ecd98220203e7067c70","875d567ecf2f865a1b19d30f2acf3203817e19fd95f7675351d046914ee39ac8",{"version":"677646e2620795c98a539fb12fb531f10331c217cef1492132b2518f894fa92d","affectsGlobalScope":true},{"version":"0946506310901fb245af3438f1dd2bdb6f89f08faf8dacac63e035d78c2bf482","affectsGlobalScope":true},"bc88e4049153bc4dddb4503ed7e624eb141edfa9064b3659d6c86e900fe9e621","963d59066dd6742da1918a6213a209bcc205b8ee53b1876ee2b4e6d80f97c85e","a55ca8b5f8c6a8535bb26fac1e10132a5338234ca3d5b9ed739fbc8ef41c8075","f4cf5f0ad1cfb0ceebbe4fbe8aaf0aa728e899c99cc36ec6c0c4b8f6e8a84c83","f83b320cceccfc48457a818d18fc9a006ab18d0bdd727aa2c2e73dc1b4a45e98","354abbae08f72ea982b1a767a8908f1b3efe8bbe53955c64f9c0c249c8832d5d",{"version":"0609dda5350cd6d8c42daef710dffe3b51521ffbd00109e234f7bfb7533194e7","affectsGlobalScope":true},"8d007c8fe1a38e90fd50410e3c690a54f9bbfef7a88964c4870ca2af9656bb64","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","e9eb1b173aa166892f3eddab182e49cfe59aa2e14d33aedb6b49d175ed6a3750"],"root":[175,176,178,183,184],"options":{"composite":true,"declaration":true,"module":1,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noStrictGenericChecks":false,"outDir":"./","removeComments":false,"rootDir":"..","skipLibCheck":false,"sourceMap":true,"strict":true,"strictFunctionTypes":true,"target":2},"fileIdsList":[[97],[61,97,104],[67,68,97,104,205],[97,187,189,190,191,192,193,194,195,196,197,198,199],[97,187,188,190,191,192,193,194,195,196,197,198,199],[97,188,189,190,191,192,193,194,195,196,197,198,199],[97,187,188,189,191,192,193,194,195,196,197,198,199],[97,187,188,189,190,192,193,194,195,196,197,198,199],[97,187,188,189,190,191,193,194,195,196,197,198,199],[97,187,188,189,190,191,192,194,195,196,197,198,199],[97,187,188,189,190,191,192,193,195,196,197,198,199],[97,187,188,189,190,191,192,193,194,196,197,198,199],[97,187,188,189,190,191,192,193,194,195,197,198,199],[97,187,188,189,190,191,192,193,194,195,196,198,199],[97,187,188,189,190,191,192,193,194,195,196,197,199],[97,187,188,189,190,191,192,193,194,195,196,197,198],[68,97,104],[51,97],[54,97],[55,60,88,97],[56,67,68,75,85,96,97],[56,57,67,75,97],[58,97],[59,60,68,76,97],[60,85,93,97],[61,63,67,75,97],[62,97],[63,64,97],[67,97],[65,67,97],[67,68,69,85,96,97],[67,68,69,82,85,88,97],[97,101],[63,70,75,85,96,97],[67,68,70,71,75,85,93,96,97],[70,72,85,93,96,97],[51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],[67,73,97],[74,96,97],[63,67,75,85,97],[76,97],[77,97],[54,78,97],[79,95,97,101],[80,97],[81,97],[67,82,83,97],[82,84,97,99],[55,67,85,86,87,88,97],[55,85,87,97],[85,86,97],[88,97],[89,97],[67,91,92,97],[91,92,97],[60,75,85,93,97],[94,97],[75,95,97],[55,70,81,96,97],[60,97],[85,97,98],[97,99],[97,100],[55,60,67,69,78,85,96,97,99,101],[85,97,102],[68,97,104,206],[97,208],[97,212],[97,107],[97,104,107],[97,115],[97,107,119],[97,104,108,109,110,111,112,116,117,120,121,122,123,127,128,133],[97,107,122],[97,107,126],[97,132],[97,104],[97,105,106],[97,107,113],[97,113,114],[97,135,136,137,138,139,140],[67,97,104],[97,142],[97,107,147],[97,147],[97,126,145,147],[97,107,126,143,144,147],[97,146,147],[97,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158],[97,143],[97,126,147],[97,107,126,144,146,147],[97,107,126,143,146],[97,118],[97,104,119,124],[97,124,125],[97,104,119],[97,175],[49,50,97,107,134,141,159,174],[97,107,159,177],[49,97,107,126,141,159,176,177,182],[97,178,183],[97,130],[97,104,130],[97,130,131],[97,107,129],[97,179,180,181],[97,165],[97,160,161,162,163,164,166,167,168,169,170,171,172,173],[107,159],[159],[107,126,159]],"referencedMap":[[185,1],[186,2],[206,3],[188,4],[189,5],[187,6],[190,7],[191,8],[192,9],[193,10],[194,11],[195,12],[196,13],[197,14],[198,15],[199,16],[200,1],[205,1],[201,17],[202,1],[51,18],[52,18],[54,19],[55,20],[56,21],[57,22],[58,23],[59,24],[60,25],[61,26],[62,27],[63,28],[64,28],[66,29],[65,30],[67,29],[68,31],[69,32],[53,33],[103,1],[70,34],[71,35],[72,36],[104,37],[73,38],[74,39],[75,40],[76,41],[77,42],[78,43],[79,44],[80,45],[81,46],[82,47],[83,47],[84,48],[85,49],[87,50],[86,51],[88,52],[89,53],[90,1],[91,54],[92,55],[93,56],[94,57],[95,58],[96,59],[97,60],[98,61],[99,62],[100,63],[101,64],[102,65],[203,1],[204,1],[207,66],[209,67],[208,1],[210,1],[211,1],[212,1],[213,68],[49,1],[177,1],[50,1],[108,69],[109,1],[110,69],[111,70],[112,1],[116,71],[117,69],[120,72],[134,73],[121,69],[123,74],[127,75],[128,1],[133,76],[122,69],[105,77],[106,77],[107,78],[113,1],[114,79],[115,80],[136,1],[140,1],[139,77],[141,81],[138,77],[137,82],[135,1],[142,1],[143,83],[148,84],[149,69],[144,84],[150,85],[146,86],[145,87],[151,88],[152,1],[153,1],[159,89],[154,90],[155,1],[156,91],[157,88],[158,92],[147,93],[118,1],[119,94],[125,95],[126,96],[124,97],[176,98],[175,99],[178,100],[183,101],[184,102],[129,103],[131,104],[132,105],[130,106],[182,107],[179,1],[181,77],[180,1],[160,77],[164,77],[165,1],[163,1],[166,108],[173,1],[174,109],[171,1],[172,1],[162,1],[169,1],[168,108],[161,1],[170,1],[167,82],[47,1],[48,1],[9,1],[10,1],[14,1],[13,1],[3,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[4,1],[5,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[37,1],[34,1],[35,1],[36,1],[38,1],[8,1],[39,1],[44,1],[45,1],[40,1],[41,1],[42,1],[43,1],[2,1],[1,1],[46,1],[12,1],[11,1]],"exportedModulesMap":[[185,1],[186,2],[206,3],[188,4],[189,5],[187,6],[190,7],[191,8],[192,9],[193,10],[194,11],[195,12],[196,13],[197,14],[198,15],[199,16],[200,1],[205,1],[201,17],[202,1],[51,18],[52,18],[54,19],[55,20],[56,21],[57,22],[58,23],[59,24],[60,25],[61,26],[62,27],[63,28],[64,28],[66,29],[65,30],[67,29],[68,31],[69,32],[53,33],[103,1],[70,34],[71,35],[72,36],[104,37],[73,38],[74,39],[75,40],[76,41],[77,42],[78,43],[79,44],[80,45],[81,46],[82,47],[83,47],[84,48],[85,49],[87,50],[86,51],[88,52],[89,53],[90,1],[91,54],[92,55],[93,56],[94,57],[95,58],[96,59],[97,60],[98,61],[99,62],[100,63],[101,64],[102,65],[203,1],[204,1],[207,66],[209,67],[208,1],[210,1],[211,1],[212,1],[213,68],[49,1],[177,1],[50,1],[108,69],[109,1],[110,69],[111,70],[112,1],[116,71],[117,69],[120,72],[134,73],[121,69],[123,74],[127,75],[128,1],[133,76],[122,69],[105,77],[106,77],[107,78],[113,1],[114,79],[115,80],[136,1],[140,1],[139,77],[141,81],[138,77],[137,82],[135,1],[142,1],[143,83],[148,84],[149,69],[144,84],[150,85],[146,86],[145,87],[151,88],[152,1],[153,1],[159,89],[154,90],[155,1],[156,91],[157,88],[158,92],[147,93],[118,1],[119,94],[125,95],[126,96],[124,97],[176,98],[175,110],[178,111],[183,112],[184,102],[129,103],[131,104],[132,105],[130,106],[182,107],[179,1],[181,77],[180,1],[160,77],[164,77],[165,1],[163,1],[166,108],[173,1],[174,109],[171,1],[172,1],[162,1],[169,1],[168,108],[161,1],[170,1],[167,82],[47,1],[48,1],[9,1],[10,1],[14,1],[13,1],[3,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[4,1],[5,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[37,1],[34,1],[35,1],[36,1],[38,1],[8,1],[39,1],[44,1],[45,1],[40,1],[41,1],[42,1],[43,1],[2,1],[1,1],[46,1],[12,1],[11,1]],"semanticDiagnosticsPerFile":[185,186,206,188,189,187,190,191,192,193,194,195,196,197,198,199,200,205,201,202,51,52,54,55,56,57,58,59,60,61,62,63,64,66,65,67,68,69,53,103,70,71,72,104,73,74,75,76,77,78,79,80,81,82,83,84,85,87,86,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,203,204,207,209,208,210,211,212,213,49,177,50,108,109,110,111,112,116,117,120,134,121,123,127,128,133,122,105,106,107,113,114,115,136,140,139,141,138,137,135,142,143,148,149,144,150,146,145,151,152,153,159,154,155,156,157,158,147,118,119,125,126,124,176,175,178,183,184,129,131,132,130,182,179,181,180,160,164,165,163,166,173,174,171,172,162,169,168,161,170,167,47,48,9,10,14,13,3,15,16,17,18,19,20,21,22,4,5,26,23,24,25,27,28,29,6,30,31,32,33,7,37,34,35,36,38,8,39,44,45,40,41,42,43,2,1,46,12,11],"latestChangedDtsFile":"./test_helpers/index.d.ts"},"version":"5.0.4"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-opcua-packet-analyzer",
3
- "version": "2.98.0",
4
- "description": "pure nodejs OPCUA SDK - module -packet-analyzer",
3
+ "version": "2.98.1",
4
+ "description": "pure nodejs OPCUA SDK - module packet-analyzer",
5
5
  "main": "./dist/source/index.js",
6
6
  "types": "./dist/source/index.d.ts",
7
7
  "scripts": {
@@ -15,16 +15,16 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "chalk": "4.1.2",
18
- "node-opcua-assert": "2.88.0",
19
- "node-opcua-basic-types": "2.98.0",
20
- "node-opcua-binary-stream": "2.98.0",
21
- "node-opcua-debug": "2.98.0",
22
- "node-opcua-factory": "2.98.0",
23
- "node-opcua-utils": "2.98.0"
18
+ "node-opcua-assert": "2.98.1",
19
+ "node-opcua-basic-types": "2.98.1",
20
+ "node-opcua-binary-stream": "2.98.1",
21
+ "node-opcua-debug": "2.98.1",
22
+ "node-opcua-factory": "2.98.1",
23
+ "node-opcua-utils": "2.98.1"
24
24
  },
25
25
  "devDependencies": {
26
- "node-opcua-nodeid": "2.98.0",
27
- "node-opcua-test-helpers": "2.88.0",
26
+ "node-opcua-nodeid": "2.98.1",
27
+ "node-opcua-test-helpers": "2.98.1",
28
28
  "should": "^13.2.3"
29
29
  },
30
30
  "repository": {
@@ -40,5 +40,9 @@
40
40
  "internet of things"
41
41
  ],
42
42
  "homepage": "http://node-opcua.github.io/",
43
- "gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c"
43
+ "gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c",
44
+ "files": [
45
+ "dist",
46
+ "source"
47
+ ]
44
48
  }
@@ -1,14 +0,0 @@
1
- import { BinaryStream } from "node-opcua-binary-stream";
2
- import { BaseUAObject } from "node-opcua-factory";
3
- import * as should from "should";
4
- const persist = should;
5
-
6
- export function compare_obj_by_encoding(obj1: BaseUAObject, obj2: BaseUAObject): boolean {
7
- function encoded(obj: BaseUAObject) {
8
- const stream = new BinaryStream(obj.binaryStoreSize());
9
- obj.encode(stream);
10
- return stream.buffer.toString("hex");
11
- }
12
- encoded(obj1).should.eql(encoded(obj2));
13
- return true;
14
- }