@verdaccio/config 8.0.0-next-8.7 → 8.0.0-next-8.9
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 +16 -0
- package/LICENSE +1 -1
- package/build/builder.d.ts +2 -2
- package/build/builder.js.map +1 -1
- package/build/conf/README.md +0 -1
- package/build/conf/default.yaml +6 -5
- package/build/conf/docker.yaml +6 -5
- package/package.json +3 -3
- package/src/builder.ts +2 -2
- package/src/conf/README.md +0 -1
- package/src/conf/default.yaml +6 -5
- package/src/conf/docker.yaml +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @verdaccio/config
|
|
2
2
|
|
|
3
|
+
## 8.0.0-next-8.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @verdaccio/core@8.0.0-next-8.9
|
|
8
|
+
- @verdaccio/utils@8.1.0-next-8.9
|
|
9
|
+
|
|
10
|
+
## 8.0.0-next-8.8
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 0588605: chore: `keep_readmes` docs
|
|
15
|
+
- ca91b9a: fix: config builder `addLogger`
|
|
16
|
+
- @verdaccio/core@8.0.0-next-8.8
|
|
17
|
+
- @verdaccio/utils@8.1.0-next-8.8
|
|
18
|
+
|
|
3
19
|
## 8.0.0-next-8.7
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/LICENSE
CHANGED
package/build/builder.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthConf, ConfigYaml,
|
|
1
|
+
import { AuthConf, ConfigYaml, LoggerConfigItem, PackageAccessYaml, Security, UpLinkConf } 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.
|
|
@@ -11,7 +11,7 @@ export default class ConfigBuilder {
|
|
|
11
11
|
addUplink(id: string, uplink: UpLinkConf): this;
|
|
12
12
|
addSecurity(security: Partial<Security>): this;
|
|
13
13
|
addAuth(auth: Partial<AuthConf>): this;
|
|
14
|
-
addLogger(log:
|
|
14
|
+
addLogger(log: LoggerConfigItem): this;
|
|
15
15
|
addStorage(storage: string | object): this;
|
|
16
16
|
getConfig(): ConfigYaml;
|
|
17
17
|
getAsYaml(): string;
|
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 {\n AuthConf,\n ConfigYaml,\n
|
|
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 {\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(config, { uplinks: {}, packages: {}, security: {} });\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 // @ts-ignore\n this.config.packages[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 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;AAWA,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,EAACD,MAAM,EAAE;MAAEE,OAAO,EAAE,CAAC,CAAC;MAAEC,QAAQ,EAAE,CAAC,CAAC;MAAEC,QAAQ,EAAE,CAAC;IAAE,CAAC,CAAC;EAC1E;EAEA,OAAcC,KAAKA,CAACL,MAA4B,EAAiB;IAC/D,OAAO,IAAIF,aAAa,CAACE,MAAM,CAAC;EAClC;EAEOM,gBAAgBA,CAACC,OAAe,EAAEC,SAA4B,EAAE;IACrE;IACA,IAAI,CAACR,MAAM,CAACG,QAAQ,CAACI,OAAO,CAAC,GAAGC,SAAS;IACzC,OAAO,IAAI;EACb;EAEOC,SAASA,CAACC,EAAU,EAAEC,MAAkB,EAAE;IAC/C,IAAI,CAACX,MAAM,CAACE,OAAO,CAACQ,EAAE,CAAC,GAAGC,MAAM;IAChC,OAAO,IAAI;EACb;EAEOC,WAAWA,CAACR,QAA2B,EAAE;IAC9C,IAAI,CAACJ,MAAM,CAACI,QAAQ,GAAG,IAAAH,aAAK,EAAC,IAAI,CAACD,MAAM,CAACI,QAAQ,EAAEA,QAAQ,CAAC;IAC5D,OAAO,IAAI;EACb;EAEOS,OAAOA,CAACC,IAAuB,EAAE;IACtC,IAAI,CAACd,MAAM,CAACc,IAAI,GAAG,IAAAb,aAAK,EAAC,IAAI,CAACD,MAAM,CAACc,IAAI,EAAEA,IAAI,CAAC;IAChD,OAAO,IAAI;EACb;EAEOC,SAASA,CAACC,GAAqB,EAAE;IACtC,IAAI,CAAChB,MAAM,CAACgB,GAAG,GAAGA,GAAG;IACrB,OAAO,IAAI;EACb;EAEOC,UAAUA,CAACC,OAAwB,EAAE;IAC1C,IAAI,OAAOA,OAAO,KAAK,QAAQ,EAAE;MAC/B,IAAI,CAAClB,MAAM,CAACkB,OAAO,GAAGA,OAAO;IAC/B,CAAC,MAAM;MACL,IAAI,CAAClB,MAAM,CAACmB,KAAK,GAAGD,OAAO;IAC7B;IACA,OAAO,IAAI;EACb;EAEOE,SAASA,CAAA,EAAe;IAC7B,OAAO,IAAI,CAACpB,MAAM;EACpB;EAEOqB,SAASA,CAAA,EAAW;IACzB,OAAO,IAAAC,cAAY,EAAC,IAAI,CAACtB,MAAM,CAAC;EAClC;AACF;AAACuB,OAAA,CAAAC,OAAA,GAAA1B,aAAA","ignoreList":[]}
|
package/build/conf/README.md
CHANGED
|
@@ -4,6 +4,5 @@ This directory host the default configuration file, but you can find more here:
|
|
|
4
4
|
|
|
5
5
|
- [https://verdaccio.org/docs/en/installation](https://verdaccio.org/docs/en/installation)
|
|
6
6
|
- [Chat with us](http://chat.verdaccio.org) <- You need a Discord account
|
|
7
|
-
- [Follow us on Twitter](https://twitter.com/verdaccio_npm)
|
|
8
7
|
|
|
9
8
|
Enjoy Verdaccio !
|
package/build/conf/default.yaml
CHANGED
|
@@ -121,6 +121,7 @@ server:
|
|
|
121
121
|
# publish:
|
|
122
122
|
# allow_offline: false
|
|
123
123
|
# check_owners: false
|
|
124
|
+
# keep_readmes: 'latest' | 'tagged' | 'all'
|
|
124
125
|
|
|
125
126
|
# https://verdaccio.org/docs/configuration#url-prefix
|
|
126
127
|
# url_prefix: /verdaccio/
|
|
@@ -143,11 +144,11 @@ server:
|
|
|
143
144
|
# expiresIn: 29d
|
|
144
145
|
# verify:
|
|
145
146
|
# someProp: [value]
|
|
146
|
-
#
|
|
147
|
-
#
|
|
148
|
-
#
|
|
149
|
-
#
|
|
150
|
-
#
|
|
147
|
+
# web:
|
|
148
|
+
# sign:
|
|
149
|
+
# expiresIn: 1h # 1 hour by default
|
|
150
|
+
# verify:
|
|
151
|
+
# someProp: [value]
|
|
151
152
|
|
|
152
153
|
# https://verdaccio.org/docs/configuration#user-rate-limit
|
|
153
154
|
# userRateLimit:
|
package/build/conf/docker.yaml
CHANGED
|
@@ -127,6 +127,7 @@ server:
|
|
|
127
127
|
# publish:
|
|
128
128
|
# allow_offline: false
|
|
129
129
|
# check_owners: false
|
|
130
|
+
# keep_readmes: 'latest' | 'tagged' | 'all'
|
|
130
131
|
|
|
131
132
|
# https://verdaccio.org/docs/configuration#url-prefix
|
|
132
133
|
# url_prefix: /verdaccio/
|
|
@@ -149,11 +150,11 @@ server:
|
|
|
149
150
|
# expiresIn: 29d
|
|
150
151
|
# verify:
|
|
151
152
|
# someProp: [value]
|
|
152
|
-
#
|
|
153
|
-
#
|
|
154
|
-
#
|
|
155
|
-
#
|
|
156
|
-
#
|
|
153
|
+
# web:
|
|
154
|
+
# sign:
|
|
155
|
+
# expiresIn: 1h # 1 hour by default
|
|
156
|
+
# verify:
|
|
157
|
+
# someProp: [value]
|
|
157
158
|
|
|
158
159
|
# https://verdaccio.org/docs/configuration#user-rate-limit
|
|
159
160
|
# userRateLimit:
|
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.9",
|
|
4
4
|
"description": "logger",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"node": ">=18"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@verdaccio/core": "8.0.0-next-8.
|
|
33
|
-
"@verdaccio/utils": "8.1.0-next-8.
|
|
32
|
+
"@verdaccio/core": "8.0.0-next-8.9",
|
|
33
|
+
"@verdaccio/utils": "8.1.0-next-8.9",
|
|
34
34
|
"debug": "4.4.0",
|
|
35
35
|
"js-yaml": "4.1.0",
|
|
36
36
|
"lodash": "4.17.21",
|
package/src/builder.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { merge } from 'lodash';
|
|
|
3
3
|
import {
|
|
4
4
|
AuthConf,
|
|
5
5
|
ConfigYaml,
|
|
6
|
-
|
|
6
|
+
LoggerConfigItem,
|
|
7
7
|
PackageAccessYaml,
|
|
8
8
|
Security,
|
|
9
9
|
UpLinkConf,
|
|
@@ -47,7 +47,7 @@ export default class ConfigBuilder {
|
|
|
47
47
|
return this;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
public addLogger(log:
|
|
50
|
+
public addLogger(log: LoggerConfigItem) {
|
|
51
51
|
this.config.log = log;
|
|
52
52
|
return this;
|
|
53
53
|
}
|
package/src/conf/README.md
CHANGED
|
@@ -4,6 +4,5 @@ This directory host the default configuration file, but you can find more here:
|
|
|
4
4
|
|
|
5
5
|
- [https://verdaccio.org/docs/en/installation](https://verdaccio.org/docs/en/installation)
|
|
6
6
|
- [Chat with us](http://chat.verdaccio.org) <- You need a Discord account
|
|
7
|
-
- [Follow us on Twitter](https://twitter.com/verdaccio_npm)
|
|
8
7
|
|
|
9
8
|
Enjoy Verdaccio !
|
package/src/conf/default.yaml
CHANGED
|
@@ -121,6 +121,7 @@ server:
|
|
|
121
121
|
# publish:
|
|
122
122
|
# allow_offline: false
|
|
123
123
|
# check_owners: false
|
|
124
|
+
# keep_readmes: 'latest' | 'tagged' | 'all'
|
|
124
125
|
|
|
125
126
|
# https://verdaccio.org/docs/configuration#url-prefix
|
|
126
127
|
# url_prefix: /verdaccio/
|
|
@@ -143,11 +144,11 @@ server:
|
|
|
143
144
|
# expiresIn: 29d
|
|
144
145
|
# verify:
|
|
145
146
|
# someProp: [value]
|
|
146
|
-
#
|
|
147
|
-
#
|
|
148
|
-
#
|
|
149
|
-
#
|
|
150
|
-
#
|
|
147
|
+
# web:
|
|
148
|
+
# sign:
|
|
149
|
+
# expiresIn: 1h # 1 hour by default
|
|
150
|
+
# verify:
|
|
151
|
+
# someProp: [value]
|
|
151
152
|
|
|
152
153
|
# https://verdaccio.org/docs/configuration#user-rate-limit
|
|
153
154
|
# userRateLimit:
|
package/src/conf/docker.yaml
CHANGED
|
@@ -127,6 +127,7 @@ server:
|
|
|
127
127
|
# publish:
|
|
128
128
|
# allow_offline: false
|
|
129
129
|
# check_owners: false
|
|
130
|
+
# keep_readmes: 'latest' | 'tagged' | 'all'
|
|
130
131
|
|
|
131
132
|
# https://verdaccio.org/docs/configuration#url-prefix
|
|
132
133
|
# url_prefix: /verdaccio/
|
|
@@ -149,11 +150,11 @@ server:
|
|
|
149
150
|
# expiresIn: 29d
|
|
150
151
|
# verify:
|
|
151
152
|
# someProp: [value]
|
|
152
|
-
#
|
|
153
|
-
#
|
|
154
|
-
#
|
|
155
|
-
#
|
|
156
|
-
#
|
|
153
|
+
# web:
|
|
154
|
+
# sign:
|
|
155
|
+
# expiresIn: 1h # 1 hour by default
|
|
156
|
+
# verify:
|
|
157
|
+
# someProp: [value]
|
|
157
158
|
|
|
158
159
|
# https://verdaccio.org/docs/configuration#user-rate-limit
|
|
159
160
|
# userRateLimit:
|