@solid-primitives/event-listener
Advanced tools
Comparing version 2.2.5 to 2.2.6
@@ -1,2 +0,2 @@ | ||
import { onRootCleanup, entries, createCallbackStack, asArray, access, keys } from '@solid-primitives/utils'; | ||
import { tryOnCleanup, entries, createCallbackStack, asArray, access, keys } from '@solid-primitives/utils'; | ||
import { createEffect, createRenderEffect, createSignal, onCleanup } from 'solid-js'; | ||
@@ -7,3 +7,3 @@ | ||
target.addEventListener(type, handler, options); | ||
return onRootCleanup(target.removeEventListener.bind(target, type, handler, options)); | ||
return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options)); | ||
} | ||
@@ -10,0 +10,0 @@ function createEventListener(targets, type, handler, options) { |
@@ -1,2 +0,2 @@ | ||
import { onRootCleanup } from '@solid-primitives/utils'; | ||
import { tryOnCleanup } from '@solid-primitives/utils'; | ||
import { createEffect } from 'solid-js'; | ||
@@ -7,3 +7,3 @@ | ||
target.addEventListener(type, handler, options); | ||
return onRootCleanup(target.removeEventListener.bind(target, type, handler, options)); | ||
return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options)); | ||
} | ||
@@ -10,0 +10,0 @@ function createEventListener(targets, type, handler, options) { |
{ | ||
"name": "@solid-primitives/event-listener", | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"description": "SolidJS Primitives to manage creating event listeners.", | ||
@@ -82,3 +82,3 @@ "author": "David Di Biase <dave.dibiase@gmail.com>", | ||
"dependencies": { | ||
"@solid-primitives/utils": "^4.0.1" | ||
"@solid-primitives/utils": "^5.0.0" | ||
}, | ||
@@ -85,0 +85,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
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
32404
+ Added@solid-primitives/utils@5.5.2(transitive)
- Removed@solid-primitives/utils@4.0.1(transitive)