@verdaccio/types 13.0.0-next-8.10 → 14.0.0-next-9.0
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 +1 -1
- package/src/commons.ts +1 -1
- package/src/configuration.ts +35 -4
- package/src/plugins/storage.ts +2 -2
package/package.json
CHANGED
package/src/commons.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export type Callback = Function;
|
|
3
3
|
// FIXME: err should be something flexible enough for any implementation
|
|
4
4
|
export type CallbackAction = (err: any | null) => void;
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
export type CallbackError = (err: NodeJS.ErrnoException) => void;
|
|
7
7
|
|
|
8
8
|
export interface RemoteUser {
|
package/src/configuration.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Algorithm as Algorithms, SignOptions, VerifyOptions } from 'jsonwebtoken';
|
|
2
|
-
import { AgentOptions as HttpAgentOptions } from 'node:http';
|
|
3
|
-
import { AgentOptions as HttpsAgentOptions } from 'node:https';
|
|
1
|
+
import type { Algorithm as Algorithms, SignOptions, VerifyOptions } from 'jsonwebtoken';
|
|
2
|
+
import type { AgentOptions as HttpAgentOptions } from 'node:http';
|
|
3
|
+
import type { AgentOptions as HttpsAgentOptions } from 'node:https';
|
|
4
4
|
|
|
5
|
-
import { PackageAccess, PackageList } from '@verdaccio/types/src/manifest';
|
|
5
|
+
import type { PackageAccess, PackageList } from '@verdaccio/types/src/manifest';
|
|
6
6
|
|
|
7
7
|
export type TypeToken = 'Bearer' | 'Basic';
|
|
8
8
|
|
|
@@ -81,9 +81,40 @@ export type RateLimit = {
|
|
|
81
81
|
max?: number;
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Feature flags configuration.
|
|
86
|
+
*
|
|
87
|
+
* Enables or disables optional functionality at runtime.
|
|
88
|
+
* All flags are optional and default to `false` when not specified.
|
|
89
|
+
*/
|
|
84
90
|
export type FlagsConfig = {
|
|
91
|
+
/**
|
|
92
|
+
* Enables searching for packages in remote registries.
|
|
93
|
+
* If `false`, only the local registry will be queried.
|
|
94
|
+
*
|
|
95
|
+
* @default false
|
|
96
|
+
*/
|
|
85
97
|
searchRemote?: boolean;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Enables user password change functionality.
|
|
101
|
+
*
|
|
102
|
+
* @default false
|
|
103
|
+
*/
|
|
86
104
|
changePassword?: boolean;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Enables user creation through the API.
|
|
108
|
+
*
|
|
109
|
+
* @default false
|
|
110
|
+
*/
|
|
111
|
+
createUser?: boolean;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Enables web-based login flow.
|
|
115
|
+
*
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
87
118
|
webLogin?: boolean;
|
|
88
119
|
};
|
|
89
120
|
|
package/src/plugins/storage.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Callback, CallbackAction } from '@verdaccio/types/src/commons';
|
|
2
|
-
import { Manifest, Token } from '@verdaccio/types/src/manifest';
|
|
1
|
+
import type { Callback, CallbackAction } from '@verdaccio/types/src/commons';
|
|
2
|
+
import type { Manifest, Token } from '@verdaccio/types/src/manifest';
|
|
3
3
|
|
|
4
4
|
export type StorageList = string[];
|
|
5
5
|
|