@bufbuild/connect-web
Advanced tools
Comparing version 0.9.1 to 0.10.0
@@ -87,3 +87,5 @@ "use strict"; | ||
header: demuxedHeader, | ||
message: parse(new Uint8Array(await response.arrayBuffer())), | ||
message: useBinaryFormat | ||
? parse(new Uint8Array(await response.arrayBuffer())) | ||
: method.O.fromJson((await response.json()), (0, protocol_1.getJsonOptions)(options.jsonOptions)), | ||
trailer: demuxedTrailer, | ||
@@ -90,0 +92,0 @@ }; |
@@ -28,3 +28,3 @@ // Copyright 2021-2023 Buf Technologies, Inc. | ||
import { appendHeaders } from "@bufbuild/connect"; | ||
import { createClientMethodSerializers, createEnvelopeReadableStream, createMethodUrl, encodeEnvelope, runStreamingCall, runUnaryCall, } from "@bufbuild/connect/protocol"; | ||
import { createClientMethodSerializers, createEnvelopeReadableStream, createMethodUrl, getJsonOptions, encodeEnvelope, runStreamingCall, runUnaryCall, } from "@bufbuild/connect/protocol"; | ||
import { endStreamFlag, endStreamFromJson, errorFromJson, requestHeader, trailerDemux, transformConnectPostToGetRequest, validateResponse, } from "@bufbuild/connect/protocol-connect"; | ||
@@ -85,3 +85,5 @@ import { assertFetchApi } from "./assert-fetch-api.js"; | ||
header: demuxedHeader, | ||
message: parse(new Uint8Array(await response.arrayBuffer())), | ||
message: useBinaryFormat | ||
? parse(new Uint8Array(await response.arrayBuffer())) | ||
: method.O.fromJson((await response.json()), getJsonOptions(options.jsonOptions)), | ||
trailer: demuxedTrailer, | ||
@@ -88,0 +90,0 @@ }; |
@@ -40,2 +40,3 @@ import type { BinaryReadOptions, BinaryWriteOptions, JsonReadOptions, JsonWriteOptions } from "@bufbuild/protobuf"; | ||
* Options for the JSON format. | ||
* By default, unknown fields are ignored. | ||
*/ | ||
@@ -42,0 +43,0 @@ jsonOptions?: Partial<JsonReadOptions & JsonWriteOptions>; |
@@ -41,2 +41,3 @@ import type { BinaryReadOptions, BinaryWriteOptions, JsonReadOptions, JsonWriteOptions } from "@bufbuild/protobuf"; | ||
* Options for the JSON format. | ||
* By default, unknown fields are ignored. | ||
*/ | ||
@@ -43,0 +44,0 @@ jsonOptions?: Partial<JsonReadOptions & JsonWriteOptions>; |
{ | ||
"name": "@bufbuild/connect-web", | ||
"version": "0.9.1", | ||
"version": "0.10.0", | ||
"license": "Apache-2.0", | ||
@@ -26,6 +26,6 @@ "repository": { | ||
"dependencies": { | ||
"@bufbuild/connect": "0.9.1" | ||
"@bufbuild/connect": "0.10.0" | ||
}, | ||
"peerDependencies": { | ||
"@bufbuild/protobuf": "^1.2.0" | ||
"@bufbuild/protobuf": "^1.2.1" | ||
}, | ||
@@ -32,0 +32,0 @@ "files": [ |
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
51648
956
+ Added@bufbuild/connect@0.10.0(transitive)
- Removed@bufbuild/connect@0.9.1(transitive)
Updated@bufbuild/connect@0.10.0