chore: update to version 14.0.11 and align website URLs

This commit is contained in:
2026-01-11 11:34:13 +03:00
parent ef74383349
commit 19c8d69bd8
1499 changed files with 53633 additions and 89 deletions
+16
View File
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.jsonDecrypt = jsonDecrypt;
const util_1 = require("@pezkuwi/util");
const index_js_1 = require("../base64/index.js");
const decryptData_js_1 = require("./decryptData.js");
function jsonDecrypt({ encoded, encoding }, passphrase) {
if (!encoded) {
throw new Error('No encrypted data available to decode');
}
return (0, decryptData_js_1.jsonDecryptData)((0, util_1.isHex)(encoded)
? (0, util_1.hexToU8a)(encoded)
: (0, index_js_1.base64Decode)(encoded), passphrase, Array.isArray(encoding.type)
? encoding.type
: [encoding.type]);
}