@verdaccio/types 14.0.0-next-9.14 → 14.0.0-next-9.16
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/package.json +2 -1
- package/src/configuration.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/types",
|
|
3
|
-
"version": "14.0.0-next-9.
|
|
3
|
+
"version": "14.0.0-next-9.16",
|
|
4
4
|
"description": "Verdaccio Type Definitions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"private",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"main": "src/types.ts",
|
|
34
34
|
"types": "src/types.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
+
"@types/cors": "2.8.19",
|
|
36
37
|
"@types/jsonwebtoken": "9.0.10"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
package/src/configuration.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CorsOptions } from 'cors';
|
|
1
2
|
import type { Algorithm as Algorithms, SignOptions, VerifyOptions } from 'jsonwebtoken';
|
|
2
3
|
import type { AgentOptions as HttpAgentOptions } from 'node:http';
|
|
3
4
|
import type { AgentOptions as HttpsAgentOptions } from 'node:https';
|
|
@@ -313,6 +314,12 @@ export type ServerSettingsConf = {
|
|
|
313
314
|
// When true, static file requests (/-/static/*) are hidden from pino logs
|
|
314
315
|
// and only visible via DEBUG=verdaccio:middleware:log. Defaults to true.
|
|
315
316
|
hideStaticLogs?: boolean;
|
|
317
|
+
// When true, successful /-/ping requests are hidden from pino logs
|
|
318
|
+
// and only visible via DEBUG=verdaccio:middleware:log. Failed pings
|
|
319
|
+
// (status >= 400) are still logged. Defaults to true.
|
|
320
|
+
hidePingLogs?: boolean;
|
|
321
|
+
// Options passed to the cors middleware. Omit to use cors defaults.
|
|
322
|
+
cors?: CorsOptions;
|
|
316
323
|
};
|
|
317
324
|
|
|
318
325
|
/**
|