Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-client-dynamic-extension-object

Package Overview
Dependencies
Maintainers
1
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-client-dynamic-extension-object - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

0

dist/client_dynamic_extension_object.d.ts

@@ -0,0 +0,0 @@ import { StructuredTypeSchema } from "node-opcua-factory";

4

dist/client_dynamic_extension_object.js

@@ -25,6 +25,4 @@ "use strict";

const node_opcua_status_code_1 = require("node-opcua-status-code");
const extra_data_type_manager_1 = require("./extra_data_type_manager");
const doDebug = node_opcua_debug_1.checkDebugFlag(__filename);
const debugLog = node_opcua_debug_1.make_debugLog(__filename);
const extraDataTypeManager = new extra_data_type_manager_1.ExtraDataTypeManager();
function extractSchema(session, nodeId) {

@@ -112,3 +110,3 @@ return __awaiter(this, void 0, void 0, function* () {

});
if (dataValueNamespaceArray.statusCode === node_opcua_status_code_1.StatusCodes.Good) {
if (dataValueNamespaceArray.statusCode === node_opcua_status_code_1.StatusCodes.Good && dataValueNamespaceArray.value.value.length > 0) {
dataTypeManager.setNamespaceArray(dataValueNamespaceArray.value.value);

@@ -115,0 +113,0 @@ }

@@ -0,0 +0,0 @@ import { DataTypeFactory } from "node-opcua-factory";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { DataValue } from "node-opcua-data-value";

@@ -0,0 +0,0 @@ "use strict";

import { Variant } from "node-opcua-variant";
import { ExtraDataTypeManager } from "./extra_data_type_manager";
export declare function resolveDynamicExtensionObject(variant: Variant, extraDataType: ExtraDataTypeManager): Promise<void>;

@@ -0,0 +0,0 @@ "use strict";

{
"name": "node-opcua-client-dynamic-extension-object",
"version": "2.3.0",
"version": "2.4.0",
"description": "pure nodejs OPCUA SDK - module client-dynamic-extension-object",

@@ -15,13 +15,13 @@ "main": "./dist/index.js",

"node-opcua-binary-stream": "^2.3.0",
"node-opcua-data-model": "^2.3.0",
"node-opcua-data-value": "^2.3.0",
"node-opcua-data-model": "^2.4.0",
"node-opcua-data-value": "^2.4.0",
"node-opcua-debug": "^2.3.0",
"node-opcua-extension-object": "^2.3.0",
"node-opcua-factory": "^2.3.0",
"node-opcua-extension-object": "^2.4.0",
"node-opcua-factory": "^2.4.0",
"node-opcua-nodeid": "^2.3.0",
"node-opcua-pseudo-session": "^2.3.0",
"node-opcua-schemas": "^2.3.0",
"node-opcua-service-browse": "^2.3.0",
"node-opcua-pseudo-session": "^2.4.0",
"node-opcua-schemas": "^2.4.0",
"node-opcua-service-browse": "^2.4.0",
"node-opcua-status-code": "^2.3.0",
"node-opcua-variant": "^2.3.0"
"node-opcua-variant": "^2.4.0"
},

@@ -43,3 +43,3 @@ "author": "Etienne Rossignon",

"homepage": "http://node-opcua.github.io/",
"gitHead": "3fc22180b26cd0d0481e57e7bb6a2cab7623e6d1"
"gitHead": "21f5967e799ef2b4d6491b8fc670964127c11431"
}

@@ -51,4 +51,2 @@ /**

const extraDataTypeManager = new ExtraDataTypeManager();
async function extractSchema(session: IBasicSession, nodeId: NodeId): Promise<TypeDictionary> {

@@ -64,3 +62,3 @@ const rawSchemaDataValue = await session.read({ nodeId, attributeId: AttributeIds.Value });

}
const typeDictionary = await promisify(parseBinaryXSD)(rawSchema, [ getStandartDataTypeFactory() ]);
const typeDictionary = await promisify(parseBinaryXSD)(rawSchema, [getStandartDataTypeFactory()]);
return typeDictionary;

@@ -151,3 +149,3 @@ }

if (dataValueNamespaceArray.statusCode === StatusCodes.Good) {
if (dataValueNamespaceArray.statusCode === StatusCodes.Good && dataValueNamespaceArray.value.value.length > 0) {
dataTypeManager.setNamespaceArray(dataValueNamespaceArray.value.value as string[]);

@@ -294,3 +292,3 @@ }

const typeDictionary = extraDataTypeManager.getTypeDictionaryForNamespace(schemaNode.namespace);
schema = typeDictionary.structuredTypes[name];
schema = typeDictionary.structuredTypes[name];

@@ -300,6 +298,6 @@ } else {

const typeDictionary = await extractSchema(session, schemaNode);
schema = typeDictionary.structuredTypes[name];
schema = typeDictionary.structuredTypes[name];
}
// associate DataTypeId with schema if not already done
if (schema.id.value === 0 ) {
if (schema.id.value === 0) {
schema.id = dataTypeNodeId;

@@ -306,0 +304,0 @@ }

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import { DataValue } from "node-opcua-data-value";

@@ -0,0 +0,0 @@ import { BinaryStream } from "node-opcua-binary-stream";

@@ -0,0 +0,0 @@ {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc