node-opcua-chunkmanager 2.119.0 → 2.121.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/LICENSE +1 -1
- package/dist/chunk_manager.js +1 -1
- package/package.json +10 -10
- package/source/chunk_manager.ts +1 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2022-
|
|
3
|
+
Copyright (c) 2022-2024 Sterfive SAS - 833264583 RCS ORLEANS - France (https://www.sterfive.com)
|
|
4
4
|
|
|
5
5
|
Copyright (c) 2014-2022 Etienne Rossignon
|
|
6
6
|
|
package/dist/chunk_manager.js
CHANGED
|
@@ -72,7 +72,7 @@ class ChunkManager extends events_1.EventEmitter {
|
|
|
72
72
|
}
|
|
73
73
|
evaluateTotalLengthAndChunks(bodySize) {
|
|
74
74
|
const chunkCount = Math.ceil(bodySize / this.maxBodySize);
|
|
75
|
-
const totalLength = this.chunkSize
|
|
75
|
+
const totalLength = this.chunkSize * chunkCount;
|
|
76
76
|
return { totalLength, chunkCount };
|
|
77
77
|
}
|
|
78
78
|
write(buffer, length) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-chunkmanager",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.121.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module chunkmanager",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
"lint": "eslint source/**/*.ts"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"node-opcua-assert": "2.
|
|
15
|
-
"node-opcua-basic-types": "2.
|
|
16
|
-
"node-opcua-binary-stream": "2.
|
|
17
|
-
"node-opcua-buffer-utils": "2.
|
|
18
|
-
"node-opcua-factory": "2.
|
|
19
|
-
"node-opcua-packet-assembler": "2.
|
|
14
|
+
"node-opcua-assert": "2.120.0",
|
|
15
|
+
"node-opcua-basic-types": "2.121.0",
|
|
16
|
+
"node-opcua-binary-stream": "2.120.0",
|
|
17
|
+
"node-opcua-buffer-utils": "2.120.0",
|
|
18
|
+
"node-opcua-factory": "2.121.0",
|
|
19
|
+
"node-opcua-packet-assembler": "2.121.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@types/node": "20.
|
|
23
|
-
"node-opcua-debug": "2.
|
|
22
|
+
"@types/node": "20.11.20",
|
|
23
|
+
"node-opcua-debug": "2.121.0",
|
|
24
24
|
"should": "^13.2.3",
|
|
25
25
|
"source-map-support": "^0.5.21"
|
|
26
26
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"internet of things"
|
|
40
40
|
],
|
|
41
41
|
"homepage": "http://node-opcua.github.io/",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ba93a78eda343ecc0cc20476837347f6dfa259e0",
|
|
43
43
|
"files": [
|
|
44
44
|
"dist",
|
|
45
45
|
"source"
|
package/source/chunk_manager.ts
CHANGED
|
@@ -156,7 +156,7 @@ export class ChunkManager extends EventEmitter {
|
|
|
156
156
|
|
|
157
157
|
public evaluateTotalLengthAndChunks(bodySize: number): { totalLength: number; chunkCount: number } {
|
|
158
158
|
const chunkCount = Math.ceil(bodySize / this.maxBodySize);
|
|
159
|
-
const totalLength = this.chunkSize
|
|
159
|
+
const totalLength = this.chunkSize * chunkCount;
|
|
160
160
|
return { totalLength, chunkCount };
|
|
161
161
|
}
|
|
162
162
|
|