Files
klz-cables.com/.pnpm-store/v10/files/78/efa8a33d71a8487c76ab50c36565a169b51ea08ae3883fc3b697af273e88bbe4654e69ab0f776d6daa9bb4015f66a69f446554b069abfc39fcc419ddc99854
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.cjs","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":"kDAYa,GAEX,EACA,EACA,SAGI,IAAW,MAAM,EAAA,aAAa,EAAQ,mCAAmC,CAC7E,EAAA,aAAa,EAAM,uBAAuB,CAEnC,CACN,KAAM,EAAS,eAAe,EAAO,GAAG,IAAS,eAAe,IAChE,OAAQ,EAAE,CACV,KAAM,KAAK,UAAU,EAAK,CAC1B,OAAQ,QACR"}