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
1 line
760 B
Plaintext
1 line
760 B
Plaintext
{"version":3,"file":"deployment.js","names":[],"sources":["../../../../src/rest/commands/delete/deployment.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\nimport { throwIfEmpty } from '../../utils/index.js';\n\n/**\n * Delete a deployment provider.\n *\n * @param provider The provider type (e.g. 'vercel')\n *\n * @returns Nothing\n * @throws Will throw if provider is empty\n */\nexport const deleteDeployment =\n\t<Schema>(provider: string): RestCommand<void, Schema> =>\n\t() => {\n\t\tthrowIfEmpty(provider, 'Provider cannot be empty');\n\n\t\treturn {\n\t\t\tpath: `/deployments/${provider}`,\n\t\t\tmethod: 'DELETE',\n\t\t};\n\t};\n"],"mappings":"6DAWA,MAAa,EACH,QAER,EAAa,EAAU,2BAA2B,CAE3C,CACN,KAAM,gBAAgB,IACtB,OAAQ,SACR"} |