6.1.1 • Published 28 days ago

@toruslabs/http-helpers v6.1.1

Weekly downloads
456
License
MIT
Repository
github
Last release
28 days ago

Http helpers

npm version npm

Introduction

  • This package allows you to call http methods with pre defined configs. Uses fetch or node-fetch internally
  • Adds support for api keys
  • Works in both browser and node.js environments

Installation

Bundling

This module is distributed in 3 formats

  • esm build dist/httpHelpers.esm.js in es6 format
  • commonjs build dist/httpHelpers.cjs.js in es5 format
  • umd build dist/httpHelpers.umd.min.js in es5 format without polyfilling corejs minified

By default, the appropriate format is used for your specified usecase You can use a different format (if you know what you're doing eg. node) by referencing the correct file

The cjs build is not polyfilled with core-js. It is upto the user to polyfill based on the browserlist they target

Directly in Browser

CDN's serve the non-core-js polyfilled version by default. You can use a different

jsdeliver

<script src="https://cdn.jsdelivr.net/npm/@toruslabs/http-helpers"></script>

unpkg

<script src="https://unpkg.com/@toruslabs/http-helpers"></script>

Usage

Add @toruslabs/http-helpers to your project:

import { get, post } from "@toruslabs/http-helpers";
const { get, post } = require("@toruslabs/http-helpers").default;

Requirements

  • This package requires a peer dependency of @babel/runtime
  • Node 18+
@lilpacy/torus-embed@toniq-labs/openlogin@alex-tiplink/dangerous-embed@everything-registry/sub-chunk-927singularity-fetch-node-detailssingularity-torussingularity-torus.jssingularity-custom-auth-pluginsingularity-custom-authentication-plugin@oraichain/multifactors.js@oraichain/only-social-key@oraichain/share-transfer@oraichain/storage-layer-orai@oraichain/storage-layer-torus@oraichain/torus.js@oraichain/auth@oraichain/core@oraichain/customauth@meomeocoj/core@meomeocoj/customauth@meomeocoj/share-transfer@meomeocoj/storage-layer-torus@meomeocoj/torus.js@thresholdkey/core@thresholdkey/customauth@thresholdkey/share-transfer@thresholdkey/storage-layer-torus@thresholdkey/torus.js@treasure-chess/torus-direct-web-sdk@treasure-chess/torus.js@tkey-mpc/share-transfer@tkey-mpc/storage-layer-torus@tkey-singularity/core@tkey/share-transfer@tkey/storage-layer-torus@tkey-mpc/core@tkey-singularity/share-transfer@tkey-singularity/storage-layer-torus@tkey/core@tainguyentt/ethereum-controllers@tainguyentt/solana-controllers@tainguyentt/base-controllers@toruslabs/solana-controllers@toruslabs/solana-embed@toruslabs/torus-direct-web-sdk@toruslabs/torus-embed@toruslabs/torus.js@toruslabs/metadata-helpers@toruslabs/openlogin-mpc@toruslabs/rss-client@toruslabs/secure-pub-sub@toruslabs/base-controllers@toruslabs/base-session-manager@toruslabs/casper-embed@toruslabs/customauth@toruslabs/ethereum-controllers@toruslabs/fetch-node-details@toruslabs/xrpl-controllers@toruslabs/xrpl-embed@accesschains/accesschains.js@web3auth/ui@web3auth/base@web3auth/ethereum-provider@web3auth-mpc/base@web3auth-mpc/ethereum-provider@web3auth-mpc/openlogin-adapter@web3auth-mpc/ui@wallet-sdk-demo/ethereum-provider@wallet-sdk-demo/ui@wallet-sdk-demo/base@upbond/customauth@upbond/upbond-embedtorus-mpctorus-embed-kaizoku-test-1biuauthui@biuauth/ethereum-provider@biuauth/ui@coinbrix/customauthsingularity@cere/torus-embed@guru_test/safe-snapcustomauth-singularity@jordiamez/base@jordiamez/ui
6.1.1

28 days ago

6.1.0

2 months ago

6.0.0

5 months ago

5.0.0

9 months ago

4.0.0

12 months ago

3.4.0

1 year ago

3.3.0

1 year ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.2.0

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.4.0

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago