Files
notification-elements-demo/node_modules/@jsonjoy.com/base64/lib/toBase64.js
Giuliano Silvestro 5d0c9ec7eb Initial commit: notification-elements-demo app
Interactive Angular 19 demo for @sda/notification-elements-ui with
6 sections: Bell & Feed, Notification Center, Inbox, Comments &
Threads, Mention Input, and Full-Featured layout. Includes mock
data, dark mode toggle, and real-time event log.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 21:49:19 +10:00

15 lines
580 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toBase64 = void 0;
const constants_1 = require("./constants");
const createToBase64_1 = require("./createToBase64");
const encodeSmall = (0, createToBase64_1.createToBase64)();
exports.toBase64 = !constants_1.hasBuffer
? (uint8) => encodeSmall(uint8, uint8.length)
: (uint8) => {
const length = uint8.length;
if (length <= 48)
return encodeSmall(uint8, length);
return Buffer.from(uint8).toString('base64');
};
//# sourceMappingURL=toBase64.js.map