From 8ee72f9380edaface5d3305119569ccb792f1ade Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 30 Mar 2023 16:42:02 +0200 Subject: [PATCH] fix(core): update --- test/test.server.ts | 9 ++++----- ts/00_commitinfo_data.ts | 2 +- ts_web/00_commitinfo_data.ts | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/test/test.server.ts b/test/test.server.ts index 1856510..16e766c 100644 --- a/test/test.server.ts +++ b/test/test.server.ts @@ -82,12 +82,11 @@ tap.test('should add typedrequest and typedsocket', async () => { tap.test('should start the server allright', async () => { await testServer.start(3000); - console.log('Yay Test Start successfull!'); }); // see if a demo request holds up tap.test('should issue a request', async (tools) => { - const response = await smartrequest.postJson('http://localhost:3000/someroute', { + const response = await smartrequest.postJson('http://127.0.0.1:3000/someroute', { headers: { 'X-Forwarded-Proto': 'https', }, @@ -99,20 +98,20 @@ tap.test('should issue a request', async (tools) => { }); tap.test('should get a file from disk', async () => { - const response = await fetch('http://localhost:3000/someroute/testresponse.js'); + const response = await fetch('http://127.0.0.1:3000/someroute/testresponse.js'); console.log(response.status); console.log(response.headers); }); tap.test('should answer a preflight request', async () => { - const response = await fetch('http://localhost:3000/some/randompath/', { + const response = await fetch('http://127.0.0.1:3000/some/randompath/', { method: 'OPTIONS', }); console.log(response.headers); }); tap.test('should exposer a sitemap', async () => { - const response = await fetch('http://localhost:3000/sitemap'); + const response = await fetch('http://127.0.0.1:3000/sitemap'); console.log(await response.text()); }); diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index b08d7cb..da3c85e 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedserver', - version: '2.0.38', + version: '2.0.39', description: 'easy serving of static files' } diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index b08d7cb..da3c85e 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedserver', - version: '2.0.38', + version: '2.0.39', description: 'easy serving of static files' }