@nodii/dev 0.6.41 → 0.6.42
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.js +1 -1
- package/dist/lanes.js +3 -2
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -4,7 +4,7 @@ import { chmod, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
|
4
4
|
import { homedir, platform } from "node:os";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
|
|
7
|
-
export const VERSION = "0.6.
|
|
7
|
+
export const VERSION = "0.6.42";
|
|
8
8
|
export const configPath = () =>
|
|
9
9
|
process.env.NODII_DEV_CONFIG_PATH ??
|
|
10
10
|
join(homedir(), ".config/nodii-dev/config.json");
|
package/dist/lanes.js
CHANGED
|
@@ -113,8 +113,9 @@ async function laneContract(id, request, options) {
|
|
|
113
113
|
try {
|
|
114
114
|
return (await request("GET", `/api/v1/lanes/${encode(id)}/contract`, undefined, options)).data?.text ?? null;
|
|
115
115
|
} catch (error) {
|
|
116
|
-
// A Dev
|
|
117
|
-
|
|
116
|
+
// A Dev or edge without the Lane contract route (the edge answers an
|
|
117
|
+
// unknown route `unroutable`): say so, never fail the Gather on it.
|
|
118
|
+
if (["unroutable", "HTTP_404", "NOT_FOUND", "ROUTE_NOT_FOUND"].includes(error?.code)) return "(Dev does not serve the Lane contract here yet. Record your pick: the recorded Gather prints the full contract. Until then, `nodii-dev lane show` and `nodii-dev issues show <issue>` hold it.)";
|
|
118
119
|
throw error;
|
|
119
120
|
}
|
|
120
121
|
}
|