mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 20:43:41 +00:00
fix: Fix a lint
chore: remove the limit on the long-running fix: Starting sometimes. fix: Make it so the stop of the main works fix: Bind local and tor with package. wip: envs fix TS error import config types from sdk update package.json
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import Deno from "/deno_global.js";
|
||||
import * as mainModule from "/embassy.js";
|
||||
|
||||
function requireParam(param) {
|
||||
throw new Error(`Missing required parameter ${param}`);
|
||||
}
|
||||
@@ -90,7 +89,10 @@ const bindLocal = async (
|
||||
externalPort = requireParam("externalPort"),
|
||||
} = requireParam("options"),
|
||||
) => {
|
||||
return Deno.core.opAsync("bind_local", internalPort, { name, externalPort });
|
||||
return Deno.core.opAsync("bind_local", internalPort, {
|
||||
id: name,
|
||||
externalPort,
|
||||
});
|
||||
};
|
||||
const bindTor = async (
|
||||
{
|
||||
@@ -99,7 +101,10 @@ const bindTor = async (
|
||||
externalPort = requireParam("externalPort"),
|
||||
} = requireParam("options"),
|
||||
) => {
|
||||
return Deno.core.opAsync("bind_onion", internalPort, { name, externalPort });
|
||||
return Deno.core.opAsync("bind_onion", internalPort, {
|
||||
id: name,
|
||||
externalPort,
|
||||
});
|
||||
};
|
||||
|
||||
const signalGroup = async (
|
||||
@@ -180,7 +185,8 @@ const createDir = (
|
||||
) => Deno.core.opAsync("create_dir", volumeId, path);
|
||||
|
||||
const readDir = (
|
||||
{ volumeId = requireParam("volumeId"), path = requireParam("path") } = requireParam("options"),
|
||||
{ volumeId = requireParam("volumeId"), path = requireParam("path") } =
|
||||
requireParam("options"),
|
||||
) => Deno.core.opAsync("read_dir", volumeId, path);
|
||||
const removeDir = (
|
||||
{ volumeId = requireParam("volumeId"), path = requireParam("path") } =
|
||||
@@ -289,12 +295,15 @@ const effects = {
|
||||
removeDir,
|
||||
removeFile,
|
||||
rename,
|
||||
restart,
|
||||
runCommand,
|
||||
runDaemon,
|
||||
runRsync,
|
||||
chmod,
|
||||
signalGroup,
|
||||
sleep,
|
||||
start,
|
||||
stop,
|
||||
trace,
|
||||
warn,
|
||||
writeFile,
|
||||
|
||||
Reference in New Issue
Block a user