node-opcua-client-dynamic-extension-object
Advanced tools
Comparing version 2.99.0 to 2.101.0
{ | ||
"name": "node-opcua-client-dynamic-extension-object", | ||
"version": "2.99.0", | ||
"version": "2.101.0", | ||
"description": "pure nodejs OPCUA SDK - module client-dynamic-extension-object", | ||
@@ -23,3 +23,3 @@ "main": "./dist/index.js", | ||
"node-opcua-nodeid": "2.99.0", | ||
"node-opcua-pseudo-session": "2.99.0", | ||
"node-opcua-pseudo-session": "2.101.0", | ||
"node-opcua-schemas": "2.99.0", | ||
@@ -47,3 +47,3 @@ "node-opcua-service-browse": "2.99.0", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "90ce9f5b44d74198d84a384de622dfa94fd05c0c", | ||
"gitHead": "77abad969406b6d7d76e6bc07a8aa94ae07f3db2", | ||
"files": [ | ||
@@ -50,0 +50,0 @@ "dist", |
@@ -9,3 +9,2 @@ import { BinaryStream } from "node-opcua-binary-stream"; | ||
import { BrowseDirection, NodeClassMask, ResultMask } from "node-opcua-data-model"; | ||
import { StatusCodes } from "node-opcua-status-code"; | ||
// | ||
@@ -23,4 +22,4 @@ import { ExtraDataTypeManager } from "./extra_data_type_manager"; | ||
const dataTypeFactory = dataTypeManager.getDataTypeFactoryForNamespace(binaryEncodingNodeId.namespace); | ||
const Constructor = dataTypeFactory.getConstructor(binaryEncodingNodeId); | ||
@@ -53,3 +52,3 @@ if (Constructor) { | ||
const structureInfo = dataTypeFactory.getStructureInfoForDataType(dataTypeNodeId)!; | ||
const structureInfo = dataTypeFactory.getStructureInfoForDataType(dataTypeNodeId)!; | ||
if (!structureInfo.constructor) { | ||
@@ -65,3 +64,3 @@ throw new Error("Cannot find constructor for abstract DataType"); | ||
object: ExtensionObject | ||
) { | ||
): Promise<void> { | ||
const schema = object.schema; | ||
@@ -90,6 +89,6 @@ interface D { | ||
function fixOpaqueStructure(object: any, field: StructuredTypeField, data: D, args?: any) { | ||
if (field.category === "complex" && !field.allowSubType) { | ||
return; | ||
if (field.category === "complex" && !field.allowSubType) { | ||
return; | ||
} | ||
if (field.category === "basic" && field.fieldType !== "Variant") { | ||
if (field.category === "basic" && field.fieldType !== "Variant") { | ||
return; | ||
@@ -160,3 +159,3 @@ } | ||
warningLog("opaqueStructure = ", opaque?.nodeId?.toString()); | ||
warningLog("opaqueStructure = ", hexDump(opaque.buffer,132,100)); | ||
warningLog("opaqueStructure = ", hexDump(opaque.buffer, 132, 100)); | ||
warningLog(hexDump(opaque.buffer)); | ||
@@ -171,3 +170,3 @@ warningLog("resolveDynamicExtensionObjectV err = ", err); | ||
warningLog("opaqueStructure = ", opaque.nodeId.toString()); | ||
warningLog("opaqueStructure = ", "0x" + hexDump(opaque.buffer,132,100)); | ||
warningLog("opaqueStructure = ", "0x" + hexDump(opaque.buffer, 132, 100)); | ||
warningLog(hexDump(opaque.buffer)); | ||
@@ -174,0 +173,0 @@ warningLog(dataTypeManager.toString()); |
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
257500
3968
+ Addednode-opcua-pseudo-session@2.101.0(transitive)
+ Addednode-opcua-service-subscription@2.101.0(transitive)
- Removednode-opcua-pseudo-session@2.99.0(transitive)
- Removednode-opcua-service-subscription@2.99.0(transitive)