mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 16:08:00 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { base64Encode } from '../base64/index.js';
|
||||
import { ENCODING, ENCODING_NONE, ENCODING_VERSION } from './constants.js';
|
||||
export function jsonEncryptFormat(encoded, contentType, isEncrypted) {
|
||||
return {
|
||||
encoded: base64Encode(encoded),
|
||||
encoding: {
|
||||
content: contentType,
|
||||
type: isEncrypted
|
||||
? ENCODING
|
||||
: ENCODING_NONE,
|
||||
version: ENCODING_VERSION
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user