chore: upgrade deno_core to 0.249.0 (#22058)

This commit is contained in:
Bartek Iwańczuk 2024-01-23 22:56:56 +01:00 committed by GitHub
parent 5aa25f08be
commit 13d5c6420e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 50 additions and 33 deletions

View file

@ -115,7 +115,17 @@ pub fn get_types_declaration_file_text() -> String {
}
fn get_asset_texts_from_new_runtime() -> Result<Vec<AssetText>, AnyError> {
deno_core::extension!(deno_cli_tsc, ops_fn = deno_ops);
deno_core::extension!(
deno_cli_tsc,
ops = [
op_create_hash,
op_emit,
op_is_node_file,
op_load,
op_resolve,
op_respond,
]
);
// the assets are stored within the typescript isolate, so take them out of there
let mut runtime = JsRuntime::new(RuntimeOptions {
@ -805,7 +815,14 @@ pub fn exec(request: Request) -> Result<Response, AnyError> {
.collect();
deno_core::extension!(deno_cli_tsc,
ops_fn = deno_ops,
ops = [
op_create_hash,
op_emit,
op_is_node_file,
op_load,
op_resolve,
op_respond,
],
options = {
request: Request,
root_map: HashMap<String, Url>,
@ -865,18 +882,6 @@ pub fn exec(request: Request) -> Result<Response, AnyError> {
}
}
deno_core::ops!(
deno_ops,
[
op_create_hash,
op_emit,
op_is_node_file,
op_load,
op_resolve,
op_respond,
]
);
#[cfg(test)]
mod tests {
use super::Diagnostic;