Comparing version 1.1.0 to 1.1.1
@@ -1,5 +0,23 @@ | ||
import Packet from "./src/packet"; | ||
export interface NTPPacket { | ||
leapIndicator: number; | ||
version: number; | ||
mode: number; | ||
stratum: number; | ||
pollInterval: number; | ||
precision: number; | ||
referenceIdentifier: Buffer; | ||
referenceTimestamp: number; | ||
originateTimestamp: number; | ||
receiveTimestamp: number; | ||
transmitTimestamp: number; | ||
rootDelay: Buffer; | ||
rootDispersion: Buffer; | ||
destinationTimestamp: number; | ||
time: Date; | ||
d: number; | ||
t: number; | ||
} | ||
declare class Client { | ||
syncTime(): Promise<Packet>; | ||
syncTime(): Promise<NTPPacket>; | ||
} | ||
@@ -6,0 +24,0 @@ |
{ | ||
"name": "ntp-time", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A ntp library for nodejs", | ||
@@ -14,3 +14,9 @@ "main": "index.js", | ||
"date" | ||
] | ||
], | ||
"devDependencies": { | ||
"jest": "^26.4.2" | ||
}, | ||
"scripts": { | ||
"test": "jest" | ||
} | ||
} |
@@ -34,2 +34,3 @@ # ntp-time | ||
sync(); | ||
// Or using .then | ||
@@ -53,3 +54,3 @@ | ||
// Define your custom handler for requisitions | ||
// Define your custom handler for requests | ||
server.handle((message, response) => { | ||
@@ -56,0 +57,0 @@ console.log("Server message:", message); |
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
334
69
14096
1
8