New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

panel

Package Overview
Dependencies
Maintainers
6
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

panel - npm Package Compare versions

Comparing version 5.11.0-beta.1 to 5.11.0-beta.2

3

build/component.js

@@ -270,2 +270,4 @@ 'use strict';

this.timings.lastUpdateAt = (0, _perf.getNow)();
var stateUpdateResult = typeof stateUpdate === 'function' ? stateUpdate(this.state) : stateUpdate;

@@ -406,2 +408,3 @@ return this._updateStore(stateUpdateResult, {

_this.postRenderCallback = function (elapsedMs) {
_this.timings.lastRenderAt = (0, _perf.getNow)();
if (elapsedMs > _this.getConfig('slowThreshold')) {

@@ -408,0 +411,0 @@ var shouldBroadcast = !_this.lastSlowRender || // SHOULD because we've never slow rendered

@@ -247,2 +247,4 @@ import cuid from 'cuid';

update(stateUpdate = {}) {
this.timings.lastUpdateAt = getNow();
const stateUpdateResult = typeof stateUpdate === `function` ? stateUpdate(this.state) : stateUpdate;

@@ -328,2 +330,3 @@ return this._updateStore(stateUpdateResult, {

this.postRenderCallback = (elapsedMs) => {
this.timings.lastRenderAt = getNow();
if (elapsedMs > this.getConfig(`slowThreshold`)) {

@@ -330,0 +333,0 @@ const shouldBroadcast =

10

lib/index.d.ts

@@ -182,3 +182,3 @@ // Type definitions for panel

readonly timings: {
readonly timings: Readonly<{
/** The time in ms that the component constructor ran */

@@ -190,5 +190,9 @@ createdAt: number;

initializingCompletedAt: number;
/** The time in ms that the last attributeChangedCallback ran */
/** The time in ms that the last #attributeChangedCallback ran */
lastAttributeChangedAt: number;
};
/** The time in ms that the last #update ran */
lastUpdateAt: number;
/** The time in ms that the last render ran */
lastRenderAt: number;
}>;

@@ -195,0 +199,0 @@ /** Defines standard component configuration */

{
"name": "panel",
"version": "5.11.0-beta.1",
"version": "5.11.0-beta.2",
"description": "Web Components with Virtual DOM: lightweight composable web apps",

@@ -5,0 +5,0 @@ "main": "build/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