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 | [](htt
|
||||
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
||||
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
||||
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
|
||||
Platform support | [](https://lossless.cloud) [](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)
|
||||
|
||||
[](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…
x
Reference in New Issue
Block a user