From eb75dc531a9c636d05dcbaf9814252375168032d Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 15 Jan 2024 11:02:44 +0100 Subject: [PATCH] Remove exports from state.js --- state.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/state.js b/state.js index 7bc12c8..4e39a07 100644 --- a/state.js +++ b/state.js @@ -1,4 +1,4 @@ -export const abortRegistry = new FinalizationRegistry(controller => controller.abort()) +const abortRegistry = new FinalizationRegistry(controller => controller.abort()) const camelToKebab = string => string.replace(/([a-z])([A-Z])/g, (_, a, b) => `${a}-${b.toLowerCase()}`) const kebabToCamel = string => string.replace(/([a-z])-([a-z])/g, (_, a, b) => a+b.toUpperCase()) @@ -17,7 +17,7 @@ export class ChangeEvent extends Event { } } -class SimpleState extends EventTarget {} +export class SimpleState extends EventTarget {} export class MapStorage extends Storage { #map = new Map() @@ -189,7 +189,7 @@ export class ForwardState extends SimpleState { set value(value) { this.#backend.proxy[this.#property] = value } } -export class StorageChangeEvent extends Event { +class StorageChangeEvent extends Event { constructor(storage, key, value, targetState) { super("storagechange") this.storageArea = storage