UNPKG

@funded-labs/plug-controller

Version:

Internet Computer Plug wallet's controller

26 lines (25 loc) 706 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /* eslint-disable @typescript-eslint/no-explicit-any */ class StorageMock { constructor() { this.set = (obj = {}) => { this.store = Object.assign(Object.assign({}, this.store), obj); }; this.get = () => { return Object.assign({}, this.store); }; this.clear = () => { this.set({}); return {}; }; this.store = {}; this.local = { set: this.set.bind(this), get: this.get.bind(this), }; this.isSupported = true; } } const store = new StorageMock(); exports.default = store;