Skip to content

Commit 3259986

Browse files
committed
typescript 1.0.7
1 parent 67c7171 commit 3259986

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

ts/package/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openmesh-network/xnode-manager-sdk",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/Openmesh-Network/xnode-manager-sdk.git"

ts/package/src/usage/handlers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type cpu_input = Sessioned<{
1414
}>;
1515
export type cpu_output = rust.Vec<CpuUsage>;
1616
export async function cpu(input: cpu_input): Promise<cpu_output> {
17-
return SessionGet(input, scope(), (path) => `/${path}/cpu`);
17+
return SessionGet(input, scope(), (path) => `/${path.scope}/cpu`);
1818
}
1919

2020
export type memory_input = Sessioned<{
@@ -24,7 +24,7 @@ export type memory_input = Sessioned<{
2424
}>;
2525
export type memory_output = MemoryUsage;
2626
export async function memory(input: memory_input): Promise<memory_output> {
27-
return SessionGet(input, scope(), (path) => `/${path}/memory`);
27+
return SessionGet(input, scope(), (path) => `/${path.scope}/memory`);
2828
}
2929

3030
export type disk_input = Sessioned<{
@@ -37,6 +37,6 @@ export async function disk(input: disk_input): Promise<disk_output> {
3737
return SessionGet<disk_output, disk_input["path"]>(
3838
input,
3939
scope(),
40-
(path) => `/${path}/disk`
40+
(path) => `/${path.scope}/disk`
4141
).then((data) => data.filter((d) => d.mount_point.startsWith("/mnt")));
4242
}

0 commit comments

Comments
 (0)