@just-io/utils 1.0.1 → 1.1.0

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.
@@ -85,6 +85,7 @@ class EventEmitter {
85
85
  }
86
86
  clear() {
87
87
  __classPrivateFieldSet(this, _EventEmitter_subscribers, {}, "f");
88
+ __classPrivateFieldSet(this, _EventEmitter_onceSubscribers, {}, "f");
88
89
  }
89
90
  }
90
91
  exports.EventEmitter = EventEmitter;
@@ -62,5 +62,6 @@ export class EventEmitter {
62
62
  }
63
63
  clear() {
64
64
  this.#subscribers = {};
65
+ this.#onceSubscribers = {};
65
66
  }
66
67
  }
@@ -0,0 +1,7 @@
1
+ export declare function debounce<A extends unknown[]>(func: (...args: A) => void, debounceTime: number): ((...args: A) => void) & {
2
+ teardown: () => void;
3
+ };
4
+ export declare function debounceByKey<K, A extends unknown[]>(func: (...args: A) => void, extractKey: (...args: A) => K, debounceTime: number): ((...args: A) => void) & {
5
+ teardown: (...args: A) => void;
6
+ teardownAll: () => void;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare function memo<A extends unknown[]>(func: (...args: A) => void, extractMemoValues: (...args: A) => unknown[], onlyChanges?: boolean): (...args: A) => void;
2
+ export declare function memoByKey<K, A extends unknown[]>(func: (...args: A) => void, extractKey: (...args: A) => K, extractMemoValues: (...args: A) => unknown[], onlyChanges?: boolean): (...args: A) => void;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@just-io/utils",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Utility functional",
5
5
  "types": "dist/types",
6
6
  "main": "dist/cjs/index.js",