node-opcua-transport 2.56.2 → 2.61.0
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.
- package/.mocharc.yml +10 -10
- package/LICENSE +20 -20
- package/dist/source/tcp_transport.js +2 -2
- package/package.json +13 -13
- package/source/index.ts +11 -11
- package/source/tcp_transport.ts +2 -2
- package/test_helpers/index.ts +4 -4
package/.mocharc.yml
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
require:
|
|
2
|
-
- ../../node_modules/source-map-support/register
|
|
3
|
-
- ../../node_modules/ts-node/register
|
|
4
|
-
- ../../node_modules/should
|
|
5
|
-
timeout: 30000
|
|
6
|
-
extension:
|
|
7
|
-
- ts
|
|
8
|
-
- js
|
|
9
|
-
bail: true
|
|
10
|
-
parallel: false
|
|
1
|
+
require:
|
|
2
|
+
- ../../node_modules/source-map-support/register
|
|
3
|
+
- ../../node_modules/ts-node/register
|
|
4
|
+
- ../../node_modules/should
|
|
5
|
+
timeout: 30000
|
|
6
|
+
extension:
|
|
7
|
+
- ts
|
|
8
|
+
- js
|
|
9
|
+
bail: true
|
|
10
|
+
parallel: false
|
package/LICENSE
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2014-2021 Etienne Rossignon
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
-
the Software without restriction, including without limitation the rights to
|
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
-
subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2021 Etienne Rossignon
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -245,9 +245,9 @@ class TCP_transport extends events_1.EventEmitter {
|
|
|
245
245
|
return false;
|
|
246
246
|
}
|
|
247
247
|
_on_message_received(messageChunk) {
|
|
248
|
-
const
|
|
248
|
+
const hadCallback = this._fulfill_pending_promises(null, messageChunk);
|
|
249
249
|
this.chunkReadCount++;
|
|
250
|
-
if (!
|
|
250
|
+
if (!hadCallback) {
|
|
251
251
|
/**
|
|
252
252
|
* notify the observers that a message chunk has been received
|
|
253
253
|
* @event message
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-transport",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.61.0",
|
|
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,24 +14,24 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"chalk": "4.1.2",
|
|
16
16
|
"node-opcua-assert": "2.55.0",
|
|
17
|
-
"node-opcua-basic-types": "2.
|
|
17
|
+
"node-opcua-basic-types": "2.61.0",
|
|
18
18
|
"node-opcua-binary-stream": "2.55.0",
|
|
19
19
|
"node-opcua-buffer-utils": "2.55.0",
|
|
20
|
-
"node-opcua-chunkmanager": "2.
|
|
21
|
-
"node-opcua-debug": "2.
|
|
22
|
-
"node-opcua-factory": "2.
|
|
23
|
-
"node-opcua-nodeid": "2.
|
|
24
|
-
"node-opcua-object-registry": "2.
|
|
20
|
+
"node-opcua-chunkmanager": "2.61.0",
|
|
21
|
+
"node-opcua-debug": "2.61.0",
|
|
22
|
+
"node-opcua-factory": "2.61.0",
|
|
23
|
+
"node-opcua-nodeid": "2.61.0",
|
|
24
|
+
"node-opcua-object-registry": "2.61.0",
|
|
25
25
|
"node-opcua-packet-assembler": "2.55.0",
|
|
26
26
|
"node-opcua-status-code": "2.56.0",
|
|
27
|
-
"node-opcua-types": "2.
|
|
28
|
-
"node-opcua-utils": "2.
|
|
27
|
+
"node-opcua-types": "2.61.0",
|
|
28
|
+
"node-opcua-utils": "2.60.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "16.
|
|
32
|
-
"node-opcua-debug": "2.
|
|
31
|
+
"@types/node": "16.11.9",
|
|
32
|
+
"node-opcua-debug": "2.55.0",
|
|
33
33
|
"should": "^13.2.3",
|
|
34
|
-
"sinon": "^
|
|
34
|
+
"sinon": "^12.0.1"
|
|
35
35
|
},
|
|
36
36
|
"author": "Etienne Rossignon",
|
|
37
37
|
"license": "MIT",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"internet of things"
|
|
49
49
|
],
|
|
50
50
|
"homepage": "http://node-opcua.github.io/",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "dd8776f047686ca791989f27e11ee48bfd8b61b7"
|
|
52
52
|
}
|
package/source/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-transport
|
|
3
|
-
*/
|
|
4
|
-
export * from "./HelloMessage";
|
|
5
|
-
export * from "./AcknowledgeMessage";
|
|
6
|
-
export * from "./TCPErrorMessage";
|
|
7
|
-
export * from "./client_tcp_transport";
|
|
8
|
-
export * from "./server_tcp_transport";
|
|
9
|
-
export * from "./tcp_transport";
|
|
10
|
-
export * from "./tools";
|
|
11
|
-
export * from "./message_builder_base";
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-transport
|
|
3
|
+
*/
|
|
4
|
+
export * from "./HelloMessage";
|
|
5
|
+
export * from "./AcknowledgeMessage";
|
|
6
|
+
export * from "./TCPErrorMessage";
|
|
7
|
+
export * from "./client_tcp_transport";
|
|
8
|
+
export * from "./server_tcp_transport";
|
|
9
|
+
export * from "./tcp_transport";
|
|
10
|
+
export * from "./tools";
|
|
11
|
+
export * from "./message_builder_base";
|
package/source/tcp_transport.ts
CHANGED
|
@@ -330,9 +330,9 @@ export class TCP_transport extends EventEmitter {
|
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
private _on_message_received(messageChunk: Buffer) {
|
|
333
|
-
const
|
|
333
|
+
const hadCallback = this._fulfill_pending_promises(null, messageChunk);
|
|
334
334
|
this.chunkReadCount++;
|
|
335
|
-
if (!
|
|
335
|
+
if (!hadCallback) {
|
|
336
336
|
/**
|
|
337
337
|
* notify the observers that a message chunk has been received
|
|
338
338
|
* @event message
|
package/test_helpers/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./fake_server";
|
|
2
|
-
export * from "./direct_transport";
|
|
3
|
-
export * from "./socket_transport";
|
|
4
|
-
export * from "./half_com_channel";
|
|
1
|
+
export * from "./fake_server";
|
|
2
|
+
export * from "./direct_transport";
|
|
3
|
+
export * from "./socket_transport";
|
|
4
|
+
export * from "./half_com_channel";
|