Refactor exports

Export rules:
* All default exports as named exports
* Default export wherever it makes sense
This commit is contained in:
Talia 2024-01-11 15:44:11 +01:00
parent 7be7cf0210
commit 3b3e6467c8
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class ChildObserver extends MutationObserver {
const childObserver = new ChildObserver()
const lense = (methods, extra) => {
export const lense = (methods, extra) => {
if (extra) return lense(extra)(methods)
const traps = {

View File

@ -184,6 +184,7 @@ const nameSpacedProxy = (options={}) => new Proxy(Window, {
export const html = nameSpacedProxy({nameFilter: name => name.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()})
export const svg = nameSpacedProxy({xmlns: "http://www.w3.org/2000/svg"})
export default html
// Other utility exports