web-util fixes

This commit is contained in:
Florian Dold 2023-02-16 01:01:18 +01:00
parent 825d2c4352
commit 8e78bf73a0
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
4 changed files with 7 additions and 6 deletions

View File

@ -21,7 +21,6 @@ import {
CoreApiMessageEnvelope, CoreApiMessageEnvelope,
CoreApiResponse, CoreApiResponse,
CoreApiResponseSuccess, CoreApiResponseSuccess,
createPlatformHttpLib,
getErrorDetailFromException, getErrorDetailFromException,
InitRequest, InitRequest,
Logger, Logger,
@ -29,6 +28,7 @@ import {
setPRNG, setPRNG,
WalletNotification, WalletNotification,
} from "@gnu-taler/taler-util"; } from "@gnu-taler/taler-util";
import { createPlatformHttpLib } from "@gnu-taler/taler-util/http";
import { qjsOs } from "@gnu-taler/taler-util/qtart"; import { qjsOs } from "@gnu-taler/taler-util/qtart";
import { import {
createNativeWalletHost2, createNativeWalletHost2,

View File

@ -1,4 +1,5 @@
import { clk, setGlobalLogLevelFromString } from "@gnu-taler/taler-util"; import { setGlobalLogLevelFromString } from "@gnu-taler/taler-util";
import { clk } from "@gnu-taler/taler-util/clk";
import { serve } from "./serve.js"; import { serve } from "./serve.js";
export const walletCli = clk export const walletCli = clk

View File

@ -3,7 +3,7 @@ import chokidar from "chokidar";
import express from "express"; import express from "express";
import https from "https"; import https from "https";
import { parse } from "url"; import { parse } from "url";
import WebSocket, { Server } from "ws"; import WebSocket from "ws";
import locahostCrt from "./keys/localhost.crt"; import locahostCrt from "./keys/localhost.crt";
import locahostKey from "./keys/localhost.key"; import locahostKey from "./keys/localhost.key";
@ -45,7 +45,7 @@ export async function serve(opts: {
logger.info(` ${PATHS.NOTIFY}: broadcast`); logger.info(` ${PATHS.NOTIFY}: broadcast`);
if (opts.development) { if (opts.development) {
const wss = new Server({ noServer: true }); const wss = new WebSocket.Server({ noServer: true });
wss.on("connection", function connection(ws) { wss.on("connection", function connection(ws) {
ws.send("welcome"); ws.send("welcome");

View File

@ -6,7 +6,7 @@
"jsx": "react", "jsx": "react",
"jsxFactory": "h", "jsxFactory": "h",
"jsxFragmentFactory": "Fragment", "jsxFragmentFactory": "Fragment",
"moduleResolution": "Node", "moduleResolution": "Node16",
"sourceMap": true, "sourceMap": true,
"lib": [ "lib": [
"es6" "es6"
@ -31,4 +31,4 @@
"include": [ "include": [
"src/**/*" "src/**/*"
] ]
} }