Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-date-time

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-date-time - npm Package Compare versions

Comparing version 2.0.0-alpha.10 to 2.0.0-alpha.12

2

dist/date_time.d.ts

@@ -33,2 +33,2 @@ export declare class DateWithPicoseconds extends Date {

};
export declare function isMinDate(date: Date): boolean;
export declare function isMinDate(date?: Date | null): boolean;

@@ -167,5 +167,5 @@ "use strict";

function isMinDate(date) {
return date.getTime() === minDate.getTime();
return !date || date.getTime() === minDate.getTime();
}
exports.isMinDate = isMinDate;
//# sourceMappingURL=date_time.js.map

@@ -1,2 +0,2 @@

import { BinaryStream } from "node-opcua-binary-stream";
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
import { DateWithPicoseconds } from "./date_time";

@@ -11,4 +11,4 @@ export declare function isValidDateTime(value: any): boolean;

*/
export declare function encodeHighAccuracyDateTime(date: Date | null, picoseconds: number, stream: BinaryStream): void;
export declare function encodeDateTime(date: Date | null, stream: BinaryStream): void;
export declare function encodeHighAccuracyDateTime(date: Date | null, picoseconds: number, stream: OutputBinaryStream): void;
export declare function encodeDateTime(date: Date | null, stream: OutputBinaryStream): void;
/**

@@ -15,0 +15,0 @@ *

@@ -5,3 +5,3 @@ {

"types": "./dist/index.d.ts",
"version": "2.0.0-alpha.10",
"version": "2.0.0-alpha.12",
"description": "pure nodejs OPCUA SDK - module -date-time",

@@ -19,5 +19,5 @@ "scripts": {

"@types/underscore": "^1.8.9",
"bignumber.js": "^8.0.1",
"bignumber.js": "^8.0.2",
"node-opcua-benchmarker": "^2.0.0-alpha.10",
"node-opcua-binary-stream": "^2.0.0-alpha.10",
"node-opcua-binary-stream": "^2.0.0-alpha.12",
"should": "13.2.3"

@@ -40,3 +40,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "a4fd47cebc405a37470fa015e98148ec212a8c29"
"gitHead": "61699a99c75c631388f2e8d8e33eb209649c5eac"
}

@@ -190,4 +190,4 @@ /**

export function isMinDate(date: Date): boolean {
return date.getTime() === minDate.getTime();
export function isMinDate(date?: Date | null): boolean {
return !date || date.getTime() === minDate.getTime();
}

@@ -5,3 +5,3 @@ /**

import assert from "node-opcua-assert";
import { BinaryStream } from "node-opcua-binary-stream";
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";
import {

@@ -45,3 +45,3 @@ bn_dateToHundredNanoSecondFrom1601,

*/
export function encodeHighAccuracyDateTime(date: Date | null, picoseconds: number, stream: BinaryStream) {
export function encodeHighAccuracyDateTime(date: Date | null, picoseconds: number, stream: OutputBinaryStream) {

@@ -65,3 +65,3 @@ if (date === null) {

export function encodeDateTime(date: Date | null, stream: BinaryStream) {
export function encodeDateTime(date: Date | null, stream: OutputBinaryStream) {
encodeHighAccuracyDateTime(date, 0, stream);

@@ -68,0 +68,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc