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

node-opcua-schemas

Package Overview
Dependencies
Maintainers
0
Versions
215
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.134.0 to 2.137.0

5

dist/source/dynamic_extension_object.js

@@ -244,2 +244,5 @@ "use strict";

const arr = value || [];
if (!Array.isArray(arr)) {
throw new Error("Expecting an array here for field " + field.name + "but got " + arr);
}
thisAny[name] = arr.map((x) => (constructor ? new constructor(x) : null));

@@ -619,3 +622,3 @@ }

toJSON() {
const pojo = {};
const pojo = Object.create(null);
const switchFieldName = this.schema.fields[0].name;

@@ -622,0 +625,0 @@ const switchValue = this[switchFieldName];

16

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

@@ -19,11 +19,11 @@ "main": "dist/source/index.js",

"node-opcua-debug": "2.133.0",
"node-opcua-extension-object": "2.134.0",
"node-opcua-factory": "2.134.0",
"node-opcua-extension-object": "2.137.0",
"node-opcua-factory": "2.137.0",
"node-opcua-nodeid": "2.133.0",
"node-opcua-variant": "2.134.0",
"node-opcua-xml2json": "2.133.0"
"node-opcua-variant": "2.137.0",
"node-opcua-xml2json": "2.137.0"
},
"devDependencies": {
"node-opcua-data-model": "2.134.0",
"node-opcua-packet-analyzer": "2.134.0",
"node-opcua-data-model": "2.137.0",
"node-opcua-packet-analyzer": "2.137.0",
"node-opcua-utils": "2.133.0"

@@ -46,3 +46,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "ccb34926a3c195f6a7e66fca58a2f101858e78be",
"gitHead": "e88e4f20d5436dd68084d2a6d447f170330b373d",
"files": [

@@ -49,0 +49,0 @@ "dist",

@@ -290,2 +290,6 @@ /**

const arr = (value as unknown[]) || [];
if (!Array.isArray(arr)) {
throw new Error("Expecting an array here for field " + field.name + "but got " + arr);
}
thisAny[name] = arr.map((x: any) => (constructor ? new constructor(x) : null));

@@ -741,3 +745,3 @@ } else {

public toJSON(): any {
const pojo: any = {};
const pojo: any = Object.create(null);
const switchFieldName = this.schema.fields[0].name;

@@ -744,0 +748,0 @@ const switchValue = (this as any)[switchFieldName];

@@ -5,3 +5,2 @@ /* eslint-disable max-depth */

import {
buildStructuredType,
ConstructorFuncWithSchema,

@@ -8,0 +7,0 @@ DataTypeFactory,

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