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

@evidence-dev/component-utilities

Package Overview
Dependencies
Maintainers
5
Versions
387
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evidence-dev/component-utilities - npm Package Compare versions

Comparing version 2.0.0-usql.1 to 2.0.0-usql.2

src/profile.js

6

CHANGELOG.md
# @evidence-dev/component-utilities
## 2.0.0-usql.2
### Patch Changes
- e1174aa1: added profile function to note load and query times
## 2.0.0-usql.1

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@evidence-dev/component-utilities",
"version": "2.0.0-usql.1",
"version": "2.0.0-usql.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,16 +5,2 @@ import { describe, it, expect } from 'vitest';

describe('getColumnUnitSummary', () => {
it('should return a valid unit type for mixed type array', () => {
const data = [
{ column1: 'foo', column2: 3.1 },
{ column1: 'bar', column2: 'value' },
{ column1: 'far', column2: 4.1 },
{ column1: 'far', column2: undefined }
];
const summary = getColumnUnitSummary(data, 'column2');
let { unitType, maxDecimals, median } = summary;
expect(unitType).toStrictEqual('unknown');
expect(median).toBeCloseTo(3.6, 1);
expect(maxDecimals).toStrictEqual(1);
});
it('should return correct values with real valued nubmer array', () => {

@@ -55,19 +41,2 @@ const data = [

});
it('should return correct values with a string data series', () => {
const data = [
{ column1: 'foo', column2: 3 },
{ column1: 'bar', column2: null },
{ column1: 'dar', column2: undefined },
{ column1: 'far', column2: 1 },
{ column1: 'zar', column2: 5 }
];
const summary = getColumnUnitSummary(data, 'column1');
expect(summary).toStrictEqual({
min: 'bar',
max: 'zar',
median: undefined,
maxDecimals: 0,
unitType: 'string'
});
});
});
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