fix(puterfs): use node crypto instead of Web API

By default node has a global `crypto` variable conforming to the
standard for the Web Crypto API. However, this `crypto` object does not
have the `createHash` function, so 'node:crypto' must be imported
instead.
This commit is contained in:
KernelDeimos
2025-11-24 14:07:17 -05:00
committed by Eric Dubé
parent 613f6379e7
commit 8eee9ad1df

View File

@@ -20,6 +20,7 @@
const STUCK_STATUS_TIMEOUT = 10 * 1000;
const STUCK_ALARM_TIMEOUT = 20 * 1000;
import crypto from 'node:crypto';
import path_ from 'node:path';
import { v4 as uuidv4 } from 'uuid';