@sentio/runtime 2.20.0 → 2.20.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/utils.js +3 -1
- package/lib/utils.js.map +1 -1
- package/package.json +3 -3
- package/src/utils.ts +4 -1
package/lib/utils.js
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
import { ProcessResult
|
1
|
+
import { ProcessResult } from '@sentio/protos';
|
2
|
+
// TODO better handling this, because old proto doesn't have this
|
3
|
+
import { StateResult } from './gen/processor/protos/processor.js';
|
2
4
|
export function mergeProcessResults(results) {
|
3
5
|
const res = {
|
4
6
|
...ProcessResult.create(),
|
package/lib/utils.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,iEAAiE;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAA;AAIjE,MAAM,UAAU,mBAAmB,CAAC,OAAwB;IAC1D,MAAM,GAAG,GAAG;QACV,GAAG,aAAa,CAAC,MAAM,EAAE;QACzB,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE;KAC7B,CAAA;IAED,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE;QACvB,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAA;QAC9C,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;QACxC,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;QACxC,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;QAC3C,GAAG,CAAC,MAAM,GAAG;YACX,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,IAAI,CAAC,CAAC,MAAM,EAAE,aAAa,IAAI,KAAK;SAC7E,CAAA;KACF;IACD,OAAO,GAAG,CAAA;AACZ,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,CAAQ;IAClC,OAAO,CAAC,CAAC,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,CAAA;AACnC,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAA","sourcesContent":["import { ProcessResult } from '@sentio/protos'\n// TODO better handling this, because old proto doesn't have this\nimport { StateResult } from './gen/processor/protos/processor.js'\n\nimport { Required } from 'utility-types'\n\nexport function mergeProcessResults(results: ProcessResult[]): Required<ProcessResult, 'states'> {\n const res = {\n ...ProcessResult.create(),\n states: StateResult.create(),\n }\n\n for (const r of results) {\n res.counters = res.counters.concat(r.counters)\n res.gauges = res.gauges.concat(r.gauges)\n res.events = res.events.concat(r.events)\n res.exports = res.exports.concat(r.exports)\n res.states = {\n configUpdated: res.states?.configUpdated || r.states?.configUpdated || false,\n }\n }\n return res\n}\n\nexport function errorString(e: Error): string {\n return e.message + '\\n' + e.stack\n}\n\nexport const USER_PROCESSOR = 'user_processor'\n"]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentio/runtime",
|
3
|
-
"version": "2.20.
|
3
|
+
"version": "2.20.1",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -30,10 +30,10 @@
|
|
30
30
|
"protobufjs": "^7.2.3",
|
31
31
|
"utility-types": "^3.10.0",
|
32
32
|
"winston": "^3.8.2",
|
33
|
-
"@sentio/protos": "2.20.
|
33
|
+
"@sentio/protos": "2.20.1"
|
34
34
|
},
|
35
35
|
"peerDependencies": {
|
36
|
-
"@sentio/sdk": "^2.20.
|
36
|
+
"@sentio/sdk": "^2.20.1"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
39
|
"@types/command-line-args": "^5.2.0",
|
package/src/utils.ts
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
import { ProcessResult
|
1
|
+
import { ProcessResult } from '@sentio/protos'
|
2
|
+
// TODO better handling this, because old proto doesn't have this
|
3
|
+
import { StateResult } from './gen/processor/protos/processor.js'
|
4
|
+
|
2
5
|
import { Required } from 'utility-types'
|
3
6
|
|
4
7
|
export function mergeProcessResults(results: ProcessResult[]): Required<ProcessResult, 'states'> {
|