Socket
Socket
Sign inDemoInstall

ac-patterns

Package Overview
Dependencies
11
Maintainers
2
Versions
614
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 24.5.0 to 24.5.1

7

dist/current-vitals-status.js

@@ -42,4 +42,2 @@ "use strict";

const bpVitalIds = ['bp'];
const withoutExpired = ({

@@ -54,3 +52,3 @@ vitals,

for (const [id, vital] of Object.entries(vitals)) {
const threshold = bpVitalIds.includes(id) ? maxBpAge : maxAge;
const threshold = 'bp' === id ? maxBpAge : maxAge;

@@ -173,3 +171,2 @@ if (vital.time && now - vital.time > threshold) {

if (!currentVitals) {
// TODO: do we need somehow a connectionId or something to update when the monitor is connected?|| !latestMetadata.connectionId) {
clearTimeout(this.refreshTimer);

@@ -187,3 +184,3 @@ this.refreshTimer = null;

const vitals = withoutExpired({
vitals: currentVitals.vitals,
vitals: currentVitals.vitals || {},
now,

@@ -190,0 +187,0 @@ maxAge: this.props.maxVitalAge,

@@ -152,3 +152,5 @@ "use strict";

})), (0, _preact.h)("h4", null, "No vitals yet"), (0, _preact.h)(StatusBarWrapper, null, (0, _preact.h)(_currentVitalsStatus.CurrentVitalsStatus, {
currentVitals: currentVitals,
currentVitals: _objectSpread(_objectSpread({}, currentVitals), {}, {
vitals: null
}),
isLocal: false

@@ -155,0 +157,0 @@ })), (0, _preact.h)("h4", null, "Normal use"), (0, _preact.h)(StatusBarWrapper, null, (0, _preact.h)(_currentVitalsStatus.CurrentVitalsStatus, {

{
"name": "ac-patterns",
"version": "24.5.0",
"version": "24.5.1",
"author": "Henrik Joreteg <henrik@joreteg.com> (joreteg.com)",

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

Sorry, the diff of this file is too big to display

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