@toruslabs/base-session-manager
TypeScript icon, indicating that this package has built-in type declarations

3.1.1 • Public • Published

base-session-manager

npm version npm

Introduction

This utility library serves defines the interfaces required for session manager implementations. It also provides a base class that can be extended to implement a session manager.

Features

  • Typescript compatible. Includes Type definitions
  • All API's return Promises

Installation

Bundling

This module is distributed in 3 formats

  • esm build dist/baseSessionManager.esm.js in es6 format
  • commonjs build dist/baseSessionManager.cjs.js in es5 format
  • umd build dist/baseSessionManager.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/base-session-manager"></script>

unpkg

<script src="https://unpkg.com/@toruslabs/base-session-manager"></script>

Usage

Add @toruslabs/base-session-manager to your project:

Requirements

  • This package requires a peer dependency of @babel/runtime
  • Node 18+

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.1.19,161latest

Version History

VersionDownloads (Last 7 Days)Published
3.1.19,161
3.1.016
3.0.01,378
2.0.018
1.1.02,260
1.0.07
0.0.27
0.0.17

Package Sidebar

Install

npm i @toruslabs/base-session-manager

Weekly Downloads

12,854

Version

3.1.1

License

ISC

Unpacked Size

29.5 kB

Total Files

8

Last publish

Collaborators

  • archit_web3
  • himanshunpm009
  • torusresearch
  • chaitanyapotti
  • tetratorus