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

@fastly/performance-observer-polyfill

Package Overview
Dependencies
Maintainers
32
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastly/performance-observer-polyfill - npm Package Compare versions

Comparing version 1.0.2-0 to 1.0.2

2

dist/index.js
/*!
* Performance Observer Polyfill
* Version: 1.0.2-0
* Version: 1.0.2
* https://github.com/fastly/performance-observer-polyfill

@@ -5,0 +5,0 @@ *

{
"name": "@fastly/performance-observer-polyfill",
"version": "1.0.2-0",
"version": "1.0.2",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "files": [

/*!
* Performance Observer Polyfill
* Version: 1.0.2-0
* Version: 1.0.2
* https://github.com/fastly/performance-observer-polyfill

@@ -5,0 +5,0 @@ *

@@ -15,3 +15,3 @@ <h1 align="center" style="border-bottom: none;">🔎 PerformanceObserver Polyfill</h1>

The polypill works by falling back to polling the Performance Timeline on a given interval and calling all subscribed observers with the resulting set of entires.
The polyfill works by falling back to polling the Performance Timeline on a given interval and calling all subscribed observers with the resulting set of entires.

@@ -60,3 +60,3 @@ ## Quick links

## Caveats
As the polypill implements the PerformanceObserver interface by falling back to polling the Performance Timeline via a call to `window.performance.getEntries()` we are limited to only expose timeline entry types that are supported by `getEntries()`. Therefore the polypill can only be used to observe the entry types: `navigation`, `resource` and `mark`. Newer entry types such as `paint` are only exposed by the native PerformanceObserver implementation and thus not polyfillable.
As the polyfill implements the PerformanceObserver interface by falling back to polling the Performance Timeline via a call to `window.performance.getEntries()` we are limited to only expose timeline entry types that are supported by `getEntries()`. Therefore the polyfill can only be used to observe the entry types: `navigation`, `resource` and `mark`. Newer entry types such as `paint` are only exposed by the native PerformanceObserver implementation and thus not polyfillable.

@@ -63,0 +63,0 @@ ## Development

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc