node-opcua-nodeid
Advanced tools
Comparing version 2.5.1 to 2.5.2
@@ -116,3 +116,3 @@ "use strict"; | ||
} | ||
else { | ||
else if (addressSpace.findNode) { | ||
// let use the provided address space to figure out the browseNode of this node. | ||
@@ -119,0 +119,0 @@ // to make the message a little bit more useful. |
@@ -5,3 +5,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"description": "pure nodejs OPCUA SDK - module -nodeid", | ||
@@ -17,3 +17,3 @@ "scripts": { | ||
"node-opcua-constants": "^2.5.0-alpha.4", | ||
"node-opcua-enum": "^2.5.1", | ||
"node-opcua-enum": "^2.5.2", | ||
"node-opcua-guid": "^2.5.1", | ||
@@ -42,3 +42,3 @@ "underscore": "^1.9.2" | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "4cc18f384bbdf33c5cdd2a7857e810425aa67c8b" | ||
"gitHead": "923fb4060b27a91f5f8cebeb1294c48a8e8e8ff9" | ||
} |
@@ -125,3 +125,3 @@ /** | ||
assert(this.identifierType === NodeIdType.BYTESTRING, | ||
"invalid identifierType in NodeId : " + this.identifierType); | ||
"invalid identifierType in NodeId : " + this.identifierType); | ||
if (this.value) { | ||
@@ -140,3 +140,3 @@ str = "ns=" + this.namespace + ";b=" + (this.value as Buffer).toString("hex"); | ||
str += " " + chalk.green.bold(name); | ||
} else { | ||
} else if (addressSpace.findNode) { | ||
// let use the provided address space to figure out the browseNode of this node. | ||
@@ -182,3 +182,3 @@ // to make the message a little bit more useful. | ||
assert(this.identifierType === NodeIdType.BYTESTRING, | ||
"invalid identifierType in NodeId : " + this.identifierType); | ||
"invalid identifierType in NodeId : " + this.identifierType); | ||
return !this.value || (this.value as Buffer).length === 0; | ||
@@ -185,0 +185,0 @@ } |
Sorry, the diff of this file is not supported yet
53897
Updatednode-opcua-enum@^2.5.2