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

@metrics/metric

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metrics/metric - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

10

lib/is.js

@@ -79,6 +79,10 @@ 'use strict';

const validLabel = (value) => {
if (!value.name || !value.value) {
if (typeof value !== 'object') {
return false;
}
if (!('name' in value) || !('value' in value)) {
return false;
}
if (!REGEX_NAME.test(value.name)) {

@@ -102,6 +106,6 @@ return false;

const valid = value.filter(validLabel).length;
const valid = value.filter(validLabel);
return (value.length === valid);
return (value.length === valid.length);
};
module.exports.validLabels = validLabels;
{
"name": "@metrics/metric",
"version": "2.2.0",
"version": "2.3.0",
"description": "The metric class definition which metric objects in the @metrics library is instansiated from",

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