fix(core): update

This commit is contained in:
Philipp Kunz 2022-12-31 20:49:34 +01:00
parent 93cbd9bcbe
commit bae4429dde
5 changed files with 48 additions and 76 deletions

View File

@ -20,10 +20,10 @@
"@gitzone/tsrun": "^1.2.39",
"@gitzone/tstest": "^1.0.44",
"@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^18.11.17"
"@types/node": "^18.11.18"
},
"dependencies": {
"@pushrocks/smartenv": "^5.0.3"
"@pushrocks/smartstring": "^4.0.5"
},
"browserslist": [
"last 1 chrome versions"

View File

@ -6,21 +6,21 @@ specifiers:
'@gitzone/tsdoc': ^1.1.10
'@gitzone/tsrun': ^1.2.39
'@gitzone/tstest': ^1.0.44
'@pushrocks/smartenv': ^5.0.3
'@pushrocks/smartstring': ^4.0.5
'@pushrocks/tapbundle': ^5.0.3
'@types/node': ^18.11.17
'@types/node': ^18.11.18
dependencies:
'@pushrocks/smartenv': 5.0.3
'@pushrocks/smartstring': 4.0.5
devDependencies:
'@gitzone/tsbuild': 2.1.65
'@gitzone/tsbundle': 2.0.7
'@gitzone/tsdoc': 1.1.12
'@gitzone/tsrun': 1.2.39_@types+node@18.11.17
'@gitzone/tstest': 1.0.74_@types+node@18.11.17
'@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': 18.11.17
'@types/node': 18.11.18
packages:
@ -143,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
@ -168,13 +168,13 @@ packages:
- supports-color
dev: true
/@gitzone/tsrun/1.2.39_@types+node@18.11.17:
/@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_moeqx3xmzxqxagf2sz6mqkbb7m
ts-node: 10.9.1_awa2wsr5thmg3i7jqycphctjfq
typescript: 4.9.4
transitivePeerDependencies:
- '@swc/core'
@ -183,12 +183,12 @@ packages:
- supports-color
dev: true
/@gitzone/tstest/1.0.74_@types+node@18.11.17:
/@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@18.11.17
'@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
@ -328,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==}
@ -414,8 +413,8 @@ 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
@ -448,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
@ -713,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
@ -754,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
@ -763,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==}
@ -819,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
@ -834,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
@ -847,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
@ -908,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:
@ -919,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:
@ -939,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
@ -959,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:
@ -980,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:
@ -1000,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
@ -1024,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:
@ -1110,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:
@ -1139,8 +1137,8 @@ packages:
resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==}
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
@ -1467,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==}
@ -1547,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==}
@ -1794,7 +1789,6 @@ packages:
engines: {node: '>=12'}
dependencies:
type-fest: 1.4.0
dev: true
/dayjs/1.11.7:
resolution: {integrity: sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ==}
@ -1976,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
@ -2689,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==}
@ -2790,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==}
@ -2869,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==}
@ -2922,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==}
@ -3156,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=}
@ -3221,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==}
@ -3300,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==}
@ -3547,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==}
@ -3594,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==}
@ -3612,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==}
@ -3673,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==}
@ -3964,7 +3947,6 @@ packages:
engines: {node: '>=12'}
dependencies:
min-indent: 1.0.1
dev: true
/strnum/1.0.5:
resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==}
@ -4076,7 +4058,7 @@ packages:
hasBin: true
dev: true
/ts-node/10.9.1_moeqx3xmzxqxagf2sz6mqkbb7m:
/ts-node/10.9.1_awa2wsr5thmg3i7jqycphctjfq:
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
hasBin: true
peerDependencies:
@ -4095,7 +4077,7 @@ packages:
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.3
'@types/node': 18.11.17
'@types/node': 18.11.18
acorn: 8.8.1
acorn-walk: 8.2.0
arg: 4.1.3
@ -4124,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==}
@ -4226,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

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

View File

@ -1,16 +1,8 @@
import * as plugins from './webjwt.plugins.js';
export const getDataFromJwtString = <T = any>(jwtString: string): T => {
const smartenvInstance = new plugins.smartenv.Smartenv();
const splitted = jwtString.split('.');
const dataBase64 = splitted[1];
let plainJsonString: string;
if (smartenvInstance.isBrowser) {
// @ts-ignore
plainJsonString = atob(dataBase64);
} else if (smartenvInstance.isNode) {
let buff = new Buffer(dataBase64, 'base64');
plainJsonString = buff.toString('ascii');
}
const plainJsonString = plugins.smartstring.base64.decode(dataBase64);
return JSON.parse(plainJsonString);
};

View File

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