Make project build using esbuild

This commit is contained in:
Matei Adriel 2023-10-29 04:54:24 +01:00
parent fed8fdcf86
commit 243360dd70
No known key found for this signature in database
42 changed files with 2522 additions and 2239 deletions
src/modules/storage/classes

View file

@ -1,6 +1,3 @@
import { CacheInstancesByKey } from '@eix-js/utils'
@CacheInstancesByKey(Infinity)
export class LocalStore<T> {
public constructor(public name: string) {
if (!localStorage.getItem(name)) {
@ -13,9 +10,7 @@ export class LocalStore<T> {
if (!raw)
throw new Error(
`An error occured when accesing ${
this.name
} in the local storage!`
`An error occured when accesing ${this.name} in the local storage!`
)
else {
return JSON.parse(raw)