node-opcua-nodeid
Advanced tools
Comparing version 2.82.0 to 2.83.0
@@ -7,5 +7,2 @@ "use strict"; | ||
*/ | ||
// tslint:disable:no-conditional-assignment | ||
const chalk = require("chalk"); | ||
const lodash_1 = require("lodash"); | ||
const node_opcua_assert_1 = require("node-opcua-assert"); | ||
@@ -139,3 +136,3 @@ const node_opcua_constants_1 = require("node-opcua-constants"); | ||
const name = reverse_map((this.value || 0).toString()) || "<undefined>"; | ||
str += " " + chalk.green.bold(name); | ||
str += " " + name; | ||
} | ||
@@ -376,5 +373,8 @@ else if (addressSpace.findNode) { | ||
case NodeIdType.STRING: | ||
case NodeIdType.GUID: | ||
return n1.value === n2.value; | ||
case NodeIdType.BYTESTRING: | ||
return n1.value.toString("hex") === n2.value.toString("hex"); | ||
default: | ||
return (0, lodash_1.isEqual)(n1.value, n2.value); | ||
throw new Error("Invalid identifier type"); | ||
} | ||
@@ -381,0 +381,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "2.82.0", | ||
"version": "2.83.0", | ||
"description": "pure nodejs OPCUA SDK - module -nodeid", | ||
@@ -15,5 +15,2 @@ "scripts": { | ||
"dependencies": { | ||
"@types/lodash": "4.14.186", | ||
"chalk": "4.1.2", | ||
"lodash": "4.17.21", | ||
"node-opcua-assert": "2.77.0", | ||
@@ -24,4 +21,4 @@ "node-opcua-constants": "2.77.0", | ||
"devDependencies": { | ||
"node-opcua-benchmarker": "2.82.0", | ||
"node-opcua-debug": "2.82.0", | ||
"node-opcua-benchmarker": "2.83.0", | ||
"node-opcua-debug": "2.83.0", | ||
"should": "^13.2.3" | ||
@@ -44,3 +41,3 @@ }, | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "2f66e1fe69c825305f94b15ca17cff066aa37496" | ||
"gitHead": "3311f8ce9e86837fde72e923f3121072008ccdd4" | ||
} |
/** | ||
* @module node-opcua-nodeid | ||
*/ | ||
// tslint:disable:no-conditional-assignment | ||
import * as chalk from "chalk"; | ||
import { isEqual } from "lodash"; | ||
import { assert } from "node-opcua-assert"; | ||
@@ -155,3 +152,3 @@ import { | ||
const name = reverse_map((this.value||0).toString()) || "<undefined>"; | ||
str += " " + chalk.green.bold(name); | ||
str += " " + name; | ||
} else if (addressSpace.findNode) { | ||
@@ -399,5 +396,8 @@ // let use the provided address space to figure out the browseNode of this node. | ||
case NodeIdType.STRING: | ||
case NodeIdType.GUID: | ||
return n1.value === n2.value; | ||
case NodeIdType.BYTESTRING: | ||
return (n1.value as Buffer).toString("hex") === (n2.value as Buffer).toString("hex"); | ||
default: | ||
return isEqual(n1.value, n2.value); | ||
throw new Error("Invalid identifier type"); | ||
} | ||
@@ -404,0 +404,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58960
3
- Removed@types/lodash@4.14.186
- Removedchalk@4.1.2
- Removedlodash@4.17.21
- Removed@types/lodash@4.14.186(transitive)
- Removedlodash@4.17.21(transitive)