node-opcua-data-value
Advanced tools
Comparing version 2.133.0 to 2.134.0
@@ -121,4 +121,5 @@ "use strict"; | ||
if (encodingMask & DataValueEncodingByte_enum_1.DataValueEncodingByte.SourceTimestamp) { | ||
dataValue.sourceTimestamp = (0, node_opcua_basic_types_1.decodeHighAccuracyDateTime)(stream); | ||
dataValue.sourcePicoseconds = dataValue.sourceTimestamp.picoseconds; | ||
const [d, picoseconds] = (0, node_opcua_basic_types_1.decodeHighAccuracyDateTime)(stream); | ||
dataValue.sourceTimestamp = d; | ||
dataValue.sourcePicoseconds = picoseconds | 0; | ||
tracer.trace("member", "sourceTimestamp", dataValue.sourceTimestamp, cur, stream.length, "DateTime"); | ||
@@ -138,4 +139,5 @@ } | ||
if (encodingMask & DataValueEncodingByte_enum_1.DataValueEncodingByte.ServerTimestamp) { | ||
dataValue.serverTimestamp = (0, node_opcua_basic_types_1.decodeHighAccuracyDateTime)(stream); | ||
dataValue.serverPicoseconds = dataValue.serverTimestamp.picoseconds | 0; | ||
const [d, picoseconds] = (0, node_opcua_basic_types_1.decodeHighAccuracyDateTime)(stream); | ||
dataValue.serverTimestamp = d; | ||
dataValue.serverPicoseconds = picoseconds | 0; | ||
tracer.trace("member", "serverTimestamp", dataValue.serverTimestamp, cur, stream.length, "DateTime"); | ||
@@ -167,4 +169,5 @@ } | ||
if (encodingMask & DataValueEncodingByte_enum_1.DataValueEncodingByte.SourceTimestamp) { | ||
dataValue.sourceTimestamp = (0, node_opcua_basic_types_1.decodeHighAccuracyDateTime)(stream); | ||
dataValue.sourcePicoseconds += dataValue.sourceTimestamp.picoseconds | 0; | ||
const [d, picoseconds] = (0, node_opcua_basic_types_1.decodeHighAccuracyDateTime)(stream); | ||
dataValue.sourceTimestamp = d; | ||
dataValue.sourcePicoseconds += picoseconds | 0; | ||
} | ||
@@ -178,4 +181,5 @@ // read sourcePicoseconds | ||
if (encodingMask & DataValueEncodingByte_enum_1.DataValueEncodingByte.ServerTimestamp) { | ||
dataValue.serverTimestamp = (0, node_opcua_basic_types_1.decodeHighAccuracyDateTime)(stream); | ||
dataValue.serverPicoseconds += dataValue.serverTimestamp.picoseconds | 0; | ||
const [d, picoseconds] = (0, node_opcua_basic_types_1.decodeHighAccuracyDateTime)(stream); | ||
dataValue.serverTimestamp = d; | ||
dataValue.serverPicoseconds += picoseconds | 0; | ||
} | ||
@@ -182,0 +186,0 @@ // read serverPicoseconds |
@@ -5,3 +5,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "2.133.0", | ||
"version": "2.134.0", | ||
"description": "pure nodejs OPCUA SDK - module data-value", | ||
@@ -17,16 +17,16 @@ "scripts": { | ||
"node-opcua-assert": "2.120.0", | ||
"node-opcua-basic-types": "2.133.0", | ||
"node-opcua-basic-types": "2.134.0", | ||
"node-opcua-binary-stream": "2.133.0", | ||
"node-opcua-data-model": "2.133.0", | ||
"node-opcua-date-time": "2.133.0", | ||
"node-opcua-data-model": "2.134.0", | ||
"node-opcua-date-time": "2.134.0", | ||
"node-opcua-enum": "2.133.0", | ||
"node-opcua-factory": "2.133.0", | ||
"node-opcua-factory": "2.134.0", | ||
"node-opcua-status-code": "2.133.0", | ||
"node-opcua-variant": "2.133.0" | ||
"node-opcua-variant": "2.134.0" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-debug": "2.133.0", | ||
"node-opcua-extension-object": "2.133.0", | ||
"node-opcua-numeric-range": "2.133.0", | ||
"node-opcua-packet-analyzer": "2.133.0" | ||
"node-opcua-extension-object": "2.134.0", | ||
"node-opcua-numeric-range": "2.134.0", | ||
"node-opcua-packet-analyzer": "2.134.0" | ||
}, | ||
@@ -48,3 +48,3 @@ "author": "Etienne Rossignon", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "921bb04f2e7ce3109dd051ff27a2210edf700344", | ||
"gitHead": "ccb34926a3c195f6a7e66fca58a2f101858e78be", | ||
"files": [ | ||
@@ -51,0 +51,0 @@ "dist", |
@@ -6,3 +6,3 @@ /** | ||
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; | ||
import { coerceDateTime, DateWithPicoseconds, getCurrentClock, PreciseClock } from "node-opcua-date-time"; | ||
import { coerceDateTime, getCurrentClock, PreciseClock } from "node-opcua-date-time"; | ||
import { | ||
@@ -140,4 +140,5 @@ BaseUAObject, | ||
if (encodingMask & DataValueEncodingByte.SourceTimestamp) { | ||
dataValue.sourceTimestamp = decodeHighAccuracyDateTime(stream); | ||
dataValue.sourcePicoseconds = (dataValue.sourceTimestamp as DateWithPicoseconds).picoseconds; | ||
const [d, picoseconds] = decodeHighAccuracyDateTime(stream); | ||
dataValue.sourceTimestamp = d; | ||
dataValue.sourcePicoseconds = picoseconds | 0; | ||
tracer.trace("member", "sourceTimestamp", dataValue.sourceTimestamp, cur, stream.length, "DateTime"); | ||
@@ -157,4 +158,5 @@ } | ||
if (encodingMask & DataValueEncodingByte.ServerTimestamp) { | ||
dataValue.serverTimestamp = decodeHighAccuracyDateTime(stream); | ||
dataValue.serverPicoseconds = (dataValue.serverTimestamp as DateWithPicoseconds).picoseconds | 0; | ||
const [d, picoseconds] = decodeHighAccuracyDateTime(stream); | ||
dataValue.serverTimestamp = d; | ||
dataValue.serverPicoseconds = picoseconds | 0; | ||
tracer.trace("member", "serverTimestamp", dataValue.serverTimestamp, cur, stream.length, "DateTime"); | ||
@@ -187,4 +189,5 @@ } | ||
if (encodingMask & DataValueEncodingByte.SourceTimestamp) { | ||
dataValue.sourceTimestamp = decodeHighAccuracyDateTime(stream); | ||
dataValue.sourcePicoseconds += (dataValue.sourceTimestamp as DateWithPicoseconds).picoseconds | 0; | ||
const [d, picoseconds] = decodeHighAccuracyDateTime(stream); | ||
dataValue.sourceTimestamp = d | ||
dataValue.sourcePicoseconds += picoseconds | 0; | ||
} | ||
@@ -198,4 +201,5 @@ // read sourcePicoseconds | ||
if (encodingMask & DataValueEncodingByte.ServerTimestamp) { | ||
dataValue.serverTimestamp = decodeHighAccuracyDateTime(stream); | ||
dataValue.serverPicoseconds += (dataValue.serverTimestamp as DateWithPicoseconds).picoseconds | 0; | ||
const [d, picoseconds] = decodeHighAccuracyDateTime(stream); | ||
dataValue.serverTimestamp = d; | ||
dataValue.serverPicoseconds += picoseconds | 0; | ||
} | ||
@@ -202,0 +206,0 @@ // read serverPicoseconds |
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
91653
1658
+ Added@types/long@4.0.0(transitive)
+ Addedlong@4.0.0(transitive)
+ Addednode-opcua-basic-types@2.134.0(transitive)
+ Addednode-opcua-data-model@2.134.0(transitive)
+ Addednode-opcua-date-time@2.134.0(transitive)
+ Addednode-opcua-factory@2.134.0(transitive)
+ Addednode-opcua-variant@2.134.0(transitive)
- Removedlong@5.2.3(transitive)
- Removednode-opcua-basic-types@2.133.0(transitive)
- Removednode-opcua-data-model@2.133.0(transitive)
- Removednode-opcua-date-time@2.133.0(transitive)
- Removednode-opcua-factory@2.133.0(transitive)
- Removednode-opcua-variant@2.133.0(transitive)
Updatednode-opcua-date-time@2.134.0
Updatednode-opcua-factory@2.134.0
Updatednode-opcua-variant@2.134.0