Socket
Socket
Sign inDemoInstall

browser-process-hrtime

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-process-hrtime - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

3

index.js

@@ -13,3 +13,2 @@ module.exports = hrtime

function(){ return (new Date()).getTime() }
performanceNow = performanceNow.bind(performance)

@@ -19,3 +18,3 @@ // generate timestamp or delta

function hrtime(previousTimestamp){
var clocktime = performanceNow()/10e3
var clocktime = performanceNow.call(performance)/10e3
var seconds = Math.floor(clocktime)

@@ -22,0 +21,0 @@ var nanoseconds = (clocktime%1)*10e9

{
"name": "browser-process-hrtime",
"version": "0.0.2",
"version": "0.0.3",
"description": "Shim for process.hrtime in the browser",

@@ -5,0 +5,0 @@ "main": "index.js",

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