4 Commits

Author SHA1 Message Date
93cbd9bcbe 1.0.5 2022-12-22 17:32:31 +01:00
b716e160e0 fix(core): update 2022-12-22 17:32:30 +01:00
63c8dcd1a5 1.0.4 2022-12-22 17:23:23 +01:00
239fd7f000 fix(core): update 2022-12-22 17:23:23 +01:00
7 changed files with 21 additions and 29 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/webjwt", "name": "@pushrocks/webjwt",
"version": "1.0.3", "version": "1.0.5",
"private": false, "private": false,
"description": "a package to handle jwt in the web", "description": "a package to handle jwt in the web",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
@ -20,7 +20,7 @@
"@gitzone/tsrun": "^1.2.39", "@gitzone/tsrun": "^1.2.39",
"@gitzone/tstest": "^1.0.44", "@gitzone/tstest": "^1.0.44",
"@pushrocks/tapbundle": "^5.0.3", "@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^17.0.41" "@types/node": "^18.11.17"
}, },
"dependencies": { "dependencies": {
"@pushrocks/smartenv": "^5.0.3" "@pushrocks/smartenv": "^5.0.3"

24
pnpm-lock.yaml generated
View File

@ -8,7 +8,7 @@ specifiers:
'@gitzone/tstest': ^1.0.44 '@gitzone/tstest': ^1.0.44
'@pushrocks/smartenv': ^5.0.3 '@pushrocks/smartenv': ^5.0.3
'@pushrocks/tapbundle': ^5.0.3 '@pushrocks/tapbundle': ^5.0.3
'@types/node': ^17.0.41 '@types/node': ^18.11.17
dependencies: dependencies:
'@pushrocks/smartenv': 5.0.3 '@pushrocks/smartenv': 5.0.3
@ -17,10 +17,10 @@ devDependencies:
'@gitzone/tsbuild': 2.1.65 '@gitzone/tsbuild': 2.1.65
'@gitzone/tsbundle': 2.0.7 '@gitzone/tsbundle': 2.0.7
'@gitzone/tsdoc': 1.1.12 '@gitzone/tsdoc': 1.1.12
'@gitzone/tsrun': 1.2.39_@types+node@17.0.45 '@gitzone/tsrun': 1.2.39_@types+node@18.11.17
'@gitzone/tstest': 1.0.74_@types+node@17.0.45 '@gitzone/tstest': 1.0.74_@types+node@18.11.17
'@pushrocks/tapbundle': 5.0.4 '@pushrocks/tapbundle': 5.0.4
'@types/node': 17.0.45 '@types/node': 18.11.17
packages: packages:
@ -168,13 +168,13 @@ packages:
- supports-color - supports-color
dev: true dev: true
/@gitzone/tsrun/1.2.39_@types+node@17.0.45: /@gitzone/tsrun/1.2.39_@types+node@18.11.17:
resolution: {integrity: sha512-gLqKOic3T1GIdqsp+T5g1OewfboMJKKMr7/SJgBuMx4BUEBfW7TYhqk6psgfewhHs/zKII5rWbbPauykkKlYIg==} resolution: {integrity: sha512-gLqKOic3T1GIdqsp+T5g1OewfboMJKKMr7/SJgBuMx4BUEBfW7TYhqk6psgfewhHs/zKII5rWbbPauykkKlYIg==}
hasBin: true hasBin: true
dependencies: dependencies:
'@pushrocks/smartfile': 10.0.5 '@pushrocks/smartfile': 10.0.5
'@pushrocks/smartshell': 2.0.30 '@pushrocks/smartshell': 2.0.30
ts-node: 10.9.1_zpb5kzpnyozdjq4cwaojlul57u ts-node: 10.9.1_moeqx3xmzxqxagf2sz6mqkbb7m
typescript: 4.9.4 typescript: 4.9.4
transitivePeerDependencies: transitivePeerDependencies:
- '@swc/core' - '@swc/core'
@ -183,12 +183,12 @@ packages:
- supports-color - supports-color
dev: true dev: true
/@gitzone/tstest/1.0.74_@types+node@17.0.45: /@gitzone/tstest/1.0.74_@types+node@18.11.17:
resolution: {integrity: sha512-6V8bsfvpnODWqrkdooVqcOS1z5GA8dMDnLCOHnr/SUTeie3ox8KGpckwiZ+gTfz9WvzX6+KLVTZNYKGOaNbmMQ==} resolution: {integrity: sha512-6V8bsfvpnODWqrkdooVqcOS1z5GA8dMDnLCOHnr/SUTeie3ox8KGpckwiZ+gTfz9WvzX6+KLVTZNYKGOaNbmMQ==}
hasBin: true hasBin: true
dependencies: dependencies:
'@gitzone/tsbundle': 2.0.7 '@gitzone/tsbundle': 2.0.7
'@gitzone/tsrun': 1.2.39_@types+node@17.0.45 '@gitzone/tsrun': 1.2.39_@types+node@18.11.17
'@pushrocks/consolecolor': 2.0.1 '@pushrocks/consolecolor': 2.0.1
'@pushrocks/smartbrowser': 2.0.5 '@pushrocks/smartbrowser': 2.0.5
'@pushrocks/smartdelay': 2.0.13 '@pushrocks/smartdelay': 2.0.13
@ -1139,10 +1139,6 @@ packages:
resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==}
dev: true dev: true
/@types/node/17.0.45:
resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==}
dev: true
/@types/node/18.11.17: /@types/node/18.11.17:
resolution: {integrity: sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng==} resolution: {integrity: sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng==}
dev: true dev: true
@ -4080,7 +4076,7 @@ packages:
hasBin: true hasBin: true
dev: true dev: true
/ts-node/10.9.1_zpb5kzpnyozdjq4cwaojlul57u: /ts-node/10.9.1_moeqx3xmzxqxagf2sz6mqkbb7m:
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
hasBin: true hasBin: true
peerDependencies: peerDependencies:
@ -4099,7 +4095,7 @@ packages:
'@tsconfig/node12': 1.0.11 '@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3 '@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.3 '@tsconfig/node16': 1.0.3
'@types/node': 17.0.45 '@types/node': 18.11.17
acorn: 8.8.1 acorn: 8.8.1
acorn-walk: 8.2.0 acorn-walk: 8.2.0
arg: 4.1.3 arg: 4.1.3

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.5',
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
}