Files
klz-cables.com/.pnpm-store/v10/files/e6/8d6db1b54a11dfccdaba6d5902c592cbe4f8c6b033d08f0e30693afd56e503a68e33808a299b57f8316bc7fe907566122a9b895e3662ce3390540d0be31bd4
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

1 line
776 B
Plaintext

{"version":3,"file":"is-directus-error.js","names":[],"sources":["../../src/utils/is-directus-error.ts"],"sourcesContent":["import type { DirectusError } from '../types/error.js';\n\n/**\n * A type guard to check if an error is a Directus API error\n */\nexport function isDirectusError<R = Response>(error: unknown): error is DirectusError<R> {\n\treturn (\n\t\ttypeof error === 'object' &&\n\t\terror !== null &&\n\t\t'errors' in error &&\n\t\tArray.isArray(error.errors) &&\n\t\t'message' in error.errors[0] &&\n\t\t'extensions' in error.errors[0] &&\n\t\t'code' in error.errors[0].extensions\n\t);\n}\n"],"mappings":"AAKA,SAAgB,EAA8B,EAA2C,CACxF,OACC,OAAO,GAAU,YACjB,GACA,WAAY,GACZ,MAAM,QAAQ,EAAM,OAAO,EAC3B,YAAa,EAAM,OAAO,IAC1B,eAAgB,EAAM,OAAO,IAC7B,SAAU,EAAM,OAAO,GAAG"}