Socket
Socket
Sign inDemoInstall

perf-marks

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

perf-marks - npm Package Compare versions

Comparing version 1.14.1 to 1.14.2

16

CHANGELOG.md

@@ -10,2 +10,12 @@ # Change Log

## [1.14.2][] - 2021-04-11
### Added
- Added blog post link in `README.md`
### Updated
- Decreasing bundle size of main bundle and `perf-marks/marks` entry-point 🎉
## [1.14.1][] - 2021-02-12

@@ -411,5 +421,7 @@

[1.14.0]: https://github.com/willmendesneto/perf-marks/tree/v1.14.0
[unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.14.1...HEAD
[1.14.1]: https://github.com/willmendesneto/perf-marks/tree/v1.14.1
[Unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.14.1...HEAD
[1.14.1]: https://github.com/willmendesneto/perf-marks/tree/v1.14.1
[Unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.14.2...HEAD
[1.14.2]: https://github.com/willmendesneto/perf-marks/tree/v1.14.2

7

dist/cjs/marks.js

@@ -18,8 +18,3 @@ "use strict";

*/
var getTimeNow = function () {
if (is_user_timing_api_supported_1.isUserTimingAPISupported) {
return performance.now();
}
return Date.now();
};
var getTimeNow = function () { return (is_user_timing_api_supported_1.isUserTimingAPISupported ? performance.now() : Date.now()); };
/**

@@ -26,0 +21,0 @@ * Clear marks and measure of performance event

@@ -13,8 +13,3 @@ import { isUserTimingAPISupported } from './is-user-timing-api-supported';

*/
const getTimeNow = () => {
if (isUserTimingAPISupported) {
return performance.now();
}
return Date.now();
};
const getTimeNow = () => (isUserTimingAPISupported ? performance.now() : Date.now());
/**

@@ -21,0 +16,0 @@ * Clear marks and measure of performance event

@@ -13,8 +13,3 @@ import { isUserTimingAPISupported } from './is-user-timing-api-supported';

*/
const getTimeNow = () => {
if (isUserTimingAPISupported) {
return performance.now();
}
return Date.now();
};
const getTimeNow = () => (isUserTimingAPISupported ? performance.now() : Date.now());
/**

@@ -21,0 +16,0 @@ * Clear marks and measure of performance event

@@ -13,8 +13,3 @@ import { isUserTimingAPISupported } from './is-user-timing-api-supported';

*/
var getTimeNow = function () {
if (isUserTimingAPISupported) {
return performance.now();
}
return Date.now();
};
var getTimeNow = function () { return (isUserTimingAPISupported ? performance.now() : Date.now()); };
/**

@@ -21,0 +16,0 @@ * Clear marks and measure of performance event

@@ -51,8 +51,3 @@ (function (global, factory) {

*/
var getTimeNow = function () {
if (isUserTimingAPISupported) {
return performance.now();
}
return Date.now();
};
var getTimeNow = function () { return (isUserTimingAPISupported ? performance.now() : Date.now()); };
/**

@@ -59,0 +54,0 @@ * Clear marks and measure of performance event

{
"name": "perf-marks",
"version": "1.14.1",
"version": "1.14.2",
"author": "Will Mendes <willmendesneto@gmail.com>",

@@ -5,0 +5,0 @@ "description": "The simplest and lightweight solution for User Timing API in Javascript.",

@@ -20,2 +20,4 @@ # Perf-marks

> If you want to get more details about that, please read ["Cross-platform performance measurements with User Timing API and perf-marks"](https://willmendesneto.com/posts/cross-platform-performance-measurements-with-user-timing-apiand-perf-marks) blog post
That's the simplest and lightweight solution for [User Timing API](https://developer.mozilla.org/en-US/docs/Web/API/User_Timing_API) in Javascript. Simple how it should be.

@@ -22,0 +24,0 @@

Sorry, the diff of this file is not supported yet

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