Skip to content

Commit 8eee9ad

Browse files
committed
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.
1 parent 613f637 commit 8eee9ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extensions/puterfs/PuterFSProvider.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
const STUCK_STATUS_TIMEOUT = 10 * 1000;
2121
const STUCK_ALARM_TIMEOUT = 20 * 1000;
2222

23+
import crypto from 'node:crypto';
2324
import path_ from 'node:path';
2425
import { v4 as uuidv4 } from 'uuid';
2526

0 commit comments

Comments
 (0)