fix(core): update
This commit is contained in:
parent
90b3ff40f4
commit
239fd7f000
@ -40,4 +40,4 @@
|
||||
"npmextra.json",
|
||||
"readme.md"
|
||||
]
|
||||
}
|
||||
}
|
@ -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 (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)
|
||||
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
|
||||
|
||||
@ -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.
|
||||
|
||||
> 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)
|
||||
|
||||
[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)
|
||||
|
@ -4,10 +4,10 @@ import * as webjwt from '../ts/index.js';
|
||||
tap.test('first test', async () => {
|
||||
const originalString = JSON.stringify({
|
||||
a: {
|
||||
"complex_2": {
|
||||
"object": "yes",
|
||||
}
|
||||
}
|
||||
complex_2: {
|
||||
object: 'yes',
|
||||
},
|
||||
},
|
||||
});
|
||||
const stringToDecode = `abc.${btoa(originalString)}.rthgf`;
|
||||
const result = webjwt.getDataFromJwtString(stringToDecode);
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/webjwt',
|
||||
version: '1.0.3',
|
||||
version: '1.0.4',
|
||||
description: 'a package to handle jwt in the web'
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ export const getDataFromJwtString = <T = any>(jwtString: string): T => {
|
||||
plainJsonString = buff.toString('ascii');
|
||||
}
|
||||
return JSON.parse(plainJsonString);
|
||||
}
|
||||
};
|
||||
|
@ -1,5 +1,3 @@
|
||||
import * as smartenv from '@pushrocks/smartenv';
|
||||
|
||||
export {
|
||||
smartenv
|
||||
}
|
||||
export { smartenv };
|
||||
|
Loading…
Reference in New Issue
Block a user