import { MethodNotImplemented } from "../errors/common" ; deprecated export class Base64 { static encode ( data ) { return data . toString ( 'base64' ) . replace ( /\+/g , '-' ) . replace ( /\//g , '_' ) . replace ( /=+$/g , '' ) ; } static decode ( data ) { throw new MethodNotImplemented ( ) ; } }