From 9086674b271d57682f2d246d5301eabc7a9e06dd Mon Sep 17 00:00:00 2001 From: David Luzar Date: Thu, 22 Dec 2022 19:32:21 +0100 Subject: [PATCH] chore: bump typescript @ 4.9.4 (#6024) --- package.json | 2 +- src/data/library.ts | 3 ++- yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index bf9414c4..2923ddd5 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "roughjs": "4.5.2", "sass": "1.51.0", "socket.io-client": "2.3.1", - "typescript": "4.5.5", + "typescript": "4.9.4", "workbox-background-sync": "^6.5.4", "workbox-broadcast-update": "^6.5.4", "workbox-cacheable-response": "^6.5.4", diff --git a/src/data/library.ts b/src/data/library.ts index e1b4fde7..564ccc7d 100644 --- a/src/data/library.ts +++ b/src/data/library.ts @@ -154,7 +154,8 @@ class Library { return this.setLibrary(() => { return new Promise(async (resolve, reject) => { try { - const source = await (typeof libraryItems === "function" + const source = await (typeof libraryItems === "function" && + !(libraryItems instanceof Blob) ? libraryItems(this.lastLibraryItems) : libraryItems); diff --git a/yarn.lock b/yarn.lock index 1e2d24b9..2bc160d6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10296,10 +10296,10 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@4.5.5: - version "4.5.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3" - integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA== +typescript@4.9.4: + version "4.9.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" + integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== typeson-registry@^1.0.0-alpha.20: version "1.0.0-alpha.39"