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

@protobuf-ts/twirp-transport

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@protobuf-ts/twirp-transport

Twirp transport for code generated by the protobuf-ts plugin.

  • 1.0.0-alpha.18
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61K
increased by38.59%
Maintainers
1
Weekly downloads
 
Created
Source

@protobuf-ts/twirp-client

Twirp transport for code generated by the protobuf-ts plugin.

This is a fully compatible Twirp implementation in typescript.

To use Twirp, add this package as a dependency, create an instance of the class TwirpFetchTransport and pass it to the constructor of your generated service clients.

This transport requires the fetch API. You can polyfill globalThis or using the TwirpOptions.fetchApi option. The transport is tested with the polyfill packages "node-fetch" and "abort-controller".

Features:

  • compatibility tested with the "clientcompat" tool
  • you have full control over the base URL, does not require 'twirp' prefix
  • supports binary and JSON format, can be selected at runtime
  • supports interceptors
  • supports google.protobuf.Any, also when reading a JSON response
  • implements user abort

Twirp error codes

The twirp error codes in twirp-format.ts are from twirp / errors.go. Copyright 2018 by Twitch Interactive, Inc.

Keywords

FAQs

Package last updated on 14 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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