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

@bufbuild/connect-web

Package Overview
Dependencies
Maintainers
11
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bufbuild/connect-web - npm Package Compare versions

Comparing version 0.9.1 to 0.10.0

4

dist/cjs/connect-transport.js

@@ -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": [

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