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

@betterer/betterer

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@betterer/betterer - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

1

dist/config/config.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createConfig = void 0;
var path = require("path");

@@ -4,0 +5,0 @@ var utils_1 = require("../utils");

@@ -5,2 +5,3 @@ "use strict";

tslib_1.__exportStar(require("./config"), exports);
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=public.js.map

5

dist/context/context.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BettererContext = void 0;
var tslib_1 = require("tslib");

@@ -60,4 +61,4 @@ var assert = require("assert");

BettererContext.prototype.runnerStart = function (files) {
var _a, _b, _c;
if (files === void 0) { files = []; }
var _a, _b, _c;
return tslib_1.__awaiter(this, void 0, void 0, function () {

@@ -93,4 +94,4 @@ var expectedRaw, runs;

BettererContext.prototype.runnerEnd = function (runs, files) {
var _a, _b, _c;
if (files === void 0) { files = []; }
var _a, _b, _c;
assert.equal(this._status, BettererContextStatus.running);

@@ -97,0 +98,0 @@ assert(this._finish);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var context_1 = require("./context");
exports.BettererContext = context_1.BettererContext;
Object.defineProperty(exports, "BettererContext", { enumerable: true, get: function () { return context_1.BettererContext; } });
var run_1 = require("./run");
exports.BettererRun = run_1.BettererRun;
Object.defineProperty(exports, "BettererRun", { enumerable: true, get: function () { return run_1.BettererRun; } });
var statistics_1 = require("./statistics");
exports.BettererStats = statistics_1.BettererStats;
Object.defineProperty(exports, "BettererStats", { enumerable: true, get: function () { return statistics_1.BettererStats; } });
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var context_1 = require("./context");
exports.BettererContext = context_1.BettererContext;
Object.defineProperty(exports, "BettererContext", { enumerable: true, get: function () { return context_1.BettererContext; } });
var run_1 = require("./run");
exports.BettererRun = run_1.BettererRun;
Object.defineProperty(exports, "BettererRun", { enumerable: true, get: function () { return run_1.BettererRun; } });
var statistics_1 = require("./statistics");
exports.BettererStats = statistics_1.BettererStats;
Object.defineProperty(exports, "BettererStats", { enumerable: true, get: function () { return statistics_1.BettererStats; } });
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=public.js.map

@@ -1,2 +0,2 @@

import { BettererExpectedResult } from '../results';
import { BettererExpectedResult, NO_PREVIOUS_RESULT } from '../results';
import { BettererTest } from '../test';

@@ -17,3 +17,3 @@ import { BettererFilePaths } from '../watcher';

constructor(_context: BettererContext, _test: BettererTest, expected: BettererExpectedResult, _files: BettererFilePaths);
get expected(): unknown;
get expected(): unknown | typeof NO_PREVIOUS_RESULT;
get files(): BettererFilePaths;

@@ -20,0 +20,0 @@ get shouldPrint(): boolean;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BettererRun = void 0;
var assert = require("assert");

@@ -26,2 +27,3 @@ var results_1 = require("../results");

if (expected === results_1.NO_PREVIOUS_RESULT) {
this._expected = results_1.NO_PREVIOUS_RESULT;
return;

@@ -41,3 +43,3 @@ }

},
enumerable: true,
enumerable: false,
configurable: true

@@ -49,3 +51,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -57,3 +59,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -65,3 +67,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -75,3 +77,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -83,3 +85,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -91,3 +93,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -99,3 +101,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -107,3 +109,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -115,3 +117,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -123,3 +125,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -131,3 +133,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -139,3 +141,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -147,3 +149,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -155,3 +157,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -163,3 +165,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -166,0 +168,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BettererStats = void 0;
var BettererStats = /** @class */ (function () {

@@ -4,0 +5,0 @@ function BettererStats() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.COULDNT_WRITE_RESULTS = exports.COULDNT_READ_RESULTS = exports.COULDNT_READ_CONFIG = exports.TEST_FUNCTION_REQUIRED = exports.CONSTRAINT_FUNCTION_REQUIRED = void 0;
var errors_1 = require("@betterer/errors");

@@ -4,0 +5,0 @@ exports.CONSTRAINT_FUNCTION_REQUIRED = errors_1.registerError(function () { return 'for a test to work, it must have a `constraint` function. ❌'; });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createHash = void 0;
var djb2a = require("djb2a");

@@ -4,0 +5,0 @@ var NEW_LINE = '\n';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.betterer = void 0;
var tslib_1 = require("tslib");

@@ -10,3 +11,5 @@ var errors_1 = require("@betterer/errors");

var watcher_1 = require("./watcher");
tslib_1.__exportStar(require("./config/public"), exports);
tslib_1.__exportStar(require("./context/public"), exports);
tslib_1.__exportStar(require("./reporters/public"), exports);
tslib_1.__exportStar(require("./results/public"), exports);

@@ -13,0 +16,0 @@ tslib_1.__exportStar(require("./test/public"), exports);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.registerExtensions = exports.RESULTS_EXTENTION = exports.JS_EXTENSION = void 0;
var ts_node_1 = require("ts-node");

@@ -4,0 +5,0 @@ exports.JS_EXTENSION = '.js';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.contextSerial = exports.contextParallel = void 0;
var errors_1 = require("@betterer/errors");

@@ -4,0 +5,0 @@ var logger_1 = require("@betterer/logger");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.serialReporters = exports.parallelReporters = void 0;
var tslib_1 = require("tslib");
var context_reporters_1 = require("./context-reporters");
var runner_reporters_1 = require("./runner-reporters");
var run_reporters_1 = require("./run-reporters");
tslib_1.__exportStar(require("./types"), exports);
exports.parallelReporters = {

@@ -7,0 +10,0 @@ context: context_reporters_1.contextParallel,

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=public.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.runSerial = void 0;
var logger_1 = require("@betterer/logger");

@@ -4,0 +5,0 @@ var results_1 = require("../results");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.runnerParallel = void 0;
var logger_1 = require("@betterer/logger");

@@ -4,0 +5,0 @@ exports.runnerParallel = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.requireText = exports.requireUncached = void 0;
/* eslint-disable @typescript-eslint/no-var-requires */

@@ -4,0 +5,0 @@ var module_1 = require("module");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deserialise = void 0;
function deserialise(run, serialised) {

@@ -4,0 +5,0 @@ var _a;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.diff = void 0;
var jest_diff_1 = require("jest-diff");

@@ -4,0 +5,0 @@ function diff(run) {

@@ -5,14 +5,14 @@ "use strict";

var diff_1 = require("./diff");
exports.diff = diff_1.diff;
Object.defineProperty(exports, "diff", { enumerable: true, get: function () { return diff_1.diff; } });
var deserialiser_1 = require("./deserialiser");
exports.deserialise = deserialiser_1.deserialise;
Object.defineProperty(exports, "deserialise", { enumerable: true, get: function () { return deserialiser_1.deserialise; } });
var printer_1 = require("./printer");
exports.print = printer_1.print;
Object.defineProperty(exports, "print", { enumerable: true, get: function () { return printer_1.print; } });
var reader_1 = require("./reader");
exports.read = reader_1.read;
Object.defineProperty(exports, "read", { enumerable: true, get: function () { return reader_1.read; } });
var serialiser_1 = require("./serialiser");
exports.serialise = serialiser_1.serialise;
Object.defineProperty(exports, "serialise", { enumerable: true, get: function () { return serialiser_1.serialise; } });
var writer_1 = require("./writer");
exports.write = writer_1.write;
Object.defineProperty(exports, "write", { enumerable: true, get: function () { return writer_1.write; } });
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.print = void 0;
var tslib_1 = require("tslib");

@@ -4,0 +5,0 @@ var safe_string_literal_1 = require("safe-string-literal");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.read = void 0;
var tslib_1 = require("tslib");

@@ -4,0 +5,0 @@ var fs_1 = require("fs");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.serialise = void 0;
function serialise(run) {

@@ -4,0 +5,0 @@ var _a;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NO_PREVIOUS_RESULT = void 0;
exports.NO_PREVIOUS_RESULT = Symbol('No Previous Result');
//# sourceMappingURL=types.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.write = void 0;
var tslib_1 = require("tslib");

@@ -4,0 +5,0 @@ var fs_1 = require("fs");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.serial = exports.parallel = void 0;
var tslib_1 = require("tslib");

@@ -69,3 +70,3 @@ var constraints_1 = require("@betterer/constraints");

return tslib_1.__awaiter(this, void 0, void 0, function () {
var test, timestamp, current, e_1, goalComplete, comparison;
var test, timestamp, result, e_1, goalComplete, comparison;
return tslib_1.__generator(this, function (_a) {

@@ -86,3 +87,3 @@ switch (_a.label) {

case 2:
current = _a.sent();
result = _a.sent();
return [3 /*break*/, 4];

@@ -96,10 +97,10 @@ case 3:

run.ran();
return [4 /*yield*/, test.goal(current)];
return [4 /*yield*/, test.goal(result)];
case 5:
goalComplete = _a.sent();
if (run.isNew) {
run.neww(current, goalComplete, timestamp);
run.neww(result, goalComplete, timestamp);
return [2 /*return*/];
}
return [4 /*yield*/, test.constraint(current, run.expected)];
return [4 /*yield*/, test.constraint(result, run.expected)];
case 6:

@@ -112,6 +113,6 @@ comparison = _a.sent();

if (comparison === constraints_1.ConstraintResult.better) {
run.better(current, goalComplete, timestamp);
run.better(result, goalComplete, timestamp);
return [2 /*return*/];
}
run.worse(current);
run.worse(result);
return [2 /*return*/];

@@ -118,0 +119,0 @@ }

@@ -8,3 +8,3 @@ import { ConstraintResult } from '@betterer/constraints';

};
export declare function constraint(current: BettererFiles, previous: BettererFiles): BettererFileTestConstraintResult;
export declare function constraint(result: BettererFiles, expected: BettererFiles): BettererFileTestConstraintResult;
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.constraint = void 0;
var tslib_1 = require("tslib");

@@ -7,4 +8,4 @@ var constraints_1 = require("@betterer/constraints");

var serialiser_1 = require("./serialiser");
function constraint(current, previous) {
var diff = getDiff(current, previous);
function constraint(result, expected) {
var diff = getDiff(result, expected);
var filePaths = Object.keys(diff);

@@ -25,81 +26,64 @@ if (filePaths.length === 0) {

exports.constraint = constraint;
function getDiff(current, previous) {
// Find all files that exist in both current and previous:
var unchangedPreviousFiles = [];
var unchangedCurrentFiles = current.files.filter(function (c) {
var previousFile = previous.files.find(function (p) {
return p.hash === c.hash && p.absolutePath === c.absolutePath;
});
if (previousFile) {
unchangedPreviousFiles.push(previousFile);
}
return !!previousFile;
function getDiff(result, expected) {
var diff = {};
var unchangedResultFiles = result.files.filter(function (r) {
return expected.files.find(function (e) { return e.absolutePath === r.absolutePath && e.hash === r.hash; });
});
// Any current files that aren't in previous are either new, have been moved, or have been changed:
var newOrMovedOrChangedFiles = current.files.filter(function (c) { return !unchangedCurrentFiles.includes(c); });
// And previous files that aren't in current are either fixed, have been moved, or have been changed:
var fixedOrMovedOrChangedFiles = previous.files.filter(function (c) { return !unchangedPreviousFiles.includes(c); });
// We can find the moved files by matching the file hashes:
fixedOrMovedOrChangedFiles.forEach(function (fixedOrMovedOrChangedFile, index) {
// A file may have been moved it has the same hash in both current and previous
var possibilities = newOrMovedOrChangedFiles.filter(function (newOrMovedOrChangedFile) { return newOrMovedOrChangedFile.hash === fixedOrMovedOrChangedFile.hash; });
var changedResultFiles = result.files.filter(function (r) {
return expected.files.find(function (e) { return e.absolutePath === r.absolutePath && e.hash !== r.hash; });
});
var newOrMovedFiles = result.files.filter(function (r) { return !expected.files.find(function (e) { return e.absolutePath === r.absolutePath; }); });
var fixedOrMovedFiles = expected.files.filter(function (e) { return !result.files.find(function (r) { return r.absolutePath === e.absolutePath; }); });
var movedFiles = new Map();
fixedOrMovedFiles.forEach(function (fixedOrMovedFile, index) {
// A file may have been moved it has the same hash in both result and expected
var possibilities = newOrMovedFiles.filter(function (newOrMovedFile) { return newOrMovedFile.hash === fixedOrMovedFile.hash; });
if (!possibilities.length) {
return;
}
var best = possibilities.shift();
if (best) {
// Remove the moved file from the fixedOrMovedOrChangedFiles array:
fixedOrMovedOrChangedFiles.splice(index, 1);
// And from the newOrMovedOrChangedFiles array:
newOrMovedOrChangedFiles.splice(newOrMovedOrChangedFiles.indexOf(best), 1);
}
// Multiple possibilities means that the same content has been moved into multiple new files.
// So just count the first one as a move, the rest will be new files:
var moved = possibilities[0];
movedFiles.set(moved, fixedOrMovedFile);
// Remove the moved file from the fixedOrMovedFiles array:
fixedOrMovedFiles.splice(index, 1);
// And from the newOrMovedFiles array:
newOrMovedFiles.splice(newOrMovedFiles.indexOf(moved), 1);
});
// Leaving us with the files that are new or changed:
var newOrChangedFiles = newOrMovedOrChangedFiles;
// And fixed or changed:
var fixedOrChangedFiles = fixedOrMovedOrChangedFiles;
var filesWithChanges = tslib_1.__spreadArrays(newOrChangedFiles, fixedOrChangedFiles);
// If there are no new, fixed, or changed files, there's nothing to diff:
if (filesWithChanges.length === 0) {
return {};
}
var diff = {};
filesWithChanges.forEach(function (file) {
var absolutePath = file.absolutePath, relativePath = file.relativePath;
var currentFile = current.getFile(absolutePath);
var previousFile = previous.getFile(absolutePath);
// If a file exists in the previous and not the current then all the issues are fixed:
if (!currentFile) {
assert(previousFile);
diff[relativePath] = {
fixed: previousFile.issuesDeserialised
};
return;
}
// If a file exists in the current and not the previous then all the issues are new:
if (!previousFile) {
assert(currentFile);
diff[relativePath] = {
neww: currentFile.issuesRaw
};
return;
}
// All the moved files have been removed from fixedOrMovedFiles and newOrMovedFiles:
var fixedFiles = fixedOrMovedFiles;
var newFiles = newOrMovedFiles;
fixedFiles.forEach(function (file) {
diff[file.relativePath] = {
fixed: file.issuesDeserialised
};
});
newFiles.forEach(function (file) {
diff[file.relativePath] = {
neww: file.issuesRaw
};
});
var existingFiles = tslib_1.__spreadArrays(unchangedResultFiles, changedResultFiles, Array.from(movedFiles.keys()));
existingFiles.forEach(function (resultFile) {
var expectedFile = expected.getFile(resultFile.absolutePath) || movedFiles.get(resultFile);
assert(resultFile);
assert(expectedFile);
// Convert all issues to their deserialised form for easier diffing:
var currentIssues = tslib_1.__spreadArrays(serialiser_1.ensureDeserialised(currentFile));
var previousIssues = serialiser_1.ensureDeserialised(previousFile);
// Find all issues that exist in both current and previous:
var unchangedPreviousIssues = [];
var unchangedCurrentIssues = currentIssues.filter(function (c) {
var previousIssue = previousIssues.find(function (p) {
return p.hash === c.hash && p.line === c.line && p.column === c.column && p.length === c.length;
var resultIssues = tslib_1.__spreadArrays(serialiser_1.ensureDeserialised(resultFile));
var expectedIssues = serialiser_1.ensureDeserialised(expectedFile);
// Find all issues that exist in both result and expected:
var unchangedExpectedIssues = expectedIssues.filter(function (r) {
return resultIssues.find(function (e) {
return e.line === r.line && e.column === r.column && e.length === r.length && e.hash === r.hash;
});
if (previousIssue) {
unchangedPreviousIssues.push(previousIssue);
}
return !!previousIssue;
});
// Any current issues that aren't in previous are either new or have been moved:
var newOrMovedIssues = currentIssues.filter(function (c) { return !unchangedCurrentIssues.includes(c); });
// Any previous issues that aren't in current are either fixed or have been moved:
var fixedOrMovedIssues = previousIssues.filter(function (c) { return !unchangedPreviousIssues.includes(c); });
var unchangedResultIssues = resultIssues.filter(function (r) {
return expectedIssues.find(function (e) {
return e.line === r.line && e.column === r.column && e.length === r.length && e.hash === r.hash;
});
});
// Any result issues that aren't in expected are either new or have been moved:
var newOrMovedIssues = resultIssues.filter(function (r) { return !unchangedResultIssues.includes(r); });
// Any expected issues that aren't in result are either fixed or have been moved:
var fixedOrMovedIssues = expectedIssues.filter(function (e) { return !unchangedExpectedIssues.includes(e); });
// We can find the moved issues by matching the issue hashes:

@@ -109,3 +93,3 @@ var movedIssues = [];

var hash = fixedOrMovedIssue.hash, line = fixedOrMovedIssue.line, column = fixedOrMovedIssue.column;
// An issue may have been moved it has the same hash in both current and previous
// An issue may have been moved it has the same hash in both result and expected
var possibilities = newOrMovedIssues.filter(function (newOrMovedIssue) { return newOrMovedIssue.hash === hash; });

@@ -142,7 +126,11 @@ if (!possibilities.length) {

// Find the raw issue data so that diffs can be logged:
var newIssues = newOrMovedIssues.map(function (newIssue) { return currentFile.issuesRaw[currentIssues.indexOf(newIssue)]; });
var newIssues = newOrMovedIssues.map(function (newIssue) { return resultFile.issuesRaw[resultIssues.indexOf(newIssue)]; });
var fixedIssues = fixedOrMovedIssues;
// And finally construct the diff:
diff[file.relativePath] = {
existing: tslib_1.__spreadArrays(unchangedPreviousIssues, movedIssues),
// If there's no change, move on:
if (!newIssues.length && !fixedIssues.length) {
return;
}
// Otherwise construct the diff:
diff[resultFile.relativePath] = {
existing: tslib_1.__spreadArrays(unchangedExpectedIssues, movedIssues),
fixed: fixedIssues,

@@ -149,0 +137,0 @@ neww: newIssues

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.differ = void 0;
var logger_1 = require("@betterer/logger");

@@ -4,0 +5,0 @@ var assert = require("assert");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BettererFileTest = void 0;
var tslib_1 = require("tslib");

@@ -13,2 +14,3 @@ var hasher_1 = require("../../hasher");

var serialiser_1 = require("./serialiser");
var results_1 = require("../../results");
var BettererFileTest = /** @class */ (function (_super) {

@@ -30,4 +32,4 @@ tslib_1.__extends(BettererFileTest, _super);

absolutePaths = Object.keys(result);
if (files.length) {
expectedAbsolutePaths = (expected === null || expected === void 0 ? void 0 : expected.files.map(function (file) { return file.absolutePath; })) || [];
if (files.length && expected !== results_1.NO_PREVIOUS_RESULT) {
expectedAbsolutePaths = expected.files.map(function (file) { return file.absolutePath; });
absolutePaths = Array.from(new Set(tslib_1.__spreadArrays(absolutePaths, expectedAbsolutePaths)));

@@ -40,3 +42,3 @@ }

var issues = result[absolutePath];
if (!issues) {
if (!issues && expected !== results_1.NO_PREVIOUS_RESULT) {
return expected.getFile(absolutePath);

@@ -77,3 +79,3 @@ }

},
enumerable: true,
enumerable: false,
configurable: true

@@ -80,0 +82,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BettererFile = void 0;
var assert = require("assert");

@@ -24,3 +25,3 @@ var BettererFile = /** @class */ (function () {

},
enumerable: true,
enumerable: false,
configurable: true

@@ -33,3 +34,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -36,0 +37,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BettererFiles = void 0;
var BettererFiles = /** @class */ (function () {

@@ -4,0 +5,0 @@ function BettererFiles(files) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.goal = void 0;
function goal(value) {

@@ -4,0 +5,0 @@ return value.files.length === 0;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var file_test_1 = require("./file-test");
exports.BettererFileTest = file_test_1.BettererFileTest;
Object.defineProperty(exports, "BettererFileTest", { enumerable: true, get: function () { return file_test_1.BettererFileTest; } });
var file_1 = require("./file");
exports.BettererFile = file_1.BettererFile;
Object.defineProperty(exports, "BettererFile", { enumerable: true, get: function () { return file_1.BettererFile; } });
var files_1 = require("./files");
exports.BettererFiles = files_1.BettererFiles;
Object.defineProperty(exports, "BettererFiles", { enumerable: true, get: function () { return files_1.BettererFiles; } });
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.printer = void 0;
function printer(_, serialised) {

@@ -4,0 +5,0 @@ var printed = '{\n';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var file_test_1 = require("./file-test");
exports.BettererFileTest = file_test_1.BettererFileTest;
Object.defineProperty(exports, "BettererFileTest", { enumerable: true, get: function () { return file_test_1.BettererFileTest; } });
var file_1 = require("./file");
exports.BettererFile = file_1.BettererFile;
Object.defineProperty(exports, "BettererFile", { enumerable: true, get: function () { return file_1.BettererFile; } });
var files_1 = require("./files");
exports.BettererFiles = files_1.BettererFiles;
Object.defineProperty(exports, "BettererFiles", { enumerable: true, get: function () { return files_1.BettererFiles; } });
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=public.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ensureDeserialised = exports.serialise = exports.deserialise = void 0;
var tslib_1 = require("tslib");

@@ -4,0 +5,0 @@ var lines_and_columns_1 = require("lines-and-columns");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var file_test_1 = require("./file-test");
exports.BettererFileTest = file_test_1.BettererFileTest;
exports.BettererFile = file_test_1.BettererFile;
exports.BettererFiles = file_test_1.BettererFiles;
Object.defineProperty(exports, "BettererFileTest", { enumerable: true, get: function () { return file_test_1.BettererFileTest; } });
Object.defineProperty(exports, "BettererFile", { enumerable: true, get: function () { return file_test_1.BettererFile; } });
Object.defineProperty(exports, "BettererFiles", { enumerable: true, get: function () { return file_test_1.BettererFiles; } });
var test_1 = require("./test");
exports.BettererTest = test_1.BettererTest;
exports.isBettererTest = test_1.isBettererTest;
Object.defineProperty(exports, "BettererTest", { enumerable: true, get: function () { return test_1.BettererTest; } });
Object.defineProperty(exports, "isBettererTest", { enumerable: true, get: function () { return test_1.isBettererTest; } });
tslib_1.__exportStar(require("./file-test/types"), exports);
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map

@@ -6,4 +6,5 @@ "use strict";

var test_1 = require("./test");
exports.BettererTest = test_1.BettererTest;
exports.isBettererTest = test_1.isBettererTest;
Object.defineProperty(exports, "BettererTest", { enumerable: true, get: function () { return test_1.BettererTest; } });
Object.defineProperty(exports, "isBettererTest", { enumerable: true, get: function () { return test_1.isBettererTest; } });
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=public.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BettererTestState = void 0;
var BettererTestState = /** @class */ (function () {

@@ -14,3 +15,3 @@ function BettererTestState(_isSkipped, _isOnly) {

},
enumerable: true,
enumerable: false,
configurable: true

@@ -22,3 +23,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -25,0 +26,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBettererTest = exports.BettererTest = void 0;
var tslib_1 = require("tslib");

@@ -37,3 +38,3 @@ var assert = require("assert");

},
enumerable: true,
enumerable: false,
configurable: true

@@ -40,0 +41,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNormalisedPath = exports.isUndefined = exports.isString = exports.isFunction = void 0;
var path = require("path");

@@ -4,0 +5,0 @@ function isFunction(value) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getIgnores = void 0;
var tslib_1 = require("tslib");

@@ -4,0 +5,0 @@ var findUp = require("find-up");

@@ -5,2 +5,3 @@ "use strict";

tslib_1.__exportStar(require("./watcher"), exports);
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var watcher_1 = require("./watcher");
exports.BettererWatcher = watcher_1.BettererWatcher;
Object.defineProperty(exports, "BettererWatcher", { enumerable: true, get: function () { return watcher_1.BettererWatcher; } });
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=public.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BettererWatcher = void 0;
var tslib_1 = require("tslib");

@@ -4,0 +5,0 @@ var chokidar_1 = require("chokidar");

{
"name": "@betterer/betterer",
"description": "Main engine for runing betterer tests",
"version": "1.0.0",
"version": "1.0.2",
"license": "MIT",

@@ -27,5 +27,5 @@ "publishConfig": {

"dependencies": {
"@betterer/constraints": "^1.0.0",
"@betterer/errors": "^1.0.0",
"@betterer/logger": "^1.0.0",
"@betterer/constraints": "^1.0.2",
"@betterer/errors": "^1.0.2",
"@betterer/logger": "^1.0.2",
"chokidar": "^3.3.1",

@@ -39,5 +39,5 @@ "djb2a": "^1.2.0",

"ts-node": "^8.5.4",
"tslib": "^1.10.0"
"tslib": "^2.0.0"
},
"gitHead": "1ce8729fb53a9a138624c2d30282092bbe931ddf"
"gitHead": "db78ef726ff97b65fc4922acdf65a97e6aa7cc31"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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