@verdaccio/server 6.0.0-6-next.19 → 6.0.0-6-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/build/debug/index.js +2 -8
- package/build/debug/index.js.map +1 -1
- package/package.json +10 -9
- package/src/debug/index.ts +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @verdaccio/server
|
|
2
2
|
|
|
3
|
+
## 6.0.0-6-next.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [2c594910]
|
|
8
|
+
- @verdaccio/logger@6.0.0-6-next.5
|
|
9
|
+
- @verdaccio/api@6.0.0-6-next.15
|
|
10
|
+
- @verdaccio/auth@6.0.0-6-next.12
|
|
11
|
+
- @verdaccio/loaders@6.0.0-6-next.5
|
|
12
|
+
- @verdaccio/middleware@6.0.0-6-next.12
|
|
13
|
+
- @verdaccio/store@6.0.0-6-next.13
|
|
14
|
+
- @verdaccio/web@6.0.0-6-next.18
|
|
15
|
+
|
|
3
16
|
## 6.0.0-6-next.19
|
|
4
17
|
|
|
5
18
|
### Major Changes
|
package/build/debug/index.js
CHANGED
|
@@ -5,16 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
8
|
var _default = (app, configPath) => {
|
|
13
9
|
// Hook for tests only
|
|
14
10
|
app.get('/-/_debug', function (req, res, next) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (doGarbabeCollector) {
|
|
11
|
+
if (global.gc) {
|
|
18
12
|
global.gc();
|
|
19
13
|
}
|
|
20
14
|
|
|
@@ -24,7 +18,7 @@ var _default = (app, configPath) => {
|
|
|
24
18
|
main: process.mainModule.filename,
|
|
25
19
|
conf: configPath,
|
|
26
20
|
mem: process.memoryUsage(),
|
|
27
|
-
gc:
|
|
21
|
+
gc: global.gc
|
|
28
22
|
});
|
|
29
23
|
});
|
|
30
24
|
};
|
package/build/debug/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/debug/index.ts"],"names":["app","configPath","get","req","res","next","
|
|
1
|
+
{"version":3,"sources":["../../src/debug/index.ts"],"names":["app","configPath","get","req","res","next","global","gc","pid","process","main","mainModule","filename","conf","mem","memoryUsage"],"mappings":";;;;;;;eAGe,CAACA,GAAD,EAAmBC,UAAnB,KAAgD;AAC7D;AACAD,EAAAA,GAAG,CAACE,GAAJ,CACE,WADF,EAEE,UAAUC,GAAV,EAA+BC,GAA/B,EAAqDC,IAArD,EAAmF;AACjF,QAAIC,MAAM,CAACC,EAAX,EAAe;AACbD,MAAAA,MAAM,CAACC,EAAP;AACD;;AAEDF,IAAAA,IAAI,CAAC;AACHG,MAAAA,GAAG,EAAEC,OAAO,CAACD,GADV;AAEH;AACAE,MAAAA,IAAI,EAAED,OAAO,CAACE,UAAR,CAAmBC,QAHtB;AAIHC,MAAAA,IAAI,EAAEZ,UAJH;AAKHa,MAAAA,GAAG,EAAEL,OAAO,CAACM,WAAR,EALF;AAMHR,MAAAA,EAAE,EAAED,MAAM,CAACC;AANR,KAAD,CAAJ;AAQD,GAfH;AAiBD,C","sourcesContent":["import { Application } from 'express';\nimport { $ResponseExtend, $RequestExtend, $NextFunctionVer } from '../../types/custom';\n\nexport default (app: Application, configPath: string): void => {\n // Hook for tests only\n app.get(\n '/-/_debug',\n function (req: $RequestExtend, res: $ResponseExtend, next: $NextFunctionVer): void {\n if (global.gc) {\n global.gc();\n }\n\n next({\n pid: process.pid,\n // @ts-ignore\n main: process.mainModule.filename,\n conf: configPath,\n mem: process.memoryUsage(),\n gc: global.gc,\n });\n }\n );\n};\n"],"file":"index.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/server",
|
|
3
|
-
"version": "6.0.0-6-next.
|
|
3
|
+
"version": "6.0.0-6-next.20",
|
|
4
4
|
"description": "server logic",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"npm": ">=6"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@verdaccio/api": "6.0.0-6-next.
|
|
34
|
-
"@verdaccio/auth": "6.0.0-6-next.
|
|
33
|
+
"@verdaccio/api": "6.0.0-6-next.15",
|
|
34
|
+
"@verdaccio/auth": "6.0.0-6-next.12",
|
|
35
35
|
"@verdaccio/commons-api": "11.0.0-6-next.4",
|
|
36
36
|
"@verdaccio/config": "6.0.0-6-next.8",
|
|
37
|
-
"@verdaccio/loaders": "6.0.0-6-next.
|
|
38
|
-
"@verdaccio/logger": "6.0.0-6-next.
|
|
39
|
-
"@verdaccio/middleware": "6.0.0-6-next.
|
|
40
|
-
"@verdaccio/store": "6.0.0-6-next.
|
|
37
|
+
"@verdaccio/loaders": "6.0.0-6-next.5",
|
|
38
|
+
"@verdaccio/logger": "6.0.0-6-next.5",
|
|
39
|
+
"@verdaccio/middleware": "6.0.0-6-next.12",
|
|
40
|
+
"@verdaccio/store": "6.0.0-6-next.13",
|
|
41
41
|
"@verdaccio/utils": "6.0.0-6-next.6",
|
|
42
|
-
"@verdaccio/web": "6.0.0-6-next.
|
|
42
|
+
"@verdaccio/web": "6.0.0-6-next.18",
|
|
43
43
|
"verdaccio-audit": "11.0.0-6-next.6",
|
|
44
44
|
"compression": "1.7.4",
|
|
45
45
|
"cors": "2.8.5",
|
|
@@ -49,8 +49,9 @@
|
|
|
49
49
|
"lodash": "4.17.21"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
+
"@types/node": "16.9.1",
|
|
52
53
|
"@verdaccio/mock": "6.0.0-6-next.9",
|
|
53
|
-
"@verdaccio/proxy": "6.0.0-6-next.
|
|
54
|
+
"@verdaccio/proxy": "6.0.0-6-next.12",
|
|
54
55
|
"http-errors": "1.8.0",
|
|
55
56
|
"request": "2.87.0"
|
|
56
57
|
},
|
package/src/debug/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _ from 'lodash';
|
|
2
1
|
import { Application } from 'express';
|
|
3
2
|
import { $ResponseExtend, $RequestExtend, $NextFunctionVer } from '../../types/custom';
|
|
4
3
|
|
|
@@ -7,9 +6,7 @@ export default (app: Application, configPath: string): void => {
|
|
|
7
6
|
app.get(
|
|
8
7
|
'/-/_debug',
|
|
9
8
|
function (req: $RequestExtend, res: $ResponseExtend, next: $NextFunctionVer): void {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (doGarbabeCollector) {
|
|
9
|
+
if (global.gc) {
|
|
13
10
|
global.gc();
|
|
14
11
|
}
|
|
15
12
|
|
|
@@ -19,7 +16,7 @@ export default (app: Application, configPath: string): void => {
|
|
|
19
16
|
main: process.mainModule.filename,
|
|
20
17
|
conf: configPath,
|
|
21
18
|
mem: process.memoryUsage(),
|
|
22
|
-
gc:
|
|
19
|
+
gc: global.gc,
|
|
23
20
|
});
|
|
24
21
|
}
|
|
25
22
|
);
|