Renaming new package name for SHA256

Closes #42765

Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
This commit is contained in:
Alexander Schwartz 2025-09-23 08:40:18 +02:00 committed by GitHub
parent bb9c9ac1e3
commit 35fc28882f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,8 @@
"build": {
"command": "rollup --config && pnpm build:rewrite-import",
"files": [
"rollup.config.js"
"rollup.config.js",
"src"
],
"output": [
"target/classes/theme/keycloak/common/resources/vendor/react",

View File

@ -1,4 +1,4 @@
import { sha256 } from "@noble/hashes/sha256";
import { sha256 } from "@noble/hashes/sha2.js";
import { v4 as uuidv4 } from "uuid";
// Shim for Web Crypto API specifically for Keycloak JS, as this API can sometimes be missing, for example in an insecure context: