headlamp 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +7 -5
- package/dist/cli.cjs.map +3 -3
- package/dist/index.js +10 -8
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2168,7 +2168,7 @@ var require_parse = __commonJS({
|
|
|
2168
2168
|
if (opts2.noglobstar === true) return star;
|
|
2169
2169
|
return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
|
2170
2170
|
};
|
|
2171
|
-
const
|
|
2171
|
+
const create2 = (str) => {
|
|
2172
2172
|
switch (str) {
|
|
2173
2173
|
case "*":
|
|
2174
2174
|
return `${nodot}${ONE_CHAR}${star}`;
|
|
@@ -2189,14 +2189,14 @@ var require_parse = __commonJS({
|
|
|
2189
2189
|
default: {
|
|
2190
2190
|
const match = /^(.*?)\.(\w+)$/.exec(str);
|
|
2191
2191
|
if (!match) return;
|
|
2192
|
-
const source2 =
|
|
2192
|
+
const source2 = create2(match[1]);
|
|
2193
2193
|
if (!source2) return;
|
|
2194
2194
|
return source2 + DOT_LITERAL + match[2];
|
|
2195
2195
|
}
|
|
2196
2196
|
}
|
|
2197
2197
|
};
|
|
2198
2198
|
const output = utils.removePrefix(input, state);
|
|
2199
|
-
let source =
|
|
2199
|
+
let source = create2(output);
|
|
2200
2200
|
if (source && opts.strictSlashes !== true) {
|
|
2201
2201
|
source += `${SLASH_LITERAL}?`;
|
|
2202
2202
|
}
|
|
@@ -6581,11 +6581,10 @@ init_args();
|
|
|
6581
6581
|
import * as path9 from "node:path";
|
|
6582
6582
|
import * as os2 from "node:os";
|
|
6583
6583
|
import * as fsSync3 from "node:fs";
|
|
6584
|
-
import { createCoverageMap as createCoverageMap2 } from "istanbul-lib-coverage";
|
|
6585
6584
|
import * as fs5 from "node:fs/promises";
|
|
6586
6585
|
import * as LibReport from "istanbul-lib-report";
|
|
6587
|
-
import
|
|
6588
|
-
import
|
|
6586
|
+
import * as Reports from "istanbul-reports";
|
|
6587
|
+
import { createCoverageMap as createCoverageMap2 } from "istanbul-lib-coverage";
|
|
6589
6588
|
var jestBin = "./node_modules/.bin/jest";
|
|
6590
6589
|
var babelNodeBin = "./node_modules/.bin/babel-node";
|
|
6591
6590
|
var moduleSpecifierForRequire = (
|
|
@@ -6724,7 +6723,10 @@ var emitMergedCoverage = async (ui, opts) => {
|
|
|
6724
6723
|
coverageMap: filteredMap,
|
|
6725
6724
|
defaultSummarizer: "nested"
|
|
6726
6725
|
});
|
|
6727
|
-
const reporters = ui === "jest" ? [
|
|
6726
|
+
const reporters = ui === "jest" ? [Reports.create("text", { file: "coverage.txt" })] : [
|
|
6727
|
+
Reports.create("text", { file: "coverage.txt" }),
|
|
6728
|
+
Reports.create("text-summary", { file: "coverage-summary.txt" })
|
|
6729
|
+
];
|
|
6728
6730
|
const colorizeIstanbulLine = (lineText) => {
|
|
6729
6731
|
const separator = /^[-=\s]+$/;
|
|
6730
6732
|
if (separator.test(lineText.trim())) {
|
|
@@ -6811,7 +6813,7 @@ var emitMergedCoverage = async (ui, opts) => {
|
|
|
6811
6813
|
}
|
|
6812
6814
|
}
|
|
6813
6815
|
} else {
|
|
6814
|
-
const stdoutReporters = ui === "jest" ? [
|
|
6816
|
+
const stdoutReporters = ui === "jest" ? [Reports.create("text", {})] : [Reports.create("text", {}), Reports.create("text-summary", {})];
|
|
6815
6817
|
for (const reporter of stdoutReporters) {
|
|
6816
6818
|
reporter.execute(context);
|
|
6817
6819
|
}
|