Compare commits

...

6 Commits

Author SHA1 Message Date
00b4108803 3.0.4 2023-08-06 18:15:02 +02:00
7e75cccbcb fix(core): update 2023-08-06 18:15:01 +02:00
f93d10d394 3.0.3 2023-08-06 17:45:31 +02:00
d949a05c79 fix(core): update 2023-08-06 17:45:30 +02:00
d281569bbb 3.0.2 2023-08-06 15:51:35 +02:00
ef06dd138e fix(core): update 2023-08-06 15:51:34 +02:00
8 changed files with 139 additions and 56 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@api.global/typedserver",
"version": "3.0.1",
"version": "3.0.4",
"description": "easy serving of static files",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
@ -37,9 +37,9 @@
],
"homepage": "https://github.com/pushrocks/easyserve",
"dependencies": {
"@apiglobal/typedrequest": "^2.0.12",
"@apiglobal/typedrequest-interfaces": "^2.0.1",
"@apiglobal/typedsocket": "^2.0.24",
"@api.global/typedrequest": "^3.0.1",
"@api.global/typedrequest-interfaces": "^3.0.1",
"@api.global/typedsocket": "^3.0.0",
"@push.rocks/lik": "^6.0.3",
"@push.rocks/smartchok": "^1.0.23",
"@push.rocks/smartdelay": "^3.0.5",
@ -72,7 +72,7 @@
"@gitzone/tsrun": "^1.2.44",
"@gitzone/tstest": "^1.0.77",
"@push.rocks/tapbundle": "^5.0.12",
"@types/node": "^20.4.6"
"@types/node": "^20.4.8"
},
"private": false,
"browserslist": [

166
pnpm-lock.yaml generated
View File

@ -5,15 +5,15 @@ settings:
excludeLinksFromLockfile: false
dependencies:
'@apiglobal/typedrequest':
specifier: ^2.0.12
version: 2.0.12
'@apiglobal/typedrequest-interfaces':
specifier: ^2.0.1
version: 2.0.1
'@apiglobal/typedsocket':
specifier: ^2.0.24
version: 2.0.24
'@api.global/typedrequest':
specifier: ^3.0.1
version: 3.0.1
'@api.global/typedrequest-interfaces':
specifier: ^3.0.1
version: 3.0.1
'@api.global/typedsocket':
specifier: ^3.0.0
version: 3.0.0
'@push.rocks/lik':
specifier: ^6.0.3
version: 6.0.3
@ -99,16 +99,16 @@ devDependencies:
version: 2.0.8
'@gitzone/tsrun':
specifier: ^1.2.44
version: 1.2.44(@types/node@20.4.6)
version: 1.2.44(@types/node@20.4.8)
'@gitzone/tstest':
specifier: ^1.0.77
version: 1.0.77(@types/node@20.4.6)
version: 1.0.77(@types/node@20.4.8)
'@push.rocks/tapbundle':
specifier: ^5.0.12
version: 5.0.12
'@types/node':
specifier: ^20.4.6
version: 20.4.6
specifier: ^20.4.8
version: 20.4.8
packages:
@ -122,6 +122,42 @@ packages:
transitivePeerDependencies:
- supports-color
/@api.global/typedrequest-interfaces@3.0.1:
resolution: {integrity: sha512-eR2Cr01BYRwIq/X2ajOenWhm8l+/YE4A5kK/9V6I8ZnhtEBMFHG6YjF6Fg8npLJWbvhZXhOms+axZ6JKI71o8g==}
dev: false
/@api.global/typedrequest@3.0.1:
resolution: {integrity: sha512-ed7wIqK7ErjHsiy+5UMB6lhtRzwfnaurNu/pbjQz67Pugk5DLUuuw36YyIlDhRepoPS4L2EY6zL+wsCciTCcoQ==}
dependencies:
'@api.global/typedrequest-interfaces': 3.0.1
'@push.rocks/isounique': 1.0.5
'@push.rocks/lik': 6.0.3
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartpromise': 4.0.3
'@push.rocks/webrequest': 3.0.32
transitivePeerDependencies:
- bufferutil
- supports-color
- utf-8-validate
dev: false
/@api.global/typedsocket@3.0.0:
resolution: {integrity: sha512-ui+6MLd99iTN/lC+iC/FKPRjzVyiZ4PrmlU6ptbCtbBj3cSOXHx+RRGF54+be2xHodf4FOgwFv/GZdW8LtO3vg==}
dependencies:
'@api.global/typedrequest': 3.0.1
'@api.global/typedrequest-interfaces': 3.0.1
'@push.rocks/isohash': 2.0.1
'@push.rocks/smartjson': 5.0.6
'@push.rocks/smartrx': 3.0.6
'@push.rocks/smartsocket': 2.0.22
'@push.rocks/smartstring': 4.0.7
'@push.rocks/smarturl': 3.0.7
transitivePeerDependencies:
- bufferutil
- supports-color
- utf-8-validate
dev: false
/@apiglobal/typedrequest-interfaces@1.0.20:
resolution: {integrity: sha512-ybsDtavYbzGJYSLodSbkxDvSLYtfMzBTuNZDJpiANt1rZA2MO/GCq8zk5MVLlrUUQIr/7oxPGWqxi1QDwR+RHQ==}
@ -459,13 +495,13 @@ packages:
- supports-color
dev: true
/@gitzone/tsrun@1.2.44(@types/node@20.4.6):
/@gitzone/tsrun@1.2.44(@types/node@20.4.8):
resolution: {integrity: sha512-7AfL9u+TmD7gLiRaTCimhWm5rq9GGBQnOF4q1FnFh2CAb1FbK5fzUVbj6wo3zGS2H+MSm6dqFA6mvdBI1ox0mQ==}
hasBin: true
dependencies:
'@push.rocks/smartfile': 10.0.28
'@push.rocks/smartshell': 3.0.3
ts-node: 10.9.1(@types/node@20.4.6)(typescript@5.1.6)
ts-node: 10.9.1(@types/node@20.4.8)(typescript@5.1.6)
typescript: 5.1.6
transitivePeerDependencies:
- '@swc/core'
@ -474,13 +510,13 @@ packages:
- supports-color
dev: true
/@gitzone/tstest@1.0.77(@types/node@20.4.6):
/@gitzone/tstest@1.0.77(@types/node@20.4.8):
resolution: {integrity: sha512-YzBXnNqkYOiFf8xAA+m8owblrmAut8ukINghYy4DXoUR+5g1IKrpTjK4A8HzIsvVsQRyHPsQ2YFtsk+utqdivQ==}
hasBin: true
dependencies:
'@apiglobal/typedserver': 2.0.65
'@gitzone/tsbundle': 2.0.8
'@gitzone/tsrun': 1.2.44(@types/node@20.4.6)
'@gitzone/tsrun': 1.2.44(@types/node@20.4.8)
'@push.rocks/consolecolor': 2.0.1
'@push.rocks/smartbrowser': 2.0.5
'@push.rocks/smartdelay': 3.0.5
@ -630,6 +666,13 @@ packages:
ansi-256-colors: 1.1.0
dev: true
/@push.rocks/isohash@2.0.1:
resolution: {integrity: sha512-UulhEui8O9Ei9fSqTldsB73TUmAFNqEBk82tHsJSLLpNK9gJZQE82iaSNsQUakoUQ2c9KueueMfwC3IoDaYRrQ==}
dependencies:
'@pushrocks/smartenv': 5.0.5
'@pushrocks/smarthash': 3.0.2
dev: false
/@push.rocks/isounique@1.0.5:
resolution: {integrity: sha512-Z0BVqZZOCif1THTbIKWMgg0wxCzt9CyBtBBqQJiZ+jJ0KlQFrQHNHrPt81/LXe/L4x0cxWsn0bpL6W5DNSvNLw==}
@ -833,6 +876,30 @@ packages:
- utf-8-validate
dev: false
/@push.rocks/smartsocket@2.0.22:
resolution: {integrity: sha512-SkvJk28s1Hp9MJa3xWW6zFAWCJFzY91YdRCBWwW/lME0EYQQ9wY0K55MTOw/bBPqYEmebjZ8E/8OdPKCzd7H1A==}
dependencies:
'@apiglobal/typedrequest-interfaces': 2.0.1
'@apiglobal/typedserver': 2.0.65
'@push.rocks/isohash': 2.0.1
'@push.rocks/isounique': 1.0.5
'@push.rocks/lik': 6.0.3
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartenv': 5.0.5
'@push.rocks/smartjson': 5.0.6
'@push.rocks/smartlog': 3.0.3
'@push.rocks/smartpromise': 4.0.3
'@push.rocks/smartrx': 3.0.6
'@push.rocks/smarttime': 4.0.4
engine.io: 6.3.1
socket.io: 4.5.4
socket.io-client: 4.5.4
transitivePeerDependencies:
- bufferutil
- supports-color
- utf-8-validate
dev: false
/@push.rocks/smartstream@2.0.4:
resolution: {integrity: sha512-rbQf4+sLle9ga6RidRv0WXb/TuLFcMordRQBbqPq01n/mpBHoEiqIThWzVuImPVRVuSK/LKbM/QX4Ey26FFerg==}
dependencies:
@ -843,6 +910,21 @@ packages:
from2: 2.3.0
through2: 4.0.2
/@push.rocks/smartstring@4.0.7:
resolution: {integrity: sha512-FTQksB6AO5z1QUDgV3HCZqWkhqPxLn5tBEpFHMyBhinablherPtTnNzcT5YdK5Cl08QhkDjPKnRT+47tncKrYA==}
dependencies:
'@pushrocks/isounique': 1.0.5
'@pushrocks/smartenv': 5.0.5
'@types/randomatic': 3.1.3
buffer: 6.0.3
crypto-random-string: 5.0.0
js-base64: 3.7.5
normalize-newline: 4.1.0
randomatic: 3.1.1
strip-indent: 4.0.0
url: 0.11.1
dev: false
/@push.rocks/smarttime@4.0.4:
resolution: {integrity: sha512-PTYxvl6Rr5eSOKPbB0S5+ym6z6zfI/e1wqmVxX8QjnZ5ZIvhGfAoCZ7sie+Zd4OJ4nCG8UClgk5LrFaN3zUnZA==}
dependencies:
@ -1515,7 +1597,7 @@ packages:
/@types/accepts@1.3.5:
resolution: {integrity: sha512-jOdnI/3qTpHABjM5cx1Hc0sKsPoYCp+DP/GJRGtDlPd7fiV9oXGGIcjW/ZOxLIvjGz8MA+uMZI9metHlgqbgwQ==}
dependencies:
'@types/node': 20.4.6
'@types/node': 20.4.8
dev: true
/@types/babel__code-frame@7.0.3:
@ -1526,7 +1608,7 @@ packages:
resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==}
dependencies:
'@types/connect': 3.4.35
'@types/node': 20.4.6
'@types/node': 20.4.8
/@types/buffer-json@2.0.1:
resolution: {integrity: sha512-y2q2QGDqpS8NBtgKg8si+vKfanyd8smKzTglDCm7dXrco1VclSR8G1/uezK+sWbEUxsVPTomv5RxsTl3JAzxLA==}
@ -1550,14 +1632,14 @@ packages:
/@types/clean-css@4.2.6:
resolution: {integrity: sha512-Ze1tf+LnGPmG6hBFMi0B4TEB0mhF7EiMM5oyjLDNPE9hxrPU0W+5+bHvO+eFPA+bt0iC1zkQMoU/iGdRVjcRbw==}
dependencies:
'@types/node': 20.4.6
'@types/node': 20.4.8
source-map: 0.6.1
dev: true
/@types/co-body@6.1.0:
resolution: {integrity: sha512-3e0q2jyDAnx/DSZi0z2H0yoZ2wt5yRDZ+P7ymcMObvq0ufWRT4tsajyO+Q1VwVWiv9PRR4W3YEjEzBjeZlhF+w==}
dependencies:
'@types/node': 20.4.6
'@types/node': 20.4.8
'@types/qs': 6.9.7
dev: true
@ -1569,7 +1651,7 @@ packages:
/@types/connect@3.4.35:
resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==}
dependencies:
'@types/node': 20.4.6
'@types/node': 20.4.8
/@types/content-disposition@0.5.5:
resolution: {integrity: sha512-v6LCdKfK6BwcqMo+wYW05rLS12S0ZO0Fl4w1h4aaZMD7bqT3gVUns6FvLJKGZHQmYn3SX55JWGpziwJRwVgutA==}
@ -1588,13 +1670,13 @@ packages:
'@types/connect': 3.4.35
'@types/express': 4.17.17
'@types/keygrip': 1.0.2
'@types/node': 20.4.6
'@types/node': 20.4.8
dev: true
/@types/cors@2.8.13:
resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==}
dependencies:
'@types/node': 20.4.6
'@types/node': 20.4.8
/@types/debounce@1.2.1:
resolution: {integrity: sha512-epMsEE85fi4lfmJUH/89/iV/LI+F5CvNIvmgs5g5jYFPfhO2S/ae8WSsLOKWdwtoaZw9Q2IhJ4tQ5tFCcS/4HA==}
@ -1607,7 +1689,7 @@ packages:
/@types/express-serve-static-core@4.17.35:
resolution: {integrity: sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==}
dependencies:
'@types/node': 20.4.6
'@types/node': 20.4.8
'@types/qs': 6.9.7
'@types/range-parser': 1.2.4
'@types/send': 0.17.1
@ -1623,24 +1705,24 @@ packages:
/@types/finalhandler@1.2.0:
resolution: {integrity: sha512-NgEZKOhxUSXkwNnWNaMXZaopQ5aFGPAYiEpEWIkQ6Dzc4iS0M1oQsvWne2t+ex9QZUAdTz/ZT4tOXJhWtP6mCw==}
dependencies:
'@types/node': 20.4.6
'@types/node': 20.4.8
/@types/from2@2.3.2:
resolution: {integrity: sha512-s1pdctxW2+CA4FOxxTBRxC3RKQL9Br1a2s2LngP4jh1BI84JBL3mDXj87EwcckN9z/IXp8o3ySmvZveGEAAwqw==}
dependencies:
'@types/node': 20.4.6
'@types/node': 20.4.8
/@types/fs-extra@11.0.1:
resolution: {integrity: sha512-MxObHvNl4A69ofaTRU8DFqvgzzv8s9yRtaPPm5gud9HDNvpB3GPQFvNuTWAI59B9huVGV5jXYJwbCsmBsOGYWA==}
dependencies:
'@types/jsonfile': 6.1.1
'@types/node': 20.4.6
'@types/node': 20.4.8
/@types/glob@8.1.0:
resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==}
dependencies:
'@types/minimatch': 5.1.2
'@types/node': 20.4.6
'@types/node': 20.4.8
/@types/html-minifier@4.0.2:
resolution: {integrity: sha512-4IkmkXJP/25R2fZsCHDX2abztXuQRzUAZq39PfCMz2loLFj8vS9y7aF6vDl58koXSTpsF+eL4Lc5Y4Aww/GCTQ==}
@ -1686,7 +1768,7 @@ packages:
/@types/jsonfile@6.1.1:
resolution: {integrity: sha512-GSgiRCVeapDN+3pqA35IkQwasaCh/0YFH5dEF6S88iDvEn901DjOeH3/QPY+XYP1DFzDZPvIvfeEgk+7br5png==}
dependencies:
'@types/node': 20.4.6
'@types/node': 20.4.8
/@types/keygrip@1.0.2:
resolution: {integrity: sha512-GJhpTepz2udxGexqos8wgaBx4I/zWIDPh/KOGEwAqtuGDkOUJu5eFvwmdBX4AmB8Odsr+9pHCQqiAqDL/yKMKw==}
@ -1708,7 +1790,7 @@ packages:
'@types/http-errors': 2.0.1
'@types/keygrip': 1.0.2
'@types/koa-compose': 3.2.5
'@types/node': 20.4.6
'@types/node': 20.4.8
dev: true
/@types/mime-types@2.1.1:
@ -1726,8 +1808,8 @@ packages:
/@types/minimatch@5.1.2:
resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==}
/@types/node@20.4.6:
resolution: {integrity: sha512-q0RkvNgMweWWIvSMDiXhflGUKMdIxBo2M2tYM/0kEGDueQByFzK4KZAgu5YHGFNxziTlppNpTIBcqHQAxlfHdA==}
/@types/node@20.4.8:
resolution: {integrity: sha512-0mHckf6D2DiIAzh8fM8f3HQCvMKDpK94YQ0DSVkfWTG9BZleYIWudw9cJxX8oCk9bM+vAkDyujDV6dmKHbvQpg==}
/@types/parse5@6.0.3:
resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==}
@ -1754,14 +1836,14 @@ packages:
resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==}
dependencies:
'@types/mime': 1.3.2
'@types/node': 20.4.6
'@types/node': 20.4.8
/@types/serve-static@1.15.2:
resolution: {integrity: sha512-J2LqtvFYCzaj8pVYKw8klQXrLLk7TBZmQ4ShlcdkELFKGwGMfevMLneMMRkMgZxotOD9wg497LpC7O8PcvAmfw==}
dependencies:
'@types/http-errors': 2.0.1
'@types/mime': 3.0.1
'@types/node': 20.4.6
'@types/node': 20.4.8
/@types/shortid@0.0.29:
resolution: {integrity: sha1-gJPuBBam4r8qpjOBCRFLP7/6Dps=}
@ -1789,7 +1871,7 @@ packages:
/@types/through2@2.0.38:
resolution: {integrity: sha512-YFu+nHmjxMurkH1BSzA0Z1WrKDAY8jUKPZctNQn7mc+/KKtp2XxnclHFXxdB1m7Iqnzb5aywgP8TMK283LezGQ==}
dependencies:
'@types/node': 20.4.6
'@types/node': 20.4.8
/@types/trusted-types@2.0.3:
resolution: {integrity: sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==}
@ -1814,14 +1896,14 @@ packages:
/@types/ws@7.4.7:
resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==}
dependencies:
'@types/node': 20.4.6
'@types/node': 20.4.8
dev: true
/@types/yauzl@2.10.0:
resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==}
requiresBuild: true
dependencies:
'@types/node': 20.4.6
'@types/node': 20.4.8
dev: true
optional: true
@ -2549,7 +2631,7 @@ packages:
dependencies:
'@types/cookie': 0.4.1
'@types/cors': 2.8.13
'@types/node': 20.4.6
'@types/node': 20.4.8
accepts: 1.3.8
base64id: 2.0.0
cookie: 0.4.2
@ -2568,7 +2650,7 @@ packages:
dependencies:
'@types/cookie': 0.4.1
'@types/cors': 2.8.13
'@types/node': 20.4.6
'@types/node': 20.4.8
accepts: 1.3.8
base64id: 2.0.0
cookie: 0.4.2
@ -4452,7 +4534,7 @@ packages:
hasBin: true
dev: true
/ts-node@10.9.1(@types/node@20.4.6)(typescript@5.1.6):
/ts-node@10.9.1(@types/node@20.4.8)(typescript@5.1.6):
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
hasBin: true
peerDependencies:
@ -4471,7 +4553,7 @@ packages:
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
'@types/node': 20.4.6
'@types/node': 20.4.8
acorn: 8.10.0
acorn-walk: 8.2.0
arg: 4.1.3

View File

@ -78,7 +78,7 @@ tap.test('should create a valid StaticHandler', async () => {
});
tap.test('should add typedrequest and typedsocket', async () => {
const typedrequest = await import('@apiglobal/typedrequest');
const typedrequest = await import('@api.global/typedrequest');
const typedrouter = new typedrequest.TypedRouter();
testServer.addTypedRequest(typedrouter);

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@api.global/typedserver',
version: '3.0.1',
version: '3.0.4',
description: 'easy serving of static files'
}

View File

@ -1,4 +1,5 @@
import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
// not using the global plugins here to support better bundling...
import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
export interface IReq_PushLatestServerChangeTime
extends typedrequestInterfaces.implementsTR<

View File

@ -12,9 +12,9 @@ import * as tsclass from '@tsclass/tsclass';
export { tsclass };
// @apiglobal scope
import * as typedrequest from '@apiglobal/typedrequest';
import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
import * as typedsocket from '@apiglobal/typedsocket';
import * as typedrequest from '@api.global/typedrequest';
import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
import * as typedsocket from '@api.global/typedsocket';
export { typedrequest, typedrequestInterfaces, typedsocket };

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@api.global/typedserver',
version: '3.0.1',
version: '3.0.4',
description: 'easy serving of static files'
}

View File

@ -1,6 +1,6 @@
// @apiglobal scope
import * as typedrequest from '@apiglobal/typedrequest';
import * as typedsocket from '@apiglobal/typedsocket';
import * as typedrequest from '@api.global/typedrequest';
import * as typedsocket from '@api.global/typedsocket';
export {
typedrequest,