summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorcrowlKats <13135287+crowlKats@users.noreply.github.com>2021-05-10 12:02:47 +0200
committerGitHub <noreply@github.com>2021-05-10 12:02:47 +0200
commitdfe528198d363ebc883da84dc816bce112ecd24b (patch)
treedfa0e67521a5b0a968b57514aa02fc8f114d4132 /cli/main.rs
parent32ad8f77d68df04e26ecaed71bdd8d37f048218a (diff)
feat: add WebStorage API (#7819)
This commit introduces localStorage and sessionStorage.
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs
index d20462c96..43c1cd0b2 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -204,6 +204,14 @@ pub fn create_main_worker(
no_color: !colors::use_color(),
get_error_class_fn: Some(&crate::errors::get_error_class_name),
location: program_state.flags.location.clone(),
+ location_data_dir: program_state.flags.location.clone().map(|loc| {
+ program_state
+ .dir
+ .root
+ .clone()
+ .join("location_data")
+ .join(checksum::gen(&[loc.to_string().as_bytes()]))
+ }),
blob_url_store: program_state.blob_url_store.clone(),
};
@@ -295,7 +303,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{}\n{}\n{}\n{}\n{}",
crate::tsc::DENO_NS_LIB,
crate::tsc::DENO_CONSOLE_LIB,
crate::tsc::DENO_URL_LIB,
@@ -304,6 +312,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_WEBSTORAGE_LIB,
crate::tsc::DENO_CRYPTO_LIB,
crate::tsc::SHARED_GLOBALS_LIB,
crate::tsc::WINDOW_LIB,