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

@nodeswork/utils

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodeswork/utils - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

1

dist/metrics/operators.d.ts

@@ -15,2 +15,3 @@ import { MetricsData, MetricsDimensions, MetricsValue, Operator } from './def';

getDimensions(data: MetricsData, strict?: boolean): MetricsDimensions[];
getDimensionValues(data: MetricsData | MetricsData[], name: string): any[];
getMetricsNames(data: MetricsData, strict?: boolean): string[];

@@ -17,0 +18,0 @@ filterMetricsDatas(data: MetricsData[], filter: MetricsDataFilter): MetricsData[];

@@ -147,2 +147,17 @@ "use strict";

}
getDimensionValues(data, name) {
if (_.isArray(data)) {
return _.chain(data)
.map((d) => this.getDimensionValues(d, name))
.flatten()
.uniq()
.value();
}
else {
return _.chain(data.dimensions)
.map((dimensions) => dimensions[name])
.uniq()
.value();
}
}
getMetricsNames(data, strict = false) {

@@ -149,0 +164,0 @@ if (!strict) {

2

package.json
{
"name": "@nodeswork/utils",
"version": "0.1.8",
"version": "0.1.9",
"description": "Utilities used across nodeswork repos.",

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