node-opcua-factory
Advanced tools
Comparing version 2.5.0-alpha.6 to 2.5.0-alpha.10
@@ -173,3 +173,3 @@ "use strict"; | ||
const fieldTypeConstructor = field.fieldTypeConstructor; | ||
const _newDesc = fieldTypeConstructor.prototype.schema || fieldTypeConstructor.schema; | ||
const _newFieldSchema = field.schema || fieldTypeConstructor.prototype.schema || fieldTypeConstructor.schema; | ||
if (field.isArray) { | ||
@@ -189,3 +189,3 @@ if (value === null) { | ||
const data1 = { padding: padding + " ", lines: [] }; | ||
applyOnAllSchemaFields(element, _newDesc, data1, _exploreObject, args); | ||
applyOnAllSchemaFields(element, _newFieldSchema, data1, _exploreObject, args); | ||
data.lines = data.lines.concat(data1.lines); | ||
@@ -203,3 +203,3 @@ data.lines.push(padding + " }" + ((i === value.length - 1) ? "" : ",")); | ||
const data1 = { padding: padding + " ", lines: [] }; | ||
applyOnAllSchemaFields(value, _newDesc, data1, _exploreObject, args); | ||
applyOnAllSchemaFields(value, _newFieldSchema, data1, _exploreObject, args); | ||
data.lines = data.lines.concat(data1.lines); | ||
@@ -206,0 +206,0 @@ data.lines.push(padding + "}"); |
{ | ||
"name": "node-opcua-factory", | ||
"version": "2.5.0-alpha.6", | ||
"version": "2.5.0-alpha.10", | ||
"description": "pure nodejs OPCUA SDK - module -factory", | ||
@@ -40,3 +40,3 @@ "main": "./dist/index.js", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "df16503b0a7738500ccba7daec3952f898764371" | ||
"gitHead": "1428f09853a22bf736c35cba36744511298bb62c" | ||
} |
@@ -9,7 +9,7 @@ /** | ||
type BaseUAObjectConstructable = new(options?: any) => BaseUAObject; | ||
type BaseUAObjectConstructable = new (options?: any) => BaseUAObject; | ||
export type ConstructorFunc = BaseUAObjectConstructable; | ||
// new (...args: any[]) => BaseUAObjectConstructable; | ||
export interface ConstructorFuncWithSchema extends ConstructorFunc { | ||
export interface ConstructorFuncWithSchema extends ConstructorFunc { | ||
schema: StructuredTypeSchema; | ||
@@ -16,0 +16,0 @@ possibleFields: string[]; |
@@ -207,3 +207,3 @@ /** | ||
const _newDesc = fieldTypeConstructor.prototype.schema || (fieldTypeConstructor as any).schema; | ||
const _newFieldSchema = (field.schema as StructuredTypeSchema) || fieldTypeConstructor.prototype.schema || (fieldTypeConstructor as any).schema; | ||
@@ -225,3 +225,3 @@ if (field.isArray) { | ||
const data1 = { padding: padding + " ", lines: [] }; | ||
applyOnAllSchemaFields(element, _newDesc, data1, _exploreObject, args); | ||
applyOnAllSchemaFields(element, _newFieldSchema, data1, _exploreObject, args); | ||
data.lines = data.lines.concat(data1.lines); | ||
@@ -241,3 +241,3 @@ | ||
const data1 = { padding: padding + " ", lines: [] }; | ||
applyOnAllSchemaFields(value, _newDesc, data1, _exploreObject, args); | ||
applyOnAllSchemaFields(value, _newFieldSchema, data1, _exploreObject, args); | ||
data.lines = data.lines.concat(data1.lines); | ||
@@ -244,0 +244,0 @@ |
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
218808