@roots/bud-compiler 2024.6.26-7 → 2024.6.27-7

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.
@@ -59,22 +59,17 @@ class Compiler extends Service {
59
59
  this.stats.children
60
60
  ?.filter(child => isNumber(child.errorsCount) && child.errorsCount > 0)
61
61
  .forEach(child => {
62
- try {
63
- const error = child.errors?.shift();
64
- if (!error)
65
- return;
66
- this.app.notifier.notify({
67
- group: `${this.app.label}-${child.name}`,
68
- message: stripAnsi(error.message),
69
- open: error.file ? pathToFileURL(error.file) : ``,
70
- subtitle: error.file ? `Error in ${error.name}` : error.name,
71
- title: makeNoticeTitle(this.app, child),
72
- });
73
- error.file && this.app.notifier.openEditor(error.file);
74
- }
75
- catch (error) {
76
- this.logger.error(error);
77
- }
62
+ const error = child.errors?.shift();
63
+ if (!error)
64
+ return;
65
+ this.app.notifier.notify({
66
+ group: `${this.app.label}-${child.name}`,
67
+ message: stripAnsi(error.message),
68
+ open: error.file ? pathToFileURL(error.file) : ``,
69
+ subtitle: error.file ? `Error in ${error.name}` : error.name,
70
+ title: makeNoticeTitle(this.app, child),
71
+ });
72
+ error.file && this.app.notifier.openEditor(error.file);
78
73
  });
79
74
  }
80
75
  this.stats.children?.forEach(child => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roots/bud-compiler",
3
- "version": "2024.6.26-7",
3
+ "version": "2024.6.27-7",
4
4
  "description": "Compilation handler",
5
5
  "engines": {
6
6
  "node": ">=16"
@@ -65,14 +65,14 @@
65
65
  "types": "./lib/index.d.ts",
66
66
  "module": "./lib/index.js",
67
67
  "devDependencies": {
68
- "@roots/bud-api": "2024.6.26-7",
68
+ "@roots/bud-api": "2024.6.27-7",
69
69
  "@skypack/package-check": "0.2.2",
70
70
  "@types/node": "20.12.8"
71
71
  },
72
72
  "dependencies": {
73
- "@roots/bud-dashboard": "2024.6.26-7",
74
- "@roots/bud-framework": "2024.6.26-7",
75
- "@roots/bud-support": "2024.6.26-7",
73
+ "@roots/bud-dashboard": "2024.6.27-7",
74
+ "@roots/bud-framework": "2024.6.27-7",
75
+ "@roots/bud-support": "2024.6.27-7",
76
76
  "tslib": "2.6.2"
77
77
  },
78
78
  "volta": {
@@ -88,22 +88,18 @@ class Compiler extends Service implements BudCompiler {
88
88
  child => isNumber(child.errorsCount) && child.errorsCount > 0,
89
89
  )
90
90
  .forEach(child => {
91
- try {
92
- const error = child.errors?.shift()
93
- if (!error) return
94
-
95
- this.app.notifier.notify({
96
- group: `${this.app.label}-${child.name}`,
97
- message: stripAnsi(error.message),
98
- open: error.file ? pathToFileURL(error.file) : ``,
99
- subtitle: error.file ? `Error in ${error.name}` : error.name,
100
- title: makeNoticeTitle(this.app, child),
101
- })
102
-
103
- error.file && this.app.notifier.openEditor(error.file)
104
- } catch (error) {
105
- this.logger.error(error)
106
- }
91
+ const error = child.errors?.shift()
92
+ if (!error) return
93
+
94
+ this.app.notifier.notify({
95
+ group: `${this.app.label}-${child.name}`,
96
+ message: stripAnsi(error.message),
97
+ open: error.file ? pathToFileURL(error.file) : ``,
98
+ subtitle: error.file ? `Error in ${error.name}` : error.name,
99
+ title: makeNoticeTitle(this.app, child),
100
+ })
101
+
102
+ error.file && this.app.notifier.openEditor(error.file)
107
103
  })
108
104
  }
109
105