rust2.0 #1

Merged
hibas123 merged 13 commits from rust2.0 into main 2024-08-13 10:00:18 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 04f82b655b - Show all commits

View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/jrpcgen",
"version": "1.2.11",
"version": "1.2.12",
"main": "lib/index.js",
"license": "MIT",
"packageManager": "yarn@3.1.1",

View File

@ -18,7 +18,7 @@ import { ZIGTarget } from "./targets/zig";
import { DartTarget } from "./targets/dart";
import { URL } from "url";
class CatchedError extends Error {}
class CatchedError extends Error { }
const log = dbg("app");
@ -53,6 +53,9 @@ function resolve(base: string, sub?: string) {
} else if (base.startsWith("http://") || base.startsWith("https://")) {
let u = new URL(base);
if (sub) {
if (!sub.endsWith(".jrpc")) {
sub += ".jrpc";
}
u = new URL(sub, u);
}
return u.href;