fix(core): update

This commit is contained in:
Philipp Kunz 2024-02-29 19:50:25 +01:00
parent ad106909e2
commit 407e1383f8
6 changed files with 190 additions and 106 deletions

View File

@ -14,23 +14,24 @@
"buildDocs": "tsdoc"
},
"devDependencies": {
"@api.global/typedserver": "^3.0.24",
"@api.global/typedserver": "^3.0.25",
"@git.zone/tsbuild": "^2.1.72",
"@git.zone/tsbundle": "^2.0.15",
"@git.zone/tsrun": "^1.2.44",
"@git.zone/tstest": "^1.0.86",
"@push.rocks/smartenv": "^5.0.12",
"@push.rocks/tapbundle": "^5.0.15",
"@types/node": "^20.11.20"
"@types/node": "^20.11.24"
},
"dependencies": {
"@api.global/typedrequest-interfaces": "^3.0.17",
"@api.global/typedrequest-interfaces": "^3.0.18",
"@push.rocks/isounique": "^1.0.5",
"@push.rocks/lik": "^6.0.13",
"@push.rocks/lik": "^6.0.14",
"@push.rocks/smartbuffer": "^1.0.6",
"@push.rocks/smartdelay": "^3.0.5",
"@push.rocks/smartpromise": "^4.0.3",
"@push.rocks/webrequest": "^3.0.34"
"@push.rocks/webrequest": "^3.0.34",
"@push.rocks/webstream": "^1.0.8"
},
"files": [
"ts/**/*",

View File

@ -6,14 +6,14 @@ settings:
dependencies:
'@api.global/typedrequest-interfaces':
specifier: ^3.0.17
version: 3.0.17
specifier: ^3.0.18
version: 3.0.18
'@push.rocks/isounique':
specifier: ^1.0.5
version: 1.0.5
'@push.rocks/lik':
specifier: ^6.0.13
version: 6.0.13
specifier: ^6.0.14
version: 6.0.14
'@push.rocks/smartbuffer':
specifier: ^1.0.6
version: 1.0.6
@ -26,11 +26,14 @@ dependencies:
'@push.rocks/webrequest':
specifier: ^3.0.34
version: 3.0.34
'@push.rocks/webstream':
specifier: ^1.0.8
version: 1.0.8
devDependencies:
'@api.global/typedserver':
specifier: ^3.0.24
version: 3.0.24
specifier: ^3.0.25
version: 3.0.25
'@git.zone/tsbuild':
specifier: ^2.1.72
version: 2.1.72
@ -39,10 +42,10 @@ devDependencies:
version: 2.0.15
'@git.zone/tsrun':
specifier: ^1.2.44
version: 1.2.46(@types/node@20.11.20)
version: 1.2.46(@types/node@20.11.24)
'@git.zone/tstest':
specifier: ^1.0.86
version: 1.0.86(@types/node@20.11.20)(sinon@17.0.1)
version: 1.0.86(@types/node@20.11.24)(sinon@17.0.1)
'@push.rocks/smartenv':
specifier: ^5.0.12
version: 5.0.12
@ -50,38 +53,39 @@ devDependencies:
specifier: ^5.0.15
version: 5.0.15(sinon@17.0.1)
'@types/node':
specifier: ^20.11.20
version: 20.11.20
specifier: ^20.11.24
version: 20.11.24
packages:
/@api.global/typedrequest-interfaces@3.0.17:
resolution: {integrity: sha512-bbSNnhwgi9GOdxEMC0Sr776/7apJFjp9C3WnNUftptGvFhRQfOre6ifTwDKdFnAzZWH2A4g+hg16dbeqIL/vtA==}
/@api.global/typedrequest-interfaces@3.0.18:
resolution: {integrity: sha512-O/AdHnk9NDcBfb/Qcpi3Bq/7I6uAJHXfIT5peeKODvLUYysmuxG/c3t9NWQvfSOXQUKnVKb0WrCGjraOL7Pyww==}
/@api.global/typedrequest@3.0.4:
resolution: {integrity: sha512-8UThH9c3MxdSLiON8UN1CPXooU6Mp0eleFhVS3QB2OUsYqgEGn/EzuMt+cMIv/+ESSS6zcTpHvAhZ8ZMLfpL8A==}
/@api.global/typedrequest@3.0.8:
resolution: {integrity: sha512-PF53rR33fHVLOvN1IQXkPlaqc7L8Q2LwHN1tb0raPh6qxS4x3jE6WXC1bJwPqGxDACSZyw9kf052MG0YABXKRA==}
dependencies:
'@api.global/typedrequest-interfaces': 3.0.17
'@api.global/typedrequest-interfaces': 3.0.18
'@push.rocks/isounique': 1.0.5
'@push.rocks/lik': 6.0.13
'@push.rocks/lik': 6.0.14
'@push.rocks/smartbuffer': 1.0.6
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartpromise': 4.0.3
'@push.rocks/webrequest': 3.0.34
dev: true
/@api.global/typedserver@3.0.24:
resolution: {integrity: sha512-aRzdJyws7cQ+uHZqgV5n9CudDscSHiefGBiUgrD9oKV+WUCnhgJSqYp6hoSp/lt2FqutdDOiw1MWsfApQRtTgw==}
/@api.global/typedserver@3.0.25:
resolution: {integrity: sha512-3cci307/AtM2GqPzIJ1SqU1oi9Kj1WhpUNFPjPwvG0nbXK4HSp1nFBk5P6z+bqBj19grhzQRiMl9YbvtWwJVQQ==}
dependencies:
'@api.global/typedrequest': 3.0.4
'@api.global/typedrequest-interfaces': 3.0.17
'@api.global/typedrequest': 3.0.8
'@api.global/typedrequest-interfaces': 3.0.18
'@api.global/typedsocket': 3.0.0
'@push.rocks/lik': 6.0.13
'@push.rocks/smartchok': 1.0.32
'@push.rocks/lik': 6.0.14
'@push.rocks/smartchok': 1.0.33
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartenv': 5.0.12
'@push.rocks/smartfeed': 1.0.11
'@push.rocks/smartfile': 11.0.4
'@push.rocks/smartjson': 5.0.10
'@push.rocks/smartjson': 5.0.11
'@push.rocks/smartlog': 3.0.3
'@push.rocks/smartlog-destination-devtools': 1.0.10
'@push.rocks/smartmanifest': 2.0.2
@ -92,14 +96,14 @@ packages:
'@push.rocks/smartrequest': 2.0.21
'@push.rocks/smartrx': 3.0.7
'@push.rocks/smartsitemap': 2.0.3
'@push.rocks/smartstream': 3.0.30
'@push.rocks/smartstream': 3.0.33
'@push.rocks/smarttime': 4.0.6
'@push.rocks/webstore': 2.0.13
'@tsclass/tsclass': 4.0.52
'@types/express': 4.17.21
body-parser: 1.20.2
cors: 2.8.5
express: 4.18.2
express: 4.18.3
express-force-ssl: 0.3.2
lit: 3.1.2
transitivePeerDependencies:
@ -111,10 +115,10 @@ packages:
/@api.global/typedsocket@3.0.0:
resolution: {integrity: sha512-ui+6MLd99iTN/lC+iC/FKPRjzVyiZ4PrmlU6ptbCtbBj3cSOXHx+RRGF54+be2xHodf4FOgwFv/GZdW8LtO3vg==}
dependencies:
'@api.global/typedrequest': 3.0.4
'@api.global/typedrequest-interfaces': 3.0.17
'@api.global/typedrequest': 3.0.8
'@api.global/typedrequest-interfaces': 3.0.18
'@push.rocks/isohash': 2.0.1
'@push.rocks/smartjson': 5.0.10
'@push.rocks/smartjson': 5.0.11
'@push.rocks/smartrx': 3.0.7
'@push.rocks/smartsocket': 2.0.24
'@push.rocks/smartstring': 4.0.13
@ -403,13 +407,13 @@ packages:
- supports-color
dev: true
/@git.zone/tsrun@1.2.46(@types/node@20.11.20):
/@git.zone/tsrun@1.2.46(@types/node@20.11.24):
resolution: {integrity: sha512-8miFVBle9Mnjx+uPGI/P+EuWcIOXWjBAkdjN5IYbdp5Ytt4xQODCLh4JSnC9h56UeU1nUxCAxZeJs2e9TXrivA==}
hasBin: true
dependencies:
'@push.rocks/smartfile': 10.0.33
'@push.rocks/smartshell': 3.0.3
ts-node: 10.9.1(@types/node@20.11.20)(typescript@5.1.6)
ts-node: 10.9.1(@types/node@20.11.24)(typescript@5.1.6)
typescript: 5.1.6
transitivePeerDependencies:
- '@swc/core'
@ -418,13 +422,13 @@ packages:
- supports-color
dev: true
/@git.zone/tstest@1.0.86(@types/node@20.11.20)(sinon@17.0.1):
/@git.zone/tstest@1.0.86(@types/node@20.11.24)(sinon@17.0.1):
resolution: {integrity: sha512-ec95MNeA21L+ob+lvLVCmwPTTC1BY+v/JHLYZ9DOZ9+9buLgx+cJ7VkwGBJCnlWJtqEtJosUrFKTih36iNuT3g==}
hasBin: true
dependencies:
'@api.global/typedserver': 3.0.24
'@api.global/typedserver': 3.0.25
'@git.zone/tsbundle': 2.0.15
'@git.zone/tsrun': 1.2.46(@types/node@20.11.20)
'@git.zone/tsrun': 1.2.46(@types/node@20.11.24)
'@push.rocks/consolecolor': 2.0.1
'@push.rocks/smartbrowser': 2.0.6
'@push.rocks/smartdelay': 3.0.5
@ -603,8 +607,8 @@ packages:
/@push.rocks/isounique@1.0.5:
resolution: {integrity: sha512-Z0BVqZZOCif1THTbIKWMgg0wxCzt9CyBtBBqQJiZ+jJ0KlQFrQHNHrPt81/LXe/L4x0cxWsn0bpL6W5DNSvNLw==}
/@push.rocks/lik@6.0.13:
resolution: {integrity: sha512-pfwcnWKQ56uuCjdw/NbY83e2MSFh9bu5Sxf38ZukzDH8+Athx83naVqt2pEENfUJrFWx7PcSC831GVwlWDt3oA==}
/@push.rocks/lik@6.0.14:
resolution: {integrity: sha512-d15PoV3T2MvO/XNYwigGp3I6z4eTd6lvdELlfc/addCuYwfvV5dZr30SsKYlyvXLaHBis8PxwcdIMFlSmHB2Qw==}
dependencies:
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartmatch': 2.0.0
@ -631,7 +635,6 @@ packages:
/@push.rocks/smartbuffer@1.0.6:
resolution: {integrity: sha512-TpZuKVrj0D/C6+RApjajp2FGBfXuz7b9BQSYAR+N1XmAxO8jYAmS6YlChcofThY2aB9sTA98Tt110hM/d+cc8g==}
dev: false
/@push.rocks/smartcache@1.0.16:
resolution: {integrity: sha512-UAXf74eDuH4/RebJhydIbHlYVR3ACYJjniEY/9ZePblu7bIPgwFZqLBE9g1lcKVogbH9yY62dk3rSpgBzenyfQ==}
@ -643,10 +646,10 @@ packages:
'@pushrocks/smarttime': 4.0.1
dev: true
/@push.rocks/smartchok@1.0.32:
resolution: {integrity: sha512-bBJ4UX3jjItZo0mdDxQcDdRqbuIyCeDo4XXvkX2yLqkHJHFxQbL2lTDrX4l7cTaQ7361AYSsvOsBkZyPvCN6mg==}
/@push.rocks/smartchok@1.0.33:
resolution: {integrity: sha512-6mDqTkNOR5Z0H14Ujmq3ACUZHzeUBNE8EdoLDrmkPzRVE9HP3WcCnDu009Fy0LVKHYHAUirZ0LzCi8zHN84RtA==}
dependencies:
'@push.rocks/lik': 6.0.13
'@push.rocks/lik': 6.0.14
'@push.rocks/smartpromise': 4.0.3
'@push.rocks/smartrx': 3.0.7
'@tempfix/watcher': 2.3.0
@ -655,7 +658,7 @@ packages:
/@push.rocks/smartcli@4.0.8:
resolution: {integrity: sha512-B4F3nqq7ko8tev1wxGdFnh/zSDDP8Q9LpEOb3wTf0jayyhYetFQ7n6zi4J9fhXYBKPkJSyQEBoOfRmgJyeLHkA==}
dependencies:
'@push.rocks/lik': 6.0.13
'@push.rocks/lik': 6.0.14
'@push.rocks/smartlog': 3.0.3
'@push.rocks/smartparam': 1.1.10
'@push.rocks/smartpromise': 4.0.3
@ -696,7 +699,7 @@ packages:
/@push.rocks/smartfile@10.0.33:
resolution: {integrity: sha512-mCvTWP32MCFtFcZVuGzvazyxQSrPhlaLkWTydz8IZ32/V41vvxieXDiPwoF64lcIYO37EZEXElYdBBjqCJ8MuA==}
dependencies:
'@push.rocks/lik': 6.0.13
'@push.rocks/lik': 6.0.14
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartfile-interfaces': 1.0.7
'@push.rocks/smarthash': 3.0.4
@ -719,7 +722,7 @@ packages:
/@push.rocks/smartfile@10.0.41:
resolution: {integrity: sha512-xOOy0duI34M2qrJZggpk51EHGXmg9+mBL1Q55tNiQKXzfx89P3coY1EAZG8tvmep3qB712QEKe7T+u04t42Kjg==}
dependencies:
'@push.rocks/lik': 6.0.13
'@push.rocks/lik': 6.0.14
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartfile-interfaces': 1.0.7
'@push.rocks/smarthash': 3.0.4
@ -740,7 +743,7 @@ packages:
/@push.rocks/smartfile@11.0.4:
resolution: {integrity: sha512-NXAyqYE5zNUJ9Mu/t2oWUKu21CRUI4Dvlm56rKBSczCq5xeC7EwmamTzL3Nyn6Tmu1jBpYktYL4zIx17JJOB7w==}
dependencies:
'@push.rocks/lik': 6.0.13
'@push.rocks/lik': 6.0.14
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartfile-interfaces': 1.0.7
'@push.rocks/smarthash': 3.0.4
@ -776,6 +779,16 @@ packages:
fast-json-stable-stringify: 2.1.0
lodash.clonedeep: 4.5.0
/@push.rocks/smartjson@5.0.11:
resolution: {integrity: sha512-JaqWm05nQgT1qvzxzRFUAFill6BF0jbln/Ms6byv4flDQXReICQmdKH4+hmtgKFk/iAdMQNrUQsSGBm9KVQ92A==}
dependencies:
'@push.rocks/smartstring': 4.0.13
'@types/buffer-json': 2.0.3
buffer-json: 2.0.0
fast-json-stable-stringify: 2.1.0
lodash.clonedeep: 4.5.0
dev: true
/@push.rocks/smartlog-destination-devtools@1.0.10:
resolution: {integrity: sha512-E6xRx5vhR7gh9peXjUyBwNj0H0MeaBjh+PY++PbOhUF4NDMaEuswRLRs+UN9bfbLXZQl2i4hYD1MNCesHGTVgA==}
dependencies:
@ -946,14 +959,14 @@ packages:
/@push.rocks/smartsocket@2.0.24:
resolution: {integrity: sha512-Glqv1Zi5TXgD+04P8OvTpiytyfrQxTPv67qAwZizAVVQ2zWJJgKqnIuoHT1zKP8QiKRNer+D58LCxX0ZE2XfzQ==}
dependencies:
'@api.global/typedrequest-interfaces': 3.0.17
'@api.global/typedserver': 3.0.24
'@api.global/typedrequest-interfaces': 3.0.18
'@api.global/typedserver': 3.0.25
'@push.rocks/isohash': 2.0.1
'@push.rocks/isounique': 1.0.5
'@push.rocks/lik': 6.0.13
'@push.rocks/lik': 6.0.14
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartenv': 5.0.12
'@push.rocks/smartjson': 5.0.10
'@push.rocks/smartjson': 5.0.11
'@push.rocks/smartlog': 3.0.3
'@push.rocks/smartpromise': 4.0.3
'@push.rocks/smartrx': 3.0.7
@ -1003,7 +1016,15 @@ packages:
/@push.rocks/smartstream@3.0.30:
resolution: {integrity: sha512-+izraXkILJJIy99PzP2LYahaW+g/35bTi/UxD7FeuOYbTaigode6Q3swvs0nrK6yu+A9x6RfoWV4JAJjd3Y87g==}
dependencies:
'@push.rocks/lik': 6.0.13
'@push.rocks/lik': 6.0.14
'@push.rocks/smartpromise': 4.0.3
'@push.rocks/smartrx': 3.0.7
dev: true
/@push.rocks/smartstream@3.0.33:
resolution: {integrity: sha512-mtFjKmjKr5IMDP1NGYfedy8dL3Sjq677y/M2RTQ056FQXMkLWC/pYQnOogYFARX6R1PXh91datmgcW0NF/Jlfw==}
dependencies:
'@push.rocks/lik': 6.0.14
'@push.rocks/smartpromise': 4.0.3
'@push.rocks/smartrx': 3.0.7
dev: true
@ -1040,7 +1061,7 @@ packages:
/@push.rocks/smarttime@4.0.6:
resolution: {integrity: sha512-1whOow0YJw/TbN758TedRRxApoZbsvyxCVpoGjXh7DE/fEEgs7RCr4vVF5jYpyXNQuNMLpKJcTsSfyQ6RvH4Aw==}
dependencies:
'@push.rocks/lik': 6.0.13
'@push.rocks/lik': 6.0.14
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartpromise': 4.0.3
croner: 7.0.3
@ -1102,7 +1123,7 @@ packages:
resolution: {integrity: sha512-w5Q3g1TT5SDIXukAAoYVuWud+Y5ysS8qiBqPU00/re895VVZhUOSNJMNU6jyneZigmbWtwSLsxDkZHlsHWpfuA==}
dependencies:
'@apiglobal/typedrequest-interfaces': 2.0.1
'@push.rocks/lik': 6.0.13
'@push.rocks/lik': 6.0.14
'@push.rocks/smartenv': 5.0.12
'@push.rocks/smartjson': 5.0.10
'@push.rocks/smartpromise': 4.0.3
@ -1110,6 +1131,12 @@ packages:
fake-indexeddb: 4.0.2
idb: 7.1.1
/@push.rocks/webstream@1.0.8:
resolution: {integrity: sha512-Z1dSQ4JNVpBw3naoVWT/mXpxDYIt+bsjb6J9GKMHsTrPRytfxo2/caoJT//uAoaA0h9pIqb1WrxpYWyW1ehWPA==}
dependencies:
'@push.rocks/smartenv': 5.0.12
dev: false
/@pushrocks/consolecolor@2.0.1:
resolution: {integrity: sha512-iOFCHVeFZ2OywbdwSxVI4/wokkcLrXVdHLgvMmkNhJ220eeLgjNZWx3EJo3vNW3zq5ybCSCUIq0878djBxrWpw==}
deprecated: This package has been deprecated in favour of the new package at @push.rocks/consolecolor
@ -1437,7 +1464,7 @@ packages:
/@types/accepts@1.3.6:
resolution: {integrity: sha512-6+qlUg57yfE9OO63wnsJXLeq9cG3gSHBBIxNMOjNrbDRlDnm/NaR7RctfYcVCPq+j7d+MwOxqVEludH5+FKrlg==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/babel__code-frame@7.0.5:
@ -1448,14 +1475,14 @@ packages:
resolution: {integrity: sha512-N7UDG0/xiPQa2D/XrVJXjkWbpqHCd2sBaB32ggRF2l83RhPfamgKGF8gwwqyksS95qUS5ZYF9aF+lLPRlwI2UA==}
dependencies:
'@types/connect': 3.4.37
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/body-parser@1.19.5:
resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==}
dependencies:
'@types/connect': 3.4.38
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/buffer-json@2.0.2:
@ -1478,27 +1505,27 @@ packages:
/@types/clean-css@4.2.11:
resolution: {integrity: sha512-Y8n81lQVTAfP2TOdtJJEsCoYl1AnOkqDqMvXb9/7pfgZZ7r8YrEyurrAvAoAjHOGXKRybay+5CsExqIH6liccw==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
source-map: 0.6.1
dev: true
/@types/co-body@6.1.2:
resolution: {integrity: sha512-eUqBFu8mNW56oZAP0aEmGm+4qFeYjkxVThQ1F/8jFOBiSNM+gib3pYFzjnQsQRUZ501Eg8qOc7Nn76GcZo6Uvg==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
'@types/qs': 6.9.9
dev: true
/@types/connect@3.4.37:
resolution: {integrity: sha512-zBUSRqkfZ59OcwXon4HVxhx5oWCJmc0OtBTK05M+p0dYjgN6iTwIL2T/WbsQZrEsdnwaF9cWQ+azOnpPvIqY3Q==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/connect@3.4.38:
resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/content-disposition@0.5.7:
@ -1519,13 +1546,13 @@ packages:
'@types/connect': 3.4.37
'@types/express': 4.17.20
'@types/keygrip': 1.0.4
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/cors@2.8.17:
resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/debounce@1.2.3:
@ -1539,7 +1566,7 @@ packages:
/@types/express-serve-static-core@4.17.39:
resolution: {integrity: sha512-BiEUfAiGCOllomsRAZOiMFP7LAnrifHpt56pc4Z7l9K6ACyN06Ns1JLMBxwkfLOjJRlSf06NwWsT7yzfpaVpyQ==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
'@types/qs': 6.9.9
'@types/range-parser': 1.2.6
'@types/send': 0.17.3
@ -1548,8 +1575,8 @@ packages:
/@types/express-serve-static-core@4.17.43:
resolution: {integrity: sha512-oaYtiBirUOPQGSWNGPWnzyAFJ0BP3cwvN4oWZQY+zUBwpVIGsKUkpBpSztp74drYcjavs7SKFZ4DX1V2QeN8rg==}
dependencies:
'@types/node': 20.11.20
'@types/qs': 6.9.11
'@types/node': 20.11.24
'@types/qs': 6.9.12
'@types/range-parser': 1.2.7
'@types/send': 0.17.4
dev: true
@ -1568,41 +1595,41 @@ packages:
dependencies:
'@types/body-parser': 1.19.5
'@types/express-serve-static-core': 4.17.43
'@types/qs': 6.9.11
'@types/qs': 6.9.12
'@types/serve-static': 1.15.5
dev: true
/@types/from2@2.3.2:
resolution: {integrity: sha512-s1pdctxW2+CA4FOxxTBRxC3RKQL9Br1a2s2LngP4jh1BI84JBL3mDXj87EwcckN9z/IXp8o3ySmvZveGEAAwqw==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/from2@2.3.5:
resolution: {integrity: sha512-giavnjf3kNlJnE+HpZA1CQ3UKHxgehzsTuIMGda8pGMbOiLYGVNADEskey44OZcADHm/HOoBany8IV+0x28XFw==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/fs-extra@11.0.3:
resolution: {integrity: sha512-sF59BlXtUdzEAL1u0MSvuzWd7PdZvZEtnaVkzX5mjpdWTJ8brG0jUqve3jPCzSzvAKKMHTG8F8o/WMQLtleZdQ==}
dependencies:
'@types/jsonfile': 6.1.3
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/fs-extra@11.0.4:
resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==}
dependencies:
'@types/jsonfile': 6.1.4
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/glob@8.1.0:
resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==}
dependencies:
'@types/minimatch': 5.1.2
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/html-minifier@4.0.5:
@ -1660,13 +1687,13 @@ packages:
/@types/jsonfile@6.1.3:
resolution: {integrity: sha512-/yqTk2SZ1wIezK0hiRZD7RuSf4B3whFxFamB1kGStv+8zlWScTMcHanzfc0XKWs5vA1TkHeckBlOyM8jxU8nHA==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/jsonfile@6.1.4:
resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/keygrip@1.0.4:
@ -1689,7 +1716,7 @@ packages:
'@types/http-errors': 2.0.3
'@types/keygrip': 1.0.4
'@types/koa-compose': 3.2.7
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/mime-types@2.1.1:
@ -1723,8 +1750,8 @@ packages:
resolution: {integrity: sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ==}
dev: true
/@types/node@20.11.20:
resolution: {integrity: sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg==}
/@types/node@20.11.24:
resolution: {integrity: sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==}
dependencies:
undici-types: 5.26.5
dev: true
@ -1737,8 +1764,8 @@ packages:
resolution: {integrity: sha512-ifvo6w2f5eJYlXm+HiVx67iJe8WZp87sfa683nlqED5Vnt9Z93onkokNoWqOG21EaE8fMxyKPobE+mkPEyxsdw==}
dev: true
/@types/qs@6.9.11:
resolution: {integrity: sha512-oGk0gmhnEJK4Yyk+oI7EfXsLayXatCWPHary1MtcmbAifkobT9cM9yutG/hZKIseOU0MqbIwQ/u2nn/Gb+ltuQ==}
/@types/qs@6.9.12:
resolution: {integrity: sha512-bZcOkJ6uWrL0Qb2NAWKa7TBU+mJHPzhx9jjLL1KHF+XpzEcR7EXHvjbHlGtR/IsP1vyPrehuS6XqkmaePy//mg==}
dev: true
/@types/qs@6.9.9:
@ -1768,14 +1795,14 @@ packages:
resolution: {integrity: sha512-/7fKxvKUoETxjFUsuFlPB9YndePpxxRAOfGC/yJdc9kTjTeP5kRCTzfnE8kPUKCeyiyIZu0YQ76s50hCedI1ug==}
dependencies:
'@types/mime': 1.3.4
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/send@0.17.4:
resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==}
dependencies:
'@types/mime': 1.3.5
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/serve-static@1.15.4:
@ -1783,7 +1810,7 @@ packages:
dependencies:
'@types/http-errors': 2.0.3
'@types/mime': 3.0.3
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/serve-static@1.15.5:
@ -1791,7 +1818,7 @@ packages:
dependencies:
'@types/http-errors': 2.0.4
'@types/mime': 3.0.4
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/sinon-chai@3.2.11:
@ -1817,19 +1844,19 @@ packages:
/@types/through2@2.0.38:
resolution: {integrity: sha512-YFu+nHmjxMurkH1BSzA0Z1WrKDAY8jUKPZctNQn7mc+/KKtp2XxnclHFXxdB1m7Iqnzb5aywgP8TMK283LezGQ==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/through2@2.0.40:
resolution: {integrity: sha512-QeEwyeGxvtKjP0I/SR8pHtKMgmqotWTI8V/rNMTjbF3arWZJV/kYtbZXtwQKxUuV/oPSGkUilSspFKkTgCPTpA==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/through2@2.0.41:
resolution: {integrity: sha512-ryQ0tidWkb1O1JuYvWKyMLYEtOWDqF5mHerJzKz/gQpoAaJq2l/dsMPBF0B5BNVT34rbARYJ5/tsZwLfUi2kwQ==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/trusted-types@2.0.7:
@ -1857,20 +1884,20 @@ packages:
/@types/ws@7.4.7:
resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/ws@8.5.10:
resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==}
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
/@types/yauzl@2.10.3:
resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==}
requiresBuild: true
dependencies:
'@types/node': 20.11.20
'@types/node': 20.11.24
dev: true
optional: true
@ -2838,7 +2865,7 @@ packages:
dependencies:
'@types/cookie': 0.4.1
'@types/cors': 2.8.17
'@types/node': 20.11.20
'@types/node': 20.11.24
accepts: 1.3.8
base64id: 2.0.0
cookie: 0.4.2
@ -3052,6 +3079,45 @@ packages:
- supports-color
dev: true
/express@4.18.3:
resolution: {integrity: sha512-6VyCijWQ+9O7WuVMTRBTl+cjNNIzD5cY5mQ1WM8r/LEkI2u8EYpOotESNwzNlyCn3g+dmjKYI6BmNneSr/FSRw==}
engines: {node: '>= 0.10.0'}
dependencies:
accepts: 1.3.8
array-flatten: 1.1.1
body-parser: 1.20.2
content-disposition: 0.5.4
content-type: 1.0.5
cookie: 0.5.0
cookie-signature: 1.0.6
debug: 2.6.9
depd: 2.0.0
encodeurl: 1.0.2
escape-html: 1.0.3
etag: 1.8.1
finalhandler: 1.2.0
fresh: 0.5.2
http-errors: 2.0.0
merge-descriptors: 1.0.1
methods: 1.1.2
on-finished: 2.4.1
parseurl: 1.3.3
path-to-regexp: 0.1.7
proxy-addr: 2.0.7
qs: 6.11.0
range-parser: 1.2.1
safe-buffer: 5.2.1
send: 0.18.0
serve-static: 1.15.0
setprototypeof: 1.2.0
statuses: 2.0.1
type-is: 1.6.18
utils-merge: 1.0.1
vary: 1.1.2
transitivePeerDependencies:
- supports-color
dev: true
/extract-zip@2.0.1:
resolution: {integrity: sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==}
engines: {node: '>= 10.17.0'}
@ -5491,7 +5557,7 @@ packages:
hasBin: true
dev: true
/ts-node@10.9.1(@types/node@20.11.20)(typescript@5.1.6):
/ts-node@10.9.1(@types/node@20.11.24)(typescript@5.1.6):
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
hasBin: true
peerDependencies:
@ -5510,7 +5576,7 @@ packages:
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
'@types/node': 20.11.20
'@types/node': 20.11.24
acorn: 8.10.0
acorn-walk: 8.2.0
arg: 4.1.3

View File

@ -98,7 +98,7 @@ tap.test('should allow VirtualStreams', async () => {
const data = await generatedRequestingVS.fetchData();
const decodedData = data.toString();
expect(data.toString()).toEqual('hello');
})
});
tap.test('should end the server', async (toolsArg) => {
await toolsArg.delayFor(5000);

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@api.global/typedrequest',
version: '3.0.8',
version: '3.0.9',
description: 'make typed requests towards apis'
}

View File

@ -10,5 +10,6 @@ import * as smartbuffer from '@push.rocks/smartbuffer';
import * as smartdelay from '@push.rocks/smartdelay';
import * as smartpromise from '@push.rocks/smartpromise';
import * as webrequest from '@push.rocks/webrequest';
import * as webstream from '@push.rocks/webstream';
export { isounique, lik, smartbuffer, smartdelay, smartpromise, webrequest };
export { isounique, lik, smartbuffer, smartdelay, smartpromise, webrequest, webstream };

View File

@ -143,6 +143,10 @@ export class VirtualStream<T = ArrayBufferLike> implements plugins.typedRequestI
*/
private async workOnQueue() {
if(this.side === 'requesting') {
let thisSideIsBackpressured = !this.receiveBackpressuredArray.checkSpaceAvailable();
let otherSideHasNext = false;
let otherSideIsBackpressured = false;
// helper functions
const getFeedback = async () => {
const streamTr = await this.sendMethod({
@ -165,12 +169,9 @@ export class VirtualStream<T = ArrayBufferLike> implements plugins.typedRequestI
otherSideHasNext = streamTr.response.next;
}
}
await getFeedback();
// do work loop
let thisSideIsBackpressured = !this.receiveBackpressuredArray.checkSpaceAvailable();
let otherSideHasNext = false;
let otherSideIsBackpressured = false;
while (this.sendBackpressuredArray.data.length > 0 || otherSideHasNext) {
let dataArg: typeof this.sendBackpressuredArray.data[0];
if (this.sendBackpressuredArray.data.length > 0) {
@ -243,7 +244,6 @@ export class VirtualStream<T = ArrayBufferLike> implements plugins.typedRequestI
next: this.sendBackpressuredArray.data.length > 0,
backpressure: this.receiveBackpressuredArray.checkSpaceAvailable(),
};
streamTrArg.request = null;
}
// chunk handling
@ -350,10 +350,26 @@ export class VirtualStream<T = ArrayBufferLike> implements plugins.typedRequestI
return dataPackage;
}
public pipeWebStream(webStream: any) {
// lets do the piping
webStream.on('data', (data: any) => {});
webStream.on('end', () => {});
webStream.on('error', (error: any) => {});
/**
* reads from a Readable and sends it to the other side
* @param readableStreamArg
*/
public async readFromWebstream(readableStreamArg: ReadableStream<T>) {
const reader = readableStreamArg.getReader();
let streamIsDone = false;
while(!streamIsDone) {
const { value, done } = await reader.read();
if(value) {
await this.sendData(value);
}
streamIsDone = done;
}
}
public async writeToWebstream(writableStreamArg: WritableStream<T>) {
const writer = writableStreamArg.getWriter();
while(this.keepAlive) {
await writer.write(await this.fetchData());
}
}
}