@north-light/api 0.3.488 → 0.3.489
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/core/render.js +3 -1
- package/package.json +1 -1
package/dist/core/render.js
CHANGED
|
@@ -140,5 +140,7 @@ export function renderError(p) {
|
|
|
140
140
|
lines.push(`Primary result (the command already completed):\n${fencedJson(p.result)}`);
|
|
141
141
|
}
|
|
142
142
|
lines.push(`Next: ${p.next}`);
|
|
143
|
-
|
|
143
|
+
// The message shares the opening tag's line: a caller that keeps only the first
|
|
144
|
+
// line (`| head -1`) must still see why, not just the code.
|
|
145
|
+
return `<error code="${attrEsc(p.error)}">${lines.join('\n')}\n</error>`;
|
|
144
146
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.489",
|
|
4
4
|
"description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, the CrtrClient, and the command-plugin manifest format. Zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/api/index.js",
|