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
479 B
Plaintext
1 line
479 B
Plaintext
{"version":3,"file":"throw-if-empty.cjs","names":[],"sources":["../../../src/rest/utils/throw-if-empty.ts"],"sourcesContent":["/**\n *\n * @param value\n * @param message\n * @throws Throws an error if an empty array or string is provided\n */\nexport const throwIfEmpty = (value: string | unknown[], message: string) => {\n\tif (value.length === 0) {\n\t\tthrow new Error(message);\n\t}\n};\n"],"mappings":"AAMA,MAAa,GAAgB,EAA2B,IAAoB,CAC3E,GAAI,EAAM,SAAW,EACpB,MAAU,MAAM,EAAQ"} |