@danielx/civet 0.11.10 → 0.11.11

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.
@@ -22,11 +22,22 @@ try {
22
22
  }
23
23
  return parentPort.postMessage({ id, result, errors: args[1]?.errors });
24
24
  } catch (error) {
25
- return parentPort.postMessage({ id, error: {
26
- type: error.constructor.name,
27
- name: error.name,
28
- message: error.message
29
- } });
25
+ if (error instanceof Error) {
26
+ return parentPort.postMessage({ id, error: {
27
+ type: error.constructor.name,
28
+ name: error.name,
29
+ message: error.message
30
+ } });
31
+ } else {
32
+ return parentPort.postMessage({
33
+ id,
34
+ error: {
35
+ type: typeof error,
36
+ name: "Error",
37
+ message: String(error)
38
+ }
39
+ });
40
+ }
30
41
  }
31
42
  });
32
43
  }
@@ -493,6 +493,7 @@ var rawPlugin = (options = {}, meta) => {
493
493
  failures.push(DiagnosticCategory.Error);
494
494
  }
495
495
  const count = diagnostics.filter((d) => failures.includes(d.category)).length;
496
+ console.error(`${count} TypeScript diagnostic${count === 1 ? "" : "s"}.`);
496
497
  const threshold = options.maxErrors ?? 0;
497
498
  if (count > threshold) {
498
499
  const reason = count === diagnostics.length ? count : `${count} out of ${diagnostics.length}`;
@@ -461,6 +461,7 @@ var rawPlugin = (options = {}, meta) => {
461
461
  failures.push(DiagnosticCategory.Error);
462
462
  }
463
463
  const count = diagnostics.filter((d) => failures.includes(d.category)).length;
464
+ console.error(`${count} TypeScript diagnostic${count === 1 ? "" : "s"}.`);
464
465
  const threshold = options.maxErrors ?? 0;
465
466
  if (count > threshold) {
466
467
  const reason = count === diagnostics.length ? count : `${count} out of ${diagnostics.length}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
3
  "type": "commonjs",
4
- "version": "0.11.10",
4
+ "version": "0.11.11",
5
5
  "description": "CoffeeScript style syntax for TypeScript",
6
6
  "scripts": {
7
7
  "build": "bash ./build/build.sh",
@@ -134,7 +134,7 @@
134
134
  "@babel/core": "^7.29.0",
135
135
  "@babel/parser": "^7.29.2",
136
136
  "@danielx/civet": "0.11.6",
137
- "@danielx/hera": "0.9.2",
137
+ "@danielx/hera": "0.9.7",
138
138
  "@types/assert": "^1.5.6",
139
139
  "@types/babel__core": "7.20.5",
140
140
  "@types/mocha": "^10.0.8",
@@ -153,7 +153,7 @@
153
153
  "vscode-languageserver-textdocument": "^1.0.8"
154
154
  },
155
155
  "peerDependencies": {
156
- "@danielx/hera": "^0.9.2",
156
+ "@danielx/hera": "^0.9.7",
157
157
  "typescript": ">=4.5",
158
158
  "yaml": "^2.4.5"
159
159
  },
@@ -190,7 +190,8 @@
190
190
  "exclude": [
191
191
  "source/parser/types.civet",
192
192
  "source/bun-civet.civet",
193
- "source/node-worker.civet"
193
+ "source/node-worker.civet",
194
+ "lsp/zed/grammars/**"
194
195
  ]
195
196
  },
196
197
  "packageManager": "pnpm@10.33.0",