fix(core): update

This commit is contained in:
Philipp Kunz 2022-09-13 19:13:04 +02:00
parent 523ab7ee77
commit 53bf2f3569
2 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartstring',
version: '4.0.3',
version: '4.0.4',
description: 'handle strings in smart ways. TypeScript ready.'
}

View File

@ -3,14 +3,14 @@ import * as plugins from './smartstring.plugins.js';
/**
* the type for base 64
*/
export type TBase64Input = 'string' | 'base64' | 'base64uri';
export type TStringInputType = 'string' | 'base64' | 'base64uri';
/**
* handle base64 strings
*/
export class Base64 {
private refString: string;
constructor(inputStringArg, typeArg: TBase64Input) {
constructor(inputStringArg, typeArg: TStringInputType) {
switch (typeArg) {
case 'string': // easiest case
this.refString = inputStringArg;