Package Exports
- @toruslabs/session-manager
- @toruslabs/session-manager/dist/lib.cjs/index.js
- @toruslabs/session-manager/dist/lib.esm/index.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/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
Web Session Manager
Introduction
This helps all web SDKs to implement session management.
Installation
git clone https://github.com/torusresearch/session-manager-web.git
cd session-manager-web
npm i
npm run bootstrapBundling
Each sub package is distributed in 3 formats
esmbuilddist/<MODULE_NAME>.esm.jsin es6 formatcommonjsbuilddist/<MODULE_NAME>.cjs.jsin es5 formatumdbuilddist/<MODULE_NAME>.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) 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
Build
Ensure you have a Node.JS development environment setup:
npm run buildRequirements
- This package requires a peer dependency of
@babel/runtime - Node 18+