fix(core): update

This commit is contained in:
Philipp Kunz 2023-07-09 17:24:52 +02:00
parent 4a57f7070a
commit 14bda0bfa3
4 changed files with 101 additions and 263 deletions

View File

@ -18,12 +18,12 @@
"@gitzone/tsbundle": "^2.0.8", "@gitzone/tsbundle": "^2.0.8",
"@gitzone/tsrun": "^1.2.42", "@gitzone/tsrun": "^1.2.42",
"@gitzone/tstest": "^1.0.73", "@gitzone/tstest": "^1.0.73",
"@pushrocks/smartexpress": "^4.0.35",
"@pushrocks/tapbundle": "^5.0.8", "@pushrocks/tapbundle": "^5.0.8",
"@types/node": "^20.3.3" "@types/node": "^20.3.3"
}, },
"dependencies": { "dependencies": {
"@adobe/fetch": "^4.0.13", "@adobe/fetch": "^4.0.13",
"@apiglobal/typedserver": "^2.0.65",
"@pushrocks/smartdelay": "^3.0.1", "@pushrocks/smartdelay": "^3.0.1",
"@pushrocks/smartenv": "^5.0.2", "@pushrocks/smartenv": "^5.0.2",
"@pushrocks/smartjson": "^5.0.6", "@pushrocks/smartjson": "^5.0.6",

File diff suppressed because it is too large Load Diff

View File

@ -2,12 +2,12 @@ import { expect, tap } from '@pushrocks/tapbundle';
import * as webrequest from '../ts/index.js'; import * as webrequest from '../ts/index.js';
// test dependencies // test dependencies
import * as smartexpress from '@pushrocks/smartexpress'; import * as typedserver from '@apiglobal/typedserver';
let testServer: smartexpress.Server; let testServer: typedserver.servertools.Server;
tap.test('setup test server', async () => { tap.test('setup test server', async () => {
testServer = new smartexpress.Server({ testServer = new typedserver.servertools.Server({
cors: false, cors: false,
forceSsl: false, forceSsl: false,
port: 2345, port: 2345,
@ -15,7 +15,7 @@ tap.test('setup test server', async () => {
testServer.addRoute( testServer.addRoute(
'/apiroute1', '/apiroute1',
new smartexpress.Handler('GET', (req, res) => { new typedserver.servertools.Handler('GET', (req, res) => {
res.status(429); res.status(429);
res.end(); res.end();
}) })
@ -23,7 +23,7 @@ tap.test('setup test server', async () => {
testServer.addRoute( testServer.addRoute(
'/apiroute2', '/apiroute2',
new smartexpress.Handler('GET', (req, res) => { new typedserver.servertools.Handler('GET', (req, res) => {
res.status(500); res.status(500);
res.end(); res.end();
}) })
@ -31,7 +31,7 @@ tap.test('setup test server', async () => {
testServer.addRoute( testServer.addRoute(
'/apiroute3', '/apiroute3',
new smartexpress.Handler('GET', (req, res) => { new typedserver.servertools.Handler('GET', (req, res) => {
res.status(200); res.status(200);
res.send({ res.send({
hithere: 'hi', hithere: 'hi',

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/webrequest', name: '@pushrocks/webrequest',
version: '3.0.27', version: '3.0.28',
description: 'securely request from browsers' description: 'securely request from browsers'
} }