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

node-opcua-schemas

Package Overview
Dependencies
Maintainers
1
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-schemas - npm Package Compare versions

Comparing version 2.6.4 to 2.6.5

1

dist/source/parse_binary_xsd.js

@@ -308,2 +308,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
debugLog("parseBinaryXSDAsync");
yield new Promise((resolve, reject) => {

@@ -310,0 +311,0 @@ parseBinaryXSD(xmlString, idProvider, dataTypeFactory, (err) => {

@@ -55,3 +55,5 @@ "use strict";

field.category = node_opcua_factory_1.FieldCategory.complex;
field.schema = _getOrCreateStructuredTypeSchema(fieldTypeName);
const schema1 = dataTypeFactory.getStructuredTypeSchema(fieldTypeName);
field.schema = schema1;
// _getOrCreateStructuredTypeSchema(fieldTypeName);
if (!field.schema) {

@@ -69,5 +71,5 @@ // tslint:disable-next-line:no-console

}
else if (node_opcua_factory_1.hasStructuredType(fieldTypeName)) {
else if (dataTypeFactory.hasStructuredType(fieldTypeName)) {
field.category = node_opcua_factory_1.FieldCategory.complex;
field.schema = node_opcua_factory_1.getStructuredTypeSchema(fieldTypeName);
field.schema = dataTypeFactory.getStructuredTypeSchema(fieldTypeName);
}

@@ -105,2 +107,14 @@ else {

break;
default:
if (dataTypeFactory.hasEnumeration(fieldTypeName)) {
field.category = node_opcua_factory_1.FieldCategory.enumeration;
const enumeratedType = dataTypeFactory.getEnumeration(fieldTypeName);
field.schema = enumeratedType;
}
else if (dataTypeFactory.hasStructuredType(fieldTypeName)) {
field.category = node_opcua_factory_1.FieldCategory.complex;
const schema1 = dataTypeFactory.getStructuredTypeSchema(fieldTypeName);
field.schema = schema1;
}
break;
}

@@ -107,0 +121,0 @@ }

14

package.json
{
"name": "node-opcua-schemas",
"version": "2.6.4",
"version": "2.6.5",
"description": "pure nodejs OPCUA SDK - module -schemas",

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

"node-opcua-binary-stream": "^2.6.1",
"node-opcua-data-model": "^2.6.1",
"node-opcua-data-model": "^2.6.5",
"node-opcua-debug": "^2.6.1",
"node-opcua-enum": "^2.6.1",
"node-opcua-extension-object": "^2.6.1",
"node-opcua-factory": "^2.6.1",
"node-opcua-extension-object": "^2.6.5",
"node-opcua-factory": "^2.6.5",
"node-opcua-nodeid": "^2.6.1",
"node-opcua-utils": "^2.6.1",
"node-opcua-variant": "^2.6.1",
"node-opcua-variant": "^2.6.5",
"node-opcua-xml2json": "^2.6.4",

@@ -28,3 +28,3 @@ "thenify": "^3.3.0"

"devDependencies": {
"node-opcua-packet-analyzer": "^2.6.1"
"node-opcua-packet-analyzer": "^2.6.5"
},

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

"homepage": "http://node-opcua.github.io/",
"gitHead": "0d168bdc8351bbaf7ff9e60e21d459e8c4bdfeca"
"gitHead": "e5e38142a719ebe22afb9617dce34b985d407d9b"
}

@@ -393,2 +393,3 @@ /**

debugLog("parseBinaryXSDAsync");
await new Promise((resolve, reject) => {

@@ -395,0 +396,0 @@ parseBinaryXSD(xmlString, idProvider, dataTypeFactory, (err?: Error | null) => {

@@ -88,3 +88,5 @@ import {

field.category = FieldCategory.complex;
field.schema = _getOrCreateStructuredTypeSchema(fieldTypeName);
const schema1 = dataTypeFactory.getStructuredTypeSchema(fieldTypeName);
field.schema = schema1;
// _getOrCreateStructuredTypeSchema(fieldTypeName);
if (!field.schema) {

@@ -101,5 +103,5 @@ // tslint:disable-next-line:no-console

field.schema = getBuildInType(fieldTypeName);
} else if (hasStructuredType(fieldTypeName)) {
} else if (dataTypeFactory.hasStructuredType(fieldTypeName)) {
field.category = FieldCategory.complex;
field.schema = getStructuredTypeSchema(fieldTypeName);
field.schema = dataTypeFactory.getStructuredTypeSchema(fieldTypeName);

@@ -134,2 +136,13 @@ } else {

break;
default:
if (dataTypeFactory.hasEnumeration(fieldTypeName)) {
field.category = FieldCategory.enumeration;
const enumeratedType = dataTypeFactory.getEnumeration(fieldTypeName);
field.schema = enumeratedType;
} else if (dataTypeFactory.hasStructuredType(fieldTypeName)) {
field.category = FieldCategory.complex;
const schema1 = dataTypeFactory.getStructuredTypeSchema(fieldTypeName);
field.schema = schema1;
}
break;
}

@@ -136,0 +149,0 @@ }

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