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

@best/compare

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@best/compare - npm Package Compare versions

Comparing version 7.0.1 to 8.0.0

36

build/index.js

@@ -7,3 +7,3 @@ "use strict";

* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -18,4 +18,4 @@ exports.compareBenchmarkStats = void 0;

if (baseResults && baseResults.length && targetResults && targetResults.length) {
baseResults.forEach(baseResult => {
const targetResult = targetResults.find(r => r.name === baseResult.name);
baseResults.forEach((baseResult) => {
const targetResult = targetResults.find((r) => r.name === baseResult.name);
if (!targetResult) {

@@ -25,15 +25,15 @@ console.log(`Skipping benchmark test ${baseResult.name} since we couldn't find it in target. The test has probably been changed between commits`);

}
if (baseResult.type === "group" && targetResult.type === "group") {
if (baseResult.type === 'group' && targetResult.type === 'group') {
const group = {
type: "group",
type: 'group',
name: baseResult.name,
comparisons: compareResults(baseResult.nodes, targetResult.nodes)
comparisons: compareResults(baseResult.nodes, targetResult.nodes),
};
comparison.push(group);
}
else if (baseResult.type === "benchmark" && targetResult.type === "benchmark") {
else if (baseResult.type === 'benchmark' && targetResult.type === 'benchmark') {
const benchmark = {
type: "benchmark",
type: 'benchmark',
name: baseResult.name,
metrics: {}
metrics: {},
};

@@ -50,3 +50,3 @@ Object.keys(baseResult.metrics).forEach((metricName) => {

targetStats,
samplesComparison
samplesComparison,
};

@@ -69,3 +69,3 @@ }

base: await storageProvider.getAllBenchmarkStatsPerCommit(name, baseCommit),
target: await storageProvider.getAllBenchmarkStatsPerCommit(name, targetCommit)
target: await storageProvider.getAllBenchmarkStatsPerCommit(name, targetCommit),
};

@@ -78,3 +78,3 @@ }));

};
projectStats.forEach(project => {
projectStats.forEach((project) => {
const allBaseStats = project.base;

@@ -84,5 +84,5 @@ const allTargetStats = project.target;

const comparisons = [];
allBaseStats.forEach(baseStats => {
allBaseStats.forEach((baseStats) => {
const { benchmarkName } = baseStats;
const targetStats = allTargetStats.find(s => s.benchmarkName === benchmarkName);
const targetStats = allTargetStats.find((s) => s.benchmarkName === benchmarkName);
if (!targetStats) {

@@ -100,5 +100,5 @@ console.log(`Skipping benchmark ${benchmarkName} since we couldn't find it in commit ${targetCommit}`);

const benchmark = {
type: "group",
type: 'group',
name: benchmarkName,
comparisons: comparison
comparisons: comparison,
};

@@ -108,5 +108,5 @@ comparisons.push(benchmark);

const projectComparison = {
type: "project",
type: 'project',
name: project.name,
comparisons
comparisons,
};

@@ -113,0 +113,0 @@ commitComparison.comparisons.push(projectComparison);

{
"dependencies": {
"@best/analyzer": "7.0.1",
"@best/analyzer": "8.0.0",
"chalk": "~2.4.2"

@@ -20,3 +20,3 @@ },

},
"version": "7.0.1"
"version": "8.0.0"
}
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