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

hirestime

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hirestime - npm Package Compare versions

Comparing version 5.0.4 to 5.0.5

dist/index.d.ts

3

dist/index.js

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

function formatFromMs(value, unit = exports.MS) {
console.log(value, unit);
if (unit === exports.MS) {

@@ -19,3 +20,3 @@ return round(value);

function getElapsor(getTime) {
const ret = (unit = null) => {
const ret = (unit = undefined) => {
if (unit && !DEP_WARNING) {

@@ -22,0 +23,0 @@ console.log('hirestime: please note that specifying a unit is deprecated and will be removed in the future, use the named methods instead');

{
"name": "hirestime",
"version": "5.0.4",
"version": "5.0.5",
"description": "thin wrapper around process.hrtime",

@@ -8,2 +8,3 @@ "main": "dist/index.js",

"scripts": {
"prepublish": "npm run build",
"build": "tsc -p .",

@@ -10,0 +11,0 @@ "test": "TS_NODE_TRANSPILE_ONLY=true NODE_ENV=test mocha --require ts-node/register test.ts",

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