From 8424105c6ebc1842e5680913a01dc62ec8eb878e Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 22 Mar 2021 23:20:57 +0100 Subject: [PATCH 1/3] fix: include deno.crypto in `deno types` --- cli/main.rs | 3 ++- cli/tsc.rs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/main.rs b/cli/main.rs index c73da5e06cf98c..31ee507371b882 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -278,7 +278,7 @@ fn print_cache_info( pub fn get_types(unstable: bool) -> String { let mut types = format!( - "{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}", + "{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}", crate::tsc::DENO_NS_LIB, crate::tsc::DENO_CONSOLE_LIB, crate::tsc::DENO_URL_LIB, @@ -286,6 +286,7 @@ pub fn get_types(unstable: bool) -> String { crate::tsc::DENO_FETCH_LIB, crate::tsc::DENO_WEBGPU_LIB, crate::tsc::DENO_WEBSOCKET_LIB, + crate::tsc::DENO_CRYPTO_LIB, crate::tsc::SHARED_GLOBALS_LIB, crate::tsc::WINDOW_LIB, ); diff --git a/cli/tsc.rs b/cli/tsc.rs index 78a472dfa39b09..af4557d6b685dd 100644 --- a/cli/tsc.rs +++ b/cli/tsc.rs @@ -36,6 +36,8 @@ pub static DENO_FETCH_LIB: &str = include_str!(env!("DENO_FETCH_LIB_PATH")); pub static DENO_WEBGPU_LIB: &str = include_str!(env!("DENO_WEBGPU_LIB_PATH")); pub static DENO_WEBSOCKET_LIB: &str = include_str!(env!("DENO_WEBSOCKET_LIB_PATH")); +pub static DENO_CRYPTO_LIB: &str = + include_str!(env!("DENO_CRYPTO_LIB_PATH")); pub static SHARED_GLOBALS_LIB: &str = include_str!("dts/lib.deno.shared_globals.d.ts"); pub static WINDOW_LIB: &str = include_str!("dts/lib.deno.window.d.ts"); From d310f836f23bd88b876928fa1e7e423a9093a725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 24 Mar 2021 14:58:39 +0100 Subject: [PATCH 2/3] fmt --- cli/tsc.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/tsc.rs b/cli/tsc.rs index af4557d6b685dd..db7b3f410a90e6 100644 --- a/cli/tsc.rs +++ b/cli/tsc.rs @@ -36,8 +36,7 @@ pub static DENO_FETCH_LIB: &str = include_str!(env!("DENO_FETCH_LIB_PATH")); pub static DENO_WEBGPU_LIB: &str = include_str!(env!("DENO_WEBGPU_LIB_PATH")); pub static DENO_WEBSOCKET_LIB: &str = include_str!(env!("DENO_WEBSOCKET_LIB_PATH")); -pub static DENO_CRYPTO_LIB: &str = - include_str!(env!("DENO_CRYPTO_LIB_PATH")); +pub static DENO_CRYPTO_LIB: &str = include_str!(env!("DENO_CRYPTO_LIB_PATH")); pub static SHARED_GLOBALS_LIB: &str = include_str!("dts/lib.deno.shared_globals.d.ts"); pub static WINDOW_LIB: &str = include_str!("dts/lib.deno.window.d.ts"); From eee5c81ade5297efd76959306b621501ba1c64d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 24 Mar 2021 16:21:28 +0100 Subject: [PATCH 3/3] reset CI