@coralogix/rum-cli 1.1.13 → 1.1.14
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/proto-models/com/coralogix/rum/v2/audit_log.js +4 -2
- package/dist/proto-models/com/coralogix/rum/v2/chunk.js +40 -20
- package/dist/proto-models/com/coralogix/rum/v2/file.js +14 -9
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +26 -16
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +18 -10
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.js +35 -15
- package/dist/proto-models/google/protobuf/descriptor.js +366 -273
- package/package.json +2 -2
- package/proto-models/com/coralogix/rum/v2/audit_log.ts +3 -2
- package/proto-models/com/coralogix/rum/v2/chunk.ts +42 -25
- package/proto-models/com/coralogix/rum/v2/file.ts +16 -12
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +25 -17
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +17 -11
- package/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +34 -17
- package/proto-models/google/protobuf/descriptor.ts +381 -300
- package/protoset.bin +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coralogix/rum-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
4
4
|
"description": "corlogix rum cli",
|
|
5
5
|
"bin": {
|
|
6
6
|
"coralogix-rum-cli": "dist/cli/rum-cli.js"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"google-proto-files": "^3.0.1",
|
|
22
22
|
"google-protobuf": "^3.19.3",
|
|
23
23
|
"lodash": "^4.17.21",
|
|
24
|
-
"nice-grpc": "
|
|
24
|
+
"nice-grpc": "1.2.2",
|
|
25
25
|
"pako": "^2.1.0",
|
|
26
26
|
"prom-client": "^14.0.1",
|
|
27
27
|
"protobufjs": "^7.2.4"
|
|
@@ -48,14 +48,15 @@ export const AuditLogDescription = {
|
|
|
48
48
|
|
|
49
49
|
toJSON(message: AuditLogDescription): unknown {
|
|
50
50
|
const obj: any = {};
|
|
51
|
-
message.description !== undefined
|
|
51
|
+
if (message.description !== undefined) {
|
|
52
|
+
obj.description = message.description;
|
|
53
|
+
}
|
|
52
54
|
return obj;
|
|
53
55
|
},
|
|
54
56
|
|
|
55
57
|
create(base?: DeepPartial<AuditLogDescription>): AuditLogDescription {
|
|
56
58
|
return AuditLogDescription.fromPartial(base ?? {});
|
|
57
59
|
},
|
|
58
|
-
|
|
59
60
|
fromPartial(object: DeepPartial<AuditLogDescription>): AuditLogDescription {
|
|
60
61
|
const message = createBaseAuditLogDescription();
|
|
61
62
|
message.description = object.description ?? undefined;
|
|
@@ -91,17 +91,21 @@ export const Chunk = {
|
|
|
91
91
|
|
|
92
92
|
toJSON(message: Chunk): unknown {
|
|
93
93
|
const obj: any = {};
|
|
94
|
-
message.chunkName !==
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
if (message.chunkName !== "") {
|
|
95
|
+
obj.chunkName = message.chunkName;
|
|
96
|
+
}
|
|
97
|
+
if (message.generatedLineNumber !== 0) {
|
|
98
|
+
obj.generatedLineNumber = Math.round(message.generatedLineNumber);
|
|
99
|
+
}
|
|
100
|
+
if (message.generatedColumnNumber !== 0) {
|
|
101
|
+
obj.generatedColumnNumber = Math.round(message.generatedColumnNumber);
|
|
102
|
+
}
|
|
98
103
|
return obj;
|
|
99
104
|
},
|
|
100
105
|
|
|
101
106
|
create(base?: DeepPartial<Chunk>): Chunk {
|
|
102
107
|
return Chunk.fromPartial(base ?? {});
|
|
103
108
|
},
|
|
104
|
-
|
|
105
109
|
fromPartial(object: DeepPartial<Chunk>): Chunk {
|
|
106
110
|
const message = createBaseChunk();
|
|
107
111
|
message.chunkName = object.chunkName ?? "";
|
|
@@ -165,15 +169,18 @@ export const CodeLine = {
|
|
|
165
169
|
|
|
166
170
|
toJSON(message: CodeLine): unknown {
|
|
167
171
|
const obj: any = {};
|
|
168
|
-
message.lineIndex !==
|
|
169
|
-
|
|
172
|
+
if (message.lineIndex !== 0) {
|
|
173
|
+
obj.lineIndex = Math.round(message.lineIndex);
|
|
174
|
+
}
|
|
175
|
+
if (message.lineCode !== "") {
|
|
176
|
+
obj.lineCode = message.lineCode;
|
|
177
|
+
}
|
|
170
178
|
return obj;
|
|
171
179
|
},
|
|
172
180
|
|
|
173
181
|
create(base?: DeepPartial<CodeLine>): CodeLine {
|
|
174
182
|
return CodeLine.fromPartial(base ?? {});
|
|
175
183
|
},
|
|
176
|
-
|
|
177
184
|
fromPartial(object: DeepPartial<CodeLine>): CodeLine {
|
|
178
185
|
const message = createBaseCodeLine();
|
|
179
186
|
message.lineIndex = object.lineIndex ?? 0;
|
|
@@ -313,26 +320,36 @@ export const MappedChunk = {
|
|
|
313
320
|
|
|
314
321
|
toJSON(message: MappedChunk): unknown {
|
|
315
322
|
const obj: any = {};
|
|
316
|
-
message.chunkName !==
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
message.
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
obj.
|
|
323
|
+
if (message.chunkName !== "") {
|
|
324
|
+
obj.chunkName = message.chunkName;
|
|
325
|
+
}
|
|
326
|
+
if (message.originalLineNumber !== 0) {
|
|
327
|
+
obj.originalLineNumber = Math.round(message.originalLineNumber);
|
|
328
|
+
}
|
|
329
|
+
if (message.originalColumnNumber !== 0) {
|
|
330
|
+
obj.originalColumnNumber = Math.round(message.originalColumnNumber);
|
|
331
|
+
}
|
|
332
|
+
if (message.sourceFileName !== "") {
|
|
333
|
+
obj.sourceFileName = message.sourceFileName;
|
|
334
|
+
}
|
|
335
|
+
if (message.sourceCodeLines?.length) {
|
|
336
|
+
obj.sourceCodeLines = message.sourceCodeLines.map((e) => CodeLine.toJSON(e));
|
|
337
|
+
}
|
|
338
|
+
if (message.generatedLineNumber !== 0) {
|
|
339
|
+
obj.generatedLineNumber = Math.round(message.generatedLineNumber);
|
|
340
|
+
}
|
|
341
|
+
if (message.generatedColumnNumber !== 0) {
|
|
342
|
+
obj.generatedColumnNumber = Math.round(message.generatedColumnNumber);
|
|
343
|
+
}
|
|
344
|
+
if (message.sourceFunctionName !== "") {
|
|
345
|
+
obj.sourceFunctionName = message.sourceFunctionName;
|
|
324
346
|
}
|
|
325
|
-
message.generatedLineNumber !== undefined && (obj.generatedLineNumber = Math.round(message.generatedLineNumber));
|
|
326
|
-
message.generatedColumnNumber !== undefined &&
|
|
327
|
-
(obj.generatedColumnNumber = Math.round(message.generatedColumnNumber));
|
|
328
|
-
message.sourceFunctionName !== undefined && (obj.sourceFunctionName = message.sourceFunctionName);
|
|
329
347
|
return obj;
|
|
330
348
|
},
|
|
331
349
|
|
|
332
350
|
create(base?: DeepPartial<MappedChunk>): MappedChunk {
|
|
333
351
|
return MappedChunk.fromPartial(base ?? {});
|
|
334
352
|
},
|
|
335
|
-
|
|
336
353
|
fromPartial(object: DeepPartial<MappedChunk>): MappedChunk {
|
|
337
354
|
const message = createBaseMappedChunk();
|
|
338
355
|
message.chunkName = object.chunkName ?? "";
|
|
@@ -347,10 +364,10 @@ export const MappedChunk = {
|
|
|
347
364
|
},
|
|
348
365
|
};
|
|
349
366
|
|
|
350
|
-
declare
|
|
351
|
-
declare
|
|
352
|
-
declare
|
|
353
|
-
|
|
367
|
+
declare const self: any | undefined;
|
|
368
|
+
declare const window: any | undefined;
|
|
369
|
+
declare const global: any | undefined;
|
|
370
|
+
const tsProtoGlobalThis: any = (() => {
|
|
354
371
|
if (typeof globalThis !== "undefined") {
|
|
355
372
|
return globalThis;
|
|
356
373
|
}
|
|
@@ -11,7 +11,7 @@ export interface FileMetadata {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
function createBaseFileMetadata(): FileMetadata {
|
|
14
|
-
return { chunkName: "", size: 0, content: new Uint8Array() };
|
|
14
|
+
return { chunkName: "", size: 0, content: new Uint8Array(0) };
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export const FileMetadata = {
|
|
@@ -69,36 +69,40 @@ export const FileMetadata = {
|
|
|
69
69
|
return {
|
|
70
70
|
chunkName: isSet(object.chunkName) ? String(object.chunkName) : "",
|
|
71
71
|
size: isSet(object.size) ? Number(object.size) : 0,
|
|
72
|
-
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(),
|
|
72
|
+
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(0),
|
|
73
73
|
};
|
|
74
74
|
},
|
|
75
75
|
|
|
76
76
|
toJSON(message: FileMetadata): unknown {
|
|
77
77
|
const obj: any = {};
|
|
78
|
-
message.chunkName !==
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
if (message.chunkName !== "") {
|
|
79
|
+
obj.chunkName = message.chunkName;
|
|
80
|
+
}
|
|
81
|
+
if (message.size !== 0) {
|
|
82
|
+
obj.size = Math.round(message.size);
|
|
83
|
+
}
|
|
84
|
+
if (message.content.length !== 0) {
|
|
85
|
+
obj.content = base64FromBytes(message.content);
|
|
86
|
+
}
|
|
82
87
|
return obj;
|
|
83
88
|
},
|
|
84
89
|
|
|
85
90
|
create(base?: DeepPartial<FileMetadata>): FileMetadata {
|
|
86
91
|
return FileMetadata.fromPartial(base ?? {});
|
|
87
92
|
},
|
|
88
|
-
|
|
89
93
|
fromPartial(object: DeepPartial<FileMetadata>): FileMetadata {
|
|
90
94
|
const message = createBaseFileMetadata();
|
|
91
95
|
message.chunkName = object.chunkName ?? "";
|
|
92
96
|
message.size = object.size ?? 0;
|
|
93
|
-
message.content = object.content ?? new Uint8Array();
|
|
97
|
+
message.content = object.content ?? new Uint8Array(0);
|
|
94
98
|
return message;
|
|
95
99
|
},
|
|
96
100
|
};
|
|
97
101
|
|
|
98
|
-
declare
|
|
99
|
-
declare
|
|
100
|
-
declare
|
|
101
|
-
|
|
102
|
+
declare const self: any | undefined;
|
|
103
|
+
declare const window: any | undefined;
|
|
104
|
+
declare const global: any | undefined;
|
|
105
|
+
const tsProtoGlobalThis: any = (() => {
|
|
102
106
|
if (typeof globalThis !== "undefined") {
|
|
103
107
|
return globalThis;
|
|
104
108
|
}
|
|
@@ -84,12 +84,14 @@ export const GetMappedStackTraceRequest = {
|
|
|
84
84
|
|
|
85
85
|
toJSON(message: GetMappedStackTraceRequest): unknown {
|
|
86
86
|
const obj: any = {};
|
|
87
|
-
message.application !==
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
if (message.application !== "") {
|
|
88
|
+
obj.application = message.application;
|
|
89
|
+
}
|
|
90
|
+
if (message.releaseId !== "") {
|
|
91
|
+
obj.releaseId = message.releaseId;
|
|
92
|
+
}
|
|
93
|
+
if (message.chunks?.length) {
|
|
94
|
+
obj.chunks = message.chunks.map((e) => Chunk.toJSON(e));
|
|
93
95
|
}
|
|
94
96
|
return obj;
|
|
95
97
|
},
|
|
@@ -97,7 +99,6 @@ export const GetMappedStackTraceRequest = {
|
|
|
97
99
|
create(base?: DeepPartial<GetMappedStackTraceRequest>): GetMappedStackTraceRequest {
|
|
98
100
|
return GetMappedStackTraceRequest.fromPartial(base ?? {});
|
|
99
101
|
},
|
|
100
|
-
|
|
101
102
|
fromPartial(object: DeepPartial<GetMappedStackTraceRequest>): GetMappedStackTraceRequest {
|
|
102
103
|
const message = createBaseGetMappedStackTraceRequest();
|
|
103
104
|
message.application = object.application ?? "";
|
|
@@ -214,23 +215,30 @@ export const GetMappedStackTraceResponse = {
|
|
|
214
215
|
|
|
215
216
|
toJSON(message: GetMappedStackTraceResponse): unknown {
|
|
216
217
|
const obj: any = {};
|
|
217
|
-
message.application !==
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
218
|
+
if (message.application !== "") {
|
|
219
|
+
obj.application = message.application;
|
|
220
|
+
}
|
|
221
|
+
if (message.releaseId !== "") {
|
|
222
|
+
obj.releaseId = message.releaseId;
|
|
223
|
+
}
|
|
224
|
+
if (message.mappedChunks?.length) {
|
|
225
|
+
obj.mappedChunks = message.mappedChunks.map((e) => MappedChunk.toJSON(e));
|
|
226
|
+
}
|
|
227
|
+
if (message.commitHash !== undefined) {
|
|
228
|
+
obj.commitHash = message.commitHash;
|
|
229
|
+
}
|
|
230
|
+
if (message.repoName !== undefined) {
|
|
231
|
+
obj.repoName = message.repoName;
|
|
232
|
+
}
|
|
233
|
+
if (message.user !== undefined) {
|
|
234
|
+
obj.user = message.user;
|
|
223
235
|
}
|
|
224
|
-
message.commitHash !== undefined && (obj.commitHash = message.commitHash);
|
|
225
|
-
message.repoName !== undefined && (obj.repoName = message.repoName);
|
|
226
|
-
message.user !== undefined && (obj.user = message.user);
|
|
227
236
|
return obj;
|
|
228
237
|
},
|
|
229
238
|
|
|
230
239
|
create(base?: DeepPartial<GetMappedStackTraceResponse>): GetMappedStackTraceResponse {
|
|
231
240
|
return GetMappedStackTraceResponse.fromPartial(base ?? {});
|
|
232
241
|
},
|
|
233
|
-
|
|
234
242
|
fromPartial(object: DeepPartial<GetMappedStackTraceResponse>): GetMappedStackTraceResponse {
|
|
235
243
|
const message = createBaseGetMappedStackTraceResponse();
|
|
236
244
|
message.application = object.application ?? "";
|
|
@@ -114,15 +114,23 @@ export const UploadSourceMapsRequest = {
|
|
|
114
114
|
|
|
115
115
|
toJSON(message: UploadSourceMapsRequest): unknown {
|
|
116
116
|
const obj: any = {};
|
|
117
|
-
message.application !==
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
message.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
117
|
+
if (message.application !== "") {
|
|
118
|
+
obj.application = message.application;
|
|
119
|
+
}
|
|
120
|
+
if (message.releaseId !== "") {
|
|
121
|
+
obj.releaseId = message.releaseId;
|
|
122
|
+
}
|
|
123
|
+
if (message.commitHash !== undefined) {
|
|
124
|
+
obj.commitHash = message.commitHash;
|
|
125
|
+
}
|
|
126
|
+
if (message.repoName !== undefined) {
|
|
127
|
+
obj.repoName = message.repoName;
|
|
128
|
+
}
|
|
129
|
+
if (message.user !== undefined) {
|
|
130
|
+
obj.user = message.user;
|
|
131
|
+
}
|
|
132
|
+
if (message.files?.length) {
|
|
133
|
+
obj.files = message.files.map((e) => FileMetadata.toJSON(e));
|
|
126
134
|
}
|
|
127
135
|
return obj;
|
|
128
136
|
},
|
|
@@ -130,7 +138,6 @@ export const UploadSourceMapsRequest = {
|
|
|
130
138
|
create(base?: DeepPartial<UploadSourceMapsRequest>): UploadSourceMapsRequest {
|
|
131
139
|
return UploadSourceMapsRequest.fromPartial(base ?? {});
|
|
132
140
|
},
|
|
133
|
-
|
|
134
141
|
fromPartial(object: DeepPartial<UploadSourceMapsRequest>): UploadSourceMapsRequest {
|
|
135
142
|
const message = createBaseUploadSourceMapsRequest();
|
|
136
143
|
message.application = object.application ?? "";
|
|
@@ -180,7 +187,6 @@ export const UploadSourceMapsResponse = {
|
|
|
180
187
|
create(base?: DeepPartial<UploadSourceMapsResponse>): UploadSourceMapsResponse {
|
|
181
188
|
return UploadSourceMapsResponse.fromPartial(base ?? {});
|
|
182
189
|
},
|
|
183
|
-
|
|
184
190
|
fromPartial(_: DeepPartial<UploadSourceMapsResponse>): UploadSourceMapsResponse {
|
|
185
191
|
const message = createBaseUploadSourceMapsResponse();
|
|
186
192
|
return message;
|
|
@@ -73,11 +73,14 @@ export const FileSourceCodeMap = {
|
|
|
73
73
|
|
|
74
74
|
toJSON(message: FileSourceCodeMap): unknown {
|
|
75
75
|
const obj: any = {};
|
|
76
|
-
obj.fileNameToCode = {};
|
|
77
76
|
if (message.fileNameToCode) {
|
|
78
|
-
Object.entries(message.fileNameToCode)
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
const entries = Object.entries(message.fileNameToCode);
|
|
78
|
+
if (entries.length > 0) {
|
|
79
|
+
obj.fileNameToCode = {};
|
|
80
|
+
entries.forEach(([k, v]) => {
|
|
81
|
+
obj.fileNameToCode[k] = v;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
81
84
|
}
|
|
82
85
|
return obj;
|
|
83
86
|
},
|
|
@@ -85,7 +88,6 @@ export const FileSourceCodeMap = {
|
|
|
85
88
|
create(base?: DeepPartial<FileSourceCodeMap>): FileSourceCodeMap {
|
|
86
89
|
return FileSourceCodeMap.fromPartial(base ?? {});
|
|
87
90
|
},
|
|
88
|
-
|
|
89
91
|
fromPartial(object: DeepPartial<FileSourceCodeMap>): FileSourceCodeMap {
|
|
90
92
|
const message = createBaseFileSourceCodeMap();
|
|
91
93
|
message.fileNameToCode = Object.entries(object.fileNameToCode ?? {}).reduce<{ [key: string]: string }>(
|
|
@@ -152,15 +154,18 @@ export const FileSourceCodeMap_FileNameToCodeEntry = {
|
|
|
152
154
|
|
|
153
155
|
toJSON(message: FileSourceCodeMap_FileNameToCodeEntry): unknown {
|
|
154
156
|
const obj: any = {};
|
|
155
|
-
message.key !==
|
|
156
|
-
|
|
157
|
+
if (message.key !== "") {
|
|
158
|
+
obj.key = message.key;
|
|
159
|
+
}
|
|
160
|
+
if (message.value !== "") {
|
|
161
|
+
obj.value = message.value;
|
|
162
|
+
}
|
|
157
163
|
return obj;
|
|
158
164
|
},
|
|
159
165
|
|
|
160
166
|
create(base?: DeepPartial<FileSourceCodeMap_FileNameToCodeEntry>): FileSourceCodeMap_FileNameToCodeEntry {
|
|
161
167
|
return FileSourceCodeMap_FileNameToCodeEntry.fromPartial(base ?? {});
|
|
162
168
|
},
|
|
163
|
-
|
|
164
169
|
fromPartial(object: DeepPartial<FileSourceCodeMap_FileNameToCodeEntry>): FileSourceCodeMap_FileNameToCodeEntry {
|
|
165
170
|
const message = createBaseFileSourceCodeMap_FileNameToCodeEntry();
|
|
166
171
|
message.key = object.key ?? "";
|
|
@@ -286,21 +291,33 @@ export const SourceCodeLineMapping = {
|
|
|
286
291
|
|
|
287
292
|
toJSON(message: SourceCodeLineMapping): unknown {
|
|
288
293
|
const obj: any = {};
|
|
289
|
-
message.chunkName !==
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
message.
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
if (message.chunkName !== "") {
|
|
295
|
+
obj.chunkName = message.chunkName;
|
|
296
|
+
}
|
|
297
|
+
if (message.sourceFileName !== "") {
|
|
298
|
+
obj.sourceFileName = message.sourceFileName;
|
|
299
|
+
}
|
|
300
|
+
if (message.originalLineNumber !== 0) {
|
|
301
|
+
obj.originalLineNumber = Math.round(message.originalLineNumber);
|
|
302
|
+
}
|
|
303
|
+
if (message.generatedLineNumber !== 0) {
|
|
304
|
+
obj.generatedLineNumber = Math.round(message.generatedLineNumber);
|
|
305
|
+
}
|
|
306
|
+
if (message.originalColumnNumber !== 0) {
|
|
307
|
+
obj.originalColumnNumber = Math.round(message.originalColumnNumber);
|
|
308
|
+
}
|
|
309
|
+
if (message.generatedColumnNumber !== 0) {
|
|
310
|
+
obj.generatedColumnNumber = Math.round(message.generatedColumnNumber);
|
|
311
|
+
}
|
|
312
|
+
if (message.sourceFunctionName !== "") {
|
|
313
|
+
obj.sourceFunctionName = message.sourceFunctionName;
|
|
314
|
+
}
|
|
297
315
|
return obj;
|
|
298
316
|
},
|
|
299
317
|
|
|
300
318
|
create(base?: DeepPartial<SourceCodeLineMapping>): SourceCodeLineMapping {
|
|
301
319
|
return SourceCodeLineMapping.fromPartial(base ?? {});
|
|
302
320
|
},
|
|
303
|
-
|
|
304
321
|
fromPartial(object: DeepPartial<SourceCodeLineMapping>): SourceCodeLineMapping {
|
|
305
322
|
const message = createBaseSourceCodeLineMapping();
|
|
306
323
|
message.chunkName = object.chunkName ?? "";
|