Merge branch 'master' into mrazator/delta-based-sync

This commit is contained in:
Marcel Mraz 2025-03-28 13:17:56 +01:00
commit de81ba25fd
No known key found for this signature in database
GPG key ID: 4EBD6E62DC830CD2
582 changed files with 24885 additions and 15321 deletions

View file

@ -86,13 +86,10 @@ export const getNonDeletedGroupIds = (elements: ElementsMap) => {
// ------------------------------------------------------------
// @ts-expect-error
export const isTestEnv = () => import.meta.env.MODE === "test";
// @ts-expect-error
export const isDevEnv = () => import.meta.env.MODE === "development";
// @ts-expect-error
export const isServerEnv = () => import.meta.env.MODE === "server";
export const shouldThrow = () => isDevEnv() || isTestEnv() || isServerEnv();

View file

@ -1,5 +1,5 @@
import { Delta } from "../common/delta";
import { elementsToMap, newElementWith, shouldThrow } from "../common/utils";
import { newElementWith, shouldThrow } from "../common/utils";
import type { DeltaContainer } from "../common/interfaces";
import type {