Fixes esm problem with http link header library

main
Jackson Morgan 4 months ago
parent 1a85b65e4e
commit d3bde9d959
  1. 5
      packages/connected-solid/src/requester/requests/checkRootContainer.ts
  2. 6
      packages/test-solid-server/src/createServer.ts

@ -1,5 +1,5 @@
import type { BasicRequestOptions } from "./requestOptions.js";
import { parse as parseLinkHeader } from "http-link-header";
import * as httpLinkHeader from "http-link-header";
import { CheckRootContainerSuccess } from "../results/success/CheckRootContainerSuccess.js";
import type {
HttpErrorResultType,
@ -10,6 +10,9 @@ import { UnexpectedResourceError } from "@ldo/connected";
import type { SolidContainer } from "../../resources/SolidContainer.js";
import { guaranteeFetch } from "../../util/guaranteeFetch.js";
const parseLinkHeader: (typeof httpLinkHeader)["default"]["parse"] =
httpLinkHeader.default.parse;
/**
* checkRootContainer result
*/

@ -3,6 +3,12 @@
import * as path from "path";
import type { App } from "@solid/community-server";
import { AppRunner, resolveModulePath } from "@solid/community-server";
import { dirname } from "node:path";
import { fileURLToPath } from "node:url";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const __dirname = dirname(fileURLToPath(import.meta.url));
export async function createApp(
port: number,

Loading…
Cancel
Save