Compare commits

..

2 Commits

Author SHA1 Message Date
36bcb9265a 4.0.4 2022-09-13 19:13:04 +02:00
53bf2f3569 fix(core): update 2022-09-13 19:13:04 +02:00
4 changed files with 6 additions and 6 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@pushrocks/smartstring", "name": "@pushrocks/smartstring",
"version": "4.0.3", "version": "4.0.4",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@pushrocks/smartstring", "name": "@pushrocks/smartstring",
"version": "4.0.3", "version": "4.0.4",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@pushrocks/isounique": "^1.0.5", "@pushrocks/isounique": "^1.0.5",

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartstring", "name": "@pushrocks/smartstring",
"version": "4.0.3", "version": "4.0.4",
"private": false, "private": false,
"description": "handle strings in smart ways. TypeScript ready.", "description": "handle strings in smart ways. TypeScript ready.",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -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.'
} }

View File

@ -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;