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

ntp-time

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ntp-time - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

22

index.d.ts

@@ -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 @@

10

package.json
{
"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);

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