node-opcua-service-filter
Advanced tools
Comparing version 2.85.0 to 2.86.0
@@ -12,3 +12,3 @@ /** | ||
export declare function s(attributeId: AttributeIds, path: string): SimpleAttributeOperand; | ||
declare type A = LiteralOperand | SimpleAttributeOperand | AttributeOperand | ContentFilterElement; | ||
type A = LiteralOperand | SimpleAttributeOperand | AttributeOperand | ContentFilterElement; | ||
export declare function or(a: A, b: A): ContentFilterElement; | ||
@@ -15,0 +15,0 @@ export declare function and(a: A, b: A): ContentFilterElement; |
@@ -7,3 +7,2 @@ "use strict"; | ||
const node_opcua_nodeid_1 = require("node-opcua-nodeid"); | ||
const node_opcua_status_code_1 = require("node-opcua-status-code"); | ||
const node_opcua_variant_1 = require("node-opcua-variant"); | ||
@@ -85,3 +84,3 @@ const warningLog = (0, node_opcua_debug_1.make_warningLog)("Filter"); | ||
if (browseResult && | ||
browseResult.statusCode === node_opcua_status_code_1.StatusCodes.Good && | ||
browseResult.statusCode.isGood() && | ||
browseResult.targets && | ||
@@ -95,3 +94,3 @@ browseResult.targets.length === 1) { | ||
const browseResult = addressSpace.browsePath(browsePath); | ||
if (browseResult.statusCode !== node_opcua_status_code_1.StatusCodes.Good || !browseResult.targets || browseResult.targets.length !== 1) { | ||
if (browseResult.statusCode.isNotGood() || !browseResult.targets || browseResult.targets.length !== 1) { | ||
return null; | ||
@@ -107,3 +106,3 @@ } | ||
function prepare(dataValue) { | ||
if (dataValue.statusCode === node_opcua_status_code_1.StatusCodes.Good) { | ||
if (dataValue.statusCode.isGood()) { | ||
return dataValue.value; | ||
@@ -110,0 +109,0 @@ } |
{ | ||
"name": "node-opcua-service-filter", | ||
"version": "2.85.0", | ||
"version": "2.86.0", | ||
"description": "pure nodejs OPCUA SDK - module -service-filter", | ||
@@ -13,19 +13,19 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"node-opcua-address-space-base": "2.85.0", | ||
"node-opcua-address-space-base": "2.86.0", | ||
"node-opcua-assert": "2.77.0", | ||
"node-opcua-basic-types": "2.85.0", | ||
"node-opcua-basic-types": "2.86.0", | ||
"node-opcua-constants": "2.77.0", | ||
"node-opcua-data-model": "2.85.0", | ||
"node-opcua-data-value": "2.85.0", | ||
"node-opcua-debug": "2.85.0", | ||
"node-opcua-extension-object": "2.85.0", | ||
"node-opcua-nodeid": "2.85.0", | ||
"node-opcua-service-translate-browse-path": "2.85.0", | ||
"node-opcua-status-code": "2.85.0", | ||
"node-opcua-types": "2.85.0", | ||
"node-opcua-variant": "2.85.0" | ||
"node-opcua-data-model": "2.86.0", | ||
"node-opcua-data-value": "2.86.0", | ||
"node-opcua-debug": "2.86.0", | ||
"node-opcua-extension-object": "2.86.0", | ||
"node-opcua-nodeid": "2.86.0", | ||
"node-opcua-service-translate-browse-path": "2.86.0", | ||
"node-opcua-status-code": "2.86.0", | ||
"node-opcua-types": "2.86.0", | ||
"node-opcua-variant": "2.86.0" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-numeric-range": "2.85.0", | ||
"node-opcua-packet-analyzer": "2.85.0", | ||
"node-opcua-numeric-range": "2.86.0", | ||
"node-opcua-packet-analyzer": "2.86.0", | ||
"should": "^13.2.3" | ||
@@ -48,3 +48,3 @@ }, | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "68498fcf7b20ea9f7bd66e8529c546221daf5d52" | ||
"gitHead": "36afc46fe2c91aa5664a8c5418f4db5a354670c3" | ||
} |
@@ -107,3 +107,3 @@ import { | ||
browseResult && | ||
browseResult.statusCode === StatusCodes.Good && | ||
browseResult.statusCode.isGood() && | ||
browseResult.targets && | ||
@@ -119,3 +119,3 @@ browseResult.targets.length === 1 | ||
const browseResult = addressSpace.browsePath(browsePath); | ||
if (browseResult.statusCode !== StatusCodes.Good || !browseResult.targets || browseResult.targets.length !== 1) { | ||
if (browseResult.statusCode.isNotGood() || !browseResult.targets || browseResult.targets.length !== 1) { | ||
return null; | ||
@@ -132,3 +132,3 @@ } | ||
function prepare(dataValue: DataValue): Variant { | ||
if (dataValue.statusCode === StatusCodes.Good) { | ||
if (dataValue.statusCode.isGood()) { | ||
return dataValue.value; | ||
@@ -135,0 +135,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
112910
1793
+ Addednode-opcua-address-space-base@2.86.0(transitive)
+ Addednode-opcua-basic-types@2.86.0(transitive)
+ Addednode-opcua-binary-stream@2.86.0(transitive)
+ Addednode-opcua-buffer-utils@2.86.0(transitive)
+ Addednode-opcua-crypto@2.2.0(transitive)
+ Addednode-opcua-data-model@2.86.0(transitive)
+ Addednode-opcua-data-value@2.86.0(transitive)
+ Addednode-opcua-date-time@2.86.0(transitive)
+ Addednode-opcua-debug@2.86.0(transitive)
+ Addednode-opcua-enum@2.86.0(transitive)
+ Addednode-opcua-extension-object@2.86.0(transitive)
+ Addednode-opcua-factory@2.86.0(transitive)
+ Addednode-opcua-generator@2.86.0(transitive)
+ Addednode-opcua-nodeid@2.86.0(transitive)
+ Addednode-opcua-numeric-range@2.86.0(transitive)
+ Addednode-opcua-schemas@2.86.0(transitive)
+ Addednode-opcua-service-translate-browse-path@2.86.0(transitive)
+ Addednode-opcua-status-code@2.86.0(transitive)
+ Addednode-opcua-types@2.86.0(transitive)
+ Addednode-opcua-utils@2.86.0(transitive)
+ Addednode-opcua-variant@2.86.0(transitive)
+ Addednode-opcua-xml2json@2.86.0(transitive)
- Removednode-opcua-address-space-base@2.85.0(transitive)
- Removednode-opcua-basic-types@2.85.0(transitive)
- Removednode-opcua-binary-stream@2.85.0(transitive)
- Removednode-opcua-buffer-utils@2.85.0(transitive)
- Removednode-opcua-crypto@1.12.0(transitive)
- Removednode-opcua-data-model@2.85.0(transitive)
- Removednode-opcua-data-value@2.85.0(transitive)
- Removednode-opcua-date-time@2.85.0(transitive)
- Removednode-opcua-debug@2.85.0(transitive)
- Removednode-opcua-enum@2.85.0(transitive)
- Removednode-opcua-extension-object@2.85.0(transitive)
- Removednode-opcua-factory@2.85.0(transitive)
- Removednode-opcua-generator@2.85.0(transitive)
- Removednode-opcua-nodeid@2.85.0(transitive)
- Removednode-opcua-numeric-range@2.85.0(transitive)
- Removednode-opcua-schemas@2.85.0(transitive)
- Removednode-opcua-service-translate-browse-path@2.85.0(transitive)
- Removednode-opcua-status-code@2.85.0(transitive)
- Removednode-opcua-types@2.85.0(transitive)
- Removednode-opcua-utils@2.85.0(transitive)
- Removednode-opcua-variant@2.85.0(transitive)
- Removednode-opcua-xml2json@2.85.0(transitive)
Updatednode-opcua-data-model@2.86.0
Updatednode-opcua-data-value@2.86.0
Updatednode-opcua-debug@2.86.0
Updatednode-opcua-nodeid@2.86.0
Updatednode-opcua-types@2.86.0
Updatednode-opcua-variant@2.86.0