node-opcua-service-filter 2.104.0 → 2.105.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.
@@ -7,6 +7,8 @@ exports.checkSelectClauses = exports.checkSelectClause = void 0;
7
7
  const node_opcua_data_model_1 = require("node-opcua-data-model");
8
8
  const node_opcua_service_translate_browse_path_1 = require("node-opcua-service-translate-browse-path");
9
9
  const node_opcua_status_code_1 = require("node-opcua-status-code");
10
+ const node_opcua_debug_1 = require("node-opcua-debug");
11
+ const debugLog = (0, node_opcua_debug_1.make_debugLog)(__filename);
10
12
  /**
11
13
  * @method checkSelectClause
12
14
  * @param parentNode
@@ -22,11 +24,9 @@ function checkSelectClause(parentNode, selectClause) {
22
24
  }
23
25
  const eventTypeNode = addressSpace.findEventType(selectClause.typeDefinitionId);
24
26
  if (!eventTypeNode || !(eventTypeNode.nodeClass === node_opcua_data_model_1.NodeClass.ObjectType)) {
25
- // xx console.log("eventTypeNode = ",selectClause.typeDefinitionId.toString());
26
- // xx console.log("eventTypeNode = ",eventTypeNode);
27
27
  // istanbul ignore next
28
28
  if (eventTypeNode) {
29
- console.log(eventTypeNode.toString());
29
+ debugLog(" checkSelectClause", eventTypeNode.toString());
30
30
  }
31
31
  }
32
32
  // istanbul ignore next
@@ -1 +1 @@
1
- {"version":3,"file":"check_event_clause.js","sourceRoot":"","sources":["../source/check_event_clause.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,iEAAkD;AAElD,uGAAgG;AAChG,mEAAiE;AAGjE;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,UAAoB,EAAE,YAAoC;IACxF,EAAE;IACF,MAAM,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;IAE7C,uBAAuB;IACvB,IAAI,YAAY,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE;QACzC,OAAO,oCAAW,CAAC,IAAI,CAAC;KAC3B;IACD,MAAM,aAAa,GAAG,YAAY,CAAC,aAAa,C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;QACzC,OAAO,oCAAW,CAAC,IAAI,CAAC;KAC3B;IACD,MAAM,aAAa,GAAG,YAAY,CAAC,aAAa,CAAC,YAAY,CAAC,gBAAgB,CAAE,CAAC;IAEjF,IAAI,CAAC,aAAa,IAAI,CAAC,CAAC,aAAa,CAAC,SAAS,KAAK,iCAAS,CAAC,UAAU,CAAC,EAAE;QACvE,uBAAuB;QACvB,IAAI,aAAa,EAAE;YACf,QAAQ,CAAC,oBAAoB,EAAE,aAAa,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC5D;KACJ;IAED,uBAAuB;IACvB,IAAI,aAAa,CAAC,SAAS,KAAK,iCAAS,CAAC,UAAU,EAAE;QAClD,OAAO,oCAAW,CAAC,eAAe,CAAC;KACtC;IAED,yEAAyE;IACzE,MAAM,UAAU,GAAG,IAAA,+EAAoC,EAAC,aAAa,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAChG,MAAM,gBAAgB,GAAG,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IAC7D,OAAO,gBAAgB,CAAC,UAAU,CAAC;AACvC,CAAC;AA1BD,8CA0BC;AAED;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,aAA2B,EAAE,aAAuC;IACnG,OAAO,aAAa,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC;AAC1E,CAAC;AAFD,gDAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-service-filter",
3
- "version": "2.104.0",
3
+ "version": "2.105.0",
4
4
  "description": "pure nodejs OPCUA SDK - module service-filter",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -10,23 +10,23 @@
10
10
  "build": "tsc -b"
11
11
  },
12
12
  "dependencies": {
13
- "node-opcua-address-space-base": "2.104.0",
14
- "node-opcua-assert": "2.104.0",
15
- "node-opcua-basic-types": "2.104.0",
13
+ "node-opcua-address-space-base": "2.105.0",
14
+ "node-opcua-assert": "2.105.0",
15
+ "node-opcua-basic-types": "2.105.0",
16
16
  "node-opcua-constants": "2.98.1",
17
- "node-opcua-data-model": "2.104.0",
18
- "node-opcua-data-value": "2.104.0",
19
- "node-opcua-debug": "2.104.0",
20
- "node-opcua-extension-object": "2.104.0",
21
- "node-opcua-nodeid": "2.104.0",
22
- "node-opcua-service-translate-browse-path": "2.104.0",
23
- "node-opcua-status-code": "2.104.0",
24
- "node-opcua-types": "2.104.0",
25
- "node-opcua-variant": "2.104.0"
17
+ "node-opcua-data-model": "2.105.0",
18
+ "node-opcua-data-value": "2.105.0",
19
+ "node-opcua-debug": "2.105.0",
20
+ "node-opcua-extension-object": "2.105.0",
21
+ "node-opcua-nodeid": "2.105.0",
22
+ "node-opcua-service-translate-browse-path": "2.105.0",
23
+ "node-opcua-status-code": "2.105.0",
24
+ "node-opcua-types": "2.105.0",
25
+ "node-opcua-variant": "2.105.0"
26
26
  },
27
27
  "devDependencies": {
28
- "node-opcua-numeric-range": "2.104.0",
29
- "node-opcua-packet-analyzer": "2.104.0",
28
+ "node-opcua-numeric-range": "2.105.0",
29
+ "node-opcua-packet-analyzer": "2.105.0",
30
30
  "should": "^13.2.3"
31
31
  },
32
32
  "author": "Etienne Rossignon",
@@ -44,7 +44,7 @@
44
44
  "internet of things"
45
45
  ],
46
46
  "homepage": "http://node-opcua.github.io/",
47
- "gitHead": "3cd6d355e8b3c66822d08a3ca682659ea5d1a55d",
47
+ "gitHead": "41c30f321debfe92128905d97a52426b9d7f9b9e",
48
48
  "files": [
49
49
  "dist",
50
50
  "source"
@@ -6,6 +6,9 @@ import { SimpleAttributeOperand } from "node-opcua-types";
6
6
  import { constructBrowsePathFromQualifiedName } from "node-opcua-service-translate-browse-path";
7
7
  import { StatusCode, StatusCodes } from "node-opcua-status-code";
8
8
  import { BaseNode, UAObjectType } from "node-opcua-address-space-base";
9
+ import { make_debugLog } from "node-opcua-debug";
10
+
11
+ const debugLog = make_debugLog(__filename);
9
12
 
10
13
  /**
11
14
  * @method checkSelectClause
@@ -24,11 +27,9 @@ export function checkSelectClause(parentNode: BaseNode, selectClause: SimpleAttr
24
27
  const eventTypeNode = addressSpace.findEventType(selectClause.typeDefinitionId)!;
25
28
 
26
29
  if (!eventTypeNode || !(eventTypeNode.nodeClass === NodeClass.ObjectType)) {
27
- // xx console.log("eventTypeNode = ",selectClause.typeDefinitionId.toString());
28
- // xx console.log("eventTypeNode = ",eventTypeNode);
29
30
  // istanbul ignore next
30
31
  if (eventTypeNode) {
31
- console.log(eventTypeNode.toString());
32
+ debugLog(" checkSelectClause", eventTypeNode.toString());
32
33
  }
33
34
  }
34
35