node-opcua-schemas
Advanced tools
Comparing version 2.6.5 to 2.7.0
@@ -0,0 +0,0 @@ import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export * from "./parse_binary_xsd"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -41,5 +41,5 @@ /** | ||
export interface MapDataTypeAndEncodingIdProvider { | ||
getDataTypeAndEncodingId(key: string): DataTypeAndEncodingId; | ||
getDataTypeAndEncodingId(key: string): DataTypeAndEncodingId | null; | ||
} | ||
export declare function parseBinaryXSD(xmlString: string, idProvider: MapDataTypeAndEncodingIdProvider, dataTypeFactory: DataTypeFactory, callback: (err?: Error | null) => void): void; | ||
export declare function parseBinaryXSDAsync(xmlString: string, idProvider: MapDataTypeAndEncodingIdProvider, dataTypeFactory: DataTypeFactory): Promise<void>; |
@@ -0,0 +0,0 @@ "use strict"; |
import { DataTypeFactory, StructuredTypeSchema } from "node-opcua-factory"; | ||
import { MapDataTypeAndEncodingIdProvider, TypeDictionary } from "./parse_binary_xsd"; | ||
export declare function getOrCreateStructuredTypeSchema(name: string, typeDictionary: TypeDictionary, dataTypeFactory: DataTypeFactory, idProvider: MapDataTypeAndEncodingIdProvider): StructuredTypeSchema; |
@@ -123,3 +123,7 @@ "use strict"; | ||
if (!ids) { | ||
throw new Error("Cannot find getDataTypeAndEncodingId for " + schema.name); | ||
// this may happen if the type is abstract or if the type referes to a internal ExtnsionObject | ||
// that can only exists inside an other extension object.this Type of extension object cannot | ||
// instantiated as standalone object and do not have encoding nodeIds... | ||
const Constructor = dynamic_extension_object_1.createDynamicObjectConstructor(schema, dataTypeFactory); | ||
return schema; | ||
} | ||
@@ -126,0 +130,0 @@ schema.id = ids.dataTypeNodeId; |
import { DataTypeFactory } from "node-opcua-factory"; | ||
export declare function toTypeScript(dataTypeFactory: DataTypeFactory): string; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "node-opcua-schemas", | ||
"version": "2.6.5", | ||
"version": "2.7.0", | ||
"description": "pure nodejs OPCUA SDK - module -schemas", | ||
@@ -15,15 +15,15 @@ "main": "dist/source/index.js", | ||
"node-opcua-binary-stream": "^2.6.1", | ||
"node-opcua-data-model": "^2.6.5", | ||
"node-opcua-data-model": "^2.7.0", | ||
"node-opcua-debug": "^2.6.1", | ||
"node-opcua-enum": "^2.6.1", | ||
"node-opcua-extension-object": "^2.6.5", | ||
"node-opcua-factory": "^2.6.5", | ||
"node-opcua-extension-object": "^2.7.0", | ||
"node-opcua-factory": "^2.7.0", | ||
"node-opcua-nodeid": "^2.6.1", | ||
"node-opcua-utils": "^2.6.1", | ||
"node-opcua-variant": "^2.6.5", | ||
"node-opcua-xml2json": "^2.6.4", | ||
"node-opcua-utils": "^2.7.0", | ||
"node-opcua-variant": "^2.7.0", | ||
"node-opcua-xml2json": "^2.7.0", | ||
"thenify": "^3.3.0" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-packet-analyzer": "^2.6.5" | ||
"node-opcua-packet-analyzer": "^2.7.0" | ||
}, | ||
@@ -45,3 +45,3 @@ "author": "Etienne Rossignon", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "e5e38142a719ebe22afb9617dce34b985d407d9b" | ||
"gitHead": "868b9f5d0bf0411f30476a0947301dc1d487e462" | ||
} |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ export * from "./parse_binary_xsd"; |
@@ -305,3 +305,3 @@ /** | ||
// getDataTypeNodeId(key: string): NodeId; | ||
getDataTypeAndEncodingId(key: string): DataTypeAndEncodingId; | ||
getDataTypeAndEncodingId(key: string): DataTypeAndEncodingId | null; | ||
} | ||
@@ -308,0 +308,0 @@ |
@@ -152,3 +152,7 @@ import { | ||
if (!ids) { | ||
throw new Error("Cannot find getDataTypeAndEncodingId for " + schema.name); | ||
// this may happen if the type is abstract or if the type referes to a internal ExtnsionObject | ||
// that can only exists inside an other extension object.this Type of extension object cannot | ||
// instantiated as standalone object and do not have encoding nodeIds... | ||
const Constructor = createDynamicObjectConstructor(schema, dataTypeFactory) as ConstructorFuncWithSchema; | ||
return schema; | ||
} | ||
@@ -155,0 +159,0 @@ schema.id = ids.dataTypeNodeId; |
@@ -0,0 +0,0 @@ import { |
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
2512
148199
Updatednode-opcua-data-model@^2.7.0
Updatednode-opcua-factory@^2.7.0
Updatednode-opcua-utils@^2.7.0
Updatednode-opcua-variant@^2.7.0
Updatednode-opcua-xml2json@^2.7.0