Socket
Socket
Sign inDemoInstall

performance-now

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

11

lib/performance-now.js

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.2
// Generated by CoffeeScript 1.6.3
(function() {

@@ -16,3 +16,2 @@ var getNanoSeconds, hrtime, loadTime;

var hr;
hr = hrtime();

@@ -22,6 +21,12 @@ return hr[0] * 1e9 + hr[1];

loadTime = getNanoSeconds();
} else if (Date.now) {
module.exports = function() {
return Date.now() - loadTime;
};
loadTime = Date.now();
} else {
module.exports = function() {
return Date.now();
return new Date().getTime() - loadTime;
};
loadTime = new Date().getTime();
}

@@ -28,0 +33,0 @@

@@ -5,3 +5,3 @@ {

"keywords": [],
"version": "0.1.2",
"version": "0.1.3",
"author": "Meryn Stol <merynstol@gmail.com>",

@@ -8,0 +8,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc