Files
klz-cables.com/.pnpm-store/v10/files/48/29d415a31e968fd1194521c97b013daff1bd130488b589310372ed2836a241769d3530b69325656e029a604dc115b43291800d9023c33a321416b1a991ffd9
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

20 lines
642 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isJWK = isJWK;
exports.isPrivateJWK = isPrivateJWK;
exports.isPublicJWK = isPublicJWK;
exports.isSecretJWK = isSecretJWK;
const is_object_js_1 = require("./is_object.js");
function isJWK(key) {
return (0, is_object_js_1.default)(key) && typeof key.kty === 'string';
}
function isPrivateJWK(key) {
return key.kty !== 'oct' && typeof key.d === 'string';
}
function isPublicJWK(key) {
return key.kty !== 'oct' && typeof key.d === 'undefined';
}
function isSecretJWK(key) {
return isJWK(key) && key.kty === 'oct' && typeof key.k === 'string';
}