@verdaccio/types 14.0.0-next-9.13 → 14.0.0-next-9.15
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 +3 -0
- package/src/search.ts +3 -2
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.15",
|
|
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,8 @@ 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
|
+
// Options passed to the cors middleware. Omit to use cors defaults.
|
|
318
|
+
cors?: CorsOptions;
|
|
316
319
|
};
|
|
317
320
|
|
|
318
321
|
/**
|
package/src/search.ts
CHANGED
|
@@ -5,14 +5,15 @@ export type PublisherMaintainer = {
|
|
|
5
5
|
|
|
6
6
|
export type SearchPackageBody = {
|
|
7
7
|
name: string;
|
|
8
|
-
scope
|
|
8
|
+
scope?: string;
|
|
9
9
|
description: string;
|
|
10
10
|
author: string | PublisherMaintainer;
|
|
11
11
|
version: string;
|
|
12
|
+
license?: string;
|
|
12
13
|
keywords: string | string[] | undefined;
|
|
13
14
|
date: string;
|
|
14
15
|
links?: {
|
|
15
|
-
npm
|
|
16
|
+
npm?: string;
|
|
16
17
|
homepage?: string;
|
|
17
18
|
repository?: string;
|
|
18
19
|
bugs?: string;
|