node-opcua-service-secure-channel
Advanced tools
Comparing version 2.0.0-alpha.7 to 2.0.0-alpha.8
@@ -10,4 +10,5 @@ "use strict"; | ||
const e = node_opcua_types_1._enumerationMessageSecurityMode.get(value); | ||
if (!e) | ||
if (!e) { | ||
return node_opcua_types_1.MessageSecurityMode.Invalid; | ||
} | ||
return e.value; | ||
@@ -14,0 +15,0 @@ } |
{ | ||
"name": "node-opcua-service-secure-channel", | ||
"version": "2.0.0-alpha.7", | ||
"version": "2.0.0-alpha.8", | ||
"description": "pure nodejs OPCUA SDK - module -service-secure-channel", | ||
@@ -13,10 +13,10 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"node-opcua-assert": "^2.0.0-alpha.7", | ||
"node-opcua-basic-types": "^2.0.0-alpha.7", | ||
"node-opcua-binary-stream": "^2.0.0-alpha.7", | ||
"node-opcua-data-model": "^2.0.0-alpha.7", | ||
"node-opcua-extension-object": "^2.0.0-alpha.7", | ||
"node-opcua-factory": "^2.0.0-alpha.7", | ||
"node-opcua-nodeid": "^2.0.0-alpha.7", | ||
"node-opcua-types": "^2.0.0-alpha.7", | ||
"node-opcua-assert": "^2.0.0-alpha.8", | ||
"node-opcua-basic-types": "^2.0.0-alpha.8", | ||
"node-opcua-binary-stream": "^2.0.0-alpha.8", | ||
"node-opcua-data-model": "^2.0.0-alpha.8", | ||
"node-opcua-extension-object": "^2.0.0-alpha.8", | ||
"node-opcua-factory": "^2.0.0-alpha.8", | ||
"node-opcua-nodeid": "^2.0.0-alpha.8", | ||
"node-opcua-types": "^2.0.0-alpha.8", | ||
"underscore": "^1.9.1" | ||
@@ -26,7 +26,7 @@ }, | ||
"node-opcua-binary-stream": "^2.0.0-alpha.5", | ||
"node-opcua-buffer-utils": "^2.0.0-alpha.7", | ||
"node-opcua-debug": "^2.0.0-alpha.7", | ||
"node-opcua-generator": "^2.0.0-alpha.7", | ||
"node-opcua-packet-analyzer": "^2.0.0-alpha.7", | ||
"node-opcua-status-code": "^2.0.0-alpha.7", | ||
"node-opcua-buffer-utils": "^2.0.0-alpha.8", | ||
"node-opcua-debug": "^2.0.0-alpha.8", | ||
"node-opcua-generator": "^2.0.0-alpha.8", | ||
"node-opcua-packet-analyzer": "^2.0.0-alpha.8", | ||
"node-opcua-status-code": "^2.0.0-alpha.8", | ||
"should": "13.2.3" | ||
@@ -49,3 +49,3 @@ }, | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "af4f00cca7a45563e759c88afa21bba73152dd03" | ||
"gitHead": "7bbf38d5a3cd29cb6aed6ca38078f4d89d3f956a" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { MessageSecurityMode, _enumerationMessageSecurityMode } from "node-opcua-types"; | ||
import { _enumerationMessageSecurityMode, MessageSecurityMode } from "node-opcua-types"; | ||
@@ -9,3 +9,5 @@ export function coerceMessageSecurityMode(value?: number | string): MessageSecurityMode { | ||
const e = _enumerationMessageSecurityMode.get(value); | ||
if (!e) return MessageSecurityMode.Invalid; | ||
if (!e) { | ||
return MessageSecurityMode.Invalid; | ||
} | ||
return e.value as MessageSecurityMode; | ||
@@ -12,0 +14,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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
62064
31
744
0