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.128.0 to 2.132.0

3

dist/date_time.d.ts

@@ -37,4 +37,5 @@ export interface DateWithPicoseconds extends Date {

export declare function coerceClock(timestamp: undefined | null | DateWithPicoseconds | Date, picoseconds?: number): PreciseClock;
export declare function isMinDate(date?: Date | null): boolean;
export declare function getMinOPCUADate(): Date;
export declare const minDate: Date;
export declare const minOPCUADate: Date;
export declare function isMinDate(date?: Date | null): boolean;

@@ -16,2 +16,3 @@ "use strict";

exports.isMinDate = isMinDate;
exports.getMinOPCUADate = getMinOPCUADate;
/**

@@ -82,3 +83,2 @@ * @module node-opcua-date-time

function bn_dateToHundredNanoSecondFrom1601(date, picoseconds) {
(0, node_opcua_assert_1.assert)(date instanceof Date);
if (date.high_low) {

@@ -201,7 +201,15 @@ return date.high_low;

}
exports.minDate = new Date(Date.UTC(1601, 0, 1, 0, 0, 0));
exports.minOPCUADate = exports.minDate;
function isMinDate(date) {
if (typeof date === "number") {
throw new Error("isMinDate: invalid argument");
}
return !date || date.getTime() === exports.minDate.getTime();
}
function getMinOPCUADate() {
return new Date(Date.UTC(1601, 0, 1, 0, 0, 0));
}
// @deprecated use getMinOPCUADate() instead
exports.minDate = new Date(Date.UTC(1601, 0, 1, 0, 0, 0));
// @deprecated use getMinOPCUADate() instead
exports.minOPCUADate = exports.minDate;
//# sourceMappingURL=date_time.js.map

@@ -65,3 +65,3 @@ "use strict";

if (!value) {
return date_time_1.minOPCUADate;
return (0, date_time_1.getMinOPCUADate)();
}

@@ -68,0 +68,0 @@ if (value instanceof Date) {

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

"types": "./dist/index.d.ts",
"version": "2.128.0",
"version": "2.132.0",
"description": "pure nodejs OPCUA SDK - module date-time",

@@ -39,3 +39,3 @@ "scripts": {

"homepage": "http://node-opcua.github.io/",
"gitHead": "67a73af6b831d8651a0e66ceb295f159cab4386b",
"gitHead": "5fab0f1eac0e59abf94bab9034035aec44890456",
"files": [

@@ -42,0 +42,0 @@ "dist",

@@ -80,3 +80,2 @@ /**

export function bn_dateToHundredNanoSecondFrom1601(date: Date, picoseconds: number) {
assert(date instanceof Date);
if ((date as any).high_low) {

@@ -227,8 +226,18 @@ return (date as any).high_low;

export const minDate = new Date(Date.UTC(1601, 0, 1, 0, 0, 0));
export const minOPCUADate = minDate;
export function isMinDate(date?: Date | null): boolean {
if (typeof date === "number") {
throw new Error("isMinDate: invalid argument");
}
return !date || date.getTime() === minDate.getTime();
}
export function getMinOPCUADate() {
return new Date(Date.UTC(1601, 0, 1, 0, 0, 0));
}
// @deprecated use getMinOPCUADate() instead
export const minDate = new Date(Date.UTC(1601, 0, 1, 0, 0, 0));
// @deprecated use getMinOPCUADate() instead
export const minOPCUADate = minDate;

@@ -10,3 +10,3 @@ /**

DateWithPicoseconds,
minOPCUADate
getMinOPCUADate
} from "./date_time";

@@ -75,3 +75,3 @@

if (!value) {
return minOPCUADate;
return getMinOPCUADate();
}

@@ -78,0 +78,0 @@ if (value instanceof Date) {

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