mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
Feat: js action
wip: Getting async js feat: Have execute get action config feat: Read + Write chore: Add typing for globals chore: Change the default path, include error on missing function, and add json File Read Write chore: Change the default path, include error on missing function, and add json File Read Write wip: Fix the unit test wip: Fix the unit test feat: module loading
This commit is contained in:
3495
backend/Cargo.lock
generated
3495
backend/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -65,8 +65,8 @@ color-eyre = "0.5"
|
|||||||
cookie_store = "0.15.0"
|
cookie_store = "0.15.0"
|
||||||
digest = "0.9.0"
|
digest = "0.9.0"
|
||||||
divrem = "1.0.0"
|
divrem = "1.0.0"
|
||||||
deno_core = "0.135.0"
|
deno_core = "0.135.0"
|
||||||
deno_ast = {version="0.14.1", features = ["transpiling"]}
|
deno_ast = { version = "0.14.1", features = ["transpiling"] }
|
||||||
ed25519-dalek = { version = "1.0.1", features = ["serde"] }
|
ed25519-dalek = { version = "1.0.1", features = ["serde"] }
|
||||||
emver = { version = "0.1.6", features = ["serde"] }
|
emver = { version = "0.1.6", features = ["serde"] }
|
||||||
fd-lock-rs = "0.1.3"
|
fd-lock-rs = "0.1.3"
|
||||||
|
|||||||
@@ -647,7 +647,10 @@ mod js_runtime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// We need to make sure that during the file accessing, we don't reach beyond our scope of control
|
/// We need to make sure that during the file accessing, we don't reach beyond our scope of control
|
||||||
async fn is_subset(parent: impl AsRef<Path>, child: impl AsRef<Path>) -> Result<bool, AnyError> {
|
async fn is_subset(
|
||||||
|
parent: impl AsRef<Path>,
|
||||||
|
child: impl AsRef<Path>,
|
||||||
|
) -> Result<bool, AnyError> {
|
||||||
let child = tokio::fs::canonicalize(child).await?;
|
let child = tokio::fs::canonicalize(child).await?;
|
||||||
let parent = tokio::fs::canonicalize(parent).await?;
|
let parent = tokio::fs::canonicalize(parent).await?;
|
||||||
Ok(child.starts_with(parent))
|
Ok(child.starts_with(parent))
|
||||||
|
|||||||
Reference in New Issue
Block a user