Archived
1
0

Expose HttpError to plugins

This will let them throw and show nice errors more easily.
This commit is contained in:
Asher
2021-01-29 17:42:50 -06:00
parent 22d194515a
commit c78f56b334
4 changed files with 26 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import * as fs from "fs"
import * as path from "path"
import * as semver from "semver"
import * as pluginapi from "../../typings/pluginapi"
import { HttpCode, HttpError } from "../common/http"
import { version } from "./constants"
import { replaceTemplates } from "./http"
import { proxy } from "./proxy"
@ -22,6 +23,8 @@ require("module")._load = function (request: string, parent: object, isMain: boo
return {
express,
field,
HttpCode,
HttpError,
Level,
proxy,
replaceTemplates,