fix(core): update
This commit is contained in:
parent
523ab7ee77
commit
53bf2f3569
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartstring',
|
name: '@pushrocks/smartstring',
|
||||||
version: '4.0.3',
|
version: '4.0.4',
|
||||||
description: 'handle strings in smart ways. TypeScript ready.'
|
description: 'handle strings in smart ways. TypeScript ready.'
|
||||||
}
|
}
|
||||||
|
@ -3,14 +3,14 @@ import * as plugins from './smartstring.plugins.js';
|
|||||||
/**
|
/**
|
||||||
* the type for base 64
|
* the type for base 64
|
||||||
*/
|
*/
|
||||||
export type TBase64Input = 'string' | 'base64' | 'base64uri';
|
export type TStringInputType = 'string' | 'base64' | 'base64uri';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* handle base64 strings
|
* handle base64 strings
|
||||||
*/
|
*/
|
||||||
export class Base64 {
|
export class Base64 {
|
||||||
private refString: string;
|
private refString: string;
|
||||||
constructor(inputStringArg, typeArg: TBase64Input) {
|
constructor(inputStringArg, typeArg: TStringInputType) {
|
||||||
switch (typeArg) {
|
switch (typeArg) {
|
||||||
case 'string': // easiest case
|
case 'string': // easiest case
|
||||||
this.refString = inputStringArg;
|
this.refString = inputStringArg;
|
||||||
|
Loading…
Reference in New Issue
Block a user