node-opcua-basic-types 2.131.0 → 2.133.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/dist/array.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
2
2
  /**
3
- * @method encodeArray
3
+
4
4
  * @param arr the array to encode.
5
5
  * @param stream the stream.
6
6
  * @param encodeElementFunc The function to encode a single array element.
package/dist/array.js CHANGED
@@ -7,7 +7,7 @@ exports.decodeArray = decodeArray;
7
7
  */
8
8
  const node_opcua_assert_1 = require("node-opcua-assert");
9
9
  /**
10
- * @method encodeArray
10
+
11
11
  * @param arr the array to encode.
12
12
  * @param stream the stream.
13
13
  * @param encodeElementFunc The function to encode a single array element.
@@ -3,6 +3,9 @@
3
3
  */
4
4
  import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
5
5
  export declare function isValidByteString(value: unknown): boolean;
6
+ /**
7
+ * @public
8
+ */
6
9
  export type ByteString = Buffer;
7
10
  export declare function randomByteString(value: unknown, len: number): ByteString;
8
11
  export declare function encodeByteString(byteString: ByteString, stream: OutputBinaryStream): void;
@@ -1 +1 @@
1
- {"version":3,"file":"byte_string.js","sourceRoot":"","sources":["../source/byte_string.ts"],"names":[],"mappings":";;AAQA,8CAEC;AAID,4CAOC;AAED,4CAEC;AAED,4CAEC;AAED,4CAQC;AAnCD,qEAAwE;AAExE,mCAAuC;AAEvC,SAAgB,iBAAiB,CAAC,KAAc;IAC5C,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,YAAY,MAAM,CAAC;AACrD,CAAC;AAID,SAAgB,gBAAgB,CAAC,KAAc,EAAE,GAAW;IACxD,GAAG,GAAG,GAAG,IAAI,IAAA,oBAAY,EAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAClC,MAAM,CAAC,GAAG,IAAA,uDAA6B,EAAC,GAAG,CAAC,CAAC;IAC7C,KAAK,IAAI,CAA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AC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QAC3B,CAAC,CAAC,UAAU,CAAC,IAAA,oBAAY,EAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,CAAC,CAAC;AACb,CAAC;AAED,SAAgB,gBAAgB,CAAC,UAAsB,EAAE,MAA0B;IAC/E,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;AACvC,CAAC;AAED,SAAgB,gBAAgB,CAAC,MAAoB,EAAE,MAAmB;IACtE,OAAO,MAAM,CAAC,cAAc,EAAgB,CAAC;AACjD,CAAC;AAED,SAAgB,gBAAgB,CAAC,KAAqC;IAClE,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC"}
package/dist/floats.js CHANGED
@@ -14,7 +14,7 @@ const minFloat = -3.4 * Math.pow(10, 38);
14
14
  const maxFloat = 3.4 * Math.pow(10, 38);
15
15
  /**
16
16
  * return a random float value in the range of min inclusive and max exclusive
17
- * @method getRandomInt
17
+
18
18
  * @param min
19
19
  * @param max
20
20
  * @return {*}
package/dist/utils.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * return a random integer value in the range of min inclusive and max exclusive
6
- * @method getRandomInt
6
+
7
7
  * @param min
8
8
  * @param max
9
9
  * @return {*}
package/dist/utils.js CHANGED
@@ -6,7 +6,7 @@ exports.getRandomInt = getRandomInt;
6
6
  */
7
7
  /**
8
8
  * return a random integer value in the range of min inclusive and max exclusive
9
- * @method getRandomInt
9
+
10
10
  * @param min
11
11
  * @param max
12
12
  * @return {*}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-basic-types",
3
- "version": "2.131.0",
3
+ "version": "2.133.0",
4
4
  "description": "pure nodejs OPCUA SDK - module basic-types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -12,16 +12,16 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "node-opcua-assert": "2.120.0",
15
- "node-opcua-binary-stream": "2.128.0",
16
- "node-opcua-buffer-utils": "2.128.0",
17
- "node-opcua-date-time": "2.128.0",
18
- "node-opcua-guid": "2.128.0",
19
- "node-opcua-nodeid": "2.128.0",
20
- "node-opcua-status-code": "2.128.0"
15
+ "node-opcua-binary-stream": "2.133.0",
16
+ "node-opcua-buffer-utils": "2.133.0",
17
+ "node-opcua-date-time": "2.133.0",
18
+ "node-opcua-guid": "2.133.0",
19
+ "node-opcua-nodeid": "2.133.0",
20
+ "node-opcua-status-code": "2.133.0"
21
21
  },
22
22
  "devDependencies": {
23
- "node-opcua-benchmarker": "2.128.0",
24
- "node-opcua-debug": "2.128.0"
23
+ "node-opcua-benchmarker": "2.133.0",
24
+ "node-opcua-debug": "2.133.0"
25
25
  },
26
26
  "author": "Etienne Rossignon",
27
27
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "internet of things"
39
39
  ],
40
40
  "homepage": "http://node-opcua.github.io/",
41
- "gitHead": "80f430dd3044826c904f803af40297839dd809be",
41
+ "gitHead": "921bb04f2e7ce3109dd051ff27a2210edf700344",
42
42
  "files": [
43
43
  "dist",
44
44
  "source"
package/source/array.ts CHANGED
@@ -5,7 +5,7 @@ import { assert } from "node-opcua-assert";
5
5
  import { BinaryStream, BinaryStreamSizeCalculator, OutputBinaryStream } from "node-opcua-binary-stream";
6
6
 
7
7
  /**
8
- * @method encodeArray
8
+
9
9
  * @param arr the array to encode.
10
10
  * @param stream the stream.
11
11
  * @param encodeElementFunc The function to encode a single array element.
@@ -10,6 +10,9 @@ export function isValidByteString(value: unknown): boolean {
10
10
  return value === null || value instanceof Buffer;
11
11
  }
12
12
 
13
+ /**
14
+ * @public
15
+ */
13
16
  export type ByteString = Buffer;
14
17
 
15
18
  export function randomByteString(value: unknown, len: number): ByteString {
package/source/floats.ts CHANGED
@@ -8,7 +8,7 @@ const maxFloat = 3.4 * Math.pow(10, 38);
8
8
 
9
9
  /**
10
10
  * return a random float value in the range of min inclusive and max exclusive
11
- * @method getRandomInt
11
+
12
12
  * @param min
13
13
  * @param max
14
14
  * @return {*}
package/source/utils.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * return a random integer value in the range of min inclusive and max exclusive
6
- * @method getRandomInt
6
+
7
7
  * @param min
8
8
  * @param max
9
9
  * @return {*}