Files
klz-cables.com/.pnpm-store/v10/files/79/3952581fee1f1910e43795056976538c73a076261a32a257be8496ae8ac66e0490fcddde00145217144333b7d922df6d2376c32c4f06158b134c7be6634b67
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.cjs","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"}