From 933c6a2237163ebf438bb1d9b387449d8e7e6216 Mon Sep 17 00:00:00 2001 From: Igor Berlenko Date: Wed, 7 Sep 2022 18:38:04 +0800 Subject: [PATCH] build: add missing dependencies: pica, lodash (#5656) * add missing dependencies: pica, lodash * remove lodash & fix yarn.lock * first * second Co-authored-by: dwelle --- package.json | 1 + src/components/LibraryMenuItems.tsx | 3 +-- src/excalidraw-app/collab/Portal.tsx | 2 +- yarn.lock | 11 +++++++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 436e0de2..f5189072 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "open-color": "1.9.1", "pako": "1.0.11", "perfect-freehand": "1.0.16", + "pica": "7.1.1", "png-chunk-text": "1.0.0", "png-chunks-encode": "1.0.0", "png-chunks-extract": "1.0.0", diff --git a/src/components/LibraryMenuItems.tsx b/src/components/LibraryMenuItems.tsx index 01223bae..b39003cd 100644 --- a/src/components/LibraryMenuItems.tsx +++ b/src/components/LibraryMenuItems.tsx @@ -1,4 +1,3 @@ -import { chunk } from "lodash"; import React, { useCallback, useState } from "react"; import { saveLibraryAsJSON, serializeLibraryAsJSON } from "../data/json"; import Library from "../data/library"; @@ -11,7 +10,7 @@ import { LibraryItem, LibraryItems, } from "../types"; -import { arrayToMap, muteFSAbortError } from "../utils"; +import { arrayToMap, chunk, muteFSAbortError } from "../utils"; import { useDevice } from "./App"; import ConfirmDialog from "./ConfirmDialog"; import { close, exportToFileIcon, load, publishIcon, trash } from "./icons"; diff --git a/src/excalidraw-app/collab/Portal.tsx b/src/excalidraw-app/collab/Portal.tsx index 95e0e7aa..2d073c86 100644 --- a/src/excalidraw-app/collab/Portal.tsx +++ b/src/excalidraw-app/collab/Portal.tsx @@ -14,7 +14,7 @@ import { } from "../app_constants"; import { UserIdleState } from "../../types"; import { trackEvent } from "../../analytics"; -import { throttle } from "lodash"; +import throttle from "lodash.throttle"; import { newElementWith } from "../../element/mutateElement"; import { BroadcastedExcalidrawElement } from "./reconciliation"; import { encryptData } from "../../data/encryption"; diff --git a/yarn.lock b/yarn.lock index 64e577c5..98fb485d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9032,6 +9032,17 @@ performance-now@^2.1.0: resolved "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz" integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= +pica@7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/pica/-/pica-7.1.1.tgz#c68b42f5cfa6cc26eaec5cfa10cc0a5299ef3b7a" + integrity sha512-WY73tMvNzXWEld2LicT9Y260L43isrZ85tPuqRyvtkljSDLmnNFQmZICt4xUJMVulmcc6L9O7jbBrtx3DOz/YQ== + dependencies: + glur "^1.1.2" + inherits "^2.0.3" + multimath "^2.0.0" + object-assign "^4.1.1" + webworkify "^1.5.0" + pica@^7.1.0: version "7.1.0" resolved "https://registry.npmjs.org/pica/-/pica-7.1.0.tgz"