diff --git a/packages/insomnia/src/main/bundle-spectral-ruleset.ts b/packages/insomnia/src/main/bundle-spectral-ruleset.ts index 86be5aa619..05f1a25b48 100644 --- a/packages/insomnia/src/main/bundle-spectral-ruleset.ts +++ b/packages/insomnia/src/main/bundle-spectral-ruleset.ts @@ -84,7 +84,7 @@ async function flattenRuleset(filePath: string, visited: Set, depth: num // - include them later in the final "extends" array for (const entry of toArray(ruleset.extends)) { if (Array.isArray(entry)) { - throw new Error( + throw new TypeError( `Failed to process "extends" entry ${JSON.stringify(entry)}: tuple format (e.g. [path, severity]) is not supported. Use a plain string instead.`, ); } diff --git a/packages/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.$workspaceId.spec.tsx b/packages/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.$workspaceId.spec.tsx index 5daba85ecc..db82ff1146 100644 --- a/packages/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.$workspaceId.spec.tsx +++ b/packages/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.$workspaceId.spec.tsx @@ -29,8 +29,11 @@ import YAML from 'yaml'; import { parseApiSpec } from '~/common/api-specs'; import { DEFAULT_SIDEBAR_SIZE } from '~/common/constants'; import { debounce } from '~/common/misc'; +import { selectFileOrFolder } from '~/common/select-file-or-folder'; import { models, services } from '~/insomnia-data'; import { useRootLoaderData } from '~/root'; +import { useDeleteProjectRulesetActionFetcher } from '~/routes/organization.$organizationId.project.$projectId.delete-ruleset'; +import { useUpdateProjectRulesetActionFetcher } from '~/routes/organization.$organizationId.project.$projectId.update-ruleset'; import { useWorkspaceLoaderData, WORKSPACE_CONTENT_WRAPPER, @@ -60,9 +63,6 @@ import { useGitVCSVersion } from '~/ui/hooks/use-vcs-version'; import { DEFAULT_STORAGE_RULES } from '~/ui/organization-utils'; import type { Route } from './+types/organization.$organizationId.project.$projectId.workspace.$workspaceId.spec'; -import { useUpdateProjectRulesetActionFetcher } from '~/routes/organization.$organizationId.project.$projectId.update-ruleset'; -import { useDeleteProjectRulesetActionFetcher } from '~/routes/organization.$organizationId.project.$projectId.delete-ruleset'; -import { selectFileOrFolder } from '~/common/select-file-or-folder'; export async function clientLoader({ params }: Route.ClientLoaderArgs) { const { organizationId, projectId, workspaceId } = params; diff --git a/packages/insomnia/src/sync/git/repo-file-watcher.ts b/packages/insomnia/src/sync/git/repo-file-watcher.ts index 2fab376d88..aec64a7785 100644 --- a/packages/insomnia/src/sync/git/repo-file-watcher.ts +++ b/packages/insomnia/src/sync/git/repo-file-watcher.ts @@ -42,6 +42,7 @@ import fs from 'node:fs'; import path from 'node:path'; import { BrowserWindow } from 'electron'; +import YAML from 'yaml'; import type { Workspace, WorkspaceMeta } from '~/insomnia-data'; import { models, services } from '~/insomnia-data'; @@ -51,7 +52,6 @@ import { database as db } from '../../common/database'; import { InsomniaFileTypeValues } from '../../common/import-v5-parser'; import { getInsomniaV5DataExport, tryImportV5Data } from '../../common/insomnia-v5'; import { SyncQueue } from './sync-queue'; -import YAML from 'yaml'; const POLL_INTERVAL_MS = 10_000; const DEBOUNCE_MS = 300;