node-opcua-data-value
Advanced tools
Comparing version 2.6.4 to 2.6.5
@@ -19,1 +19,2 @@ /** | ||
export declare const _enumerationTimestampsToReturn: import("node-opcua-enum").Enum; | ||
export declare function coerceTimestampsToReturn(value: number | null | undefined): TimestampsToReturn; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._enumerationTimestampsToReturn = exports.decodeTimestampsToReturn = exports.encodeTimestampsToReturn = exports.schemaTimestampsToReturn = exports.TimestampsToReturn = void 0; | ||
exports.coerceTimestampsToReturn = exports._enumerationTimestampsToReturn = exports.decodeTimestampsToReturn = exports.encodeTimestampsToReturn = exports.schemaTimestampsToReturn = exports.TimestampsToReturn = void 0; | ||
const node_opcua_factory_1 = require("node-opcua-factory"); | ||
@@ -29,2 +29,6 @@ var TimestampsToReturn; | ||
exports._enumerationTimestampsToReturn = node_opcua_factory_1.registerEnumeration(exports.schemaTimestampsToReturn); | ||
function coerceTimestampsToReturn(value) { | ||
return (typeof value === "number") ? +value : TimestampsToReturn.Neither; | ||
} | ||
exports.coerceTimestampsToReturn = coerceTimestampsToReturn; | ||
//# sourceMappingURL=TimestampsToReturn_enum.js.map |
@@ -5,3 +5,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "2.6.4", | ||
"version": "2.6.5", | ||
"description": "pure nodejs OPCUA SDK - module -data-value", | ||
@@ -17,17 +17,17 @@ "scripts": { | ||
"node-opcua-binary-stream": "^2.6.1", | ||
"node-opcua-data-model": "^2.6.1", | ||
"node-opcua-data-model": "^2.6.5", | ||
"node-opcua-date-time": "^2.6.1", | ||
"node-opcua-enum": "^2.6.1", | ||
"node-opcua-extension-object": "^2.6.1", | ||
"node-opcua-factory": "^2.6.1", | ||
"node-opcua-extension-object": "^2.6.5", | ||
"node-opcua-factory": "^2.6.5", | ||
"node-opcua-nodeid": "^2.6.1", | ||
"node-opcua-status-code": "^2.6.1", | ||
"node-opcua-utils": "^2.6.1", | ||
"node-opcua-variant": "^2.6.1", | ||
"node-opcua-variant": "^2.6.5", | ||
"underscore": "^1.10.2" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-generator": "^2.6.4", | ||
"node-opcua-numeric-range": "^2.6.1", | ||
"node-opcua-packet-analyzer": "^2.6.1", | ||
"node-opcua-generator": "^2.6.5", | ||
"node-opcua-numeric-range": "^2.6.5", | ||
"node-opcua-packet-analyzer": "^2.6.5", | ||
"should": "^13.2.3" | ||
@@ -50,3 +50,3 @@ }, | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "0d168bdc8351bbaf7ff9e60e21d459e8c4bdfeca" | ||
"gitHead": "e5e38142a719ebe22afb9617dce34b985d407d9b" | ||
} |
@@ -415,3 +415,3 @@ /** | ||
let cloneDataValue = null; | ||
let cloneDataValue: DataValue | null = null; | ||
let now = null; | ||
@@ -418,0 +418,0 @@ // apply timestamps |
@@ -34,1 +34,5 @@ /** | ||
export const _enumerationTimestampsToReturn = registerEnumeration(schemaTimestampsToReturn); | ||
export function coerceTimestampsToReturn(value: number | null | undefined): TimestampsToReturn { | ||
return (typeof value === "number") ? +value : TimestampsToReturn.Neither; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
81615
1385
Updatednode-opcua-data-model@^2.6.5
Updatednode-opcua-factory@^2.6.5
Updatednode-opcua-variant@^2.6.5