node-opcua-schemas
Advanced tools
Comparing version 2.0.0-alpha.24 to 2.0.0-alpha.26
{ | ||
"name": "node-opcua-schemas", | ||
"version": "2.0.0-alpha.24", | ||
"version": "2.0.0-alpha.26", | ||
"description": "pure nodejs OPCUA SDK - module -schemas", | ||
@@ -14,11 +14,11 @@ "main": "dist/source/index.js", | ||
"node-opcua-binary-stream": "^2.0.0-alpha.24", | ||
"node-opcua-data-model": "^2.0.0-alpha.24", | ||
"node-opcua-debug": "^2.0.0-alpha.24", | ||
"node-opcua-extension-object": "^2.0.0-alpha.24", | ||
"node-opcua-factory": "^2.0.0-alpha.24", | ||
"node-opcua-data-model": "^2.0.0-alpha.26", | ||
"node-opcua-debug": "^2.0.0-alpha.26", | ||
"node-opcua-extension-object": "^2.0.0-alpha.26", | ||
"node-opcua-factory": "^2.0.0-alpha.26", | ||
"node-opcua-nodeid": "^2.0.0-alpha.24", | ||
"node-opcua-xml2json": "^2.0.0-alpha.24" | ||
"node-opcua-xml2json": "^2.0.0-alpha.26" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-packet-analyzer": "^2.0.0-alpha.24" | ||
"node-opcua-packet-analyzer": "^2.0.0-alpha.26" | ||
}, | ||
@@ -40,3 +40,3 @@ "author": "Etienne Rossignon", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "5b131e21469dea811490a81907d8aa571dacb65f" | ||
"gitHead": "56340dc976fb8e9954ffe9f1aa3ebd06a47f24de" | ||
} |
@@ -106,18 +106,18 @@ /** | ||
TypeDictionary: { | ||
init: function(this: any, name: string, attributes: any) { | ||
init: function (this: any, name: string, attributes: any) { | ||
this.typeDictionary = this.engine.typeDictionary; | ||
this.typeDictionary.defaultByteOrder = attributes.DefaultByteOrder; | ||
this.typeDictionary.targetNamespace = attributes.TargetNamespace; | ||
this.typeDictionary.targetNamespace = attributes.TargetNamespace; | ||
}, | ||
parser: { | ||
Import: { | ||
init: function(this: any, name: string, attributes: any) { | ||
init: function (this: any, name: string, attributes: any) { | ||
this.parent.typeDictionary.imports.push(attributes.Namespace); | ||
}, | ||
finish: function(this: any) { | ||
finish: function (this: any) { | ||
// _register_namespace_uri(this.text); | ||
if (doDebug) { | ||
console.log("Import NameSpace = ", this.attrs.Namespace, | ||
" Location", this.attrs.Location); | ||
" Location", this.attrs.Location); | ||
} | ||
@@ -128,7 +128,7 @@ } | ||
EnumeratedType: { | ||
init: function(this: any) { | ||
init: function (this: any) { | ||
if (doDebug) { | ||
console.log(chalk.cyan("EnumeratedType Name="), | ||
w(this.attrs.Name, 40), "LengthInBits=", this.attrs.LengthInBits); | ||
w(this.attrs.Name, 40), "LengthInBits=", this.attrs.LengthInBits); | ||
} | ||
@@ -144,3 +144,3 @@ | ||
Documentation: { | ||
finish: function(this: any) { | ||
finish: function (this: any) { | ||
this.parent.enumeratedType.documentation = this.text; | ||
@@ -150,6 +150,6 @@ } | ||
EnumeratedValue: { | ||
finish: function(this: any) { | ||
finish: function (this: any) { | ||
if (doDebug) { | ||
console.log(" EnumeratedValue Name=", | ||
w(this.attrs.Name, 40), " Value=", this.attrs.Value); | ||
w(this.attrs.Name, 40), " Value=", this.attrs.Value); | ||
} | ||
@@ -163,3 +163,3 @@ this.parent.enumeratedType.enumeratedValues.push({ | ||
}, | ||
finish: function(this: any) { | ||
finish: function (this: any) { | ||
this.parent.typeDictionary.enumeratedTypes[this.attrs.Name] = this.enumeratedType; | ||
@@ -169,6 +169,6 @@ } | ||
StructuredType: { | ||
init: function(this: any) { | ||
init: function (this: any) { | ||
if (doDebug) { | ||
console.log(chalk.cyan("StructureType Name="), | ||
this.attrs.Name.green, " BaseType=", this.attrs.BaseType); | ||
this.attrs.Name.green, " BaseType=", this.attrs.BaseType); | ||
} | ||
@@ -190,3 +190,3 @@ const baseType = this.attrs.BaseType; | ||
Field: { | ||
finish: function(this: any) { | ||
finish: function (this: any) { | ||
@@ -199,5 +199,5 @@ if (this.attrs.SourceType) { | ||
console.log( | ||
chalk.yellow(" field Name="), w(this.attrs.Name, 40), | ||
chalk.yellow(" field TypeName="), w(this.attrs.TypeName, 40), | ||
chalk.yellow(" field LengthField="), w(this.attrs.LengthField, 40)); | ||
chalk.yellow(" field Name="), w(this.attrs.Name, 40), | ||
chalk.yellow(" field TypeName="), w(this.attrs.TypeName, 40), | ||
chalk.yellow(" field LengthField="), w(this.attrs.LengthField, 40)); | ||
} | ||
@@ -225,3 +225,3 @@ resolveType(this.parent.typeDictionary, this.attrs.TypeName); | ||
}, | ||
finish: function(this: any) { | ||
finish: function (this: any) { | ||
this.parent.typeDictionary.structuredTypes[this.attrs.Name] = this.structuredType; | ||
@@ -236,5 +236,5 @@ } | ||
export function parseBinaryXSD( | ||
xmlString: string, | ||
callback: (err: Error | null, typeDictionary: TypeDictionary | ||
) => void) { | ||
xmlString: string, | ||
callback: (err: Error | null, typeDictionary: TypeDictionary | ||
) => void) { | ||
@@ -241,0 +241,0 @@ const typeDictionary: TypeDictionary = { |
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
58412