Package Exports
- @toruslabs/base-session-manager
- @toruslabs/base-session-manager/dist/baseSessionManager.cjs.js
- @toruslabs/base-session-manager/dist/baseSessionManager.esm.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@toruslabs/base-session-manager) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
base-session-manager
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 5 formats
esmbuilddist/fetchNodeDetails.esm.jsin es6 formatcommonjsbuilddist/fetchNodeDetails.cjs.jsin es5 formatumdbuilddist/fetchNodeDetails.umd.min.jsin 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 14+