fix(core): update

This commit is contained in:
Philipp Kunz 2022-12-22 17:23:23 +01:00
parent 90b3ff40f4
commit 239fd7f000
6 changed files with 10 additions and 14 deletions

View File

@ -40,4 +40,4 @@
"npmextra.json", "npmextra.json",
"readme.md" "readme.md"
] ]
} }

View File

@ -21,7 +21,6 @@ Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](htt
PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@pushrocks/webjwt)](https://lossless.cloud) PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@pushrocks/webjwt)](https://lossless.cloud)
PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@pushrocks/webjwt)](https://lossless.cloud) PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@pushrocks/webjwt)](https://lossless.cloud)
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@pushrocks/webjwt)](https://lossless.cloud) BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@pushrocks/webjwt)](https://lossless.cloud)
Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20Windows%2010/yes/green?icon=windows)](https://lossless.cloud) [![Supports Mac OS X](https://badgen.net/badge/supports%20Mac%20OS%20X/yes/green?icon=apple)](https://lossless.cloud)
## Usage ## Usage
@ -33,7 +32,6 @@ We are always happy for code contributions. If you are not the code contributing
For further information read the linked docs at the top of this readme. For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) ## Legal
> MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy) | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)

View File

@ -4,10 +4,10 @@ import * as webjwt from '../ts/index.js';
tap.test('first test', async () => { tap.test('first test', async () => {
const originalString = JSON.stringify({ const originalString = JSON.stringify({
a: { a: {
"complex_2": { complex_2: {
"object": "yes", object: 'yes',
} },
} },
}); });
const stringToDecode = `abc.${btoa(originalString)}.rthgf`; const stringToDecode = `abc.${btoa(originalString)}.rthgf`;
const result = webjwt.getDataFromJwtString(stringToDecode); const result = webjwt.getDataFromJwtString(stringToDecode);

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/webjwt', name: '@pushrocks/webjwt',
version: '1.0.3', version: '1.0.4',
description: 'a package to handle jwt in the web' description: 'a package to handle jwt in the web'
} }

View File

@ -13,4 +13,4 @@ export const getDataFromJwtString = <T = any>(jwtString: string): T => {
plainJsonString = buff.toString('ascii'); plainJsonString = buff.toString('ascii');
} }
return JSON.parse(plainJsonString); return JSON.parse(plainJsonString);
} };

View File

@ -1,5 +1,3 @@
import * as smartenv from '@pushrocks/smartenv'; import * as smartenv from '@pushrocks/smartenv';
export { export { smartenv };
smartenv
}