Compare commits

...

6 Commits

Author SHA1 Message Date
69035f49c8 3.0.16 2024-03-01 00:12:44 +01:00
5ec20ee526 fix(core): update 2024-03-01 00:12:43 +01:00
8b811ffd6b 3.0.15 2024-02-29 23:55:34 +01:00
35df3697c7 fix(core): update 2024-02-29 23:55:34 +01:00
8b4befc828 3.0.14 2024-02-29 23:12:52 +01:00
77dddd9157 fix(core): update 2024-02-29 23:12:51 +01:00
5 changed files with 10 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@api.global/typedrequest",
"version": "3.0.13",
"version": "3.0.16",
"private": false,
"description": "make typed requests towards apis",
"main": "dist_ts/index.js",

View File

@ -36,10 +36,12 @@ tap.test('should fire a request', async () => {
);
const result = await typedRequest.fire({
name: 'yes',
}).catch(err => {
console.log(err);
});
})
console.log(result);
});
tap.test('test', async (tools) => {
await tools.delayFor(5000);
})
tap.start();

View File

@ -101,8 +101,9 @@ tap.test('should allow VirtualStreams', async () => {
});
tap.test('should end the server', async (toolsArg) => {
await toolsArg.delayFor(5000);
await toolsArg.delayFor(1000);
await testServer.stop();
setTimeout(() => process.exit(0), 100);
});
tap.start();

View File

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

View File

@ -120,6 +120,7 @@ export class TypedRouter {
typedRequestArg.correlation.phase = 'response';
// encode again before handing back
typedRequestArg.localData = null;
typedRequestArg = VirtualStream.encodePayloadForNetwork(typedRequestArg, {
typedrouter: this,
});