@lde/pipeline-console-reporter 0.12.0 → 0.12.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consoleReporter.d.ts","sourceRoot":"","sources":["../src/consoleReporter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EACV,0BAA0B,EAC1B,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAUvB,qBAAa,eAAgB,YAAW,gBAAgB;IACtD,OAAO,CAAC,YAAY,CAAC,CAAM;IAC3B,OAAO,CAAC,cAAc,CAAK;IAC3B,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,aAAa,CAAC,CAAM;IAC5B,OAAO,CAAC,WAAW,CAAC,CAAiC;IAErD,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAOlC,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IASvD,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAapC,kBAAkB,CAAC,MAAM,EAAE,0BAA0B,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"consoleReporter.d.ts","sourceRoot":"","sources":["../src/consoleReporter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EACV,0BAA0B,EAC1B,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAUvB,qBAAa,eAAgB,YAAW,gBAAgB;IACtD,OAAO,CAAC,YAAY,CAAC,CAAM;IAC3B,OAAO,CAAC,cAAc,CAAK;IAC3B,OAAO,CAA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AAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAUxC,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAQvD,gBAAgB,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CAOrD"}
|
package/dist/consoleReporter.js
CHANGED
|
@@ -46,8 +46,7 @@ export class ConsoleReporter {
|
|
|
46
46
|
const s = ora({ discardStdin: false });
|
|
47
47
|
if (result.available) {
|
|
48
48
|
const detail = result.statusCode !== undefined ? ` (HTTP ${result.statusCode})` : '';
|
|
49
|
-
s.
|
|
50
|
-
s.succeed();
|
|
49
|
+
s.succeed(`${typeLabel} ${url}${detail}`);
|
|
51
50
|
}
|
|
52
51
|
else {
|
|
53
52
|
const detail = result.error
|
|
@@ -55,8 +54,7 @@ export class ConsoleReporter {
|
|
|
55
54
|
: result.statusCode !== undefined
|
|
56
55
|
? ` (HTTP ${result.statusCode})`
|
|
57
56
|
: '';
|
|
58
|
-
s.
|
|
59
|
-
s.fail();
|
|
57
|
+
s.fail(`${typeLabel} ${url}${detail}`);
|
|
60
58
|
}
|
|
61
59
|
}
|
|
62
60
|
importStarted() {
|
|
@@ -93,8 +91,7 @@ export class ConsoleReporter {
|
|
|
93
91
|
}
|
|
94
92
|
else {
|
|
95
93
|
const s = ora({ discardStdin: false });
|
|
96
|
-
s.
|
|
97
|
-
s.succeed();
|
|
94
|
+
s.succeed(`${distribution.accessUrl.toString()} ${chalk.dim('(selected)')}`);
|
|
98
95
|
}
|
|
99
96
|
}
|
|
100
97
|
clearImportSpinner() {
|
|
@@ -132,12 +129,10 @@ export class ConsoleReporter {
|
|
|
132
129
|
stageValidated(_stage, report) {
|
|
133
130
|
const s = ora({ discardStdin: false });
|
|
134
131
|
if (report.conforms) {
|
|
135
|
-
s.
|
|
136
|
-
s.succeed();
|
|
132
|
+
s.succeed(`Validated ${compactNumber.format(report.quadsValidated)} quads`);
|
|
137
133
|
}
|
|
138
134
|
else {
|
|
139
|
-
s.
|
|
140
|
-
s.fail();
|
|
135
|
+
s.fail(`Validated ${compactNumber.format(report.quadsValidated)} quads: ${chalk.red(`${compactNumber.format(report.violations)} violation(s)`)}`);
|
|
141
136
|
}
|
|
142
137
|
}
|
|
143
138
|
stageSkipped(_stage, reason) {
|
|
@@ -151,14 +146,14 @@ export class ConsoleReporter {
|
|
|
151
146
|
const s = ora({
|
|
152
147
|
discardStdin: false,
|
|
153
148
|
text: `Completed in ${chalk.bold(prettyMilliseconds(Date.now() - this.datasetStartTime))}`,
|
|
154
|
-
})
|
|
149
|
+
});
|
|
155
150
|
s.succeed();
|
|
156
151
|
}
|
|
157
152
|
datasetSkipped(_dataset, reason) {
|
|
158
153
|
const s = ora({
|
|
159
154
|
discardStdin: false,
|
|
160
155
|
text: `Skipped: ${chalk.red(reason)}`,
|
|
161
|
-
})
|
|
156
|
+
});
|
|
162
157
|
s.fail();
|
|
163
158
|
}
|
|
164
159
|
pipelineComplete(result) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lde/pipeline-console-reporter",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"description": "Console progress reporter for @lde/pipeline",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "git+https://github.com/ldelements/lde.git",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@lde/dataset": "0.7.1",
|
|
34
|
-
"@lde/pipeline": "0.22.
|
|
34
|
+
"@lde/pipeline": "0.22.1"
|
|
35
35
|
}
|
|
36
36
|
}
|