Move to newer shared package

This commit is contained in:
Manav Rathi 2024-04-12 20:54:48 +05:30
parent a2a8be3b19
commit b056cf7f56
No known key found for this signature in database
6 changed files with 7 additions and 10 deletions

View file

@ -1,6 +1,6 @@
import { cached } from "@/next/cache";
import { ensureLocalUser } from "@/next/local-user";
import log from "@/next/log";
import { cached } from "@ente/shared/storage/cache";
import { Skeleton, styled } from "@mui/material";
import { Legend } from "components/PhotoViewer/styledComponents/Legend";
import { t } from "i18next";

View file

@ -1,13 +1,10 @@
import { CacheStorageService, type EnteCache } from "@/next/cache";
import log from "@/next/log";
import { APPS } from "@ente/shared/apps/constants";
import ComlinkCryptoWorker from "@ente/shared/crypto";
import { DedicatedCryptoWorker } from "@ente/shared/crypto/internal/crypto.worker";
import { CustomError } from "@ente/shared/error";
import { Events, eventBus } from "@ente/shared/events";
import {
CacheStorageService,
type EnteCache,
} from "@ente/shared/storage/cache";
import { Remote } from "comlink";
import { FILE_TYPE } from "constants/file";
import isElectron from "is-electron";

View file

@ -1,4 +1,4 @@
import { CacheStorageService } from "@ente/shared/storage/cache";
import { CacheStorageService } from "@/next/cache";
import { BlobOptions } from "types/image";
import {
FaceAlignment,

View file

@ -1,5 +1,5 @@
import { cached } from "@/next/cache";
import log from "@/next/log";
import { cached } from "@ente/shared/storage/cache";
import { FILE_TYPE } from "constants/file";
import PQueue from "p-queue";
import DownloadManager from "services/download";

View file

@ -1,7 +1,7 @@
import { clearCaches } from "@/next/cache";
import log from "@/next/log";
import { Events, eventBus } from "@ente/shared/events";
import InMemoryStore from "@ente/shared/storage/InMemoryStore";
import { clearCaches } from "@ente/shared/storage/cache";
import { clearFiles } from "@ente/shared/storage/localForage/helpers";
import { clearData } from "@ente/shared/storage/localStorage";
import { clearKeys } from "@ente/shared/storage/sessionStorage";

View file

@ -83,7 +83,7 @@ const openCache = async (name: CacheName) =>
const openWebCache = async (name: CacheName) => {
const cache = await caches.open(name);
return {
match: (key) => {
match: (key: string) => {
return cache.match(key);
},
put: (key: string, data: Response) => {
@ -99,7 +99,7 @@ const openWebCache = async (name: CacheName) => {
const openOPFSCacheWeb = async (name: CacheName) => {
const cache = await caches.open(name);
return {
match: (key) => {
match: (key: string) => {
return cache.match(key);
},
put: (key: string, data: Response) => {