Skip to content

Commit ace28a9

Browse files
committed
Update dependencies
1 parent 2b6c3e8 commit ace28a9

File tree

6 files changed

+22
-26
lines changed

6 files changed

+22
-26
lines changed

cli.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ update_lock() {
2929
}
3030

3131
update_deps() {
32-
deno run -A jsr:@wok/deup@1.3.1 update "$@"
32+
deno run -A jsr:@wok/deup@2.1.0 update "$@"
3333
"$0" update_lock
3434
}
3535

deno.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@std/fs": "jsr:@std/fs@^1.0.9",
3939
"@std/path": "jsr:@std/path@^1.0.8",
4040
"@std/yaml": "jsr:@std/yaml@^1.0.5",
41-
"@wok/schema": "jsr:@wok/schema@^2.0.1",
42-
"@wok/utils": "jsr:@wok/utils@^4.0.1"
41+
"@wok/schema": "jsr:@wok/schema@^2.1.0",
42+
"@wok/utils": "jsr:@wok/utils@^4.1.0"
4343
}
4444
}

deno.lock

+12-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/deps.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export * from "@wok/utils/cli";
22
export * from "@wok/utils/exec";
3-
export * from "@wok/utils/validation";
4-
export type { ValidationResult } from "@wok/utils/validation";
3+
export * from "@wok/schema/validation";
54
export * from "@std/fmt/colors";
65

76
export { basename, dirname, extname, fromFileUrl, join as joinPath, resolve as resolvePath } from "@std/path";

src/multipass.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
NonZeroExitError,
1313
printErrLines,
1414
printOutLines,
15-
typedParse,
15+
validate,
1616
} from "./deps.ts";
1717
import type { InstanceConfig, JoinMetadata, ServerInstanceConfig } from "./types.ts";
1818
import { InstanceState, MultipassInfo } from "./types.ts";
@@ -112,7 +112,7 @@ export async function multipassInfo(
112112
}
113113
})();
114114

115-
const result = typedParse(MultipassInfo, output);
115+
const result = validate(MultipassInfo, output);
116116

117117
if (!result.isSuccess) {
118118
throw new Error(

src/utils.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
printErrLines,
66
printOutLines,
77
resolvePath,
8-
typedParse,
8+
validate,
99
type ValueError,
1010
} from "./deps.ts";
1111
import { fsExists, gray, inheritExec, joinPath, red, stringifyYaml } from "./deps.ts";
@@ -64,8 +64,8 @@ export async function loadInstanceConfig(
6464
}
6565

6666
const instanceResult = (instanceConfig.role === "server")
67-
? typedParse(ServerInstanceConfigSchema, instanceMod.default)
68-
: typedParse(AgentInstanceConfigSchema, instanceMod.default);
67+
? validate(ServerInstanceConfigSchema, instanceMod.default)
68+
: validate(AgentInstanceConfigSchema, instanceMod.default);
6969

7070
if (!instanceResult.isSuccess) {
7171
throw new Error(
@@ -147,7 +147,7 @@ export async function createCloudInitConfig(
147147
try {
148148
if (instance.role === "agent" || (instance.role === "server" && !instance.clusterInit)) {
149149
const content = JSON.parse(await Deno.readTextFile(instance.joinMetadataPath));
150-
const result = typedParse(JoinMetadataSchema, content);
150+
const result = validate(JoinMetadataSchema, content);
151151

152152
if (!result.isSuccess) {
153153
throw new Error(

0 commit comments

Comments
 (0)