1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.toUtf8 = exports.fromUtf8 = void 0;
|
4 | const pureJs_1 = require("./pureJs");
|
5 | const whatwgEncodingApi_1 = require("./whatwgEncodingApi");
|
6 | const fromUtf8 = (input) => typeof TextEncoder === "function" ? (0, whatwgEncodingApi_1.fromUtf8)(input) : (0, pureJs_1.fromUtf8)(input);
|
7 | exports.fromUtf8 = fromUtf8;
|
8 | const toUtf8 = (input) => typeof TextDecoder === "function" ? (0, whatwgEncodingApi_1.toUtf8)(input) : (0, pureJs_1.toUtf8)(input);
|
9 | exports.toUtf8 = toUtf8;
|