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,
CoreApiResponse,
CoreApiResponseSuccess,
createPlatformHttpLib,
getErrorDetailFromException,
InitRequest,
Logger,
@ -29,6 +28,7 @@ import {
setPRNG,
WalletNotification,
} from "@gnu-taler/taler-util";
import { createPlatformHttpLib } from "@gnu-taler/taler-util/http";
import { qjsOs } from "@gnu-taler/taler-util/qtart";
import {
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";
export const walletCli = clk

View File

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

View File

@ -6,7 +6,7 @@
"jsx": "react",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
"moduleResolution": "Node",
"moduleResolution": "Node16",
"sourceMap": true,
"lib": [
"es6"