@fluid-topics/ft-wc-utils
Advanced tools
Comparing version 1.1.11 to 1.1.12
@@ -9,3 +9,4 @@ import { Optional, Provider } from "./generic-types"; | ||
export declare function deepEqual(a: any, b: any): boolean; | ||
export declare function eventPathContainsMatchingElement(e: Event, matchers: string[], containerElement: HTMLElement): boolean; | ||
export declare function eventPathContainsMatchingElement(e: Event, matchers: string[], containerElement?: HTMLElement): boolean; | ||
export declare function minmax(min: number, value: number, max: number): number; | ||
export declare function last<T = any>(arr: T[]): T | undefined; |
@@ -120,3 +120,3 @@ export const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms)); | ||
} | ||
export function eventPathContainsMatchingElement(e, matchers, containerElement) { | ||
export function eventPathContainsMatchingElement(e, matchers, containerElement = window.document.body) { | ||
if (matchers.length > 0) { | ||
@@ -138,1 +138,4 @@ const path = e.composedPath(); | ||
} | ||
export function last(arr) { | ||
return arr[arr.length - 1]; | ||
} |
@@ -6,3 +6,2 @@ import "./silent-define"; | ||
export * from "./CancelablePromise"; | ||
export * from "./conditional-visibility"; | ||
export * from "./Debouncer"; | ||
@@ -9,0 +8,0 @@ export * from "./decorators"; |
@@ -11,3 +11,2 @@ var _a, _b, _c; | ||
export * from "./CancelablePromise"; | ||
export * from "./conditional-visibility"; | ||
export * from "./Debouncer"; | ||
@@ -14,0 +13,0 @@ export * from "./decorators"; |
{ | ||
"name": "@fluid-topics/ft-wc-utils", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"description": "Internal web components tools", | ||
@@ -24,3 +24,3 @@ "author": "Fluid Topics <devtopics@antidot.net>", | ||
}, | ||
"gitHead": "077ec0dd3948ed41aa130d5a4cdc3d77f0dd2e6c" | ||
"gitHead": "81a42d69a8e10526af88b3c220eff325cbc33c3c" | ||
} |
Sorry, the diff of this file is too big to display
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
246197
55
2281