UNPKG

395 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.hasSessionState = exports.addSessionState = void 0;
4const currentStates = new Set();
5function addSessionState(state) {
6 currentStates.add(state);
7}
8exports.addSessionState = addSessionState;
9function hasSessionState(state) {
10 return currentStates.has(state);
11}
12exports.hasSessionState = hasSessionState;