node-opcua-schemas
Advanced tools
Comparing version 2.134.0 to 2.137.0
@@ -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]; |
{ | ||
"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
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
231364
2964
+ Addednode-opcua-data-model@2.137.0(transitive)
+ Addednode-opcua-extension-object@2.137.0(transitive)
+ Addednode-opcua-factory@2.137.0(transitive)
+ Addednode-opcua-variant@2.137.0(transitive)
+ Addednode-opcua-xml2json@2.137.0(transitive)
- Removednode-opcua-data-model@2.134.0(transitive)
- Removednode-opcua-extension-object@2.134.0(transitive)
- Removednode-opcua-factory@2.134.0(transitive)
- Removednode-opcua-variant@2.134.0(transitive)
- Removednode-opcua-xml2json@2.133.0(transitive)
Updatednode-opcua-factory@2.137.0
Updatednode-opcua-variant@2.137.0
Updatednode-opcua-xml2json@2.137.0