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

@metrics/metric

Package Overview
Dependencies
Maintainers
2
Versions
8
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.1.0 to 2.2.0

8

lib/is.js

@@ -72,2 +72,8 @@ 'use strict';

const validLabelValue = (value) => {
return typeof value === 'boolean' || Number.isFinite(value) || isString(value) || value === null || value === undefined;
};
module.exports.validLabelValue = validLabelValue;
const validLabel = (value) => {

@@ -82,3 +88,3 @@ if (!value.name || !value.value) {

return validValue(value.value);
return validLabelValue(value.value);
};

@@ -85,0 +91,0 @@ module.exports.validLabel = validLabel;

2

package.json
{
"name": "@metrics/metric",
"version": "2.1.0",
"version": "2.2.0",
"description": "The metric class definition which metric objects in the @metrics library is instansiated from",

@@ -5,0 +5,0 @@ "main": "lib/metric.js",

@@ -162,3 +162,3 @@ # @metrics/metric

* Valid value: `Integer` or `null`.
* Valid value: `Integer`, `String`, `Boolean` or `null`.
* Is required.
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