From 3067194b152c25e7aa2b4a30929ff5d4a7a5eb14 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 08:11:57 +0000 Subject: [PATCH 1/2] fix(deps): update dependency tinykeys to v2 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c13072f6..aba9179a 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "store2": "^2.12.0", "svelte-i18n": "^3.3.13", "svelte-routing": "^2.0.0", - "tinykeys": "^1.3.0", + "tinykeys": "^2.0.0", "ulid": "^2.3.0", "vscode-ws-jsonrpc": "^2.0.0", "xterm": "^5.0.0", diff --git a/yarn.lock b/yarn.lock index 5e901ce8..a848b949 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3288,10 +3288,10 @@ tinybench@^2.5.0: resolved "https://registry.yarnpkg.com/tinybench/-/tinybench-2.5.1.tgz#3408f6552125e53a5a48adee31261686fd71587e" integrity sha512-65NKvSuAVDP/n4CqH+a9w2kTlLReS9vhsAP06MWx+/89nMinJyB2icyl58RIcqCmIggpojIGeuJGhjU1aGMBSg== -tinykeys@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/tinykeys/-/tinykeys-1.4.0.tgz#c2986cd0184c86e943a6b17acc0352e42b542dff" - integrity sha512-ysnVd2E4nWbNXIbHaUidcKGLTmNimqP0hdpsD0Ph5hPJ84ntCF6PHj+Jg3im9nZt9/hNsBg/E6m1psHc2KaPnQ== +tinykeys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/tinykeys/-/tinykeys-2.1.0.tgz#1341563e92a7fac9ca90053fddaf2b7553500298" + integrity sha512-/MESnqBD1xItZJn5oGQ4OsNORQgJfPP96XSGoyu4eLpwpL0ifO0SYR5OD76u0YMhMXsqkb0UqvI9+yXTh4xv8Q== tinypool@^0.7.0: version "0.7.0" From 49222a4f652958b633a6e610c0c1670835becc02 Mon Sep 17 00:00:00 2001 From: kobakazu0429 Date: Mon, 6 Nov 2023 19:05:28 +0900 Subject: [PATCH 2/2] fix for interface --- src/pages/index.svelte | 8 +++++--- src/shortcuts/index.ts | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/index.svelte b/src/pages/index.svelte index e51dd36d..48183e83 100644 --- a/src/pages/index.svelte +++ b/src/pages/index.svelte @@ -49,9 +49,11 @@ export let location: Location; $: { - const params = new URLSearchParams(location.search); - const lz = params.get("data"); - lzStore.set(lz); + if (location) { + const params = new URLSearchParams(location.search); + const lz = params.get("data"); + lzStore.set(lz); + } } diff --git a/src/shortcuts/index.ts b/src/shortcuts/index.ts index 5090ec8f..dadf417d 100644 --- a/src/shortcuts/index.ts +++ b/src/shortcuts/index.ts @@ -1,5 +1,5 @@ import { escapeCode, recoveryCode } from "./../editor/utils"; -import tinykeys from "tinykeys"; +import { tinykeys } from "tinykeys"; import debounce from "just-debounce-it"; import { saveCodeStorage } from "../localStorage/index"; import { formatCode, getCode, newFile as newFileFn } from "../editor/utils";