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

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.0.0 to 1.0.1

15

CHANGELOG.md

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

## [1.0.1][] - 2019-10-16
### Updated
- Removing sufix in `performance.measure` call
- Removing `src/index.tx` from code coverage evaluation
- Replacing local demo in favour of Stackblitz playground `https://stackblitz.com/edit/perf-marks-playground`
## [1.0.0][] - 2019-10-16

@@ -18,4 +26,7 @@

[unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/willmendesneto/perf-marks/tree/v1.0.0
[Unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/willmendesneto/perf-marks/tree/v1.0.0
[Unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.0.1...HEAD
[1.0.1]: https://github.com/willmendesneto/perf-marks/tree/v1.0.1

6

jest.config.js

@@ -14,5 +14,5 @@ module.exports = {

global: {
branches: 57,
branches: 87,
functions: 100,
lines: 80,
lines: 92,
statements: 82,

@@ -23,4 +23,4 @@ },

testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/scripts/', '/dist/'],
testPathIgnorePatterns: ['/node_modules/', '/scripts/', '/dist/', '/src/index.[tj]s'],
setupFilesAfterEnv: ['<rootDir>/jest-setup.js'],
};
/*!
* perf-marks.js v1.0.0
* perf-marks.js v1.0.1
* https://github.com/willmendesneto/perf-marks

@@ -105,3 +105,3 @@ *

performance.measure(markName + "-perf-marks", markName, markNameToCompare || undefined);
performance.measure(markName, markName, markNameToCompare || undefined);
var entry = performance.getEntriesByName(markName).pop();

@@ -108,0 +108,0 @@

/*!
* perf-marks.js v1.0.0
* perf-marks.js v1.0.1
* https://github.com/willmendesneto/perf-marks

@@ -7,2 +7,2 @@ *

*/
!function(e,r){if("function"==typeof define&&define.amd)define("PerfMarks",["exports","./is-user-timing-api-supported"],r);else if("undefined"!=typeof exports)r(exports,require("./is-user-timing-api-supported"));else{var i={};r(i,e.isUserTimingApiSupported),e.PerfMarks=i}}(this,function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearAll=e.clear=e.end=e.start=void 0;var s={},o=function e(){return t.isUserTimingAPISupported?performance.now():Date.now?Date.now():+new Date},p=function e(r){s[r]=void 0,t.isUserTimingAPISupported&&(performance.clearMeasures(r),performance.clearMarks(r))};e.clear=p;var r=function e(r){t.isUserTimingAPISupported&&performance.mark(r),s[r]=o()};e.start=r;var i=function e(r,i){try{var n=s[r];if(!t.isUserTimingAPISupported)return n?{duration:o()-n,startTime:n}:{};performance.measure(r+"-perf-marks",r,i||void 0);var a=performance.getEntriesByName(r).pop();return a||{}}catch(e){return{}}finally{p(r)}};e.end=i;var n=function e(){s={},t.isUserTimingAPISupported&&(performance.clearMeasures(),performance.clearMarks())};e.clearAll=n});
!function(e,r){if("function"==typeof define&&define.amd)define("PerfMarks",["exports","./is-user-timing-api-supported"],r);else if("undefined"!=typeof exports)r(exports,require("./is-user-timing-api-supported"));else{var i={};r(i,e.isUserTimingApiSupported),e.PerfMarks=i}}(this,function(e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearAll=e.clear=e.end=e.start=void 0;var s={},o=function e(){return a.isUserTimingAPISupported?performance.now():Date.now?Date.now():+new Date},p=function e(r){s[r]=void 0,a.isUserTimingAPISupported&&(performance.clearMeasures(r),performance.clearMarks(r))};e.clear=p;var r=function e(r){a.isUserTimingAPISupported&&performance.mark(r),s[r]=o()};e.start=r;var i=function e(r,i){try{var n=s[r];if(!a.isUserTimingAPISupported)return n?{duration:o()-n,startTime:n}:{};performance.measure(r,r,i||void 0);var t=performance.getEntriesByName(r).pop();return t||{}}catch(e){return{}}finally{p(r)}};e.end=i;var n=function e(){s={},a.isUserTimingAPISupported&&(performance.clearMeasures(),performance.clearMarks())};e.clearAll=n});
{
"name": "perf-marks",
"version": "1.0.0",
"version": "1.0.1",
"author": "Will Mendes <willmendesneto@gmail.com>",

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

"path": "./lib/perf-marks.min.js",
"maxSize": "597B"
"maxSize": "589B"
}

@@ -74,0 +74,0 @@ ],

# Perf-marks
[![Greenkeeper badge](https://badges.greenkeeper.io/willmendesneto/perf-marks.svg)](https://greenkeeper.io/)
[![npm](https://img.shields.io/badge/stackblitz-online-orange.svg)](https://stackblitz.com/edit/perf-marks-playground)

@@ -49,3 +50,3 @@ [![npm version](https://badge.fury.io/js/perf-marks.svg)](http://badge.fury.io/js/perf-marks) [![npm downloads](https://img.shields.io/npm/dm/perf-marks.svg)](https://npmjs.org/perf-marks)

Try out the [demo](https://github.com/willmendesneto/perf-marks/blob/master/demo/index.html)!
Try out our [demo on Stackblitz](https://perf-marks-playground.stackblitz.io)!

@@ -52,0 +53,0 @@ ## Run the app

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