8 Commits

Author SHA1 Message Date
8e0838e872 1.0.6 2022-12-31 20:49:34 +01:00
bae4429dde fix(core): update 2022-12-31 20:49:34 +01:00
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
90b3ff40f4 1.0.3 2022-12-22 17:21:44 +01:00
fcc2bc2759 fix(core): update 2022-12-22 17:21:43 +01:00
7 changed files with 71 additions and 82 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/webjwt",
"version": "1.0.2",
"version": "1.0.6",
"private": false,
"description": "a package to handle jwt in the web",
"main": "dist_ts/index.js",
@ -17,11 +17,14 @@
"@gitzone/tsbuild": "^2.1.25",
"@gitzone/tsbundle": "^2.0.5",
"@gitzone/tsdoc": "^1.1.10",
"@gitzone/tsrun": "^1.2.39",
"@gitzone/tstest": "^1.0.44",
"@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^17.0.41"
"@types/node": "^18.11.18"
},
"dependencies": {
"@pushrocks/smartstring": "^4.0.5"
},
"dependencies": {},
"browserslist": [
"last 1 chrome versions"
],

117
pnpm-lock.yaml generated
View File

@ -4,17 +4,23 @@ specifiers:
'@gitzone/tsbuild': ^2.1.25
'@gitzone/tsbundle': ^2.0.5
'@gitzone/tsdoc': ^1.1.10
'@gitzone/tsrun': ^1.2.39
'@gitzone/tstest': ^1.0.44
'@pushrocks/smartstring': ^4.0.5
'@pushrocks/tapbundle': ^5.0.3
'@types/node': ^17.0.41
'@types/node': ^18.11.18
dependencies:
'@pushrocks/smartstring': 4.0.5
devDependencies:
'@gitzone/tsbuild': 2.1.65
'@gitzone/tsbundle': 2.0.7
'@gitzone/tsdoc': 1.1.12
'@gitzone/tstest': 1.0.74_@types+node@17.0.45
'@gitzone/tsrun': 1.2.39_@types+node@18.11.18
'@gitzone/tstest': 1.0.74_@types+node@18.11.18
'@pushrocks/tapbundle': 5.0.4
'@types/node': 17.0.45
'@types/node': 18.11.18
packages:
@ -137,7 +143,7 @@ packages:
'@pushrocks/smartpromise': 3.1.7
'@pushrocks/smartspawn': 3.0.2
'@types/html-minifier': 4.0.2
'@types/node': 18.11.17
'@types/node': 18.11.18
esbuild: 0.14.54
html-minifier: 4.0.0
typescript: 4.9.4
@ -162,13 +168,13 @@ packages:
- supports-color
dev: true
/@gitzone/tsrun/1.2.39_@types+node@17.0.45:
/@gitzone/tsrun/1.2.39_@types+node@18.11.18:
resolution: {integrity: sha512-gLqKOic3T1GIdqsp+T5g1OewfboMJKKMr7/SJgBuMx4BUEBfW7TYhqk6psgfewhHs/zKII5rWbbPauykkKlYIg==}
hasBin: true
dependencies:
'@pushrocks/smartfile': 10.0.5
'@pushrocks/smartshell': 2.0.30
ts-node: 10.9.1_zpb5kzpnyozdjq4cwaojlul57u
ts-node: 10.9.1_awa2wsr5thmg3i7jqycphctjfq
typescript: 4.9.4
transitivePeerDependencies:
- '@swc/core'
@ -177,12 +183,12 @@ packages:
- supports-color
dev: true
/@gitzone/tstest/1.0.74_@types+node@17.0.45:
/@gitzone/tstest/1.0.74_@types+node@18.11.18:
resolution: {integrity: sha512-6V8bsfvpnODWqrkdooVqcOS1z5GA8dMDnLCOHnr/SUTeie3ox8KGpckwiZ+gTfz9WvzX6+KLVTZNYKGOaNbmMQ==}
hasBin: true
dependencies:
'@gitzone/tsbundle': 2.0.7
'@gitzone/tsrun': 1.2.39_@types+node@17.0.45
'@gitzone/tsrun': 1.2.39_@types+node@18.11.18
'@pushrocks/consolecolor': 2.0.1
'@pushrocks/smartbrowser': 2.0.5
'@pushrocks/smartdelay': 2.0.13
@ -322,13 +328,12 @@ packages:
/@pushrocks/isohash/2.0.0:
resolution: {integrity: sha512-a6Vktczk0Q39hBYTuAFqa12QNhy5GcFYhnJ5pqzpE5r3rj3FSS8HLqsoBUwB3b9YHGKYnbky9C3YNhMmFvoLPg==}
dependencies:
'@pushrocks/smartenv': 5.0.3
'@pushrocks/smartenv': 5.0.4
'@pushrocks/smarthash': 2.1.10
dev: true
/@pushrocks/isounique/1.0.5:
resolution: {integrity: sha512-XYeoKGkmIdsWX64NlPA1fuA41n/1bQ7LdYXytlU/QqYeW7ojgA0ARRhBSh/2phL6o0Jpw6K/7gJ8jc7ab/Tc+w==}
dev: true
/@pushrocks/lik/4.0.22:
resolution: {integrity: sha512-dg6Du7nr/SLU80yJw7a0zk2xX9Vc8SCLZaQMmSRBlsnL1/Z7qpWDOtpRC9VlL9vTLenbvwGTvPWMpOKyyNbiiA==}
@ -408,11 +413,10 @@ packages:
'@pushrocks/smartpromise': 3.1.7
dev: true
/@pushrocks/smartenv/5.0.3:
resolution: {integrity: sha512-/cgEDhOIo9LB5Vd2BVO9+QrjC38w872iy7w88UWuwz7obVILWOHl3MYMHAKFqXexuwKpQ/y/Klu2xQHtOPgi6Q==}
/@pushrocks/smartenv/5.0.4:
resolution: {integrity: sha512-/fVIgZ9LY0GkJQFQwTC06nqFEJhZeuJapa6SeQs3WGkGkgYeWO3DTscwxtUpZULUn7geuAFQrk+vW+lErXiksQ==}
dependencies:
'@pushrocks/smartpromise': 3.1.7
dev: true
/@pushrocks/smarterror/2.0.1:
resolution: {integrity: sha512-3OrF5me+/sy5VgwR/tfCqs7qhb0Ywzgn8tTThRUZnCGas0aindISzMiW7cIro3RlFykmtPmdTztC9Ostu2ioeA==}
@ -443,7 +447,7 @@ packages:
'@apiglobal/typedsocket': 2.0.12
'@pushrocks/lik': 6.0.0
'@pushrocks/smartdelay': 2.0.13
'@pushrocks/smartenv': 5.0.3
'@pushrocks/smartenv': 5.0.4
'@pushrocks/smartfeed': 1.0.11
'@pushrocks/smartfile': 10.0.5
'@pushrocks/smartmanifest': 1.0.8
@ -643,7 +647,6 @@ packages:
/@pushrocks/smartpromise/3.1.7:
resolution: {integrity: sha512-2gLQCeviEJwZ+cHHtK2Ks98brZatGC6dPXKIs1tVgJsiNgRFjnp90fESuJ1Pmoe7RrS+7J3mO4NtsFHAJJ/y5w==}
dev: true
/@pushrocks/smartpuppeteer/2.0.2:
resolution: {integrity: sha512-l3tqnD6Evseofq1avHsMy2FXXEmCd4Z+nm3xmMWS7nWvP9qTbJIn0XguOBaUIAhR8zE53UKPXs5/qBqXVNZDDQ==}
@ -709,7 +712,7 @@ packages:
'@pushrocks/isounique': 1.0.5
'@pushrocks/lik': 6.0.0
'@pushrocks/smartdelay': 2.0.13
'@pushrocks/smartenv': 5.0.3
'@pushrocks/smartenv': 5.0.4
'@pushrocks/smartexpress': 4.0.22
'@pushrocks/smartjson': 5.0.5
'@pushrocks/smartlog': 3.0.2
@ -750,7 +753,7 @@ packages:
resolution: {integrity: sha512-g9a/Mfj+eJAUrTDQoH3oaYegjI98WlVoSLAI8lpExQ/STlEJGO5ZdWDqgZ0HvHe+5UeWvxzCFpHifqRhMUJ+dQ==}
dependencies:
'@pushrocks/isounique': 1.0.5
'@pushrocks/smartenv': 5.0.3
'@pushrocks/smartenv': 5.0.4
'@types/randomatic': 3.1.3
buffer: 6.0.3
crypto-random-string: 4.0.0
@ -759,7 +762,6 @@ packages:
randomatic: 3.1.1
strip-indent: 4.0.0
url: 0.11.0
dev: true
/@pushrocks/smarttime/3.0.50:
resolution: {integrity: sha512-44NgDuNukCQIlPJFNORcDugp36Yj6HT6eZEWtn4M4HKlTFCQ8De+ztwGg+gRceucJ202zqLRKrXoh8dVdS3BaQ==}
@ -815,7 +817,7 @@ packages:
dependencies:
'@open-wc/testing': 3.1.7
'@pushrocks/smartdelay': 2.0.13
'@pushrocks/smartenv': 5.0.3
'@pushrocks/smartenv': 5.0.4
'@pushrocks/smartexpect': 1.0.14
'@pushrocks/smartpromise': 3.1.7
'@pushrocks/smarttime': 3.0.50
@ -830,7 +832,7 @@ packages:
dependencies:
'@adobe/helix-fetch': 3.1.2
'@pushrocks/smartdelay': 2.0.13
'@pushrocks/smartenv': 5.0.3
'@pushrocks/smartenv': 5.0.4
'@pushrocks/smartjson': 5.0.5
'@pushrocks/smartpromise': 3.1.7
'@pushrocks/webstore': 2.0.5
@ -843,7 +845,7 @@ packages:
dependencies:
'@apiglobal/typedrequest-interfaces': 1.0.20
'@pushrocks/lik': 6.0.0
'@pushrocks/smartenv': 5.0.3
'@pushrocks/smartenv': 5.0.4
'@pushrocks/smartjson': 5.0.5
'@pushrocks/smartpromise': 3.1.7
'@pushrocks/smartrx': 2.0.27
@ -904,7 +906,7 @@ packages:
/@types/accepts/1.3.5:
resolution: {integrity: sha512-jOdnI/3qTpHABjM5cx1Hc0sKsPoYCp+DP/GJRGtDlPd7fiV9oXGGIcjW/ZOxLIvjGz8MA+uMZI9metHlgqbgwQ==}
dependencies:
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/babel__code-frame/7.0.3:
@ -915,7 +917,7 @@ packages:
resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==}
dependencies:
'@types/connect': 3.4.35
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/buffer-json/2.0.1:
@ -935,14 +937,14 @@ packages:
/@types/clean-css/4.2.6:
resolution: {integrity: sha512-Ze1tf+LnGPmG6hBFMi0B4TEB0mhF7EiMM5oyjLDNPE9hxrPU0W+5+bHvO+eFPA+bt0iC1zkQMoU/iGdRVjcRbw==}
dependencies:
'@types/node': 18.11.17
'@types/node': 18.11.18
source-map: 0.6.1
dev: true
/@types/co-body/6.1.0:
resolution: {integrity: sha512-3e0q2jyDAnx/DSZi0z2H0yoZ2wt5yRDZ+P7ymcMObvq0ufWRT4tsajyO+Q1VwVWiv9PRR4W3YEjEzBjeZlhF+w==}
dependencies:
'@types/node': 18.11.17
'@types/node': 18.11.18
'@types/qs': 6.9.7
dev: true
@ -955,7 +957,7 @@ packages:
/@types/connect/3.4.35:
resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==}
dependencies:
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/content-disposition/0.5.5:
@ -976,13 +978,13 @@ packages:
'@types/connect': 3.4.35
'@types/express': 4.17.15
'@types/keygrip': 1.0.2
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/cors/2.8.13:
resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==}
dependencies:
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/debounce/1.2.1:
@ -996,7 +998,7 @@ packages:
/@types/express-serve-static-core/4.17.31:
resolution: {integrity: sha512-DxMhY+NAsTwMMFHBTtJFNp5qiHKJ7TeqOo23zVEM9alT1Ml27Q3xcTH0xwxn7Q0BbMcVEJOs/7aQtUWupUQN3Q==}
dependencies:
'@types/node': 18.11.17
'@types/node': 18.11.18
'@types/qs': 6.9.7
'@types/range-parser': 1.2.4
dev: true
@ -1020,26 +1022,26 @@ packages:
/@types/finalhandler/1.2.0:
resolution: {integrity: sha512-NgEZKOhxUSXkwNnWNaMXZaopQ5aFGPAYiEpEWIkQ6Dzc4iS0M1oQsvWne2t+ex9QZUAdTz/ZT4tOXJhWtP6mCw==}
dependencies:
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/from2/2.3.2:
resolution: {integrity: sha512-s1pdctxW2+CA4FOxxTBRxC3RKQL9Br1a2s2LngP4jh1BI84JBL3mDXj87EwcckN9z/IXp8o3ySmvZveGEAAwqw==}
dependencies:
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/fs-extra/9.0.13:
resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==}
dependencies:
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/glob/8.0.0:
resolution: {integrity: sha512-l6NQsDDyQUVeoTynNpC9uRvCUint/gSUXQA2euwmTuWGvPY5LSDUu6tkCtJB2SvGQlJQzLaKqcGZP4//7EDveA==}
dependencies:
'@types/minimatch': 5.1.2
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/html-minifier/4.0.2:
@ -1106,7 +1108,7 @@ packages:
'@types/http-errors': 2.0.1
'@types/keygrip': 1.0.2
'@types/koa-compose': 3.2.5
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/lodash.clonedeep/4.5.7:
@ -1135,12 +1137,8 @@ packages:
resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==}
dev: true
/@types/node/17.0.45:
resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==}
dev: true
/@types/node/18.11.17:
resolution: {integrity: sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng==}
/@types/node/18.11.18:
resolution: {integrity: sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==}
dev: true
/@types/parse5/6.0.3:
@ -1157,7 +1155,6 @@ packages:
/@types/randomatic/3.1.3:
resolution: {integrity: sha512-UlYMg/XxN+YMh6vAiB879yh2bhaTOU0DB1g4NGIhzlaiSf22rAVKIGTvH8HjCXu+wfFvjAWHuPG5waN4btEubw==}
dev: true
/@types/range-parser/1.2.4:
resolution: {integrity: sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==}
@ -1171,7 +1168,7 @@ packages:
resolution: {integrity: sha512-z5xyF6uh8CbjAu9760KDKsH2FcDxZ2tFCsA4HIMWE6IkiYMXfVoa+4f9KX+FN0ZLsaMw1WNG2ETLA6N+/YA+cg==}
dependencies:
'@types/mime': 3.0.1
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/shortid/0.0.29:
@ -1202,7 +1199,7 @@ packages:
/@types/through2/2.0.38:
resolution: {integrity: sha512-YFu+nHmjxMurkH1BSzA0Z1WrKDAY8jUKPZctNQn7mc+/KKtp2XxnclHFXxdB1m7Iqnzb5aywgP8TMK283LezGQ==}
dependencies:
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/trusted-types/2.0.2:
@ -1226,14 +1223,14 @@ packages:
/@types/ws/7.4.7:
resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==}
dependencies:
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
/@types/yauzl/2.10.0:
resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==}
requiresBuild: true
dependencies:
'@types/node': 18.11.17
'@types/node': 18.11.18
dev: true
optional: true
@ -1328,6 +1325,11 @@ packages:
- utf-8-validate
dev: true
/@xmldom/xmldom/0.8.6:
resolution: {integrity: sha512-uRjjusqpoqfmRkTaNuLJ2VohVr67Q5YwDATW3VU7PfzTj6IRaihGrYI7zckGZjxQPBIp63nfvJbM+Yu5ICh0Bg==}
engines: {node: '>=10.0.0'}
dev: true
/accepts/1.3.8:
resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==}
engines: {node: '>= 0.6'}
@ -1462,7 +1464,6 @@ packages:
/base64-js/1.5.1:
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
dev: true
/base64id/2.0.0:
resolution: {integrity: sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==}
@ -1542,7 +1543,6 @@ packages:
dependencies:
base64-js: 1.5.1
ieee754: 1.2.1
dev: true
/bytes/3.1.2:
resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}
@ -1789,7 +1789,6 @@ packages:
engines: {node: '>=12'}
dependencies:
type-fest: 1.4.0
dev: true
/dayjs/1.11.7:
resolution: {integrity: sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ==}
@ -1971,7 +1970,7 @@ packages:
dependencies:
'@types/cookie': 0.4.1
'@types/cors': 2.8.13
'@types/node': 18.11.17
'@types/node': 18.11.18
accepts: 1.3.8
base64id: 2.0.0
cookie: 0.4.2
@ -2684,7 +2683,6 @@ packages:
/ieee754/1.2.1:
resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
dev: true
/ignore/5.2.4:
resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==}
@ -2785,7 +2783,6 @@ packages:
/is-number/4.0.0:
resolution: {integrity: sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==}
engines: {node: '>=0.10.0'}
dev: true
/is-number/7.0.0:
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
@ -2864,7 +2861,6 @@ packages:
/js-base64/3.7.3:
resolution: {integrity: sha512-PAr6Xg2jvd7MCR6Ld9Jg3BmTcjYsHEBx1VlwEwULb/qowPf5VD9kEMagj23Gm7JRnSvE/Da/57nChZjnvL8v6A==}
dev: true
/js-tokens/4.0.0:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
@ -2917,7 +2913,6 @@ packages:
/kind-of/6.0.3:
resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==}
engines: {node: '>=0.10.0'}
dev: true
/koa-compose/4.1.0:
resolution: {integrity: sha512-8ODW8TrDuMYvXRwra/Kh7/rJo9BtOfPc6qO8eAfC80CnCvSjSl0bkRM24X6/XBBEyj0v1nRUQ1LyOy3dbqOWXw==}
@ -3151,7 +3146,6 @@ packages:
/math-random/1.0.4:
resolution: {integrity: sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==}
dev: true
/media-typer/0.3.0:
resolution: {integrity: sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=}
@ -3216,7 +3210,6 @@ packages:
/min-indent/1.0.1:
resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==}
engines: {node: '>=4'}
dev: true
/minimatch/3.1.2:
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
@ -3295,7 +3288,6 @@ packages:
engines: {node: '>=12'}
dependencies:
replace-buffer: 1.2.1
dev: true
/normalize-path/3.0.0:
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
@ -3453,6 +3445,8 @@ packages:
resolution: {integrity: sha512-mXF9AIgnvq1DP/ZM2R28tAfxP2wKZHYa2DjV0R1KCwcqSzm5Iqh1XQq9rdfAt6dp2DuPP0VHZIaCALc2v1cL5A==}
engines: {node: '>=14.18.0', npm: '>=6.14.15'}
hasBin: true
dependencies:
'@xmldom/xmldom': 0.8.6
dev: true
bundledDependencies:
- '@xmldom/xmldom'
@ -3540,7 +3534,6 @@ packages:
/punycode/1.3.2:
resolution: {integrity: sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=}
dev: true
/punycode/2.1.1:
resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==}
@ -3587,7 +3580,6 @@ packages:
resolution: {integrity: sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=}
engines: {node: '>=0.4.x'}
deprecated: The
dev: true
/queue-microtask/1.2.3:
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
@ -3605,7 +3597,6 @@ packages:
is-number: 4.0.0
kind-of: 6.0.3
math-random: 1.0.4
dev: true
/range-parser/1.2.1:
resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==}
@ -3666,7 +3657,6 @@ packages:
/replace-buffer/1.2.1:
resolution: {integrity: sha512-ly3OKwKu+3T55DjP5PjIMzxgz9lFx6dQnBmAIxryZyRKl8f22juy12ShOyuq8WrQE5UlFOseZgQZDua0iF9DHw==}
engines: {node: '>=4'}
dev: true
/resolve-alpn/1.2.1:
resolution: {integrity: sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==}
@ -3957,7 +3947,6 @@ packages:
engines: {node: '>=12'}
dependencies:
min-indent: 1.0.1
dev: true
/strnum/1.0.5:
resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==}
@ -4069,7 +4058,7 @@ packages:
hasBin: true
dev: true
/ts-node/10.9.1_zpb5kzpnyozdjq4cwaojlul57u:
/ts-node/10.9.1_awa2wsr5thmg3i7jqycphctjfq:
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
hasBin: true
peerDependencies:
@ -4088,7 +4077,7 @@ packages:
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.3
'@types/node': 17.0.45
'@types/node': 18.11.18
acorn: 8.8.1
acorn-walk: 8.2.0
arg: 4.1.3
@ -4117,7 +4106,6 @@ packages:
/type-fest/1.4.0:
resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==}
engines: {node: '>=10'}
dev: true
/type-fest/2.19.0:
resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==}
@ -4219,7 +4207,6 @@ packages:
dependencies:
punycode: 1.3.2
querystring: 0.2.0
dev: true
/util-deprecate/1.0.2:
resolution: {integrity: sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=}

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 (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)

View File

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

View File

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

View File

@ -3,6 +3,6 @@ import * as plugins from './webjwt.plugins.js';
export const getDataFromJwtString = <T = any>(jwtString: string): T => {
const splitted = jwtString.split('.');
const dataBase64 = splitted[1];
// @ts-ignore
return JSON.parse(atob(dataBase64));
}
const plainJsonString = plugins.smartstring.base64.decode(dataBase64);
return JSON.parse(plainJsonString);
};

View File

@ -1,2 +1,3 @@
const removeme = {};
export { removeme };
import * as smartstring from '@pushrocks/smartstring';
export { smartstring };