Skip to content

Commit

Permalink
refactor(express): update node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
sixmen committed Oct 27, 2024
1 parent a3a1feb commit 2079f7a
Show file tree
Hide file tree
Showing 5 changed files with 580 additions and 489 deletions.
1 change: 0 additions & 1 deletion packages/express/lib/logger.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="qs" />
import express from 'express';
import { IExpressConfig } from './config';
declare const _default: (config: IExpressConfig) => express.RequestHandler<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>;
Expand Down
3 changes: 1 addition & 2 deletions packages/express/lib/response.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.install = void 0;
exports.install = install;
function install(response) {
response.sendResult = function (status, obj, for_logging) {
if (typeof status !== 'number') {
Expand Down Expand Up @@ -37,4 +37,3 @@ function install(response) {
});
};
}
exports.install = install;
3 changes: 1 addition & 2 deletions packages/express/lib/util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.shrinkStackTrace = void 0;
exports.shrinkStackTrace = shrinkStackTrace;
function shrinkStackTrace(stack, project_root, limit = 3) {
// cut first line
stack = stack.substr(stack.indexOf('\n') + 1);
Expand All @@ -14,4 +14,3 @@ function shrinkStackTrace(stack, project_root, limit = 3) {
return line.replace(project_root, '').trim();
});
}
exports.shrinkStackTrace = shrinkStackTrace;
Loading

0 comments on commit 2079f7a

Please sign in to comment.