Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@parca/client

Package Overview
Dependencies
Maintainers
4
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parca/client - npm Package Compare versions

Comparing version 0.13.13 to 0.13.15

src/google/pprof/profile.ts

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.13.15](https://github.com/parca-dev/parca/compare/ui-v0.13.14...ui-v0.13.15) (2022-07-12)
**Note:** Version bump only for package @parca/client
## [0.13.13](https://github.com/parca-dev/parca/compare/ui-v0.13.12...ui-v0.13.13) (2022-06-29)

@@ -8,0 +16,0 @@

4

package.json
{
"name": "@parca/client",
"version": "0.13.13",
"version": "0.13.15",
"description": "Parca API Client",

@@ -23,3 +23,3 @@ "main": "src/index.ts",

},
"gitHead": "843f14d7aba3e60c38a040ddbe59d98d84648a41"
"gitHead": "f069ec81f844a6b5bdac6530f5e8eaaee26265aa"
}

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.2.2 with parameter long_type_string,generate_dependencies
// @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies
// @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.2.2 with parameter long_type_string,generate_dependencies
// @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies
// @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.2.2 with parameter long_type_string,generate_dependencies
// @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies
// @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.2.2 with parameter long_type_string,generate_dependencies
// @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies
// @generated from protobuf file "parca/debuginfo/v1alpha1/debuginfo.proto" (package "parca.debuginfo.v1alpha1", syntax proto3)

@@ -7,2 +7,5 @@ // tslint:disable

import { DebugInfoService } from "./debuginfo";
import type { DownloadResponse } from "./debuginfo";
import type { DownloadRequest } from "./debuginfo";
import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
import type { UploadResponse } from "./debuginfo";

@@ -34,2 +37,8 @@ import type { UploadRequest } from "./debuginfo";

upload(options?: RpcOptions): ClientStreamingCall<UploadRequest, UploadResponse>;
/**
* Download returns the debug info for a given build_id.
*
* @generated from protobuf rpc: Download(parca.debuginfo.v1alpha1.DownloadRequest) returns (stream parca.debuginfo.v1alpha1.DownloadResponse);
*/
download(input: DownloadRequest, options?: RpcOptions): ServerStreamingCall<DownloadRequest, DownloadResponse>;
}

@@ -65,2 +74,11 @@ /**

}
/**
* Download returns the debug info for a given build_id.
*
* @generated from protobuf rpc: Download(parca.debuginfo.v1alpha1.DownloadRequest) returns (stream parca.debuginfo.v1alpha1.DownloadResponse);
*/
download(input: DownloadRequest, options?: RpcOptions): ServerStreamingCall<DownloadRequest, DownloadResponse> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<DownloadRequest, DownloadResponse>("serverStreaming", this._transport, method, opt, input);
}
}

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.2.2 with parameter long_type_string,generate_dependencies
// @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies
// @generated from protobuf file "parca/debuginfo/v1alpha1/debuginfo.proto" (package "parca.debuginfo.v1alpha1", syntax proto3)

@@ -89,3 +89,3 @@ // tslint:disable

/**
* hash is the hash of the debug information file
* hash is the hash of the source file that debug information extracted from
*

@@ -115,2 +115,82 @@ * @generated from protobuf field: string hash = 2;

}
/**
* DownloadRequest upload debug info
*
* @generated from protobuf message parca.debuginfo.v1alpha1.DownloadRequest
*/
export interface DownloadRequest {
/**
* build_id is a unique identifier for the debug data
*
* @generated from protobuf field: string build_id = 1;
*/
buildId: string;
}
/**
* DownloadRequest returns chunked data of the debuginfo.
*
* @generated from protobuf message parca.debuginfo.v1alpha1.DownloadResponse
*/
export interface DownloadResponse {
/**
* @generated from protobuf oneof: data
*/
data: {
oneofKind: "info";
/**
* info is the metadata for the debug info
*
* @generated from protobuf field: parca.debuginfo.v1alpha1.DownloadInfo info = 1;
*/
info: DownloadInfo;
} | {
oneofKind: "chunkData";
/**
* chunk_data is the raw bytes of the debug info
*
* @generated from protobuf field: bytes chunk_data = 2;
*/
chunkData: Uint8Array;
} | {
oneofKind: undefined;
};
}
/**
* DownloadInfo metadata for the debug data that is being downloaded.
*
* @generated from protobuf message parca.debuginfo.v1alpha1.DownloadInfo
*/
export interface DownloadInfo {
/**
* Source indicates the origin of the debuginfo being downloaded.
*
* @generated from protobuf field: parca.debuginfo.v1alpha1.DownloadInfo.Source source = 1;
*/
source: DownloadInfo_Source;
}
/**
* Source enum describes the source a debuginfo is from.
*
* @generated from protobuf enum parca.debuginfo.v1alpha1.DownloadInfo.Source
*/
export enum DownloadInfo_Source {
/**
* To understand when no source is set we have the unknown source.
*
* @generated from protobuf enum value: SOURCE_UNKNOWN_UNSPECIFIED = 0;
*/
UNKNOWN_UNSPECIFIED = 0,
/**
* The debuginfo was uploaded by a user/agent.
*
* @generated from protobuf enum value: SOURCE_UPLOAD = 1;
*/
UPLOAD = 1,
/**
* The debuginfo was downloaded from a public debuginfod server.
*
* @generated from protobuf enum value: SOURCE_DEBUGINFOD = 2;
*/
DEBUGINFOD = 2
}
// @generated message type with reflection information, may provide speed optimized methods

@@ -385,3 +465,157 @@ class ExistsRequest$Type extends MessageType<ExistsRequest> {

export const UploadResponse = new UploadResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DownloadRequest$Type extends MessageType<DownloadRequest> {
constructor() {
super("parca.debuginfo.v1alpha1.DownloadRequest", [
{ no: 1, name: "build_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<DownloadRequest>): DownloadRequest {
const message = { buildId: "" };
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
if (value !== undefined)
reflectionMergePartial<DownloadRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadRequest): DownloadRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string build_id */ 1:
message.buildId = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: DownloadRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string build_id = 1; */
if (message.buildId !== "")
writer.tag(1, WireType.LengthDelimited).string(message.buildId);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message parca.debuginfo.v1alpha1.DownloadRequest
*/
export const DownloadRequest = new DownloadRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DownloadResponse$Type extends MessageType<DownloadResponse> {
constructor() {
super("parca.debuginfo.v1alpha1.DownloadResponse", [
{ no: 1, name: "info", kind: "message", oneof: "data", T: () => DownloadInfo },
{ no: 2, name: "chunk_data", kind: "scalar", oneof: "data", T: 12 /*ScalarType.BYTES*/ }
]);
}
create(value?: PartialMessage<DownloadResponse>): DownloadResponse {
const message = { data: { oneofKind: undefined } };
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
if (value !== undefined)
reflectionMergePartial<DownloadResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadResponse): DownloadResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* parca.debuginfo.v1alpha1.DownloadInfo info */ 1:
message.data = {
oneofKind: "info",
info: DownloadInfo.internalBinaryRead(reader, reader.uint32(), options, (message.data as any).info)
};
break;
case /* bytes chunk_data */ 2:
message.data = {
oneofKind: "chunkData",
chunkData: reader.bytes()
};
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: DownloadResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* parca.debuginfo.v1alpha1.DownloadInfo info = 1; */
if (message.data.oneofKind === "info")
DownloadInfo.internalBinaryWrite(message.data.info, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* bytes chunk_data = 2; */
if (message.data.oneofKind === "chunkData")
writer.tag(2, WireType.LengthDelimited).bytes(message.data.chunkData);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message parca.debuginfo.v1alpha1.DownloadResponse
*/
export const DownloadResponse = new DownloadResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DownloadInfo$Type extends MessageType<DownloadInfo> {
constructor() {
super("parca.debuginfo.v1alpha1.DownloadInfo", [
{ no: 1, name: "source", kind: "enum", T: () => ["parca.debuginfo.v1alpha1.DownloadInfo.Source", DownloadInfo_Source, "SOURCE_"] }
]);
}
create(value?: PartialMessage<DownloadInfo>): DownloadInfo {
const message = { source: 0 };
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
if (value !== undefined)
reflectionMergePartial<DownloadInfo>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DownloadInfo): DownloadInfo {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* parca.debuginfo.v1alpha1.DownloadInfo.Source source */ 1:
message.source = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: DownloadInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* parca.debuginfo.v1alpha1.DownloadInfo.Source source = 1; */
if (message.source !== 0)
writer.tag(1, WireType.Varint).int32(message.source);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message parca.debuginfo.v1alpha1.DownloadInfo
*/
export const DownloadInfo = new DownloadInfo$Type();
/**
* @generated ServiceType for protobuf service parca.debuginfo.v1alpha1.DebugInfoService

@@ -391,3 +625,4 @@ */

{ name: "Exists", options: {}, I: ExistsRequest, O: ExistsResponse },
{ name: "Upload", clientStreaming: true, options: {}, I: UploadRequest, O: UploadResponse }
{ name: "Upload", clientStreaming: true, options: {}, I: UploadRequest, O: UploadResponse },
{ name: "Download", serverStreaming: true, options: {}, I: DownloadRequest, O: DownloadResponse }
]);

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.2.2 with parameter long_type_string,generate_dependencies
// @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies
// @generated from protobuf file "parca/metastore/v1alpha1/metastore.proto" (package "parca.metastore.v1alpha1", syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.2.2 with parameter long_type_string,generate_dependencies
// @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies
// @generated from protobuf file "parca/profilestore/v1alpha1/profilestore.proto" (package "parca.profilestore.v1alpha1", syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.2.2 with parameter long_type_string,generate_dependencies
// @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies
// @generated from protobuf file "parca/profilestore/v1alpha1/profilestore.proto" (package "parca.profilestore.v1alpha1", syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.2.2 with parameter long_type_string,generate_dependencies
// @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies
// @generated from protobuf file "parca/query/v1alpha1/query.proto" (package "parca.query.v1alpha1", syntax proto3)

@@ -7,2 +7,4 @@ // tslint:disable

import { QueryService } from "./query";
import type { ShareProfileResponse } from "./query";
import type { ShareProfileRequest } from "./query";
import type { ValuesResponse } from "./query";

@@ -65,2 +67,8 @@ import type { ValuesRequest } from "./query";

values(input: ValuesRequest, options?: RpcOptions): UnaryCall<ValuesRequest, ValuesResponse>;
/**
* ShareProfile uploads the given profile to pprof.me and returns a link to the profile.
*
* @generated from protobuf rpc: ShareProfile(parca.query.v1alpha1.ShareProfileRequest) returns (parca.query.v1alpha1.ShareProfileResponse);
*/
shareProfile(input: ShareProfileRequest, options?: RpcOptions): UnaryCall<ShareProfileRequest, ShareProfileResponse>;
}

@@ -132,2 +140,11 @@ /**

}
/**
* ShareProfile uploads the given profile to pprof.me and returns a link to the profile.
*
* @generated from protobuf rpc: ShareProfile(parca.query.v1alpha1.ShareProfileRequest) returns (parca.query.v1alpha1.ShareProfileResponse);
*/
shareProfile(input: ShareProfileRequest, options?: RpcOptions): UnaryCall<ShareProfileRequest, ShareProfileResponse> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<ShareProfileRequest, ShareProfileResponse>("unary", this._transport, method, opt, input);
}
}

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.2.2 with parameter long_type_string,generate_dependencies
// @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies
// @generated from protobuf file "parca/scrape/v1alpha1/scrape.proto" (package "parca.scrape.v1alpha1", syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.2.2 with parameter long_type_string,generate_dependencies
// @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies
// @generated from protobuf file "parca/scrape/v1alpha1/scrape.proto" (package "parca.scrape.v1alpha1", syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc