fix(core): update

This commit is contained in:
Philipp Kunz 2024-03-01 00:26:06 +01:00
parent b003da7f59
commit 8a9c2c1505
5 changed files with 28 additions and 21 deletions

View File

@ -14,7 +14,7 @@
"buildDocs": "tsdoc"
},
"devDependencies": {
"@api.global/typedserver": "^3.0.25",
"@api.global/typedserver": "^3.0.26",
"@git.zone/tsbuild": "^2.1.72",
"@git.zone/tsbundle": "^2.0.15",
"@git.zone/tsrun": "^1.2.44",

View File

@ -32,8 +32,8 @@ dependencies:
devDependencies:
'@api.global/typedserver':
specifier: ^3.0.25
version: 3.0.25
specifier: ^3.0.26
version: 3.0.26
'@git.zone/tsbuild':
specifier: ^2.1.72
version: 2.1.72
@ -61,8 +61,8 @@ packages:
/@api.global/typedrequest-interfaces@3.0.18:
resolution: {integrity: sha512-O/AdHnk9NDcBfb/Qcpi3Bq/7I6uAJHXfIT5peeKODvLUYysmuxG/c3t9NWQvfSOXQUKnVKb0WrCGjraOL7Pyww==}
/@api.global/typedrequest@3.0.9:
resolution: {integrity: sha512-EFjapitckBbEk0UoGwE1UAY3D9nOIdmFEJIJurzFkNlaXGRgSGL23MhuPHhnG7JgBm+IhokE1gKj3N5XD1UZIg==}
/@api.global/typedrequest@3.0.17:
resolution: {integrity: sha512-7laGNmwrX9hMfM/ZkX6U+Y6HWO3sd7uRo0/sOUIGOpgS8TjOA/t0ZLSQvK+5rbqr+ziJirxnkPUiiXykNjwVdw==}
dependencies:
'@api.global/typedrequest-interfaces': 3.0.18
'@push.rocks/isounique': 1.0.5
@ -74,10 +74,10 @@ packages:
'@push.rocks/webstream': 1.0.8
dev: true
/@api.global/typedserver@3.0.25:
resolution: {integrity: sha512-3cci307/AtM2GqPzIJ1SqU1oi9Kj1WhpUNFPjPwvG0nbXK4HSp1nFBk5P6z+bqBj19grhzQRiMl9YbvtWwJVQQ==}
/@api.global/typedserver@3.0.26:
resolution: {integrity: sha512-KCr1ZVer5gnISm8ZTkewiRO9JpI2ZWv8dJe2CgzxGsGJI1qYGlE00etyszB8Agp9Kf6PoNAO2ZDQ1GSkXf+iNA==}
dependencies:
'@api.global/typedrequest': 3.0.9
'@api.global/typedrequest': 3.0.17
'@api.global/typedrequest-interfaces': 3.0.18
'@api.global/typedsocket': 3.0.0
'@push.rocks/lik': 6.0.14
@ -116,7 +116,7 @@ packages:
/@api.global/typedsocket@3.0.0:
resolution: {integrity: sha512-ui+6MLd99iTN/lC+iC/FKPRjzVyiZ4PrmlU6ptbCtbBj3cSOXHx+RRGF54+be2xHodf4FOgwFv/GZdW8LtO3vg==}
dependencies:
'@api.global/typedrequest': 3.0.9
'@api.global/typedrequest': 3.0.17
'@api.global/typedrequest-interfaces': 3.0.18
'@push.rocks/isohash': 2.0.1
'@push.rocks/smartjson': 5.0.11
@ -426,7 +426,7 @@ packages:
resolution: {integrity: sha512-ec95MNeA21L+ob+lvLVCmwPTTC1BY+v/JHLYZ9DOZ9+9buLgx+cJ7VkwGBJCnlWJtqEtJosUrFKTih36iNuT3g==}
hasBin: true
dependencies:
'@api.global/typedserver': 3.0.25
'@api.global/typedserver': 3.0.26
'@git.zone/tsbundle': 2.0.15
'@git.zone/tsrun': 1.2.46(@types/node@20.11.24)
'@push.rocks/consolecolor': 2.0.1
@ -909,7 +909,7 @@ packages:
resolution: {integrity: sha512-Glqv1Zi5TXgD+04P8OvTpiytyfrQxTPv67qAwZizAVVQ2zWJJgKqnIuoHT1zKP8QiKRNer+D58LCxX0ZE2XfzQ==}
dependencies:
'@api.global/typedrequest-interfaces': 3.0.18
'@api.global/typedserver': 3.0.25
'@api.global/typedserver': 3.0.26
'@push.rocks/isohash': 2.0.1
'@push.rocks/isounique': 1.0.5
'@push.rocks/lik': 6.0.14
@ -1785,6 +1785,11 @@ packages:
- utf-8-validate
dev: true
/@xmldom/xmldom@0.8.10:
resolution: {integrity: sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==}
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'}
@ -4356,6 +4361,8 @@ packages:
resolution: {integrity: sha512-mXF9AIgnvq1DP/ZM2R28tAfxP2wKZHYa2DjV0R1KCwcqSzm5Iqh1XQq9rdfAt6dp2DuPP0VHZIaCALc2v1cL5A==}
engines: {node: '>=14.18.0', npm: '>=6.14.15'}
hasBin: true
dependencies:
'@xmldom/xmldom': 0.8.10
dev: true
bundledDependencies:
- '@xmldom/xmldom'

View File

@ -30,14 +30,14 @@ tap.test('should define a testHandler', async () => {
});
tap.test('should fire a request', async () => {
const typedRequest = new typedrequest.TypedRequest<ITestReqRes>(
'http://localhost:3000/typedrequest',
'hi'
);
const result = await typedRequest.fire({
name: 'yes',
let response = await fetch('http://localhost:3000/typedrequest', {
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"correlation\":{\"id\":\"uni_aefe56c1a0f61a3e91082209\",\"phase\":\"request\"},\"method\":\"hi\",\"request\":{\"name\":\"yes\"},\"response\":null}"
})
console.log(result);
console.log(await response.text());
});
tap.test('test', async (tools) => {

View File

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

View File

@ -10,6 +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, webstream };
export { isounique, lik, smartbuffer, smartdelay, smartpromise, webrequest };