node-opcua-transport 2.66.2 → 2.68.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,11 +1,7 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
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);
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
5
  }) : (function(o, m, k, k2) {
10
6
  if (k2 === undefined) k2 = k;
11
7
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,iDAA+B;AAC/B,uDAAqC;AACrC,oDAAkC;AAClC,yDAAuC;AACvC,yDAAuC;AACvC,kDAAgC;AAChC,0CAAwB;AACxB,yDAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;GAEG;AACH,iDAA+B;AAC/B,uDAAqC;AACrC,oDAAkC;AAClC,yDAAuC;AACvC,yDAAuC;AACvC,kDAAgC;AAChC,0CAAwB;AACxB,yDAAuC"}
@@ -171,7 +171,7 @@ class ServerTCP_transport extends tcp_transport_1.TCP_transport {
171
171
  }
172
172
  (0, node_opcua_assert_1.assert)(!this._helloReceived);
173
173
  const stream = new node_opcua_binary_stream_1.BinaryStream(data);
174
- const msgType = data.slice(0, 3).toString("ascii");
174
+ const msgType = data.slice(0, 3).toString("utf-8");
175
175
  /* istanbul ignore next*/
176
176
  if (doDebug) {
177
177
  debugLog("SERVER received " + chalk.yellow(msgType));
@@ -1,11 +1,7 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
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);
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
5
  }) : (function(o, m, k, k2) {
10
6
  if (k2 === undefined) k2 = k;
11
7
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../test-fixtures/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../test-fixtures/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA2C"}
@@ -1,11 +1,7 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
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);
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
5
  }) : (function(o, m, k, k2) {
10
6
  if (k2 === undefined) k2 = k;
11
7
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../test_helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../test_helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA8B;AAC9B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-transport",
3
- "version": "2.66.2",
3
+ "version": "2.68.1",
4
4
  "description": "pure nodejs OPCUA SDK - module -transport",
5
5
  "main": "./dist/source/index.js",
6
6
  "types": "./dist/source/index.d.ts",
@@ -14,18 +14,18 @@
14
14
  "dependencies": {
15
15
  "chalk": "4.1.2",
16
16
  "node-opcua-assert": "2.66.0",
17
- "node-opcua-basic-types": "2.66.0",
18
- "node-opcua-binary-stream": "2.66.0",
19
- "node-opcua-buffer-utils": "2.66.0",
20
- "node-opcua-chunkmanager": "2.66.0",
21
- "node-opcua-debug": "2.66.0",
22
- "node-opcua-factory": "2.66.0",
23
- "node-opcua-nodeid": "2.66.0",
24
- "node-opcua-object-registry": "2.66.0",
17
+ "node-opcua-basic-types": "2.68.0",
18
+ "node-opcua-binary-stream": "2.67.0",
19
+ "node-opcua-buffer-utils": "2.67.0",
20
+ "node-opcua-chunkmanager": "2.68.0",
21
+ "node-opcua-debug": "2.68.0",
22
+ "node-opcua-factory": "2.68.0",
23
+ "node-opcua-nodeid": "2.68.0",
24
+ "node-opcua-object-registry": "2.68.0",
25
25
  "node-opcua-packet-assembler": "2.66.0",
26
- "node-opcua-status-code": "2.66.0",
27
- "node-opcua-types": "2.66.0",
28
- "node-opcua-utils": "2.66.0"
26
+ "node-opcua-status-code": "2.67.0",
27
+ "node-opcua-types": "2.68.1",
28
+ "node-opcua-utils": "2.67.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "17.0.23",
@@ -48,5 +48,5 @@
48
48
  "internet of things"
49
49
  ],
50
50
  "homepage": "http://node-opcua.github.io/",
51
- "gitHead": "2ece6987ee945db089ec98800646e95ccbac9e1f"
51
+ "gitHead": "7bcb67b06ea755d438e91f5c143d20531497e286"
52
52
  }
@@ -35,7 +35,7 @@ export function readRawMessageHeader(data: Buffer): PacketInfo {
35
35
  *
36
36
  */
37
37
  export class MessageBuilderBase extends EventEmitter {
38
- public readonly signatureLength: number;
38
+ public readonly signatureLength: number;
39
39
  public readonly options: { signatureLength?: number };
40
40
  public readonly _packetAssembler: PacketAssembler;
41
41
  public channelId: number;
@@ -217,7 +217,7 @@ export class ServerTCP_transport extends TCP_transport {
217
217
  }
218
218
  assert(!this._helloReceived);
219
219
  const stream = new BinaryStream(data);
220
- const msgType = data.slice(0, 3).toString("ascii");
220
+ const msgType = data.slice(0, 3).toString("utf-8");
221
221
 
222
222
  /* istanbul ignore next*/
223
223
  if (doDebug) {