Files
klz-cables.com/.pnpm-store/v10/files/45/8ec084131aa86def598342b1874cb367cab0bb359082aa0c1acedfa2277d79349bed4b37f64f0c203c24f1c5afeb65301e71e52656cff2c580787d438a50ae
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.0 KiB
Plaintext

{"version":3,"file":"hash.js","names":[],"sources":["../../../../src/rest/commands/utils/hash.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\n\n/**\n * Generate a hash for a given string.\n * @param string String to hash.\n * @returns Hashed string.\n */\nexport const generateHash =\n\t<Schema>(string: string): RestCommand<string, Schema> =>\n\t() => ({\n\t\tmethod: 'POST',\n\t\tpath: `/utils/hash/generate`,\n\t\tbody: JSON.stringify({ string }),\n\t});\n\n/**\n * Verify a string with a hash.\n * @param string Source string.\n * @param hash Hash you want to verify against.\n * @returns Boolean.\n */\nexport const verifyHash =\n\t<Schema>(string: string, hash: string): RestCommand<boolean, Schema> =>\n\t() => ({\n\t\tmethod: 'POST',\n\t\tpath: `/utils/hash/verify`,\n\t\tbody: JSON.stringify({ string, hash }),\n\t});\n"],"mappings":"AAOA,MAAa,EACH,QACF,CACN,OAAQ,OACR,KAAM,uBACN,KAAM,KAAK,UAAU,CAAE,SAAQ,CAAC,CAChC,EAQW,GACH,EAAgB,SAClB,CACN,OAAQ,OACR,KAAM,qBACN,KAAM,KAAK,UAAU,CAAE,SAAQ,OAAM,CAAC,CACtC"}