@loopback/logging 0.9.10 → 0.11.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/dist/fluent.js +4 -6
- package/dist/fluent.js.map +1 -1
- package/dist/interceptors/logging.interceptor.js +4 -6
- package/dist/interceptors/logging.interceptor.js.map +1 -1
- package/dist/keys.js +1 -1
- package/dist/keys.js.map +1 -1
- package/dist/logging.component.js +2 -3
- package/dist/logging.component.js.map +1 -1
- package/dist/winston.js +3 -16
- package/dist/winston.js.map +1 -1
- package/package.json +13 -13
package/dist/fluent.js
CHANGED
|
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "FluentSender", { enumerable: true, get: function
|
|
|
15
15
|
* Provider for FluentSender
|
|
16
16
|
*/
|
|
17
17
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
|
-
let FluentSenderProvider = class FluentSenderProvider {
|
|
18
|
+
let FluentSenderProvider = exports.FluentSenderProvider = class FluentSenderProvider {
|
|
19
19
|
constructor(getFluentConfig) {
|
|
20
20
|
this.getFluentConfig = getFluentConfig;
|
|
21
21
|
}
|
|
@@ -31,15 +31,14 @@ tslib_1.__decorate([
|
|
|
31
31
|
core_1.inject.binding(),
|
|
32
32
|
tslib_1.__metadata("design:type", core_1.Binding)
|
|
33
33
|
], FluentSenderProvider.prototype, "binding", void 0);
|
|
34
|
-
FluentSenderProvider = tslib_1.__decorate([
|
|
34
|
+
exports.FluentSenderProvider = FluentSenderProvider = tslib_1.__decorate([
|
|
35
35
|
tslib_1.__param(0, core_1.config.getter()),
|
|
36
36
|
tslib_1.__metadata("design:paramtypes", [Function])
|
|
37
37
|
], FluentSenderProvider);
|
|
38
|
-
exports.FluentSenderProvider = FluentSenderProvider;
|
|
39
38
|
/**
|
|
40
39
|
* Provider to create FluentTransport for Winston
|
|
41
40
|
*/
|
|
42
|
-
let FluentTransportProvider = class FluentTransportProvider {
|
|
41
|
+
let FluentTransportProvider = exports.FluentTransportProvider = class FluentTransportProvider {
|
|
43
42
|
constructor(getFluentConfig) {
|
|
44
43
|
this.getFluentConfig = getFluentConfig;
|
|
45
44
|
}
|
|
@@ -56,9 +55,8 @@ tslib_1.__decorate([
|
|
|
56
55
|
core_1.inject.binding(),
|
|
57
56
|
tslib_1.__metadata("design:type", core_1.Binding)
|
|
58
57
|
], FluentTransportProvider.prototype, "binding", void 0);
|
|
59
|
-
FluentTransportProvider = tslib_1.__decorate([
|
|
58
|
+
exports.FluentTransportProvider = FluentTransportProvider = tslib_1.__decorate([
|
|
60
59
|
tslib_1.__param(0, core_1.config.getter({ fromBinding: keys_1.LoggingBindings.FLUENT_SENDER })),
|
|
61
60
|
tslib_1.__metadata("design:paramtypes", [Function])
|
|
62
61
|
], FluentTransportProvider);
|
|
63
|
-
exports.FluentTransportProvider = FluentTransportProvider;
|
|
64
62
|
//# sourceMappingURL=fluent.js.map
|
package/dist/fluent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluent.js","sourceRoot":"","sources":["../src/fluent.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAyE;AACzE,uEAAgF;AAEhF,iCAAuC;AAEvC,+CAA2C;AAAnC,6GAAA,YAAY,OAAA;AAEpB;;GAEG;AACH,8DAA8D;
|
|
1
|
+
{"version":3,"file":"fluent.js","sourceRoot":"","sources":["../src/fluent.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAyE;AACzE,uEAAgF;AAEhF,iCAAuC;AAEvC,+CAA2C;AAAnC,6GAAA,YAAY,OAAA;AAEpB;;GAEG;AACH,8DAA8D;AAC9D,IAAa,oBAAoB,kCAAjC,MAAa,oBAAoB;IAC/B,YAC2B,eAA4C;QAA5C,oBAAe,GAAf,eAAe,CAA6B;IACpE,CAAC;IAKJ,KAAK,CAAC,KAAK;QACT,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAC7C,IAAI,OAAO,IAAI,IAAI,EAAE;YACnB,MAAM,IAAI,KAAK,CACb,8CAA8C,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG,CAClE,CAAC;SACH;QACD,OAAO,IAAA,kCAAkB,EAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;CACF,CAAA;AAXS;IADP,aAAM,CAAC,OAAO,EAAE;sCACA,cAAO;qDAAU;+BANvB,oBAAoB;IAE5B,mBAAA,aAAM,CAAC,MAAM,EAAE,CAAA;;GAFP,oBAAoB,CAiBhC;AAED;;GAEG;AACH,IAAa,uBAAuB,qCAApC,MAAa,uBAAuB;IAClC,YAEU,eAA4C;QAA5C,oBAAe,GAAf,eAAe,CAA6B;IACnD,CAAC;IAKJ,KAAK,CAAC,KAAK;QACT,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAC7C,IAAI,OAAO,IAAI,IAAI,EAAE;YACnB,MAAM,IAAI,KAAK,CACb,8CAA8C,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG,CAClE,CAAC;SACH;QACD,MAAM,qBAAqB,GAAG,uBAAM,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAChE,OAAO,IAAI,qBAAqB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF,CAAA;AAZS;IADP,aAAM,CAAC,OAAO,EAAE;sCACA,cAAO;wDAAU;kCAPvB,uBAAuB;IAE/B,mBAAA,aAAM,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,sBAAe,CAAC,aAAa,EAAC,CAAC,CAAA;;GAFnD,uBAAuB,CAmBnC"}
|
|
@@ -15,7 +15,7 @@ const keys_1 = require("../keys");
|
|
|
15
15
|
/**
|
|
16
16
|
* A local interceptor that provides logging for method invocations.
|
|
17
17
|
*/
|
|
18
|
-
let InvocationLoggingInterceptor = class InvocationLoggingInterceptor {
|
|
18
|
+
let InvocationLoggingInterceptor = exports.InvocationLoggingInterceptor = class InvocationLoggingInterceptor {
|
|
19
19
|
constructor(logger) {
|
|
20
20
|
this.logger = logger;
|
|
21
21
|
}
|
|
@@ -35,7 +35,7 @@ let InvocationLoggingInterceptor = class InvocationLoggingInterceptor {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
InvocationLoggingInterceptor = tslib_1.__decorate([
|
|
38
|
+
exports.InvocationLoggingInterceptor = InvocationLoggingInterceptor = tslib_1.__decorate([
|
|
39
39
|
(0, core_1.injectable)({
|
|
40
40
|
tags: { [core_1.ContextTags.KEY]: keys_1.LoggingBindings.WINSTON_INVOCATION_LOGGER },
|
|
41
41
|
scope: core_1.BindingScope.SINGLETON,
|
|
@@ -43,11 +43,10 @@ InvocationLoggingInterceptor = tslib_1.__decorate([
|
|
|
43
43
|
tslib_1.__param(0, (0, core_1.inject)(keys_1.LoggingBindings.WINSTON_LOGGER)),
|
|
44
44
|
tslib_1.__metadata("design:paramtypes", [winston_1.Logger])
|
|
45
45
|
], InvocationLoggingInterceptor);
|
|
46
|
-
exports.InvocationLoggingInterceptor = InvocationLoggingInterceptor;
|
|
47
46
|
/**
|
|
48
47
|
* A global interceptor that provides logging for http requests/responses.
|
|
49
48
|
*/
|
|
50
|
-
let HttpAccessLogInterceptor = class HttpAccessLogInterceptor {
|
|
49
|
+
let HttpAccessLogInterceptor = exports.HttpAccessLogInterceptor = class HttpAccessLogInterceptor {
|
|
51
50
|
constructor(logger, morganOptions = { format: 'combined' }) {
|
|
52
51
|
this.logger = logger;
|
|
53
52
|
this.morganOptions = morganOptions;
|
|
@@ -75,7 +74,7 @@ let HttpAccessLogInterceptor = class HttpAccessLogInterceptor {
|
|
|
75
74
|
return next();
|
|
76
75
|
}
|
|
77
76
|
};
|
|
78
|
-
HttpAccessLogInterceptor = tslib_1.__decorate([
|
|
77
|
+
exports.HttpAccessLogInterceptor = HttpAccessLogInterceptor = tslib_1.__decorate([
|
|
79
78
|
(0, core_1.injectable)((0, core_1.asGlobalInterceptor)('logging'), {
|
|
80
79
|
tags: {
|
|
81
80
|
[core_1.ContextTags.KEY]: keys_1.LoggingBindings.WINSTON_HTTP_ACCESS_LOGGER,
|
|
@@ -88,5 +87,4 @@ HttpAccessLogInterceptor = tslib_1.__decorate([
|
|
|
88
87
|
tslib_1.__param(1, (0, core_1.config)()),
|
|
89
88
|
tslib_1.__metadata("design:paramtypes", [winston_1.Logger, Object])
|
|
90
89
|
], HttpAccessLogInterceptor);
|
|
91
|
-
exports.HttpAccessLogInterceptor = HttpAccessLogInterceptor;
|
|
92
90
|
//# sourceMappingURL=logging.interceptor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.interceptor.js","sourceRoot":"","sources":["../../src/interceptors/logging.interceptor.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAWwB;AACxB,yCAA+E;AAC/E,4DAA4B;AAC5B,+BAA4B;AAC5B,qCAA+B;AAC/B,kCAAwC;AAExC;;GAEG;AAKI,IAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"logging.interceptor.js","sourceRoot":"","sources":["../../src/interceptors/logging.interceptor.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAWwB;AACxB,yCAA+E;AAC/E,4DAA4B;AAC5B,+BAA4B;AAC5B,qCAA+B;AAC/B,kCAAwC;AAExC;;GAEG;AAKI,IAAM,4BAA4B,0CAAlC,MAAM,4BAA4B;IACvC,YAEU,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IACrB,CAAC;IAEJ,KAAK;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,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for http access logger with winston
|
|
31
31
|
*/
|
|
32
32
|
LoggingBindings.WINSTON_HTTP_ACCESS_LOGGER = core_1.BindingKey.create('logging.winston.httpAccessLogger');
|
|
33
|
-
})(LoggingBindings
|
|
33
|
+
})(LoggingBindings || (exports.LoggingBindings = LoggingBindings = {}));
|
|
34
34
|
//# sourceMappingURL=keys.js.map
|
package/dist/keys.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../src/keys.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAAuD;AAMvD;;GAEG;AACH,IAAiB,eAAe,CAqC/B;AArCD,WAAiB,eAAe;IACjB,yBAAS,GAAG,iBAAU,CAAC,MAAM,CACxC,6BAA6B,CAC9B,CAAC;IAEF,8DAA8D;IACjD,6BAAa,GAAG,iBAAU,CAAC,MAAM,CAC5C,uBAAuB,CACxB,CAAC;IAEF;;OAEG;IACU,8BAAc,GAAG,iBAAU,CAAC,MAAM,CAC7C,wBAAwB,CACzB,CAAC;IAEF;;OAEG;IACU,wCAAwB,GAAG,iBAAU,CAAC,MAAM,CACvD,mCAAmC,CACpC,CAAC;IAEF;;OAEG;IACU,yCAAyB,GAAG,iBAAU,CAAC,MAAM,CACxD,kCAAkC,CACnC,CAAC;IAEF;;OAEG;IACU,0CAA0B,GAAG,iBAAU,CAAC,MAAM,CACzD,kCAAkC,CACnC,CAAC;AACJ,CAAC,EArCgB,eAAe,
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../src/keys.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAAuD;AAMvD;;GAEG;AACH,IAAiB,eAAe,CAqC/B;AArCD,WAAiB,eAAe;IACjB,yBAAS,GAAG,iBAAU,CAAC,MAAM,CACxC,6BAA6B,CAC9B,CAAC;IAEF,8DAA8D;IACjD,6BAAa,GAAG,iBAAU,CAAC,MAAM,CAC5C,uBAAuB,CACxB,CAAC;IAEF;;OAEG;IACU,8BAAc,GAAG,iBAAU,CAAC,MAAM,CAC7C,wBAAwB,CACzB,CAAC;IAEF;;OAEG;IACU,wCAAwB,GAAG,iBAAU,CAAC,MAAM,CACvD,mCAAmC,CACpC,CAAC;IAEF;;OAEG;IACU,yCAAyB,GAAG,iBAAU,CAAC,MAAM,CACxD,kCAAkC,CACnC,CAAC;IAEF;;OAEG;IACU,0CAA0B,GAAG,iBAAU,CAAC,MAAM,CACzD,kCAAkC,CACnC,CAAC;AACJ,CAAC,EArCgB,eAAe,+BAAf,eAAe,QAqC/B"}
|
|
@@ -14,7 +14,7 @@ const winston_1 = require("./winston");
|
|
|
14
14
|
/**
|
|
15
15
|
* A component providing logging facilities
|
|
16
16
|
*/
|
|
17
|
-
let LoggingComponent = class LoggingComponent {
|
|
17
|
+
let LoggingComponent = exports.LoggingComponent = class LoggingComponent {
|
|
18
18
|
constructor(loggingConfig) {
|
|
19
19
|
loggingConfig = {
|
|
20
20
|
enableFluent: true,
|
|
@@ -40,10 +40,9 @@ let LoggingComponent = class LoggingComponent {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
LoggingComponent = tslib_1.__decorate([
|
|
43
|
+
exports.LoggingComponent = LoggingComponent = tslib_1.__decorate([
|
|
44
44
|
(0, core_1.injectable)({ tags: { [core_1.ContextTags.KEY]: keys_1.LoggingBindings.COMPONENT } }),
|
|
45
45
|
tslib_1.__param(0, (0, core_1.config)()),
|
|
46
46
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
47
47
|
], LoggingComponent);
|
|
48
|
-
exports.LoggingComponent = LoggingComponent;
|
|
49
48
|
//# sourceMappingURL=logging.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.component.js","sourceRoot":"","sources":["../src/logging.component.ts"],"names":[],"mappings":";A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AA;2BAlCY,gBAAgB;IAD5B,IAAA,iBAAU,EAAC,EAAC,IAAI,EAAE,EAAC,CAAC,kBAAW,CAAC,GAAG,CAAC,EAAE,sBAAe,CAAC,SAAS,EAAC,EAAC,CAAC;IAM9D,mBAAA,IAAA,aAAM,GAAE,CAAA;;GALA,gBAAgB,CAkC5B"}
|
package/dist/winston.js
CHANGED
|
@@ -28,20 +28,8 @@ exports.WINSTON_FORMAT = 'logging.winston.format';
|
|
|
28
28
|
/**
|
|
29
29
|
* A provider class that creates WinstonLogger instances
|
|
30
30
|
*/
|
|
31
|
-
let WinstonLoggerProvider = class WinstonLoggerProvider {
|
|
32
|
-
constructor(
|
|
33
|
-
/**
|
|
34
|
-
* Getter for transports
|
|
35
|
-
*/
|
|
36
|
-
transports,
|
|
37
|
-
/**
|
|
38
|
-
* Getter for formats
|
|
39
|
-
*/
|
|
40
|
-
formats,
|
|
41
|
-
/**
|
|
42
|
-
* Configuration for the logger
|
|
43
|
-
*/
|
|
44
|
-
options = {}) {
|
|
31
|
+
let WinstonLoggerProvider = exports.WinstonLoggerProvider = class WinstonLoggerProvider {
|
|
32
|
+
constructor(transports, formats, options = {}) {
|
|
45
33
|
this.transports = transports;
|
|
46
34
|
this.formats = formats;
|
|
47
35
|
this.options = options;
|
|
@@ -59,11 +47,10 @@ let WinstonLoggerProvider = class WinstonLoggerProvider {
|
|
|
59
47
|
});
|
|
60
48
|
}
|
|
61
49
|
};
|
|
62
|
-
WinstonLoggerProvider = tslib_1.__decorate([
|
|
50
|
+
exports.WinstonLoggerProvider = WinstonLoggerProvider = tslib_1.__decorate([
|
|
63
51
|
tslib_1.__param(0, (0, core_1.extensions)(exports.WINSTON_TRANSPORT)),
|
|
64
52
|
tslib_1.__param(1, (0, core_1.extensions)(exports.WINSTON_FORMAT)),
|
|
65
53
|
tslib_1.__param(2, (0, core_1.config)()),
|
|
66
54
|
tslib_1.__metadata("design:paramtypes", [Function, Function, Object])
|
|
67
55
|
], WinstonLoggerProvider);
|
|
68
|
-
exports.WinstonLoggerProvider = WinstonLoggerProvider;
|
|
69
56
|
//# sourceMappingURL=winston.js.map
|
package/dist/winston.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"winston.js","sourceRoot":"","sources":["../src/winston.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAoE;AAEpE,qCAMiB;AAGjB;;GAEG;AACH,mCAGiB;AAFf,wGAAA,MAAM,OAAiB;AAGzB,mCAKiB;AAJf,iGAAA,MAAM,OAAA;AACN,wGAAA,MAAM,OAAiB;AAEvB,4GAAA,UAAU,OAAqB;AAGjC;;GAEG;AACU,QAAA,iBAAiB,GAAG,2BAA2B,CAAC;AAE7D;;GAEG;AACU,QAAA,cAAc,GAAG,wBAAwB,CAAC;AAEvD;;GAEG;
|
|
1
|
+
{"version":3,"file":"winston.js","sourceRoot":"","sources":["../src/winston.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,iCAAiC;AACjC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAoE;AAEpE,qCAMiB;AAGjB;;GAEG;AACH,mCAGiB;AAFf,wGAAA,MAAM,OAAiB;AAGzB,mCAKiB;AAJf,iGAAA,MAAM,OAAA;AACN,wGAAA,MAAM,OAAiB;AAEvB,4GAAA,UAAU,OAAqB;AAGjC;;GAEG;AACU,QAAA,iBAAiB,GAAG,2BAA2B,CAAC;AAE7D;;GAEG;AACU,QAAA,cAAc,GAAG,wBAAwB,CAAC;AAEvD;;GAEG;AACH,IAAa,qBAAqB,mCAAlC,MAAa,qBAAqB;IAChC,YAKU,UAA+B,EAK/B,OAAyB,EAIf,UAAyB,EAAE;QATrC,eAAU,GAAV,UAAU,CAAqB;QAK/B,YAAO,GAAP,OAAO,CAAkB;QAIf,YAAO,GAAP,OAAO,CAAoB;IAC5C,CAAC;IAEJ,KAAK,CAAC,KAAK;QACT,IAAI,UAAU,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QACzC,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;YAC3B,UAAU,GAAG,CAAC,IAAI,oBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;SACjD;QACD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;QACrC,OAAO,IAAA,sBAAY,EAAC;YAClB,UAAU;YACV,MAAM,EAAE,gBAAM,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;YAClC,GAAG,IAAI,CAAC,OAAO;SAChB,CAAC,CAAC;IACL,CAAC;CACF,CAAA;gCA9BY,qBAAqB;IAK7B,mBAAA,IAAA,iBAAU,EAAC,yBAAiB,CAAC,CAAA;IAK7B,mBAAA,IAAA,iBAAU,EAAC,sBAAc,CAAC,CAAA;IAK1B,mBAAA,IAAA,aAAM,GAAE,CAAA;;GAfA,qBAAqB,CA8BjC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/logging",
|
|
3
3
|
"description": "An extension exposes logging for Winston and Fluentd with LoopBack 4",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"LoopBack",
|
|
7
7
|
"Cloud Native",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"directory": "extensions/logging"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": "
|
|
23
|
+
"node": "16 || 18 || 20"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "lb-tsc",
|
|
@@ -40,24 +40,24 @@
|
|
|
40
40
|
"templates"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@loopback/core": "^
|
|
44
|
-
"@loopback/rest": "^
|
|
43
|
+
"@loopback/core": "^5.0.0",
|
|
44
|
+
"@loopback/rest": "^13.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"fluent-logger": "^3.4.1",
|
|
48
48
|
"morgan": "^1.10.0",
|
|
49
|
-
"tslib": "^2.
|
|
50
|
-
"winston": "^3.
|
|
49
|
+
"tslib": "^2.6.0",
|
|
50
|
+
"winston": "^3.9.0",
|
|
51
51
|
"winston-transport": "^4.5.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@loopback/build": "^
|
|
55
|
-
"@loopback/core": "^
|
|
56
|
-
"@loopback/eslint-config": "^
|
|
57
|
-
"@loopback/rest": "^
|
|
58
|
-
"@loopback/testlab": "^
|
|
54
|
+
"@loopback/build": "^10.1.0",
|
|
55
|
+
"@loopback/core": "^5.1.0",
|
|
56
|
+
"@loopback/eslint-config": "^14.0.1",
|
|
57
|
+
"@loopback/rest": "^13.1.0",
|
|
58
|
+
"@loopback/testlab": "^6.1.0",
|
|
59
59
|
"@types/morgan": "^1.9.4",
|
|
60
|
-
"@types/node": "^
|
|
60
|
+
"@types/node": "^16.18.37"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "10a8fa7fbd00ac77c4aee3e7f40884b07fe1919c"
|
|
63
63
|
}
|