@verdaccio/core 7.0.0-next-7.14 → 7.0.0-next-7.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/CHANGELOG.md +6 -0
- package/build/warning-utils.d.ts +2 -2
- package/build/warning-utils.js +9 -4
- package/build/warning-utils.js.map +1 -1
- package/package.json +2 -2
- package/src/warning-utils.ts +17 -12
package/CHANGELOG.md
CHANGED
package/build/warning-utils.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export declare enum Codes {
|
|
|
3
3
|
VERWAR002 = "VERWAR002",
|
|
4
4
|
VERWAR003 = "VERWAR003",
|
|
5
5
|
VERWAR004 = "VERWAR004",
|
|
6
|
-
VERWAR005 = "VERWAR005",
|
|
7
6
|
VERDEP003 = "VERDEP003",
|
|
8
|
-
VERWAR006 = "VERWAR006"
|
|
7
|
+
VERWAR006 = "VERWAR006",
|
|
8
|
+
VERWAR007 = "VERWAR007"
|
|
9
9
|
}
|
|
10
10
|
export declare function emit(code: string, a?: string, b?: string, c?: string): void;
|
package/build/warning-utils.js
CHANGED
|
@@ -15,20 +15,25 @@ let Codes = exports.Codes = /*#__PURE__*/function (Codes) {
|
|
|
15
15
|
Codes["VERWAR002"] = "VERWAR002";
|
|
16
16
|
Codes["VERWAR003"] = "VERWAR003";
|
|
17
17
|
Codes["VERWAR004"] = "VERWAR004";
|
|
18
|
-
Codes["VERWAR005"] = "VERWAR005";
|
|
19
18
|
Codes["VERDEP003"] = "VERDEP003";
|
|
20
19
|
Codes["VERWAR006"] = "VERWAR006";
|
|
20
|
+
Codes["VERWAR007"] = "VERWAR007";
|
|
21
21
|
return Codes;
|
|
22
22
|
}({});
|
|
23
|
-
|
|
23
|
+
/* general warnings */
|
|
24
24
|
warningInstance.create(verdaccioWarning, Codes.VERWAR001, `Verdaccio doesn't need superuser privileges. don't run it under root`);
|
|
25
|
+
warningInstance.create(verdaccioWarning, Codes.VERWAR002, `The configuration property "logs" has been deprecated, please rename to "log" for future compatibility`);
|
|
25
26
|
warningInstance.create(verdaccioWarning, Codes.VERWAR003, 'rotating-file type is not longer supported, consider use [logrotate] instead');
|
|
26
27
|
warningInstance.create(verdaccioWarning, Codes.VERWAR004, `invalid address - %s, we expect a port (e.g. "4873"),
|
|
27
28
|
host:port (e.g. "localhost:4873") or full url '(e.g. "http://localhost:4873/")
|
|
28
29
|
https://verdaccio.org/docs/en/configuration#listen-port`);
|
|
29
|
-
warningInstance.create(verdaccioWarning, Codes.VERWAR005, 'disable enhanced legacy signature is considered a security risk, please reconsider enable it');
|
|
30
|
-
warningInstance.create(verdaccioDeprecation, Codes.VERDEP003, 'multiple addresses will be deprecated in the next major, only use one');
|
|
31
30
|
warningInstance.create(verdaccioDeprecation, Codes.VERWAR006, 'the auth plugin method "add_user" in the auth plugin is deprecated and will be removed in next major release, rename to "adduser"');
|
|
31
|
+
warningInstance.create(verdaccioDeprecation, Codes.VERWAR007, `the secret length is too long, it must be 32 characters long, please consider generate a new one
|
|
32
|
+
Learn more at https://verdaccio.org/docs/configuration/#.verdaccio-db`);
|
|
33
|
+
|
|
34
|
+
/* deprecation warnings */
|
|
35
|
+
|
|
36
|
+
warningInstance.create(verdaccioDeprecation, Codes.VERDEP003, 'multiple addresses will be deprecated in the next major, only use one');
|
|
32
37
|
function emit(code, a, b, c) {
|
|
33
38
|
warningInstance.emit(code, a, b, c);
|
|
34
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warning-utils.js","names":["_processWarning","_interopRequireDefault","require","obj","__esModule","default","warningInstance","warning","verdaccioWarning","verdaccioDeprecation","Codes","exports","create","
|
|
1
|
+
{"version":3,"file":"warning-utils.js","names":["_processWarning","_interopRequireDefault","require","obj","__esModule","default","warningInstance","warning","verdaccioWarning","verdaccioDeprecation","Codes","exports","create","VERWAR001","VERWAR002","VERWAR003","VERWAR004","VERWAR006","VERWAR007","VERDEP003","emit","code","a","b","c"],"sources":["../src/warning-utils.ts"],"sourcesContent":["import warning from 'process-warning';\n\nconst warningInstance = warning();\nconst verdaccioWarning = 'VerdaccioWarning';\nconst verdaccioDeprecation = 'VerdaccioDeprecation';\n\nexport enum Codes {\n VERWAR001 = 'VERWAR001',\n VERWAR002 = 'VERWAR002',\n VERWAR003 = 'VERWAR003',\n VERWAR004 = 'VERWAR004',\n // deprecation warnings\n VERDEP003 = 'VERDEP003',\n VERWAR006 = 'VERWAR006',\n VERWAR007 = 'VERWAR007',\n}\n\n/* general warnings */\n\nwarningInstance.create(\n verdaccioWarning,\n Codes.VERWAR001,\n `Verdaccio doesn't need superuser privileges. don't run it under root`\n);\n\nwarningInstance.create(\n verdaccioWarning,\n Codes.VERWAR002,\n `The configuration property \"logs\" has been deprecated, please rename to \"log\" for future compatibility`\n);\n\nwarningInstance.create(\n verdaccioWarning,\n Codes.VERWAR003,\n 'rotating-file type is not longer supported, consider use [logrotate] instead'\n);\n\nwarningInstance.create(\n verdaccioWarning,\n Codes.VERWAR004,\n `invalid address - %s, we expect a port (e.g. \"4873\"), \nhost:port (e.g. \"localhost:4873\") or full url '(e.g. \"http://localhost:4873/\")\nhttps://verdaccio.org/docs/en/configuration#listen-port`\n);\n\nwarningInstance.create(\n verdaccioDeprecation,\n Codes.VERWAR006,\n 'the auth plugin method \"add_user\" in the auth plugin is deprecated and will be removed in next major release, rename to \"adduser\"'\n);\n\nwarningInstance.create(\n verdaccioDeprecation,\n Codes.VERWAR007,\n `the secret length is too long, it must be 32 characters long, please consider generate a new one \n Learn more at https://verdaccio.org/docs/configuration/#.verdaccio-db`\n);\n\n/* deprecation warnings */\n\nwarningInstance.create(\n verdaccioDeprecation,\n Codes.VERDEP003,\n 'multiple addresses will be deprecated in the next major, only use one'\n);\n\nexport function emit(code: string, a?: string, b?: string, c?: string) {\n warningInstance.emit(code, a, b, c);\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAsC,SAAAD,uBAAAE,GAAA,WAAAA,GAAA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|
|
3
|
-
"version": "7.0.0-next-7.
|
|
3
|
+
"version": "7.0.0-next-7.15",
|
|
4
4
|
"description": "core utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"private",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"lodash": "4.17.21",
|
|
45
45
|
"typedoc": "0.23.25",
|
|
46
46
|
"typedoc-plugin-missing-exports": "latest",
|
|
47
|
-
"@verdaccio/types": "12.0.0-next.
|
|
47
|
+
"@verdaccio/types": "12.0.0-next-7.3"
|
|
48
48
|
},
|
|
49
49
|
"funding": {
|
|
50
50
|
"type": "opencollective",
|
package/src/warning-utils.ts
CHANGED
|
@@ -9,22 +9,24 @@ export enum Codes {
|
|
|
9
9
|
VERWAR002 = 'VERWAR002',
|
|
10
10
|
VERWAR003 = 'VERWAR003',
|
|
11
11
|
VERWAR004 = 'VERWAR004',
|
|
12
|
-
VERWAR005 = 'VERWAR005',
|
|
13
12
|
// deprecation warnings
|
|
14
13
|
VERDEP003 = 'VERDEP003',
|
|
15
14
|
VERWAR006 = 'VERWAR006',
|
|
15
|
+
VERWAR007 = 'VERWAR007',
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/* general warnings */
|
|
19
|
+
|
|
18
20
|
warningInstance.create(
|
|
19
21
|
verdaccioWarning,
|
|
20
|
-
Codes.
|
|
21
|
-
`
|
|
22
|
+
Codes.VERWAR001,
|
|
23
|
+
`Verdaccio doesn't need superuser privileges. don't run it under root`
|
|
22
24
|
);
|
|
23
25
|
|
|
24
26
|
warningInstance.create(
|
|
25
27
|
verdaccioWarning,
|
|
26
|
-
Codes.
|
|
27
|
-
`
|
|
28
|
+
Codes.VERWAR002,
|
|
29
|
+
`The configuration property "logs" has been deprecated, please rename to "log" for future compatibility`
|
|
28
30
|
);
|
|
29
31
|
|
|
30
32
|
warningInstance.create(
|
|
@@ -42,21 +44,24 @@ https://verdaccio.org/docs/en/configuration#listen-port`
|
|
|
42
44
|
);
|
|
43
45
|
|
|
44
46
|
warningInstance.create(
|
|
45
|
-
|
|
46
|
-
Codes.
|
|
47
|
-
'
|
|
47
|
+
verdaccioDeprecation,
|
|
48
|
+
Codes.VERWAR006,
|
|
49
|
+
'the auth plugin method "add_user" in the auth plugin is deprecated and will be removed in next major release, rename to "adduser"'
|
|
48
50
|
);
|
|
49
51
|
|
|
50
52
|
warningInstance.create(
|
|
51
53
|
verdaccioDeprecation,
|
|
52
|
-
Codes.
|
|
53
|
-
|
|
54
|
+
Codes.VERWAR007,
|
|
55
|
+
`the secret length is too long, it must be 32 characters long, please consider generate a new one
|
|
56
|
+
Learn more at https://verdaccio.org/docs/configuration/#.verdaccio-db`
|
|
54
57
|
);
|
|
55
58
|
|
|
59
|
+
/* deprecation warnings */
|
|
60
|
+
|
|
56
61
|
warningInstance.create(
|
|
57
62
|
verdaccioDeprecation,
|
|
58
|
-
Codes.
|
|
59
|
-
'
|
|
63
|
+
Codes.VERDEP003,
|
|
64
|
+
'multiple addresses will be deprecated in the next major, only use one'
|
|
60
65
|
);
|
|
61
66
|
|
|
62
67
|
export function emit(code: string, a?: string, b?: string, c?: string) {
|