@skmtc/core 0.0.288 → 0.0.289

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.
@@ -36,15 +36,15 @@ export class ResultsHandler extends BaseHandler {
36
36
  }
37
37
  log(msg) {
38
38
  console.log('JSON MSG', msg);
39
- const { phase, result, generatorKey } = JSON.parse(msg);
39
+ const { phase, level, generatorKey } = JSON.parse(msg);
40
40
  this.context.captureResult({
41
41
  phase,
42
42
  generatorKey,
43
- result: match(result)
43
+ result: match(level)
44
44
  .with('WARN', () => 'warning')
45
45
  .with('ERROR', () => 'error')
46
46
  .otherwise(() => {
47
- throw new Error(`Unexpected result: ${result}`);
47
+ throw new Error(`Unexpected result: ${level}`);
48
48
  })
49
49
  });
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.288",
3
+ "version": "0.0.289",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -39,15 +39,15 @@ class ResultsHandler extends base_handler_js_1.BaseHandler {
39
39
  }
40
40
  log(msg) {
41
41
  console.log('JSON MSG', msg);
42
- const { phase, result, generatorKey } = JSON.parse(msg);
42
+ const { phase, level, generatorKey } = JSON.parse(msg);
43
43
  this.context.captureResult({
44
44
  phase,
45
45
  generatorKey,
46
- result: (0, ts_pattern_1.match)(result)
46
+ result: (0, ts_pattern_1.match)(level)
47
47
  .with('WARN', () => 'warning')
48
48
  .with('ERROR', () => 'error')
49
49
  .otherwise(() => {
50
- throw new Error(`Unexpected result: ${result}`);
50
+ throw new Error(`Unexpected result: ${level}`);
51
51
  })
52
52
  });
53
53
  }