New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-schemas

Package Overview
Dependencies
Maintainers
1
Versions
219
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.113.0 to 2.114.0

9

dist/source/dynamic_extension_object.js

@@ -132,3 +132,3 @@ "use strict";

const baseSchema = schema.getBaseSchema();
if (!baseSchema || !(baseSchema === null || baseSchema === void 0 ? void 0 : baseSchema.dataTypeNodeId))
if (!baseSchema || !baseSchema?.dataTypeNodeId)
return false;

@@ -384,6 +384,6 @@ const structureInfo = dataTypeFactory.getStructureInfoForDataType(baseSchema.dataTypeNodeId);

case node_opcua_factory_1.FieldCategory.complex:
return value ? value === null || value === void 0 ? void 0 : value.toJSON() : null;
return value ? value?.toJSON() : null;
case node_opcua_factory_1.FieldCategory.enumeration:
case node_opcua_factory_1.FieldCategory.basic:
return value instanceof Date ? new Date(value.getTime()) : (value === null || value === void 0 ? void 0 : value.toJSON) ? value === null || value === void 0 ? void 0 : value.toJSON() : value;
return value instanceof Date ? new Date(value.getTime()) : value?.toJSON ? value?.toJSON() : value;
default:

@@ -644,3 +644,2 @@ /* istanbul ignore next*/

function createDynamicObjectConstructor(schema, dataTypeFactory) {
var _a;
const schemaPriv = schema;

@@ -666,3 +665,3 @@ if (schemaPriv.$Constructor) {

const baseSchema = schema.getBaseSchema(); // dataTypeFactory.getStructuredTypeSchema(schema.baseType);
if (!baseSchema || ((_a = baseSchema.encodingDefaultBinary) === null || _a === void 0 ? void 0 : _a.value) === 0) {
if (!baseSchema || baseSchema.encodingDefaultBinary?.value === 0) {
// is abstract

@@ -669,0 +668,0 @@ }

@@ -7,11 +7,2 @@ "use strict";

// tslint:disable:no-empty
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -343,14 +334,12 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

exports.parseBinaryXSD = parseBinaryXSD;
function parseBinaryXSDAsync(xmlString, idProvider, dataTypeFactory) {
return __awaiter(this, void 0, void 0, function* () {
debugLog("parseBinaryXSDAsync");
return new Promise((resolve, reject) => {
parseBinaryXSD(xmlString, idProvider, dataTypeFactory, (err) => {
if (err) {
reject(err);
}
else {
resolve();
}
});
async function parseBinaryXSDAsync(xmlString, idProvider, dataTypeFactory) {
debugLog("parseBinaryXSDAsync");
return new Promise((resolve, reject) => {
parseBinaryXSD(xmlString, idProvider, dataTypeFactory, (err) => {
if (err) {
reject(err);
}
else {
resolve();
}
});

@@ -357,0 +346,0 @@ });

@@ -66,3 +66,6 @@ "use strict";

applyOnFields();
const schema = new node_opcua_factory_1.StructuredTypeSchema(Object.assign(Object.assign({}, structuredType), { dataTypeFactory }));
const schema = new node_opcua_factory_1.StructuredTypeSchema({
...structuredType,
dataTypeFactory
});
const ids = idProvider.getDataTypeAndEncodingId(schema.name);

@@ -69,0 +72,0 @@ if (!ids) {

{
"name": "node-opcua-schemas",
"version": "2.113.0",
"version": "2.114.0",
"description": "pure nodejs OPCUA SDK - module schemas",

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

"node-opcua-assert": "2.105.0",
"node-opcua-binary-stream": "2.110.0",
"node-opcua-debug": "2.113.0",
"node-opcua-extension-object": "2.113.0",
"node-opcua-factory": "2.113.0",
"node-opcua-nodeid": "2.113.0",
"node-opcua-variant": "2.113.0",
"node-opcua-xml2json": "2.113.0"
"node-opcua-binary-stream": "2.114.0",
"node-opcua-debug": "2.114.0",
"node-opcua-extension-object": "2.114.0",
"node-opcua-factory": "2.114.0",
"node-opcua-nodeid": "2.114.0",
"node-opcua-variant": "2.114.0",
"node-opcua-xml2json": "2.114.0"
},
"devDependencies": {
"mocha": "^10.2.0",
"node-opcua-data-model": "2.113.0",
"node-opcua-packet-analyzer": "2.113.0",
"node-opcua-utils": "2.110.0",
"node-opcua-data-model": "2.114.0",
"node-opcua-packet-analyzer": "2.114.0",
"node-opcua-utils": "2.114.0",
"should": "^13.2.3"

@@ -48,3 +48,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "36db335391fedd39726990a1b37f7768da16466a",
"gitHead": "358d284a696c88e383eedac1ab75d950fb28ec35",
"files": [

@@ -51,0 +51,0 @@ "dist",

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

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