UNPKG

@verdaccio/server

Version:

server logic

24 lines (23 loc) 503 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _default = (app, configPath) => { // Hook for tests only app.get('/-/_debug', function (req, res, next) { if (global.gc) { global.gc(); } next({ pid: process.pid, // @ts-ignore main: process.main, conf: configPath, mem: process.memoryUsage(), gc: global.gc }); }); }; exports.default = _default; //# sourceMappingURL=index.js.map