@parca/client
Advanced tools
Comparing version 0.16.83 to 0.16.84
@@ -6,2 +6,6 @@ # Change Log | ||
## [0.16.84](https://github.com/parca-dev/parca/compare/@parca/client@0.16.83...@parca/client@0.16.84) (2023-08-16) | ||
**Note:** Version bump only for package @parca/client | ||
## 0.16.83 (2023-08-15) | ||
@@ -8,0 +12,0 @@ |
@@ -24,2 +24,4 @@ import { WireType } from "@protobuf-ts/runtime"; | ||
let text = message.seconds.toString(); | ||
if (s === 0 && message.nanos < 0) | ||
text = "-" + text; | ||
if (message.nanos !== 0) { | ||
@@ -42,3 +44,3 @@ let nanosStr = Math.abs(message.nanos).toString(); | ||
throw new Error("Unable to parse Duration from JSON " + typeofJsonValue(json) + ". Expected string."); | ||
let match = json.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/); | ||
let match = json.match(/^(-?)([0-9]+)(?:\.([0-9]+))?s/); | ||
if (match === null) | ||
@@ -48,12 +50,10 @@ throw new Error("Unable to parse Duration from JSON string. Invalid format."); | ||
target = this.create(); | ||
let longSeconds = PbLong.from(match[1]); | ||
let [, sign, secs, nanos] = match; | ||
let longSeconds = PbLong.from(sign + secs); | ||
if (longSeconds.toNumber() > 315576000000 || longSeconds.toNumber() < -315576000000) | ||
throw new Error("Unable to parse Duration from JSON string. Value out of range."); | ||
target.seconds = longSeconds.toBigInt(); | ||
if (typeof match[2] == "string") { | ||
let nanosStr = match[2] + "0".repeat(9 - match[2].length); | ||
if (typeof nanos == "string") { | ||
let nanosStr = sign + nanos + "0".repeat(9 - nanos.length); | ||
target.nanos = parseInt(nanosStr); | ||
if (longSeconds.isNegative()) { | ||
target.nanos = -target.nanos; | ||
} | ||
} | ||
@@ -60,0 +60,0 @@ return target; |
@@ -1,2 +0,2 @@ | ||
// @generated by protobuf-ts 2.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter generate_dependencies | ||
// @generated from protobuf file "grpc/health/v1/health.proto" (package "grpc.health.v1", syntax proto3) | ||
@@ -3,0 +3,0 @@ // tslint:disable |
@@ -1,2 +0,2 @@ | ||
// @generated by protobuf-ts 2.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter generate_dependencies | ||
// @generated from protobuf file "parca/debuginfo/v1alpha1/debuginfo.proto" (package "parca.debuginfo.v1alpha1", syntax proto3) | ||
@@ -3,0 +3,0 @@ // tslint:disable |
@@ -1,2 +0,2 @@ | ||
// @generated by protobuf-ts 2.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter 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.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter 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.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter 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.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter generate_dependencies | ||
// @generated from protobuf file "parca/share/v1alpha1/share.proto" (package "parca.share.v1alpha1", syntax proto3) | ||
@@ -3,0 +3,0 @@ // tslint:disable |
{ | ||
"name": "@parca/client", | ||
"version": "0.16.83", | ||
"version": "0.16.84", | ||
"description": "Parca API Client", | ||
@@ -26,3 +26,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "1cc1fa4b0635c97c4edf8375e99bb52a874bea88" | ||
"gitHead": "6538c664fe7a5cb4a41f599c999d272ed0423da4" | ||
} |
@@ -1,2 +0,2 @@ | ||
// @generated by protobuf-ts 2.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter 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.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter generate_dependencies | ||
// @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3) | ||
@@ -150,2 +150,4 @@ // tslint:disable | ||
let text = message.seconds.toString(); | ||
if (s === 0 && message.nanos < 0) | ||
text = "-" + text; | ||
if (message.nanos !== 0) { | ||
@@ -168,3 +170,3 @@ let nanosStr = Math.abs(message.nanos).toString(); | ||
throw new Error("Unable to parse Duration from JSON " + typeofJsonValue(json) + ". Expected string."); | ||
let match = json.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/); | ||
let match = json.match(/^(-?)([0-9]+)(?:\.([0-9]+))?s/); | ||
if (match === null) | ||
@@ -174,12 +176,10 @@ throw new Error("Unable to parse Duration from JSON string. Invalid format."); | ||
target = this.create(); | ||
let longSeconds = PbLong.from(match[1]); | ||
let [, sign, secs, nanos] = match; | ||
let longSeconds = PbLong.from(sign + secs); | ||
if (longSeconds.toNumber() > 315576000000 || longSeconds.toNumber() < -315576000000) | ||
throw new Error("Unable to parse Duration from JSON string. Value out of range."); | ||
target.seconds = longSeconds.toBigInt(); | ||
if (typeof match[2] == "string") { | ||
let nanosStr = match[2] + "0".repeat(9 - match[2].length); | ||
if (typeof nanos == "string") { | ||
let nanosStr = sign + nanos + "0".repeat(9 - nanos.length); | ||
target.nanos = parseInt(nanosStr); | ||
if (longSeconds.isNegative()) { | ||
target.nanos = -target.nanos; | ||
} | ||
} | ||
@@ -186,0 +186,0 @@ return target; |
@@ -1,2 +0,2 @@ | ||
// @generated by protobuf-ts 2.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter 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.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter generate_dependencies | ||
// @generated from protobuf file "grpc/health/v1/health.proto" (package "grpc.health.v1", syntax proto3) | ||
@@ -3,0 +3,0 @@ // tslint:disable |
@@ -1,2 +0,2 @@ | ||
// @generated by protobuf-ts 2.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter generate_dependencies | ||
// @generated from protobuf file "grpc/health/v1/health.proto" (package "grpc.health.v1", syntax proto3) | ||
@@ -3,0 +3,0 @@ // tslint:disable |
@@ -1,2 +0,2 @@ | ||
// @generated by protobuf-ts 2.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter generate_dependencies | ||
// @generated from protobuf file "parca/debuginfo/v1alpha1/debuginfo.proto" (package "parca.debuginfo.v1alpha1", syntax proto3) | ||
@@ -3,0 +3,0 @@ // tslint:disable |
@@ -1,2 +0,2 @@ | ||
// @generated by protobuf-ts 2.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter generate_dependencies | ||
// @generated from protobuf file "parca/debuginfo/v1alpha1/debuginfo.proto" (package "parca.debuginfo.v1alpha1", syntax proto3) | ||
@@ -3,0 +3,0 @@ // tslint:disable |
@@ -1,2 +0,2 @@ | ||
// @generated by protobuf-ts 2.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter 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.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter 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.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter 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.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter generate_dependencies | ||
// @generated from protobuf file "parca/query/v1alpha1/query.proto" (package "parca.query.v1alpha1", syntax proto3) | ||
@@ -3,0 +3,0 @@ // tslint:disable |
@@ -1,2 +0,2 @@ | ||
// @generated by protobuf-ts 2.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter 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.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter 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.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter generate_dependencies | ||
// @generated from protobuf file "parca/share/v1alpha1/share.proto" (package "parca.share.v1alpha1", syntax proto3) | ||
@@ -3,0 +3,0 @@ // tslint:disable |
@@ -1,2 +0,2 @@ | ||
// @generated by protobuf-ts 2.9.0 with parameter generate_dependencies | ||
// @generated by protobuf-ts 2.9.1 with parameter generate_dependencies | ||
// @generated from protobuf file "parca/share/v1alpha1/share.proto" (package "parca.share.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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1493019