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

baddsert

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baddsert - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

2

.baselines/dogfood.js

@@ -34,3 +34,2 @@ ({

}),
'current': true,
'reference': true

@@ -49,3 +48,2 @@ }),

}),
'current': true,
'reference': true

@@ -52,0 +50,0 @@ }),

12

cli.ts

@@ -41,3 +41,3 @@ #!/usr/bin/env node

// Not using template functions here so we're not calling .toString on objects
leftLog(depth + 1, 'Latest result:', resultSet.current);
leftLog(depth + 1, colors.grey('Latest result:'), resultSet.current);
if (keyInYNStrict('Use this value?')) {

@@ -66,4 +66,4 @@ resultSet.reference = resultSet.current;

// Not using template functions here so we're not calling .toString on objects
leftLog(depth + 1, 'Reference value:', resultSet.reference);
leftLog(depth + 1, 'Latest result:', resultSet.current);
leftLog(depth + 1, colors.grey('Reference value:'), resultSet.reference);
leftLog(depth + 1, colors.grey('Latest result:'), resultSet.current);
if (keyInYNStrict('Should I replace this?')) {

@@ -80,2 +80,8 @@ resultSet.reference = resultSet.current;

tests.on('close', (code) => {
if (code) {
console.log(colors.red('--- Tests failed---'));
if (!keyInYNStrict('Check baselines anyway?')) {
return;
}
}
console.log('--- BADD baselines ---');

@@ -82,0 +88,0 @@ Object.keys(allResults)

@@ -39,3 +39,3 @@ #!/usr/bin/env node

// Not using template functions here so we're not calling .toString on objects
leftLog(depth + 1, 'Latest result:', resultSet.current);
leftLog(depth + 1, colors.grey('Latest result:'), resultSet.current);
if (readline_sync_1.keyInYNStrict('Use this value?')) {

@@ -61,4 +61,4 @@ resultSet.reference = resultSet.current;

// Not using template functions here so we're not calling .toString on objects
leftLog(depth + 1, 'Reference value:', resultSet.reference);
leftLog(depth + 1, 'Latest result:', resultSet.current);
leftLog(depth + 1, colors.grey('Reference value:'), resultSet.reference);
leftLog(depth + 1, colors.grey('Latest result:'), resultSet.current);
if (readline_sync_1.keyInYNStrict('Should I replace this?')) {

@@ -73,2 +73,8 @@ resultSet.reference = resultSet.current;

tests.on('close', function (code) {
if (code) {
console.log(colors.red('--- Tests failed---'));
if (!readline_sync_1.keyInYNStrict('Check baselines anyway?')) {
return;
}
}
console.log('--- BADD baselines ---');

@@ -75,0 +81,0 @@ Object.keys(allResults)

{
"name": "baddsert",
"version": "0.4.6",
"version": "0.4.7",
"description": "Baseline Acceptance Driven Development for JavaScript",

@@ -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