more shims, path, crypto, url

This commit is contained in:
Nystik
2026-03-07 18:11:46 +01:00
parent 192c5fb093
commit 38427d4fe4
7 changed files with 156 additions and 0 deletions

12
shims/crypto/index.js Normal file
View File

@@ -0,0 +1,12 @@
// Crypto shim
// Obsidian uses: scrypt, randomBytes, createHash
import { randomBytes } from './random-bytes.js';
import { createHash } from './create-hash.js';
import { scrypt } from './scrypt.js';
export const cryptoShim = {
randomBytes,
createHash,
scrypt,
};