@marinade.finance/scoring 1.0.2 → 1.0.4

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.
@@ -1,72 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.warn = exports.error = exports.log = void 0;
27
- const log4js = __importStar(require("log4js"));
28
- const configureLogger = () => {
29
- log4js.configure({
30
- appenders: {
31
- app: {
32
- type: 'stdout',
33
- layout: {
34
- type: 'pattern',
35
- pattern: '%d %[[%p]%] %x{singleLine}',
36
- tokens: {
37
- singleLine: (logEvent) => {
38
- const [msg, ctx] = logEvent.data;
39
- const err = ctx?.err;
40
- if (err) {
41
- ctx.err = undefined;
42
- }
43
- const ctxSerialized = ctx ? ` ${JSON.stringify(ctx)}` : '';
44
- const errSerialized = err instanceof Error
45
- ? ` <${err.name}: ${err.message}> (${err.stack})`
46
- : '';
47
- return `${msg}${errSerialized}${ctxSerialized}`.replace(/\n/g, '\\n');
48
- },
49
- },
50
- },
51
- },
52
- },
53
- categories: {
54
- default: { appenders: ['app'], level: 'DEBUG' },
55
- },
56
- });
57
- return log4js.getLogger();
58
- };
59
- const logger = configureLogger();
60
- const log = (...args) => {
61
- logger.log('INFO', ...args);
62
- };
63
- exports.log = log;
64
- const error = (...args) => {
65
- logger.log('ERROR', ...args);
66
- };
67
- exports.error = error;
68
- const warn = (...args) => {
69
- logger.log('WARN', ...args);
70
- };
71
- exports.warn = warn;
72
- //# sourceMappingURL=logger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logging/logger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,MAAM,eAAe,GAAG,GAAG,EAAE;IAC3B,MAAM,CAAC,SAAS,CAAC;QACf,SAAS,EAAE;YACT,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,4BAA4B;oBACrC,MAAM,EAAE;wBACN,UAAU,EAAE,CAAC,QAAa,EAAE,EAAE;4BAC5B,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC;4BACjC,MAAM,GAAG,GAAG,GAAG,EAAE,GAAG,CAAC;4BACrB,IAAI,GAAG,EAAE;gCACP,GAAG,CAAC,GAAG,GAAG,SAAS,CAAC;6BACrB;4BAED,MAAM,aAAa,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;4BAC3D,MAAM,aAAa,GACjB,GAAG,YAAY,KAAK;gCAClB,CAAC,CAAC,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,OAAO,MAAM,GAAG,CAAC,KAAK,GAAG;gCACjD,CAAC,CAAC,EAAE,CAAC;4BAET,OAAO,GAAG,GAAG,GAA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