"use strict"; var Base64Encoder = (function () { function Base64Encoder() { } Base64Encoder.prototype.getDisplayname = function () { return "Encode Base 64"; }; Base64Encoder.prototype.getId = function () { return "base64encode"; }; Base64Encoder.prototype.convert = function (input) { try { return btoa(input); } catch (exception) { console.error(exception); throw new Error("Ouch! Looks like you've got a UTF-8 character there. Too bad, this is not supported yet. We're working on it and hope to be ready soon! Why don't you enjoy some kittens meanwhile?"); } }; return Base64Encoder; }()); exports.Base64Encoder = Base64Encoder;