mixlea-utils-js 0.1.19 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -704,6 +704,8 @@ export declare function isMobileBrowser(): boolean;
704
704
 
705
705
  export declare function isMoreThanZero(val: any): boolean;
706
706
 
707
+ export declare function isNodeContains(container: HTMLElement | null | undefined, target?: HTMLElement | null | undefined): boolean;
708
+
707
709
  /**
708
710
  * 判断数据是否不为[null, undefind], 数组不为空, 字符串不为空, 对象不为空
709
711
  * @param input
@@ -902,6 +904,8 @@ export declare function multiplyBy(val: Record<string, any>, fields: string[], o
902
904
 
903
905
  declare type NextFunction<T> = (state: T) => T;
904
906
 
907
+ export declare function nodeClosest(from: HTMLElement | null | undefined, callback: (node: HTMLElement) => boolean, end: HTMLElement | null | undefined): HTMLElement | null;
908
+
905
909
  declare type NotVoidLike = object | Map<any, any> | Set<any> | string | number | boolean;
906
910
 
907
911
  declare type NotVoidLike_2 = object | Map<any, any> | Set<any> | string | number | boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mixlea-utils-js",
3
3
  "type": "module",
4
- "version": "0.1.19",
4
+ "version": "0.1.20",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {