node-opcua-factory
Advanced tools
Comparing version 2.7.0 to 2.8.0
@@ -0,0 +0,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=constructor_type.js.map |
@@ -0,0 +0,0 @@ import { ExpandedNodeId, NodeId } from "node-opcua-nodeid"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; |
@@ -265,4 +265,14 @@ "use strict"; | ||
} | ||
str = fieldNameF + " " + fieldTypeF + ": " + s.name + "." + s.typedEnum.get(value).key + " ( " + value + ")"; | ||
data.lines.push(str); | ||
// istanbul ignore next | ||
if (!s.typedEnum.get(value)) { | ||
// tslint:disable:no-console | ||
s.typedEnum._isFlaggable = true; | ||
console.log("xxxx cannot find typeEnum value ", value); | ||
str = fieldNameF + " " + fieldTypeF + ": " + s.name + "." + s.typedEnum.get(value) + " ( " + value + ")"; | ||
data.lines.push(str); | ||
} | ||
else { | ||
str = fieldNameF + " " + fieldTypeF + ": " + s.name + "." + s.typedEnum.get(value).key + " ( " + value + ")"; | ||
data.lines.push(str); | ||
} | ||
break; | ||
@@ -269,0 +279,0 @@ case types_1.FieldCategory.basic: |
@@ -0,0 +0,0 @@ import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; |
@@ -0,0 +0,0 @@ "use strict"; |
import { ConstructorFunc } from "./constructor_type"; | ||
export declare function registerSpecialVariantEncoder(constructor: ConstructorFunc): void; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -7,2 +7,3 @@ import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; | ||
typedEnum?: any; | ||
lengthInBits?: number; | ||
defaultValue?: EnumItem; | ||
@@ -15,2 +16,3 @@ encode?: (value: EnumItem, stream: OutputBinaryStream) => void; | ||
typedEnum: Enum; | ||
lengthInBits: number; | ||
constructor(options: EnumerationDefinitionOptions); | ||
@@ -17,0 +19,0 @@ } |
@@ -39,2 +39,3 @@ "use strict"; | ||
this.defaultValue = this.typedEnum.getDefaultValue().value; | ||
this.lengthInBits = options.lengthInBits || 32; | ||
} | ||
@@ -41,0 +42,0 @@ } |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
export declare function generate_new_id(): number; | ||
export declare function next_available_id(): number; | ||
export declare function is_internal_id(value: number): boolean; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { FieldType, StructuredTypeField } from "./types"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { FieldType, StructuredTypeOptions, TypeSchemaBase } from "./types"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -11,3 +11,3 @@ "use strict"; | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -14,0 +14,0 @@ /** |
@@ -0,0 +0,0 @@ import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "node-opcua-factory", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"description": "pure nodejs OPCUA SDK - module -factory", | ||
@@ -16,8 +16,8 @@ "main": "./dist/index.js", | ||
"node-opcua-assert": "^2.6.1", | ||
"node-opcua-basic-types": "^2.7.0", | ||
"node-opcua-basic-types": "^2.8.0", | ||
"node-opcua-binary-stream": "^2.6.1", | ||
"node-opcua-debug": "^2.6.1", | ||
"node-opcua-enum": "^2.6.1", | ||
"node-opcua-enum": "^2.8.0", | ||
"node-opcua-guid": "^2.6.1", | ||
"node-opcua-nodeid": "^2.6.1", | ||
"node-opcua-nodeid": "^2.8.0", | ||
"node-opcua-status-code": "^2.6.1", | ||
@@ -42,3 +42,3 @@ "node-opcua-utils": "^2.7.0", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "868b9f5d0bf0411f30476a0947301dc1d487e462" | ||
"gitHead": "e3b0892d751900c13898ca82be84bbfe66997f0c" | ||
} |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -321,8 +321,17 @@ /** | ||
// istanbul ignore next | ||
if (!s.typedEnum) { | ||
if (!s.typedEnum ) { | ||
// tslint:disable:no-console | ||
console.log("xxxx cannot find typeEnum", s); | ||
} | ||
str = fieldNameF + " " + fieldTypeF + ": " + s.name + "." + s.typedEnum.get(value)!.key + " ( " + value + ")"; | ||
data.lines.push(str); | ||
// istanbul ignore next | ||
if (!s.typedEnum.get(value)) { | ||
// tslint:disable:no-console | ||
(s.typedEnum as any)._isFlaggable = true; | ||
console.log("xxxx cannot find typeEnum value ", value); | ||
str = fieldNameF + " " + fieldTypeF + ": " + s.name + "." + s.typedEnum.get(value) + " ( " + value + ")"; | ||
data.lines.push(str); | ||
} else { | ||
str = fieldNameF + " " + fieldTypeF + ": " + s.name + "." + s.typedEnum.get(value)!.key + " ( " + value + ")"; | ||
data.lines.push(str); | ||
} | ||
break; | ||
@@ -329,0 +338,0 @@ case FieldCategory.basic: |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -32,2 +32,3 @@ /** | ||
typedEnum?: any; | ||
lengthInBits?: number; | ||
@@ -43,2 +44,3 @@ // specialized methods | ||
public typedEnum: Enum; | ||
public lengthInBits: number; | ||
// xx encode: (value: EnumItem, stream: OutputBinaryStream) => void; | ||
@@ -61,3 +63,3 @@ // xx decode: (stream: BinaryStream) => EnumItem; | ||
this.defaultValue = this.typedEnum.getDefaultValue().value; | ||
this.lengthInBits = options.lengthInBits || 32; | ||
} | ||
@@ -64,0 +66,0 @@ } |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
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
235021
4302
Updatednode-opcua-enum@^2.8.0
Updatednode-opcua-nodeid@^2.8.0