@solid-primitives/event-listener
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -49,7 +49,11 @@ // src/eventListener.ts | ||
// src/eventListenerMap.ts | ||
import { createCallbackStack as createCallbackStack2, forEachEntry } from "@solid-primitives/utils"; | ||
import { | ||
createCallbackStack as createCallbackStack2, | ||
forEachEntry, | ||
access as access2 | ||
} from "@solid-primitives/utils"; | ||
import { createEffect as createEffect2, createSignal as createSignal2, onCleanup as onCleanup2 } from "solid-js"; | ||
function createEventListenerMap(targets, handlersMap, options) { | ||
const { push, execute } = createCallbackStack2(); | ||
forEachEntry(handlersMap, (eventName, handler) => { | ||
forEachEntry(access2(handlersMap), (eventName, handler) => { | ||
push(createEventListener(targets, eventName, (e) => handler == null ? void 0 : handler(e), options)); | ||
@@ -56,0 +60,0 @@ }); |
{ | ||
"name": "@solid-primitives/event-listener", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Primitive to manage creating event listeners.", | ||
@@ -64,4 +64,4 @@ "author": "David Di Biase <dave.dibiase@gmail.com>", | ||
"@solid-primitives/rootless": "^0.1.0", | ||
"@solid-primitives/utils": "^1.0.0" | ||
"@solid-primitives/utils": "^1.2.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34885
504