MCPcopy
hub / github.com/apify/crawlee / uniqueKeyToRequestId

Function uniqueKeyToRequestId

packages/memory-storage/src/utils.ts:27–34  ·  view source on GitHub ↗
(uniqueKey: string)

Source from the content-addressed store, hash-verified

25 * Creates a standard request ID (same as Platform).
26 */
27export function uniqueKeyToRequestId(uniqueKey: string): string {
28 const str = createHash('sha256')
29 .update(uniqueKey)
30 .digest('base64')
31 .replace(/(\+|\/|=)/g, '');
32
33 return str.length > REQUEST_ID_LENGTH ? str.slice(0, REQUEST_ID_LENGTH) : str;
34}
35
36export function isBuffer(value: unknown): boolean {
37 try {

Callers 1

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…