@sentio/runtime 3.9.0-rc.9 → 4.0.0-rc.1
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/lib/{chunk-VNWNJ423.js → chunk-GUQLAUIA.js} +15179 -8371
- package/lib/chunk-GUQLAUIA.js.map +1 -0
- package/lib/{chunk-EXIISBRV.js → chunk-KOMGWSWU.js} +4589 -5362
- package/lib/chunk-KOMGWSWU.js.map +1 -0
- package/lib/{chunk-L2A6JPIQ.js → chunk-LSYQ34WX.js} +3 -3
- package/lib/chunk-LSYQ34WX.js.map +1 -0
- package/lib/{getMachineId-bsd-QYFPRONP.js → getMachineId-bsd-OV63RCBF.js} +4 -4
- package/lib/getMachineId-bsd-OV63RCBF.js.map +1 -0
- package/lib/{getMachineId-darwin-XC67FIUW.js → getMachineId-darwin-7BY3RHHX.js} +4 -4
- package/lib/getMachineId-darwin-7BY3RHHX.js.map +1 -0
- package/lib/{getMachineId-linux-4G7ZY7LQ.js → getMachineId-linux-SN23MJRK.js} +3 -3
- package/lib/getMachineId-linux-SN23MJRK.js.map +1 -0
- package/lib/{getMachineId-unsupported-5IH5IW7P.js → getMachineId-unsupported-CQYUAEDB.js} +3 -3
- package/lib/getMachineId-unsupported-CQYUAEDB.js.map +1 -0
- package/lib/{getMachineId-win-WSA3TUKL.js → getMachineId-win-NL4ZQSDA.js} +4 -4
- package/lib/getMachineId-win-NL4ZQSDA.js.map +1 -0
- package/lib/index.d.ts +3 -5
- package/lib/index.js +2 -2
- package/lib/processor-StqZovMW.d.ts +554 -0
- package/lib/processor-runner.js +4842 -9188
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/endpoints.ts +0 -2
- package/src/gen/google/protobuf/empty.ts +22 -7
- package/src/gen/google/protobuf/struct.ts +123 -56
- package/src/gen/google/protobuf/timestamp.ts +33 -26
- package/src/gen/google/type/money.ts +40 -28
- package/src/gen/processor/protos/processor.ts +3007 -1724
- package/src/gen/service/common/protos/common.ts +3272 -1904
- package/src/logger.ts +13 -5
- package/src/processor-runner-program.ts +0 -1
- package/lib/chunk-EXIISBRV.js.map +0 -1
- package/lib/chunk-L2A6JPIQ.js.map +0 -1
- package/lib/chunk-VNWNJ423.js.map +0 -1
- package/lib/getMachineId-bsd-QYFPRONP.js.map +0 -1
- package/lib/getMachineId-darwin-XC67FIUW.js.map +0 -1
- package/lib/getMachineId-linux-4G7ZY7LQ.js.map +0 -1
- package/lib/getMachineId-unsupported-5IH5IW7P.js.map +0 -1
- package/lib/getMachineId-win-WSA3TUKL.js.map +0 -1
- package/lib/processor-MLp_j8IT.d.ts +0 -864
package/src/logger.ts
CHANGED
|
@@ -52,9 +52,17 @@ export function setupLogger(json: boolean, enableDebug: boolean, workerId?: numb
|
|
|
52
52
|
transports: [new transports.Console()]
|
|
53
53
|
})
|
|
54
54
|
|
|
55
|
-
console
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
// Forward console output to winston, preserving `this` binding to the logger. The methods are
|
|
56
|
+
// typed through `(...args: any[]) => unknown` so the variadic args can be applied without tripping
|
|
57
|
+
// strict overload resolution on `Function.prototype.call`.
|
|
58
|
+
const forward =
|
|
59
|
+
(method: (...args: any[]) => unknown) =>
|
|
60
|
+
(...args: any[]) => {
|
|
61
|
+
method.apply(logger, args)
|
|
62
|
+
}
|
|
63
|
+
console.log = forward(logger.info)
|
|
64
|
+
console.info = forward(logger.info)
|
|
65
|
+
console.warn = forward(logger.warn)
|
|
66
|
+
console.error = forward(logger.error)
|
|
67
|
+
console.debug = forward(logger.debug)
|
|
60
68
|
}
|
|
@@ -26,7 +26,6 @@ export const program = new Command('processor-runner')
|
|
|
26
26
|
.option('--concurrency <number>', 'Number of concurrent workers(V2 only, deprecated)', myParseInt, 4)
|
|
27
27
|
.option('--batch-count <number>', 'Batch count for processing', myParseInt, 1)
|
|
28
28
|
.option('-c, --chains-config <path>', 'Path to chains configuration file', 'chains-config.json')
|
|
29
|
-
.option('--chainquery-server <url>', 'Chain query server URL')
|
|
30
29
|
.option('--pricefeed-server <url>', 'Price feed server URL')
|
|
31
30
|
.option('--log-format <format>', 'Log format (console|json)', 'console')
|
|
32
31
|
.option('--debug', 'Enable debug mode')
|