UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

18 lines (17 loc) 347 B
export class InMemoryStorage { constructor(store = {}) { this.store = store; } getItem(key) { if (key in this.store) { return this.store[key]; } return null; } removeItem(key) { delete this.store[key]; } setItem(key, value) { this.store[key] = value; } }