@metrics/metric
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -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; |
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12385
176