node-opcua-chunkmanager 2.119.0 → 2.120.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022-2023 Sterfive SAS - 833264583 RCS ORLEANS - France (https://www.sterfive.com)
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
 
@@ -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 + chunkCount;
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.119.0",
3
+ "version": "2.120.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.105.0",
15
- "node-opcua-basic-types": "2.119.0",
16
- "node-opcua-binary-stream": "2.117.0",
17
- "node-opcua-buffer-utils": "2.117.0",
18
- "node-opcua-factory": "2.119.0",
19
- "node-opcua-packet-assembler": "2.118.0"
14
+ "node-opcua-assert": "2.120.0",
15
+ "node-opcua-basic-types": "2.120.0",
16
+ "node-opcua-binary-stream": "2.120.0",
17
+ "node-opcua-buffer-utils": "2.120.0",
18
+ "node-opcua-factory": "2.120.0",
19
+ "node-opcua-packet-assembler": "2.120.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@types/node": "20.10.5",
23
- "node-opcua-debug": "2.118.0",
22
+ "@types/node": "20.11.5",
23
+ "node-opcua-debug": "2.120.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": "f985d1ada89600c33696c541e6ba3c78a1a7f340",
42
+ "gitHead": "f4ae243bb61ba7af4c019a3cfe76dfc0f6427983",
43
43
  "files": [
44
44
  "dist",
45
45
  "source"
@@ -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 + chunkCount;
159
+ const totalLength = this.chunkSize * chunkCount;
160
160
  return { totalLength, chunkCount };
161
161
  }
162
162