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

pretty-hrtime

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretty-hrtime - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

9

index.js

@@ -10,3 +10,3 @@ /*jshint node:true */

module.exports = function (source, opts) {
var verbose, precise, i, spot, sourceAtStep, valAtStep, decimals, strAtStep, results;
var verbose, precise, i, spot, sourceAtStep, valAtStep, decimals, strAtStep, results, totalSeconds;

@@ -27,2 +27,9 @@ verbose = false;

// normalize source array due to changes in node v5.4+
if (source[1] < 0) {
totalSeconds = source[0] + source[1] / 1e9;
source[0] = parseInt(totalSeconds);
source[1] = parseFloat((totalSeconds % 1).toPrecision(9)) * 1e9;
}
results = '';

@@ -29,0 +36,0 @@

2

package.json
{
"name": "pretty-hrtime",
"description": "process.hrtime() to words",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/robrich/pretty-hrtime",

@@ -6,0 +6,0 @@ "repository": "git://github.com/robrich/pretty-hrtime.git",

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