@verdaccio/config 8.0.0-next-8.36 → 8.0.0-next-8.38
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/README.md +106 -22
- package/build/builder.d.ts +19 -1
- package/build/builder.js +76 -3
- package/build/builder.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -33,41 +33,125 @@ To start using `@verdaccio/config`, import the `ConfigBuilder` class and begin c
|
|
|
33
33
|
|
|
34
34
|
## `ConfigBuilder` constructor
|
|
35
35
|
|
|
36
|
-
The `ConfigBuilder` class is a helper configuration builder constructor used to programmatically create configuration objects for testing or other purposes.
|
|
36
|
+
The `ConfigBuilder` class is a helper configuration builder constructor used to programmatically create configuration objects for testing or other purposes. All setter methods return `this` for fluent chaining.
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
|
|
40
39
|
import { ConfigBuilder } from '@verdaccio/config';
|
|
40
|
+
import { constants } from '@verdaccio/core';
|
|
41
|
+
|
|
42
|
+
const config = ConfigBuilder.build()
|
|
43
|
+
.addStorage('./storage')
|
|
44
|
+
.addSecurity({
|
|
45
|
+
api: {
|
|
46
|
+
jwt: { sign: { expiresIn: '7d' }, verify: {} },
|
|
47
|
+
legacy: false,
|
|
48
|
+
},
|
|
49
|
+
web: {
|
|
50
|
+
sign: { expiresIn: '1h' },
|
|
51
|
+
verify: {},
|
|
52
|
+
},
|
|
53
|
+
})
|
|
54
|
+
.addAuth({
|
|
55
|
+
htpasswd: { file: '.htpasswd' },
|
|
56
|
+
})
|
|
57
|
+
.addUplink('npmjs', { url: 'https://registry.npmjs.org/' })
|
|
58
|
+
.addPackageAccess('@scope/*', {
|
|
59
|
+
access: constants.ROLES.$AUTH,
|
|
60
|
+
publish: constants.ROLES.$AUTH,
|
|
61
|
+
proxy: 'npmjs',
|
|
62
|
+
})
|
|
63
|
+
.addWeb({ title: 'My Registry', darkMode: true, primaryColor: '#4b5e40' })
|
|
64
|
+
.addLogger({ type: 'stdout', format: 'pretty', level: 'info' })
|
|
65
|
+
.addMiddlewares({ audit: { enabled: true } })
|
|
66
|
+
.addFlags({ changePassword: true })
|
|
67
|
+
.addI18n({ web: 'en-US' });
|
|
41
68
|
|
|
42
|
-
//
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
// Add package access configuration
|
|
46
|
-
configBuilder.addPackageAccess('@scope/*', { access: 'read', publish: 'write' });
|
|
47
|
-
|
|
48
|
-
// Add an uplink configuration
|
|
49
|
-
configBuilder.addUplink('npmjs', { url: 'https://registry.npmjs.org/' });
|
|
69
|
+
// Get the configuration object
|
|
70
|
+
const configObj = config.getConfig();
|
|
50
71
|
|
|
51
|
-
//
|
|
52
|
-
|
|
72
|
+
// Get the configuration as YAML text
|
|
73
|
+
const configYaml = config.getAsYaml();
|
|
74
|
+
```
|
|
53
75
|
|
|
54
|
-
|
|
55
|
-
const config = configBuilder.getConfig();
|
|
76
|
+
You can also pass an initial partial configuration to `ConfigBuilder.build()`:
|
|
56
77
|
|
|
57
|
-
|
|
58
|
-
const config =
|
|
78
|
+
```typescript
|
|
79
|
+
const config = ConfigBuilder.build({ security: { api: { legacy: false } } });
|
|
59
80
|
```
|
|
60
81
|
|
|
61
82
|
### Methods
|
|
62
83
|
|
|
63
|
-
- `addPackageAccess(pattern: string, pkgAccess: PackageAccessYaml)`: Adds package access configuration.
|
|
84
|
+
- `addPackageAccess(pattern: string, pkgAccess: PackageAccessYaml)`: Adds package access configuration for a pattern.
|
|
64
85
|
- `addUplink(id: string, uplink: UpLinkConf)`: Adds an uplink configuration.
|
|
65
|
-
- `addSecurity(security: Partial<Security>)`:
|
|
66
|
-
- `addAuth(auth: Partial<AuthConf>)`:
|
|
67
|
-
- `addLogger(log:
|
|
68
|
-
- `
|
|
86
|
+
- `addSecurity(security: Partial<Security>)`: Merges security configuration.
|
|
87
|
+
- `addAuth(auth: Partial<AuthConf>)`: Merges authentication configuration.
|
|
88
|
+
- `addLogger(log: LoggerConfigItem)`: Sets logger configuration.
|
|
89
|
+
- `addServer(server: Partial<ServerSettingsConf>)`: Merges server settings.
|
|
90
|
+
- `addStorage(storage: string | object)`: Sets storage path (string) or store plugin configuration (object).
|
|
91
|
+
- `addWeb(web: Partial<WebConf>)`: Merges web UI configuration.
|
|
92
|
+
- `addListen(listen: ListenAddress)`: Sets listen address.
|
|
93
|
+
- `addHttps(https: HttpsConf)`: Sets HTTPS configuration.
|
|
94
|
+
- `addPublish(publish: Partial<PublishOptions>)`: Merges publish options.
|
|
95
|
+
- `addFlags(flags: Partial<FlagsConfig>)`: Merges feature flags.
|
|
96
|
+
- `addNotify(notify: Notifications | Notifications[])`: Sets notification hooks.
|
|
97
|
+
- `addMiddlewares(middlewares: any)`: Merges middlewares configuration.
|
|
98
|
+
- `addFilters(filters: any)`: Merges filters configuration.
|
|
99
|
+
- `addMaxBodySize(maxBodySize: string)`: Sets the max body size (e.g., `'50mb'`).
|
|
100
|
+
- `addUserRateLimit(rateLimit: RateLimit)`: Merges user rate limit settings.
|
|
101
|
+
- `addUrlPrefix(urlPrefix: string)`: Sets URL prefix.
|
|
102
|
+
- `addI18n(i18n: ConfigYaml['i18n'])`: Sets i18n configuration.
|
|
103
|
+
- `addUserAgent(userAgent: string)`: Sets the user agent string.
|
|
104
|
+
- `addHttpProxy(httpProxy: string)`: Sets the HTTP proxy.
|
|
105
|
+
- `addHttpsProxy(httpsProxy: string)`: Sets the HTTPS proxy.
|
|
106
|
+
- `addNoProxy(noProxy: string)`: Sets the no-proxy exclusion list.
|
|
107
|
+
- `addPlugins(plugins: string)`: Sets the plugins directory path.
|
|
108
|
+
- `addNotifications(notifications: Notifications)`: Sets notifications configuration.
|
|
69
109
|
- `getConfig(): ConfigYaml`: Retrieves the configuration object.
|
|
70
|
-
- `getAsYaml(): string`: Retrieves the configuration
|
|
110
|
+
- `getAsYaml(): string`: Retrieves the configuration as YAML format.
|
|
111
|
+
|
|
112
|
+
## Using `ConfigBuilder` with `runServer`
|
|
113
|
+
|
|
114
|
+
The `ConfigBuilder` pairs with `runServer` from the `verdaccio` package to start a registry programmatically:
|
|
115
|
+
|
|
116
|
+
```typescript
|
|
117
|
+
import { runServer } from 'verdaccio';
|
|
118
|
+
|
|
119
|
+
import { ConfigBuilder } from '@verdaccio/config';
|
|
120
|
+
import { constants } from '@verdaccio/core';
|
|
121
|
+
|
|
122
|
+
const config = ConfigBuilder.build()
|
|
123
|
+
.addStorage('./storage')
|
|
124
|
+
.addAuth({ htpasswd: { file: '.htpasswd' } })
|
|
125
|
+
.addUplink('npmjs', { url: 'https://registry.npmjs.org/' })
|
|
126
|
+
.addPackageAccess(constants.PACKAGE_ACCESS.SCOPE, {
|
|
127
|
+
access: constants.ROLES.$AUTH,
|
|
128
|
+
publish: constants.ROLES.$AUTH,
|
|
129
|
+
proxy: 'npmjs',
|
|
130
|
+
})
|
|
131
|
+
.addPackageAccess(constants.PACKAGE_ACCESS.ALL, {
|
|
132
|
+
access: constants.ROLES.$ALL,
|
|
133
|
+
publish: constants.ROLES.$AUTH,
|
|
134
|
+
proxy: 'npmjs',
|
|
135
|
+
})
|
|
136
|
+
.addWeb({ title: 'My Registry', darkMode: true })
|
|
137
|
+
.addMiddlewares({ audit: { enabled: true } })
|
|
138
|
+
.addLogger({ type: 'stdout', format: 'pretty', level: 'info' })
|
|
139
|
+
.addSecurity({
|
|
140
|
+
api: { jwt: { sign: { expiresIn: '7d' }, verify: {} }, legacy: false },
|
|
141
|
+
web: { sign: { expiresIn: '1h' }, verify: {} },
|
|
142
|
+
})
|
|
143
|
+
.addI18n({ web: 'en-US' });
|
|
144
|
+
|
|
145
|
+
runServer(config.getConfig())
|
|
146
|
+
.then((app) => {
|
|
147
|
+
app.listen(4873, () => {
|
|
148
|
+
console.log('verdaccio running on port 4873');
|
|
149
|
+
});
|
|
150
|
+
})
|
|
151
|
+
.catch((err) => {
|
|
152
|
+
console.error(err);
|
|
153
|
+
});
|
|
154
|
+
```
|
|
71
155
|
|
|
72
156
|
## `getDefaultConfig`
|
|
73
157
|
|
package/build/builder.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AuthConf, ConfigYaml, LoggerConfigItem, PackageAccessYaml, Security, UpLinkConf } from '@verdaccio/types';
|
|
1
|
+
import type { AuthConf, ConfigYaml, FlagsConfig, HttpsConf, ListenAddress, LoggerConfigItem, Notifications, PackageAccessYaml, PublishOptions, RateLimit, Security, UpLinkConf, WebConf } from '@verdaccio/types';
|
|
2
2
|
/**
|
|
3
3
|
* Helper configuration builder constructor, used to build the configuration for testing or
|
|
4
4
|
* programatically creating a configuration.
|
|
@@ -13,6 +13,24 @@ export default class ConfigBuilder {
|
|
|
13
13
|
addAuth(auth: Partial<AuthConf>): this;
|
|
14
14
|
addLogger(log: LoggerConfigItem): this;
|
|
15
15
|
addStorage(storage: string | object): this;
|
|
16
|
+
addWeb(web: Partial<WebConf>): this;
|
|
17
|
+
addListen(listen: ListenAddress): this;
|
|
18
|
+
addHttps(https: HttpsConf): this;
|
|
19
|
+
addPublish(publish: Partial<PublishOptions>): this;
|
|
20
|
+
addFlags(flags: Partial<FlagsConfig>): this;
|
|
21
|
+
addNotify(notify: Notifications | Notifications[]): this;
|
|
22
|
+
addMiddlewares(middlewares: any): this;
|
|
23
|
+
addFilters(filters: any): this;
|
|
24
|
+
addMaxBodySize(maxBodySize: string): this;
|
|
25
|
+
addUserRateLimit(rateLimit: RateLimit): this;
|
|
26
|
+
addUrlPrefix(urlPrefix: string): this;
|
|
27
|
+
addI18n(i18n: ConfigYaml['i18n']): this;
|
|
28
|
+
addUserAgent(userAgent: string): this;
|
|
29
|
+
addHttpProxy(httpProxy: string): this;
|
|
30
|
+
addHttpsProxy(httpsProxy: string): this;
|
|
31
|
+
addNoProxy(noProxy: string): this;
|
|
32
|
+
addPlugins(plugins: string): this;
|
|
33
|
+
addNotifications(notifications: Notifications): this;
|
|
16
34
|
getConfig(): ConfigYaml;
|
|
17
35
|
getAsYaml(): string;
|
|
18
36
|
}
|
package/build/builder.js
CHANGED
|
@@ -12,17 +12,18 @@ var _ = require(".");
|
|
|
12
12
|
*/
|
|
13
13
|
class ConfigBuilder {
|
|
14
14
|
constructor(config) {
|
|
15
|
-
this.config = (0, _lodash.merge)(
|
|
15
|
+
this.config = (0, _lodash.merge)({
|
|
16
16
|
uplinks: {},
|
|
17
17
|
packages: {},
|
|
18
18
|
security: {}
|
|
19
|
-
});
|
|
19
|
+
}, config);
|
|
20
20
|
}
|
|
21
21
|
static build(config) {
|
|
22
22
|
return new ConfigBuilder(config);
|
|
23
23
|
}
|
|
24
24
|
addPackageAccess(pattern, pkgAccess) {
|
|
25
|
-
//
|
|
25
|
+
// PackageAccessYaml uses string for publish/access while PackageAccess uses string[]
|
|
26
|
+
// The config parser normalizes these later, so the cast is safe here
|
|
26
27
|
this.config.packages[pattern] = pkgAccess;
|
|
27
28
|
return this;
|
|
28
29
|
}
|
|
@@ -50,6 +51,78 @@ class ConfigBuilder {
|
|
|
50
51
|
}
|
|
51
52
|
return this;
|
|
52
53
|
}
|
|
54
|
+
addWeb(web) {
|
|
55
|
+
this.config.web = (0, _lodash.merge)(this.config.web, web);
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
addListen(listen) {
|
|
59
|
+
this.config.listen = listen;
|
|
60
|
+
return this;
|
|
61
|
+
}
|
|
62
|
+
addHttps(https) {
|
|
63
|
+
this.config.https = https;
|
|
64
|
+
return this;
|
|
65
|
+
}
|
|
66
|
+
addPublish(publish) {
|
|
67
|
+
this.config.publish = (0, _lodash.merge)(this.config.publish, publish);
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
addFlags(flags) {
|
|
71
|
+
this.config.flags = (0, _lodash.merge)(this.config.flags, flags);
|
|
72
|
+
return this;
|
|
73
|
+
}
|
|
74
|
+
addNotify(notify) {
|
|
75
|
+
this.config.notify = notify;
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
addMiddlewares(middlewares) {
|
|
79
|
+
this.config.middlewares = (0, _lodash.merge)(this.config.middlewares, middlewares);
|
|
80
|
+
return this;
|
|
81
|
+
}
|
|
82
|
+
addFilters(filters) {
|
|
83
|
+
this.config.filters = (0, _lodash.merge)(this.config.filters, filters);
|
|
84
|
+
return this;
|
|
85
|
+
}
|
|
86
|
+
addMaxBodySize(maxBodySize) {
|
|
87
|
+
this.config.max_body_size = maxBodySize;
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
addUserRateLimit(rateLimit) {
|
|
91
|
+
this.config.userRateLimit = (0, _lodash.merge)(this.config.userRateLimit, rateLimit);
|
|
92
|
+
return this;
|
|
93
|
+
}
|
|
94
|
+
addUrlPrefix(urlPrefix) {
|
|
95
|
+
this.config.url_prefix = urlPrefix;
|
|
96
|
+
return this;
|
|
97
|
+
}
|
|
98
|
+
addI18n(i18n) {
|
|
99
|
+
this.config.i18n = i18n;
|
|
100
|
+
return this;
|
|
101
|
+
}
|
|
102
|
+
addUserAgent(userAgent) {
|
|
103
|
+
this.config.user_agent = userAgent;
|
|
104
|
+
return this;
|
|
105
|
+
}
|
|
106
|
+
addHttpProxy(httpProxy) {
|
|
107
|
+
this.config.http_proxy = httpProxy;
|
|
108
|
+
return this;
|
|
109
|
+
}
|
|
110
|
+
addHttpsProxy(httpsProxy) {
|
|
111
|
+
this.config.https_proxy = httpsProxy;
|
|
112
|
+
return this;
|
|
113
|
+
}
|
|
114
|
+
addNoProxy(noProxy) {
|
|
115
|
+
this.config.no_proxy = noProxy;
|
|
116
|
+
return this;
|
|
117
|
+
}
|
|
118
|
+
addPlugins(plugins) {
|
|
119
|
+
this.config.plugins = plugins;
|
|
120
|
+
return this;
|
|
121
|
+
}
|
|
122
|
+
addNotifications(notifications) {
|
|
123
|
+
this.config.notifications = notifications;
|
|
124
|
+
return this;
|
|
125
|
+
}
|
|
53
126
|
getConfig() {
|
|
54
127
|
return this.config;
|
|
55
128
|
}
|
package/build/builder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.js","names":["_lodash","require","_","ConfigBuilder","constructor","config","merge","uplinks","packages","security","build","addPackageAccess","pattern","pkgAccess","addUplink","id","uplink","addSecurity","addAuth","auth","addLogger","log","addStorage","storage","store","getConfig","getAsYaml","fromJStoYAML","exports","default"],"sources":["../src/builder.ts"],"sourcesContent":["import { merge } from 'lodash';\n\nimport type {\n AuthConf,\n ConfigYaml,\n LoggerConfigItem,\n PackageAccessYaml,\n Security,\n UpLinkConf,\n} from '@verdaccio/types';\n\nimport { fromJStoYAML } from '.';\n\n/**\n * Helper configuration builder constructor, used to build the configuration for testing or\n * programatically creating a configuration.\n */\nexport default class ConfigBuilder {\n private config: ConfigYaml;\n\n public constructor(config?: Partial<ConfigYaml>) {\n this.config = merge(
|
|
1
|
+
{"version":3,"file":"builder.js","names":["_lodash","require","_","ConfigBuilder","constructor","config","merge","uplinks","packages","security","build","addPackageAccess","pattern","pkgAccess","addUplink","id","uplink","addSecurity","addAuth","auth","addLogger","log","addStorage","storage","store","addWeb","web","addListen","listen","addHttps","https","addPublish","publish","addFlags","flags","addNotify","notify","addMiddlewares","middlewares","addFilters","filters","addMaxBodySize","maxBodySize","max_body_size","addUserRateLimit","rateLimit","userRateLimit","addUrlPrefix","urlPrefix","url_prefix","addI18n","i18n","addUserAgent","userAgent","user_agent","addHttpProxy","httpProxy","http_proxy","addHttpsProxy","httpsProxy","https_proxy","addNoProxy","noProxy","no_proxy","addPlugins","plugins","addNotifications","notifications","getConfig","getAsYaml","fromJStoYAML","exports","default"],"sources":["../src/builder.ts"],"sourcesContent":["import { merge } from 'lodash';\n\nimport type {\n AuthConf,\n ConfigYaml,\n FlagsConfig,\n HttpsConf,\n ListenAddress,\n LoggerConfigItem,\n Notifications,\n PackageAccessYaml,\n PublishOptions,\n RateLimit,\n Security,\n UpLinkConf,\n WebConf,\n} from '@verdaccio/types';\n\nimport { fromJStoYAML } from '.';\n\n/**\n * Helper configuration builder constructor, used to build the configuration for testing or\n * programatically creating a configuration.\n */\nexport default class ConfigBuilder {\n private config: ConfigYaml;\n\n public constructor(config?: Partial<ConfigYaml>) {\n this.config = merge({ uplinks: {}, packages: {}, security: {} }, config);\n }\n\n public static build(config?: Partial<ConfigYaml>): ConfigBuilder {\n return new ConfigBuilder(config);\n }\n\n public addPackageAccess(pattern: string, pkgAccess: PackageAccessYaml) {\n // PackageAccessYaml uses string for publish/access while PackageAccess uses string[]\n // The config parser normalizes these later, so the cast is safe here\n (this.config.packages as Record<string, PackageAccessYaml>)[pattern] = pkgAccess;\n return this;\n }\n\n public addUplink(id: string, uplink: UpLinkConf) {\n this.config.uplinks[id] = uplink;\n return this;\n }\n\n public addSecurity(security: Partial<Security>) {\n this.config.security = merge(this.config.security, security);\n return this;\n }\n\n public addAuth(auth: Partial<AuthConf>) {\n this.config.auth = merge(this.config.auth, auth);\n return this;\n }\n\n public addLogger(log: LoggerConfigItem) {\n this.config.log = log;\n return this;\n }\n\n public addStorage(storage: string | object) {\n if (typeof storage === 'string') {\n this.config.storage = storage;\n } else {\n this.config.store = storage;\n }\n return this;\n }\n\n public addWeb(web: Partial<WebConf>) {\n this.config.web = merge(this.config.web, web);\n return this;\n }\n\n public addListen(listen: ListenAddress) {\n this.config.listen = listen;\n return this;\n }\n\n public addHttps(https: HttpsConf) {\n this.config.https = https;\n return this;\n }\n\n public addPublish(publish: Partial<PublishOptions>) {\n this.config.publish = merge(this.config.publish, publish);\n return this;\n }\n\n public addFlags(flags: Partial<FlagsConfig>) {\n this.config.flags = merge(this.config.flags, flags);\n return this;\n }\n\n public addNotify(notify: Notifications | Notifications[]) {\n this.config.notify = notify;\n return this;\n }\n\n public addMiddlewares(middlewares: any) {\n this.config.middlewares = merge(this.config.middlewares, middlewares);\n return this;\n }\n\n public addFilters(filters: any) {\n this.config.filters = merge(this.config.filters, filters);\n return this;\n }\n\n public addMaxBodySize(maxBodySize: string) {\n this.config.max_body_size = maxBodySize;\n return this;\n }\n\n public addUserRateLimit(rateLimit: RateLimit) {\n this.config.userRateLimit = merge(this.config.userRateLimit, rateLimit);\n return this;\n }\n\n public addUrlPrefix(urlPrefix: string) {\n this.config.url_prefix = urlPrefix;\n return this;\n }\n\n public addI18n(i18n: ConfigYaml['i18n']) {\n this.config.i18n = i18n;\n return this;\n }\n\n public addUserAgent(userAgent: string) {\n this.config.user_agent = userAgent;\n return this;\n }\n\n public addHttpProxy(httpProxy: string) {\n this.config.http_proxy = httpProxy;\n return this;\n }\n\n public addHttpsProxy(httpsProxy: string) {\n this.config.https_proxy = httpsProxy;\n return this;\n }\n\n public addNoProxy(noProxy: string) {\n this.config.no_proxy = noProxy;\n return this;\n }\n\n public addPlugins(plugins: string) {\n this.config.plugins = plugins;\n return this;\n }\n\n public addNotifications(notifications: Notifications) {\n this.config.notifications = notifications;\n return this;\n }\n\n public getConfig(): ConfigYaml {\n return this.config;\n }\n\n public getAsYaml(): string {\n return fromJStoYAML(this.config) as string;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAkBA,IAAAC,CAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACe,MAAME,aAAa,CAAC;EAG1BC,WAAWA,CAACC,MAA4B,EAAE;IAC/C,IAAI,CAACA,MAAM,GAAG,IAAAC,aAAK,EAAC;MAAEC,OAAO,EAAE,CAAC,CAAC;MAAEC,QAAQ,EAAE,CAAC,CAAC;MAAEC,QAAQ,EAAE,CAAC;IAAE,CAAC,EAAEJ,MAAM,CAAC;EAC1E;EAEA,OAAcK,KAAKA,CAACL,MAA4B,EAAiB;IAC/D,OAAO,IAAIF,aAAa,CAACE,MAAM,CAAC;EAClC;EAEOM,gBAAgBA,CAACC,OAAe,EAAEC,SAA4B,EAAE;IACrE;IACA;IACC,IAAI,CAACR,MAAM,CAACG,QAAQ,CAAuCI,OAAO,CAAC,GAAGC,SAAS;IAChF,OAAO,IAAI;EACb;EAEOC,SAASA,CAACC,EAAU,EAAEC,MAAkB,EAAE;IAC/C,IAAI,CAACX,MA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,CAACC,SAAiB,EAAE;IACrC,IAAI,CAAChD,MAAM,CAACiD,UAAU,GAAGD,SAAS;IAClC,OAAO,IAAI;EACb;EAEOE,YAAYA,CAACC,SAAiB,EAAE;IACrC,IAAI,CAACnD,MAAM,CAACoD,UAAU,GAAGD,SAAS;IAClC,OAAO,IAAI;EACb;EAEOE,aAAaA,CAACC,UAAkB,EAAE;IACvC,IAAI,CAACtD,MAAM,CAACuD,WAAW,GAAGD,UAAU;IACpC,OAAO,IAAI;EACb;EAEOE,UAAUA,CAACC,OAAe,EAAE;IACjC,IAAI,CAACzD,MAAM,CAAC0D,QAAQ,GAAGD,OAAO;IAC9B,OAAO,IAAI;EACb;EAEOE,UAAUA,CAACC,OAAe,EAAE;IACjC,IAAI,CAAC5D,MAAM,CAAC4D,OAAO,GAAGA,OAAO;IAC7B,OAAO,IAAI;EACb;EAEOC,gBAAgBA,CAACC,aAA4B,EAAE;IACpD,IAAI,CAAC9D,MAAM,CAAC8D,aAAa,GAAGA,aAAa;IACzC,OAAO,IAAI;EACb;EAEOC,SAASA,CAAA,EAAe;IAC7B,OAAO,IAAI,CAAC/D,MAAM;EACpB;EAEOgE,SAASA,CAAA,EAAW;IACzB,OAAO,IAAAC,cAAY,EAAC,IAAI,CAACjE,MAAM,CAAC;EAClC;AACF;AAACkE,OAAA,CAAAC,OAAA,GAAArE,aAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/config",
|
|
3
|
-
"version": "8.0.0-next-8.
|
|
3
|
+
"version": "8.0.0-next-8.38",
|
|
4
4
|
"description": "Verdaccio Configuration",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"node": ">=18"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@verdaccio/core": "8.0.0-next-8.
|
|
36
|
+
"@verdaccio/core": "8.0.0-next-8.38",
|
|
37
37
|
"debug": "4.4.3",
|
|
38
38
|
"js-yaml": "4.1.1",
|
|
39
39
|
"lodash": "4.18.1"
|