Compare commits

...

6 Commits

Author SHA1 Message Date
360c8a618b 3.0.30 2024-05-31 22:41:18 +02:00
c03854a9fc fix(core): update 2024-05-31 22:41:17 +02:00
cebd903c9b 3.0.29 2024-05-31 16:34:55 +02:00
e7cf5b7694 fix(error handling): now alos logs the method that an error has been given to. 2024-05-31 16:34:54 +02:00
839bd138c1 3.0.28 2024-05-30 22:47:03 +02:00
e1c721d511 fix(core): update 2024-05-30 22:47:02 +02:00
5 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@api.global/typedrequest",
"version": "3.0.27",
"version": "3.0.30",
"private": false,
"description": "A TypeScript library for making typed requests towards APIs, including facilities for handling requests, routing, and virtual stream handling.",
"main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@api.global/typedrequest',
version: '3.0.27',
version: '3.0.30',
description: 'A TypeScript library for making typed requests towards APIs, including facilities for handling requests, routing, and virtual stream handling.'
}

View File

@ -4,7 +4,7 @@ import { TypedTools } from './classes.typedtools.js';
export type THandlerFunction<T extends plugins.typedRequestInterfaces.ITypedRequest> = (
requestArg: T['request'],
typedToolsArg?: any
typedToolsArg?: TypedTools
) => Promise<T['response']>;
/**

View File

@ -79,7 +79,7 @@ export class TypedRequest<T extends plugins.typedRequestInterfaces.ITypedRequest
}
if (payloadReceiving.error) {
console.error(
`Got an error ${payloadReceiving.error.text} with data ${JSON.stringify(
`method: >>${this.method}<< got an ERROR: "${payloadReceiving.error.text}" with data ${JSON.stringify(
payloadReceiving.error.data,
null,
2

View File

@ -298,7 +298,7 @@ export class VirtualStream<T = Uint8Array> implements plugins.typedRequestInterf
await plugins.smartdelay.delayFor(0);
let counter = 0;
keepAliveLoop: while (this.keepAlive) {
const triggerResult = await this.triggerKeepAlive();
await this.triggerKeepAlive();
await plugins.smartdelay.delayFor(1000);
}
await plugins.smartdelay.delayFor(1000);