@verdaccio/logger 6.0.0-6-next.18 → 6.0.0-6-next.20
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 +13 -0
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- package/build/logger.d.ts +3 -3
- package/build/logger.js +16 -39
- package/build/logger.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @verdaccio/logger
|
|
2
2
|
|
|
3
|
+
## 6.0.0-6-next.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @verdaccio/core@6.0.0-6-next.52
|
|
8
|
+
|
|
9
|
+
## 6.0.0-6-next.19
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [4b29d715]
|
|
14
|
+
- @verdaccio/core@6.0.0-6-next.51
|
|
15
|
+
|
|
3
16
|
## 6.0.0-6-next.18
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/build/index.js
CHANGED
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export { setup, createLogger, logger, prepareSetup } from './logger';\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export { setup, createLogger, logger, prepareSetup } from './logger';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA"}
|
package/build/logger.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Logger, LoggerConfigItem, LoggerFormat } from '@verdaccio/types';
|
|
3
|
-
export
|
|
3
|
+
export type LogPlugin = {
|
|
4
4
|
dest: string;
|
|
5
5
|
options?: any[];
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type LoggerOptions = {
|
|
8
8
|
level?: string;
|
|
9
9
|
path?: string;
|
|
10
10
|
colors?: boolean;
|
|
11
11
|
sync?: boolean;
|
|
12
12
|
};
|
|
13
13
|
export declare function createLogger(options?: LoggerOptions, destination?: NodeJS.WritableStream, format?: LoggerFormat): any;
|
|
14
|
-
export
|
|
14
|
+
export type LoggerConfig = LoggerConfigItem;
|
|
15
15
|
export declare function prepareSetup(options?: LoggerConfigItem): Logger;
|
|
16
16
|
export declare let logger: Logger;
|
|
17
17
|
export declare function setup(options: LoggerConfigItem): Logger;
|
package/build/logger.js
CHANGED
|
@@ -7,37 +7,28 @@ exports.createLogger = createLogger;
|
|
|
7
7
|
exports.logger = void 0;
|
|
8
8
|
exports.prepareSetup = prepareSetup;
|
|
9
9
|
exports.setup = setup;
|
|
10
|
-
|
|
11
10
|
var _colorette = require("colorette");
|
|
12
|
-
|
|
13
11
|
var _debug = _interopRequireDefault(require("debug"));
|
|
14
|
-
|
|
15
12
|
var _pino = _interopRequireDefault(require("pino"));
|
|
16
|
-
|
|
17
13
|
var _loggerPrettify = require("@verdaccio/logger-prettify");
|
|
18
|
-
|
|
19
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
-
|
|
21
15
|
// <reference types="node" />
|
|
22
|
-
const debug = (0, _debug.default)('verdaccio:logger');
|
|
23
16
|
|
|
17
|
+
const debug = (0, _debug.default)('verdaccio:logger');
|
|
24
18
|
function isProd() {
|
|
25
19
|
return process.env.NODE_ENV === 'production';
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
function hasColors(colors) {
|
|
29
22
|
if (colors) {
|
|
30
23
|
return _colorette.isColorSupported;
|
|
31
24
|
}
|
|
32
|
-
|
|
33
25
|
return typeof colors === 'undefined' ? true : colors;
|
|
34
26
|
}
|
|
35
|
-
|
|
36
27
|
const DEFAULT_LOG_FORMAT = isProd() ? 'json' : 'pretty';
|
|
37
|
-
|
|
38
28
|
function createLogger(options = {
|
|
39
29
|
level: 'http'
|
|
40
|
-
},
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line no-undef
|
|
41
32
|
// @ts-ignore
|
|
42
33
|
destination = _pino.default.destination(1), format = DEFAULT_LOG_FORMAT) {
|
|
43
34
|
debug('setup logger');
|
|
@@ -52,8 +43,8 @@ destination = _pino.default.destination(1), format = DEFAULT_LOG_FORMAT) {
|
|
|
52
43
|
res: _pino.default.stdSerializers.res
|
|
53
44
|
}
|
|
54
45
|
};
|
|
55
|
-
debug('has prettifier? %o', !isProd());
|
|
56
|
-
|
|
46
|
+
debug('has prettifier? %o', !isProd());
|
|
47
|
+
// pretty logs are not allowed in production for performance reasons
|
|
57
48
|
if (['pretty-timestamped', 'pretty'].includes(format) && isProd() === false) {
|
|
58
49
|
pinoConfig = Object.assign({}, pinoConfig, {
|
|
59
50
|
transport: {
|
|
@@ -67,7 +58,8 @@ destination = _pino.default.destination(1), format = DEFAULT_LOG_FORMAT) {
|
|
|
67
58
|
}
|
|
68
59
|
});
|
|
69
60
|
} else {
|
|
70
|
-
pinoConfig = {
|
|
61
|
+
pinoConfig = {
|
|
62
|
+
...pinoConfig,
|
|
71
63
|
// more info
|
|
72
64
|
// https://github.com/pinojs/pino/blob/v7.1.0/docs/api.md#hooks-object
|
|
73
65
|
// TODO: improve typings here
|
|
@@ -80,85 +72,70 @@ destination = _pino.default.destination(1), format = DEFAULT_LOG_FORMAT) {
|
|
|
80
72
|
const hydratedMessage = (0, _loggerPrettify.fillInMsgTemplate)(message, templateObject, false);
|
|
81
73
|
return method.apply(this, [templateObject, hydratedMessage, ...otherArgs]);
|
|
82
74
|
}
|
|
83
|
-
|
|
84
75
|
}
|
|
85
76
|
};
|
|
86
77
|
}
|
|
87
|
-
|
|
88
78
|
const logger = (0, _pino.default)(pinoConfig, destination);
|
|
89
|
-
/* eslint-disable */
|
|
90
79
|
|
|
80
|
+
/* eslint-disable */
|
|
91
81
|
/* istanbul ignore next */
|
|
92
|
-
|
|
93
82
|
if (process.env.DEBUG) {
|
|
94
83
|
logger.on('level-change', (lvl, val, prevLvl, prevVal) => {
|
|
95
84
|
debug('%s (%d) was changed to %s (%d)', lvl, val, prevLvl, prevVal);
|
|
96
85
|
});
|
|
97
86
|
}
|
|
98
|
-
|
|
99
87
|
return logger;
|
|
100
88
|
}
|
|
101
|
-
|
|
102
89
|
const DEFAULT_LOGGER_CONF = {
|
|
103
90
|
type: 'stdout',
|
|
104
91
|
format: 'pretty',
|
|
105
92
|
level: 'http'
|
|
106
93
|
};
|
|
107
|
-
|
|
108
94
|
function prepareSetup(options = DEFAULT_LOGGER_CONF) {
|
|
109
95
|
var _loggerConfig;
|
|
110
|
-
|
|
111
96
|
let logger;
|
|
112
97
|
let loggerConfig = options;
|
|
113
|
-
|
|
114
98
|
if (!((_loggerConfig = loggerConfig) !== null && _loggerConfig !== void 0 && _loggerConfig.level)) {
|
|
115
99
|
loggerConfig = Object.assign({}, {
|
|
116
100
|
level: 'http'
|
|
117
101
|
}, loggerConfig);
|
|
118
102
|
}
|
|
119
|
-
|
|
120
103
|
const pinoConfig = {
|
|
121
104
|
level: loggerConfig.level
|
|
122
105
|
};
|
|
123
|
-
|
|
124
106
|
if (loggerConfig.type === 'file') {
|
|
125
107
|
debug('logging file enabled');
|
|
126
|
-
|
|
127
108
|
const destination = _pino.default.destination(loggerConfig.path);
|
|
128
109
|
/* eslint-disable */
|
|
129
|
-
|
|
130
110
|
/* istanbul ignore next */
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
process.on('SIGUSR2', () => destination.reopen()); // @ts-ignore
|
|
134
|
-
|
|
111
|
+
process.on('SIGUSR2', () => destination.reopen());
|
|
112
|
+
// @ts-ignore
|
|
135
113
|
logger = createLogger({
|
|
136
114
|
level: loggerConfig.level,
|
|
137
115
|
path: loggerConfig.path,
|
|
138
116
|
colors: loggerConfig.colors
|
|
139
|
-
},
|
|
117
|
+
},
|
|
118
|
+
// @ts-ignore
|
|
140
119
|
destination, loggerConfig.format);
|
|
141
120
|
return logger;
|
|
142
121
|
} else {
|
|
143
|
-
debug('logging stdout enabled');
|
|
144
|
-
|
|
122
|
+
debug('logging stdout enabled');
|
|
123
|
+
// @ts-ignore
|
|
145
124
|
logger = createLogger({
|
|
146
125
|
level: loggerConfig.level,
|
|
147
126
|
colors: loggerConfig.colors
|
|
148
|
-
},
|
|
127
|
+
},
|
|
128
|
+
// @ts-ignore
|
|
149
129
|
_pino.default.destination(1), loggerConfig.format);
|
|
150
130
|
return logger;
|
|
151
131
|
}
|
|
152
132
|
}
|
|
153
|
-
|
|
154
133
|
let logger;
|
|
155
134
|
exports.logger = logger;
|
|
156
|
-
|
|
157
135
|
function setup(options) {
|
|
158
136
|
if (typeof logger !== 'undefined') {
|
|
159
137
|
return logger;
|
|
160
138
|
}
|
|
161
|
-
|
|
162
139
|
exports.logger = logger = prepareSetup(options);
|
|
163
140
|
return logger;
|
|
164
141
|
}
|
package/build/logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","names":["debug","buildDebug","isProd","process","env","NODE_ENV","hasColors","colors","isColorSupported","DEFAULT_LOG_FORMAT","createLogger","options","level","destination","pino","format","pinoConfig","customLevels","http","serializers","err","stdSerializers","req","res","includes","Object","assign","transport","target","path","prettyStamp","hooks","logMethod","inputArgs","method","templateObject","message","otherArgs","templateVars","getOwnPropertyNames","length","apply","hydratedMessage","fillInMsgTemplate","logger","DEBUG","on","lvl","val","prevLvl","prevVal","DEFAULT_LOGGER_CONF","type","prepareSetup","loggerConfig","reopen","setup"],"sources":["../src/logger.ts"],"sourcesContent":["// <reference types=\"node\" />\nimport { isColorSupported } from 'colorette';\nimport buildDebug from 'debug';\nimport pino from 'pino';\n\nimport { fillInMsgTemplate } from '@verdaccio/logger-prettify';\nimport { Logger, LoggerConfigItem, LoggerFormat } from '@verdaccio/types';\n\nconst debug = buildDebug('verdaccio:logger');\n\nfunction isProd() {\n return process.env.NODE_ENV === 'production';\n}\n\nfunction hasColors(colors: boolean | undefined) {\n if (colors) {\n return isColorSupported;\n }\n return typeof colors === 'undefined' ? true : colors;\n}\n\nconst DEFAULT_LOG_FORMAT = isProd() ? 'json' : 'pretty';\n\nexport type LogPlugin = {\n dest: string;\n options?: any[];\n};\n\ntype LoggerOptions = { level?: string; path?: string; colors?: boolean; sync?: boolean };\n\nexport function createLogger(\n options: LoggerOptions = { level: 'http' },\n // eslint-disable-next-line no-undef\n // @ts-ignore\n destination: NodeJS.WritableStream = pino.destination(1),\n format: LoggerFormat = DEFAULT_LOG_FORMAT\n): any {\n debug('setup logger');\n let pinoConfig = {\n customLevels: {\n http: 25,\n },\n level: options.level,\n serializers: {\n err: pino.stdSerializers.err,\n req: pino.stdSerializers.req,\n res: pino.stdSerializers.res,\n },\n };\n\n debug('has prettifier? %o', !isProd());\n // pretty logs are not allowed in production for performance reasons\n if (['pretty-timestamped', 'pretty'].includes(format) && isProd() === false) {\n pinoConfig = Object.assign({}, pinoConfig, {\n transport: {\n target: '@verdaccio/logger-prettify',\n options: {\n // string or 1 (file descriptor for process.stdout)\n destination: options.path || 1,\n colors: hasColors(options.colors),\n prettyStamp: format === 'pretty-timestamped',\n },\n },\n });\n } else {\n pinoConfig = {\n ...pinoConfig,\n // more info\n // https://github.com/pinojs/pino/blob/v7.1.0/docs/api.md#hooks-object\n // TODO: improve typings here\n // @ts-ignore\n hooks: {\n logMethod(\n inputArgs: [any, any, ...any[]],\n method: {\n apply: (arg0: { logMethod: (inputArgs: any, method: any) => any }, arg1: any[]) => any;\n }\n ) {\n const [templateObject, message, ...otherArgs] = inputArgs;\n const templateVars =\n !!templateObject && typeof templateObject === 'object'\n ? Object.getOwnPropertyNames(templateObject)\n : [];\n if (!message || !templateVars.length) return method.apply(this, inputArgs);\n const hydratedMessage = fillInMsgTemplate(message, templateObject, false);\n return method.apply(this, [templateObject, hydratedMessage, ...otherArgs]);\n },\n },\n };\n }\n const logger = pino(pinoConfig, destination);\n\n /* eslint-disable */\n /* istanbul ignore next */\n if (process.env.DEBUG) {\n logger.on('level-change', (lvl, val, prevLvl, prevVal) => {\n debug('%s (%d) was changed to %s (%d)', lvl, val, prevLvl, prevVal);\n });\n }\n\n return logger;\n}\n\nconst DEFAULT_LOGGER_CONF: LoggerConfigItem = {\n type: 'stdout',\n format: 'pretty',\n level: 'http',\n};\n\nexport type LoggerConfig = LoggerConfigItem;\n\nexport function prepareSetup(options: LoggerConfigItem = DEFAULT_LOGGER_CONF) {\n let logger: Logger;\n let loggerConfig = options;\n if (!loggerConfig?.level) {\n loggerConfig = Object.assign(\n {},\n {\n level: 'http',\n },\n loggerConfig\n );\n }\n const pinoConfig = { level: loggerConfig.level };\n if (loggerConfig.type === 'file') {\n debug('logging file enabled');\n const destination = pino.destination(loggerConfig.path);\n /* eslint-disable */\n /* istanbul ignore next */\n process.on('SIGUSR2', () => destination.reopen());\n // @ts-ignore\n logger = createLogger(\n { level: loggerConfig.level, path: loggerConfig.path, colors: loggerConfig.colors },\n // @ts-ignore\n destination,\n loggerConfig.format\n );\n return logger;\n } else {\n debug('logging stdout enabled');\n // @ts-ignore\n logger = createLogger(\n { level: loggerConfig.level, colors: loggerConfig.colors },\n // @ts-ignore\n pino.destination(1),\n loggerConfig.format\n );\n return logger;\n }\n}\n\nexport let logger: Logger;\n\nexport function setup(options: LoggerConfigItem) {\n if (typeof logger !== 'undefined') {\n return logger;\n }\n\n logger = prepareSetup(options);\n return logger;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.js","names":["debug","buildDebug","isProd","process","env","NODE_ENV","hasColors","colors","isColorSupported","DEFAULT_LOG_FORMAT","createLogger","options","level","destination","pino","format","pinoConfig","customLevels","http","serializers","err","stdSerializers","req","res","includes","Object","assign","transport","target","path","prettyStamp","hooks","logMethod","inputArgs","method","templateObject","message","otherArgs","templateVars","getOwnPropertyNames","length","apply","hydratedMessage","fillInMsgTemplate","logger","DEBUG","on","lvl","val","prevLvl","prevVal","DEFAULT_LOGGER_CONF","type","prepareSetup","loggerConfig","reopen","setup"],"sources":["../src/logger.ts"],"sourcesContent":["// <reference types=\"node\" />\nimport { isColorSupported } from 'colorette';\nimport buildDebug from 'debug';\nimport pino from 'pino';\n\nimport { fillInMsgTemplate } from '@verdaccio/logger-prettify';\nimport { Logger, LoggerConfigItem, LoggerFormat } from '@verdaccio/types';\n\nconst debug = buildDebug('verdaccio:logger');\n\nfunction isProd() {\n return process.env.NODE_ENV === 'production';\n}\n\nfunction hasColors(colors: boolean | undefined) {\n if (colors) {\n return isColorSupported;\n }\n return typeof colors === 'undefined' ? true : colors;\n}\n\nconst DEFAULT_LOG_FORMAT = isProd() ? 'json' : 'pretty';\n\nexport type LogPlugin = {\n dest: string;\n options?: any[];\n};\n\ntype LoggerOptions = { level?: string; path?: string; colors?: boolean; sync?: boolean };\n\nexport function createLogger(\n options: LoggerOptions = { level: 'http' },\n // eslint-disable-next-line no-undef\n // @ts-ignore\n destination: NodeJS.WritableStream = pino.destination(1),\n format: LoggerFormat = DEFAULT_LOG_FORMAT\n): any {\n debug('setup logger');\n let pinoConfig = {\n customLevels: {\n http: 25,\n },\n level: options.level,\n serializers: {\n err: pino.stdSerializers.err,\n req: pino.stdSerializers.req,\n res: pino.stdSerializers.res,\n },\n };\n\n debug('has prettifier? %o', !isProd());\n // pretty logs are not allowed in production for performance reasons\n if (['pretty-timestamped', 'pretty'].includes(format) && isProd() === false) {\n pinoConfig = Object.assign({}, pinoConfig, {\n transport: {\n target: '@verdaccio/logger-prettify',\n options: {\n // string or 1 (file descriptor for process.stdout)\n destination: options.path || 1,\n colors: hasColors(options.colors),\n prettyStamp: format === 'pretty-timestamped',\n },\n },\n });\n } else {\n pinoConfig = {\n ...pinoConfig,\n // more info\n // https://github.com/pinojs/pino/blob/v7.1.0/docs/api.md#hooks-object\n // TODO: improve typings here\n // @ts-ignore\n hooks: {\n logMethod(\n inputArgs: [any, any, ...any[]],\n method: {\n apply: (arg0: { logMethod: (inputArgs: any, method: any) => any }, arg1: any[]) => any;\n }\n ) {\n const [templateObject, message, ...otherArgs] = inputArgs;\n const templateVars =\n !!templateObject && typeof templateObject === 'object'\n ? Object.getOwnPropertyNames(templateObject)\n : [];\n if (!message || !templateVars.length) return method.apply(this, inputArgs);\n const hydratedMessage = fillInMsgTemplate(message, templateObject, false);\n return method.apply(this, [templateObject, hydratedMessage, ...otherArgs]);\n },\n },\n };\n }\n const logger = pino(pinoConfig, destination);\n\n /* eslint-disable */\n /* istanbul ignore next */\n if (process.env.DEBUG) {\n logger.on('level-change', (lvl, val, prevLvl, prevVal) => {\n debug('%s (%d) was changed to %s (%d)', lvl, val, prevLvl, prevVal);\n });\n }\n\n return logger;\n}\n\nconst DEFAULT_LOGGER_CONF: LoggerConfigItem = {\n type: 'stdout',\n format: 'pretty',\n level: 'http',\n};\n\nexport type LoggerConfig = LoggerConfigItem;\n\nexport function prepareSetup(options: LoggerConfigItem = DEFAULT_LOGGER_CONF) {\n let logger: Logger;\n let loggerConfig = options;\n if (!loggerConfig?.level) {\n loggerConfig = Object.assign(\n {},\n {\n level: 'http',\n },\n loggerConfig\n );\n }\n const pinoConfig = { level: loggerConfig.level };\n if (loggerConfig.type === 'file') {\n debug('logging file enabled');\n const destination = pino.destination(loggerConfig.path);\n /* eslint-disable */\n /* istanbul ignore next */\n process.on('SIGUSR2', () => destination.reopen());\n // @ts-ignore\n logger = createLogger(\n { level: loggerConfig.level, path: loggerConfig.path, colors: loggerConfig.colors },\n // @ts-ignore\n destination,\n loggerConfig.format\n );\n return logger;\n } else {\n debug('logging stdout enabled');\n // @ts-ignore\n logger = createLogger(\n { level: loggerConfig.level, colors: loggerConfig.colors },\n // @ts-ignore\n pino.destination(1),\n loggerConfig.format\n );\n return logger;\n }\n}\n\nexport let logger: Logger;\n\nexport function setup(options: LoggerConfigItem) {\n if (typeof logger !== 'undefined') {\n return logger;\n }\n\n logger = prepareSetup(options);\n return logger;\n}\n"],"mappings":";;;;;;;;;AACA;AACA;AACA;AAEA;AAA+D;A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F;AAEO,IAAIA,MAAc;AAAC;AAEnB,SAASY,KAAK,CAAC7C,OAAyB,EAAE;EAC/C,IAAI,OAAOiC,MAAM,KAAK,WAAW,EAAE;IACjC,OAAOA,MAAM;EACf;EAEA,iBAAAA,MAAM,GAAGS,YAAY,CAAC1C,OAAO,CAAC;EAC9B,OAAOiC,MAAM;AACf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/logger",
|
|
3
|
-
"version": "6.0.0-6-next.
|
|
3
|
+
"version": "6.0.0-6-next.20",
|
|
4
4
|
"description": "logger",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"npm": ">=6"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@verdaccio/core": "6.0.0-6-next.
|
|
33
|
+
"@verdaccio/core": "6.0.0-6-next.52",
|
|
34
34
|
"@verdaccio/logger-prettify": "6.0.0-6-next.7",
|
|
35
35
|
"debug": "4.3.4",
|
|
36
36
|
"colorette": "2.0.19",
|
|
37
|
-
"pino": "8.
|
|
37
|
+
"pino": "8.7.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@verdaccio/types": "11.0.0-6-next.17"
|