Merge branch 'master' into mrazator/delta-based-sync
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user