Files
klz-cables.com/.pnpm-store/v10/files/c1/06353a78a92c20966bf66601f2714f9edb8c6753a84406d1bd0ec68044cc7b1525a635706a58d3e4f7655ad7f6cef4053f63792f22621c718b1f196517f203
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
1.3 KiB
Plaintext

{"version":3,"file":"extensions.js","names":[],"sources":["../../../../src/rest/commands/update/extensions.ts"],"sourcesContent":["import type { DirectusExtension } from '../../../schema/extension.js';\nimport type { NestedPartial } from '../../../types/index.js';\nimport type { RestCommand } from '../../types.js';\nimport { throwIfEmpty } from '../../utils/index.js';\n\n/**\n * Update an existing extension.\n * @param bundle - Bundle this extension is in\n * @param name - Unique name of the extension\n * @param data - Partial extension object\n * @returns Returns the extension that was updated\n */\nexport const updateExtension =\n\t<Schema>(\n\t\tbundle: string | null,\n\t\tname: string,\n\t\tdata: NestedPartial<DirectusExtension<Schema>>,\n\t): RestCommand<DirectusExtension<Schema>, Schema> =>\n\t() => {\n\t\tif (bundle !== null) throwIfEmpty(bundle, 'Bundle cannot be an empty string');\n\t\tthrowIfEmpty(name, 'Name cannot be empty');\n\n\t\treturn {\n\t\t\tpath: bundle ? `/extensions/${bundle}/${name}` : `/extensions/${name}`,\n\t\t\tparams: {},\n\t\t\tbody: JSON.stringify(data),\n\t\t\tmethod: 'PATCH',\n\t\t};\n\t};\n"],"mappings":"6DAYA,MAAa,GAEX,EACA,EACA,SAGI,IAAW,MAAM,EAAa,EAAQ,mCAAmC,CAC7E,EAAa,EAAM,uBAAuB,CAEnC,CACN,KAAM,EAAS,eAAe,EAAO,GAAG,IAAS,eAAe,IAChE,OAAQ,EAAE,CACV,KAAM,KAAK,UAAU,EAAK,CAC1B,OAAQ,QACR"}