@gershy/util-throttler 0.0.4 → 0.0.5

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.
package/cmp/cjs/main.d.ts CHANGED
@@ -1,9 +1,12 @@
1
1
  import '@gershy/clearing';
2
2
  export default class Throttler {
3
- private limit;
4
- private active;
5
- private pending;
3
+ protected limit: number;
4
+ protected active: Set<any>;
5
+ protected pending: {
6
+ prm: PromiseLater<any>;
7
+ fn: () => Promise<any>;
8
+ }[];
6
9
  constructor(limit: number);
7
- private finish;
10
+ protected finish(donePrm: any): void;
8
11
  do<T>(fn: () => Promise<T>): Promise<T>;
9
12
  }
package/cmp/esm/main.d.ts CHANGED
@@ -1,9 +1,12 @@
1
1
  import '@gershy/clearing';
2
2
  export default class Throttler {
3
- private limit;
4
- private active;
5
- private pending;
3
+ protected limit: number;
4
+ protected active: Set<any>;
5
+ protected pending: {
6
+ prm: PromiseLater<any>;
7
+ fn: () => Promise<any>;
8
+ }[];
6
9
  constructor(limit: number);
7
- private finish;
10
+ protected finish(donePrm: any): void;
8
11
  do<T>(fn: () => Promise<T>): Promise<T>;
9
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gershy/util-throttler",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "author": "Gershom Maes",
5
5
  "description": "TODO",
6
6
  "keywords": [
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "license": "ISC",
22
22
  "peerDependencies": {
23
- "@gershy/clearing": "^0.0.41"
23
+ "@gershy/clearing": "^0.0.42"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "^24.10.1"