node-opcua-binary-stream 2.51.0 → 2.52.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/package.json +6 -6
- package/source/binaryStream.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-binary-stream",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.52.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -binary-stream",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"build": "tsc -b",
|
|
9
9
|
"test": "mocha",
|
|
10
10
|
"clean": "node -e \"require('rimraf').sync('dist');\"",
|
|
11
|
-
"lint": "
|
|
11
|
+
"lint": "eslint source/**/*.ts"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"node-opcua-assert": "2.
|
|
15
|
-
"node-opcua-buffer-utils": "2.
|
|
14
|
+
"node-opcua-assert": "2.52.0",
|
|
15
|
+
"node-opcua-buffer-utils": "2.52.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"node-opcua-benchmarker": "2.
|
|
18
|
+
"node-opcua-benchmarker": "2.52.0",
|
|
19
19
|
"should": "^13.2.3"
|
|
20
20
|
},
|
|
21
21
|
"author": "Etienne Rossignon",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"internet of things"
|
|
34
34
|
],
|
|
35
35
|
"homepage": "http://node-opcua.github.io/",
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "3ec6296e8fd4df0e05b9d887f0b7dd20113a9ce1"
|
|
37
37
|
}
|
package/source/binaryStream.ts
CHANGED
|
@@ -445,7 +445,7 @@ export class BinaryStream {
|
|
|
445
445
|
* @param str {String}
|
|
446
446
|
* @internal
|
|
447
447
|
*/
|
|
448
|
-
export function calculateByteLength(str: string) {
|
|
448
|
+
export function calculateByteLength(str: string): number {
|
|
449
449
|
// returns the byte length of an utf8 string
|
|
450
450
|
let s = str.length;
|
|
451
451
|
for (let i = s - 1; i >= 0; i--) {
|