node-opcua-utils 2.128.0 → 2.139.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/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * set a flag
3
- * @method set_flag
3
+
4
4
  */
5
5
  export declare function set_flag(value: number, mask: number | {
6
6
  value: number;
7
7
  }): number;
8
8
  /**
9
9
  * check if a set of bits are set in the values
10
- * @method check_flag
10
+
11
11
  */
12
12
  export declare function check_flag(value: number, mask: number | {
13
13
  value: number;
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ exports.isNullOrUndefined = isNullOrUndefined;
25
25
  const node_opcua_assert_1 = require("node-opcua-assert");
26
26
  /**
27
27
  * set a flag
28
- * @method set_flag
28
+
29
29
  */
30
30
  function set_flag(value, mask) {
31
31
  if (mask.value) {
@@ -37,7 +37,7 @@ function set_flag(value, mask) {
37
37
  }
38
38
  /**
39
39
  * check if a set of bits are set in the values
40
- * @method check_flag
40
+
41
41
  */
42
42
  function check_flag(value, mask) {
43
43
  if (mask.value) {
@@ -2,7 +2,7 @@
2
2
  * @module node-opcua-utils
3
3
  */
4
4
  /**
5
- * @method getObjectClassName
5
+
6
6
  * @param obj
7
7
  * @return {string}
8
8
  */
@@ -5,7 +5,7 @@ exports.getObjectClassName = getObjectClassName;
5
5
  * @module node-opcua-utils
6
6
  */
7
7
  /**
8
- * @method getObjectClassName
8
+
9
9
  * @param obj
10
10
  * @return {string}
11
11
  */
@@ -12,7 +12,8 @@ export declare function countAlpha(str: string): number;
12
12
  *
13
13
  * lowerFirstLetter convert a OPCUA Identifier to a javascript Identifier
14
14
  *
15
- * @summary
15
+ *
16
+ * **rational**:
16
17
  *
17
18
  * OPCUA and Javascript use two different rules to build identifiers.
18
19
  *
@@ -41,7 +42,8 @@ export declare function countAlpha(str: string): number;
41
42
  * will be applied to each of the element of the sequence
42
43
  * ( ie: ALM_FlowOutOfTolerance => ALM_flowOutOfTolerance ( ALM=>ALM , FlowOutOfTolerance=>flowOutOfTolerance)
43
44
  *
44
- * @reference
45
+ * **reference**:
46
+ *
45
47
  * * https://en.wikipedia.org/wiki/Camel_case
46
48
  * * https://en.wikipedia.org/wiki/Hungarian_notation
47
49
  * * http://wiki.c2.com/?UnderscoreVersusCapitalAndLowerCaseVariableNaming
@@ -56,7 +56,8 @@ function countAlpha(str) {
56
56
  *
57
57
  * lowerFirstLetter convert a OPCUA Identifier to a javascript Identifier
58
58
  *
59
- * @summary
59
+ *
60
+ * **rational**:
60
61
  *
61
62
  * OPCUA and Javascript use two different rules to build identifiers.
62
63
  *
@@ -85,7 +86,8 @@ function countAlpha(str) {
85
86
  * will be applied to each of the element of the sequence
86
87
  * ( ie: ALM_FlowOutOfTolerance => ALM_flowOutOfTolerance ( ALM=>ALM , FlowOutOfTolerance=>flowOutOfTolerance)
87
88
  *
88
- * @reference
89
+ * **reference**:
90
+ *
89
91
  * * https://en.wikipedia.org/wiki/Camel_case
90
92
  * * https://en.wikipedia.org/wiki/Hungarian_notation
91
93
  * * http://wiki.c2.com/?UnderscoreVersusCapitalAndLowerCaseVariableNaming
@@ -1 +1 @@
1
- {"version":3,"file":"string_utils.js","sourceRoot":"","sources":["../source/string_utils.ts"],"names":[],"mappings":";;AAIA,sDAKC;AAID,0CAGC;AAGD,0BAGC;AAED,gDAEC;AACD,wCAEC;AAED,wCAOC;AACD,gCAOC;AAyDD,4CAiBC;AAxHD;;GAEG;AACH,+BAA+B;AAC/B,SAAgB,qBAAqB,CAAC,GAAW;IAC7C,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACd,OAAO,GAAG,CAAC;IACf,CAAC;IACD,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,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AAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC"}
@@ -33,7 +33,7 @@ export declare class WatchDog extends EventEmitter {
33
33
  constructor();
34
34
  /**
35
35
  * add a subscriber to the WatchDog.
36
- * @method addSubscriber
36
+
37
37
  *
38
38
  * add a subscriber to the WatchDog.
39
39
  *
package/dist/watchdog.js CHANGED
@@ -43,7 +43,7 @@ class WatchDog extends events_1.EventEmitter {
43
43
  }
44
44
  /**
45
45
  * add a subscriber to the WatchDog.
46
- * @method addSubscriber
46
+
47
47
  *
48
48
  * add a subscriber to the WatchDog.
49
49
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-utils",
3
- "version": "2.128.0",
3
+ "version": "2.139.0",
4
4
  "description": "pure nodejs OPCUA SDK - module utils",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -9,11 +9,11 @@
9
9
  "lint": "eslint source test",
10
10
  "format": "prettier --write source test",
11
11
  "test": "mocha",
12
- "clean": "npx rimraf node_modules dist *.tsbuildinfo"
12
+ "clean": "npx rimraf -g node_modules dist *.tsbuildinfo"
13
13
  },
14
14
  "dependencies": {
15
15
  "chalk": "4.1.2",
16
- "node-opcua-assert": "2.120.0"
16
+ "node-opcua-assert": "2.139.0"
17
17
  },
18
18
  "author": "Etienne Rossignon",
19
19
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "internet of things"
31
31
  ],
32
32
  "homepage": "http://node-opcua.github.io/",
33
- "gitHead": "67a73af6b831d8651a0e66ceb295f159cab4386b",
33
+ "gitHead": "b7a01d31c7602d323e60a5f4a54428199a266f29",
34
34
  "files": [
35
35
  "dist",
36
36
  "source"
package/source/index.ts CHANGED
@@ -6,7 +6,7 @@ import { assert } from "node-opcua-assert";
6
6
 
7
7
  /**
8
8
  * set a flag
9
- * @method set_flag
9
+
10
10
  */
11
11
  export function set_flag(value: number, mask: number | { value: number }): number {
12
12
  if ((mask as any).value) {
@@ -18,7 +18,7 @@ export function set_flag(value: number, mask: number | { value: number }): numbe
18
18
  }
19
19
  /**
20
20
  * check if a set of bits are set in the values
21
- * @method check_flag
21
+
22
22
  */
23
23
  export function check_flag(value: number, mask: number | { value: number }): boolean {
24
24
  if ((mask as any).value) {
@@ -2,7 +2,7 @@
2
2
  * @module node-opcua-utils
3
3
  */
4
4
  /**
5
- * @method getObjectClassName
5
+
6
6
  * @param obj
7
7
  * @return {string}
8
8
  */
@@ -50,8 +50,9 @@ export function countAlpha(str: string): number {
50
50
  *
51
51
  * lowerFirstLetter convert a OPCUA Identifier to a javascript Identifier
52
52
  *
53
- * @summary
54
- *
53
+ *
54
+ * **rational**:
55
+ *
55
56
  * OPCUA and Javascript use two different rules to build identifiers.
56
57
  *
57
58
  * OPCUA Identifier usually starts with a upper case letter and word are join together, this is known as
@@ -79,7 +80,8 @@ export function countAlpha(str: string): number {
79
80
  * will be applied to each of the element of the sequence
80
81
  * ( ie: ALM_FlowOutOfTolerance => ALM_flowOutOfTolerance ( ALM=>ALM , FlowOutOfTolerance=>flowOutOfTolerance)
81
82
  *
82
- * @reference
83
+ * **reference**:
84
+ *
83
85
  * * https://en.wikipedia.org/wiki/Camel_case
84
86
  * * https://en.wikipedia.org/wiki/Hungarian_notation
85
87
  * * http://wiki.c2.com/?UnderscoreVersusCapitalAndLowerCaseVariableNaming
@@ -77,7 +77,7 @@ export class WatchDog extends EventEmitter {
77
77
 
78
78
  /**
79
79
  * add a subscriber to the WatchDog.
80
- * @method addSubscriber
80
+
81
81
  *
82
82
  * add a subscriber to the WatchDog.
83
83
  *